:root {
  color-scheme: light;
  --ink:#182e39; --muted:#50646a; --navy:#173641; --teal:#22635e;
  --line:#d6e1dc; --paper:#fff; --ground:#f0f4f1; --gold:#f1dec1;
  font-family:system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--ink); background:var(--ground); line-height:1.5;
}
*, *::before, *::after {box-sizing:border-box}
body {margin:0}
#app {min-height:100dvh;display:flex;flex-direction:column}
h1,h2,p {margin:0 0 .65rem}
h1 {font-size:clamp(2rem,4vw,3.3rem);letter-spacing:-.04em;line-height:1.15}
h2 {font-size:1.14rem;line-height:1.3}
button,input,textarea,select {font:inherit;color:inherit}
a {color:var(--teal);text-underline-offset:3px}
button {cursor:pointer}
button:disabled {cursor:wait;opacity:.65}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {outline:3px solid #a46633;outline-offset:3px}
svg {flex:none}
.mast {background:var(--paper);border-bottom:1px solid var(--line)}
.mast-inner,.layout,.footer {width:min(1100px,100% - 48px);margin-inline:auto}
.mast-inner {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:78px}
.brand,.mast-tools {display:flex;align-items:center;gap:12px}
.brand {text-decoration:none;color:var(--ink);min-width:0}
.brand strong {display:block;font-family:Georgia,"Songti SC",serif;font-size:1.23rem;line-height:1.14;font-weight:500}
.brand small {display:block;color:var(--muted);font-size:.66rem;letter-spacing:.09em;margin-top:4px}
.monogram {display:grid;place-items:center;border-radius:6px;background:var(--navy);color:#fff9eb;min-width:40px;height:40px;font-family:Georgia,serif}
.text {border:0;border-radius:7px;min-height:44px;background:none;color:var(--teal);padding:6px 8px;font-size:.85rem;white-space:nowrap}
.text:hover,.back-button:hover {background:#e4ede8}
.layout {padding-block:26px 36px;flex:1}
.narrow {max-width:630px}
.hero {position:relative;overflow:hidden;padding:32px 36px 35px;border-radius:16px;background:#193b43;color:#fff;margin-bottom:20px}
.hero::after {content:"";position:absolute;right:-62px;top:-158px;width:365px;height:365px;border:1px solid #9fc5b94d;border-radius:50%;pointer-events:none;box-shadow:0 0 0 23px #9fc5b91c,0 0 0 49px #9fc5b912}
.hero>* {position:relative;z-index:1}
.hero p:last-child {color:#d7e9e4;margin:12px 0 0;max-width:39rem}
.landing {padding-block:53px}
.kicker {font-size:.73rem;letter-spacing:.12em;font-weight:750;color:var(--teal);margin-bottom:9px}
.hero .kicker {color:var(--gold)}
.entry-grid,.dashboard {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.dashboard {grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)}
.entry-card,.panel {background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:19px 20px}
.entry-card {display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:13px;align-items:center;text-decoration:none;color:var(--ink);min-height:100px}
.entry-card svg,.section-title svg {color:var(--teal)}
.entry-card h2 {margin-bottom:5px}
.entry-card p {margin:0;color:var(--muted)}
.entry-card:hover,.matter-row:hover,.persona:hover {border-color:#96b4a8;background:#f9fcf9}
.muted,small {color:var(--muted)}
.note,.footer {font-size:.78rem;margin-top:16px}
.sample-notice {padding:10px 18px;text-align:center;background:#fff0db;color:#66401f;font-size:.85rem}
.account-links {display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;margin:14px 2px 0;font-size:.9rem}
.footer {display:flex;justify-content:space-between;gap:9px;padding-block:13px 20px;border-top:1px solid var(--line);color:var(--muted)}
.back,.back-button {display:inline-flex;align-items:center;min-height:44px;margin-bottom:11px}
.login {padding:24px}
.login h1 {font-size:clamp(1.6rem,4vw,2.2rem)}
.personas {display:grid;gap:9px;margin-top:15px}
.button {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;padding:7px 11px;border:1px solid #b9cec4;border-radius:8px;background:var(--paper);font-size:.88rem;font-weight:620}
.button:hover {background:#edf4ef}
.button.primary {background:var(--teal);border-color:var(--teal);color:white}
.button.primary:hover {background:#164b45}
.button.persona {display:flex;justify-content:space-between;width:100%;text-align:left;min-height:58px;padding:10px 12px}
.button.persona+.persona {margin-top:7px}
.button.persona small {display:block;font-weight:400;font-size:.8rem}
.button.back-button {border:0;background:none;padding-inline:0;color:var(--teal)}
.section-title {display:flex;align-items:center;gap:9px;margin-bottom:11px}
.section-title h2 {margin:0}
.counter,.tag {display:inline-flex;align-items:center;width:fit-content;border-radius:40px;background:#e4f0e9;color:#24544b;padding:4px 8px;font-size:.74rem;font-weight:690;white-space:normal}
.tag.materials,.tag.replace,.tag.missing {background:#fff0db;color:#7d4720}
.tag.review,.tag.attorney-review,.tag.pending,.tag.neutral {background:#e8eff2;color:#36535e}
.tag.client-approval {background:#f3eaf4;color:#624465}
.matter-row {width:100%;border:1px solid transparent;border-top-color:#e3eae6;border-radius:7px;background:white;
  text-align:left;min-height:65px;display:grid;align-items:center;grid-template-columns:auto minmax(0,1fr) auto auto;gap:9px;padding:10px 5px}
.matter-row strong {display:block;overflow-wrap:anywhere}
.case-number {font-size:.75rem;font-variant-numeric:tabular-nums;color:var(--muted);display:block}
.matter-hero {padding:19px 22px;border:1px solid var(--line);border-radius:13px;background:#e5efea;margin-bottom:13px}
.matter-hero h1 {margin:0;font-size:clamp(1.65rem,4vw,2.45rem)}
.matter-hero p:last-child {margin:8px 0 0}
.line {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:7px 12px}
.panel .line {padding:8px 0;border-top:1px solid #e2ebe6}
.tabs {display:flex;gap:5px;flex-wrap:wrap;margin:0 0 13px}
.tabs .button[aria-pressed=true] {background:#dceae3;border-color:#abc6b8;color:#1e5148}
.spaced {margin-top:16px}
.slots,.events {list-style:none;margin:0;padding:0}
.slots li,.events li {padding:11px 0;border-top:1px solid #e2ebe6}
.slot-head,.slot-actions,.events li {display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;justify-content:space-between}
.slot-head small,.events span {display:block;font-size:.8rem;color:var(--muted)}
.slot-actions {justify-content:flex-start;margin-top:7px}
.workspace-actions {display:flex;justify-content:flex-end;margin:0 0 14px}
.return-feedback {border-left:3px solid #ac6437;background:#fff3e5;color:#713a21;border-radius:5px;padding:8px 12px;margin:9px 0}
.return-feedback p {margin:3px 0 0}
.review-note {white-space:pre-wrap;overflow-wrap:anywhere}
.return-form,.review-history,.send-form {margin-top:7px}
.return-form summary,.review-history summary,.send-form summary {display:list-item;min-height:0;padding:10px 0;color:var(--teal)}
.return-form form,.send-form form {border:1px solid var(--line);border-radius:8px;padding:9px 11px;margin:0}
fieldset {min-inline-size:0;max-inline-size:100%;border:1px solid var(--line);border-radius:8px;margin:10px 0;padding:3px 10px}
legend {max-inline-size:100%;overflow-wrap:anywhere;font-size:.85rem;font-weight:650;padding:0 3px}
.form-list {display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-top:12px;min-width:0}
.form-card {min-width:0;max-width:100%;border:1px solid var(--line);border-radius:8px;padding:12px}
.form-card h3 {margin:0;font-size:1rem}
.form-answers {display:grid;gap:6px;margin:7px 0}
.form-answers div {display:grid;grid-template-columns:minmax(8rem,1fr) 2fr;gap:7px}
.form-answers dd {margin:0;overflow-wrap:anywhere}
.time-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:580px}
.time-pair input {min-width:0}
.events li p {width:100%;margin:0}
.file-link {display:inline-flex;align-items:center;min-height:44px;font-size:.86rem}
.messages {display:grid;gap:8px}
.message {background:#f1f5f3;border-radius:8px;padding:9px 11px;margin-right:20px;overflow-wrap:anywhere}
.message.own {margin:0 0 0 20px;background:#e4efe7}
.message time {color:var(--muted);font-size:.76rem;margin-left:4px}
.message p {margin:4px 0 0;white-space:pre-wrap}
form {margin-top:11px}
form label {display:block;font-size:.86rem;font-weight:620;margin:7px 0}
form select,form textarea,form input:not([type=checkbox]) {display:block;margin-top:4px;width:min(100%,580px);border:1px solid #bacdc3;border-radius:7px;padding:8px;background:white}
form .check {display:flex;align-items:center;gap:5px;min-height:36px}
summary {cursor:pointer;min-height:44px;font-weight:620}
.feedback {width:min(1100px,100% - 48px);margin:12px auto 0;padding:8px 12px;border-radius:7px;background:#e0eee2;color:#265248}
.feedback.error {background:#fff0e9;color:#873d2b}
.loading {padding:30px}
@media(max-width:640px) {
  .time-pair {grid-template-columns:minmax(0,1fr);gap:0}
  .mast-inner,.layout,.footer,.feedback {width:calc(100% - 26px)}
  .mast-inner {min-height:65px;gap:6px}
  .brand,.mast-tools {gap:6px}
  .brand strong {font-size:.95rem}
  .brand small {font-size:.59rem}
  .monogram {min-width:32px;height:32px;font-size:.8rem}
  .text {padding-inline:5px;font-size:.76rem}
  .layout {padding-block:13px 25px}
  .hero {padding:21px 16px;margin-bottom:12px}
  .hero::after {opacity:.5}
  .entry-grid,.dashboard {grid-template-columns:minmax(0,1fr);gap:10px}
  .entry-card,.panel {padding:13px 12px}
  .matter-hero {padding:13px}
  .matter-row {gap:5px}
  .matter-row svg {width:17px}
  .tag {font-size:.66rem;padding:4px 6px}
  .footer {font-size:.67rem}
  form select,form textarea,form input:not([type=checkbox]) {font-size:16px}
}
.firm-search {display:flex;align-items:end;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.firm-search label {flex:1;min-width:180px;margin:0}
.firm-person {display:flex;align-items:end;flex-wrap:wrap;gap:8px;margin:10px 0}
.firm-person label {flex:1;min-width:155px;margin:0}
.firm-code {overflow-wrap:anywhere}
.practice-switch {display:inline-block;margin-left:12px}
.practice-switch summary {display:list-item;cursor:pointer;text-decoration:underline}
.practice-switch nav {display:flex;justify-content:center;flex-wrap:wrap;gap:6px 15px;margin-top:8px}
.practice-switch nav [aria-current="page"] {font-weight:750}
.chat-log {display:grid;gap:8px;margin:12px 0}
.chat-log article {padding:10px 13px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}
.chat-log time {margin-inline-start:10px;font-size:.8rem;color:var(--muted)}

/* Signed-in workspace */
.firm-nav-wrap {background:#fbfdfb;border-bottom:1px solid var(--line)}
.firm-navigation,.firm-case-navigation {width:min(1100px,100% - 48px);margin-inline:auto;display:flex;align-items:center;gap:4px}
.firm-navigation {overflow:auto;scrollbar-width:thin;padding-block:6px}
.firm-navigation .button {white-space:nowrap;flex:none;border-color:transparent;background:transparent;color:var(--muted)}
.firm-navigation .button:hover {background:#eef5ef}
.firm-navigation .button[aria-current=page] {color:#174b41;background:#e3efe8;border-color:#cfdfd4}
.firm-case-navigation {border-top:1px solid var(--line);gap:14px}
.firm-case-navigation strong {flex:none;font-size:.77rem;color:var(--muted)}
.firm-case-navigation .firm-navigation {width:100%;min-width:0}
.firm-home {padding-top:32px}
.firm-welcome {position:relative;isolation:isolate;overflow:hidden;display:flex;justify-content:space-between;align-items:end;gap:22px;
  background:linear-gradient(125deg,#102f34,#1a4b45);color:white;border-radius:19px;padding:clamp(24px,5vw,46px);min-height:235px}
.firm-welcome::after {content:"";position:absolute;z-index:-1;pointer-events:none;width:390px;height:390px;border-radius:50%;
  border:1px solid #f1dec136;box-shadow:0 0 0 24px #f1dec117,0 0 0 55px #f1dec10a;right:-100px;top:-263px}
.firm-welcome .kicker {color:#efd9af}
.firm-welcome-copy {min-width:0}
.firm-welcome h1 {font-family:Georgia,"Songti SC",serif;font-weight:500;overflow-wrap:anywhere}
.firm-welcome-copy p:last-child {margin:0;color:#daeae4}
.firm-identity {display:flex;align-items:center;gap:10px;padding:11px 15px;border:1px solid #ffffff38;border-radius:12px;min-width:0;max-width:100%;background:#ffffff0c}
.firm-identity-icon {color:#efd9af;display:grid;place-items:center}
.firm-identity strong,.firm-identity small {display:block}
.firm-identity small {color:#d0e2db;overflow-wrap:anywhere}
.firm-practice-callout {display:flex;justify-content:space-between;align-items:center;gap:20px;background:#f9f6ee;
  border:1px solid #e6ddc8;border-left:4px solid #aa8751;border-radius:13px;margin-top:18px;padding:18px 23px}
.firm-practice-callout .kicker {color:#775a2b;margin-bottom:3px}
.firm-practice-callout p:last-child {margin:0;color:var(--muted)}
.firm-practice-callout a {flex:none;text-decoration:none}
.firm-tools {margin-top:27px}
.firm-tools-head {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;margin-bottom:11px}
.firm-tools-head h2 {margin:0;font-size:1.28rem}
.firm-tile-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,255px),1fr));gap:12px}
.firm-tile {display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-height:90px;text-align:left;
  padding:14px;border:1px solid var(--line);border-radius:13px;background:white}
.firm-tile-icon {display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:9px;background:#e9f2ec;color:#275b50}
.firm-tile-copy {display:grid;gap:3px;flex:1;min-width:0}
.firm-tile-copy strong {font-size:.98rem}
.firm-tile-copy small {font-size:.79rem;font-weight:450}
.firm-tile-static {background:#f8fbf9}
.firm-tile-status {font-size:.7rem;color:#5b6e68}
.form-list,.connection-list {display:grid;gap:12px;margin-top:14px}
.form-card {border:1px solid var(--line);border-radius:11px;padding:13px}
.form-card .line {border:0}
.form-card h3 {margin:0}
.answer-grid {display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,2fr);gap:7px 12px;overflow-wrap:anywhere}
.answer-grid dd {margin:0}
.filing-steps {padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(128px,1fr));gap:8px}
.filing-steps li {display:flex;align-items:center;gap:6px;padding:9px;border-radius:8px;background:#f2f6f3;color:var(--muted);font-size:.8rem}
.filing-steps li span {display:grid;place-items:center;flex:none;width:23px;height:23px;border-radius:50%;border:1px solid #b5ccc0}
.filing-steps li[aria-current=step] {background:#dceee4;color:#153f36;font-weight:700}
@media(max-width:650px) {
  .firm-navigation,.firm-case-navigation {width:calc(100% - 28px)}
  .firm-case-navigation {gap:8px}
  .firm-case-navigation .firm-navigation {width:auto}
  .firm-home {padding-top:18px}
  .firm-welcome,.firm-practice-callout {align-items:flex-start;flex-direction:column}
  .firm-welcome {min-height:0;gap:16px}
  .firm-practice-callout {gap:12px;padding:15px}
  .firm-practice-callout a {width:100%}
}
.firm-case-tasks {margin:14px 0;padding:15px 17px;border:1px solid var(--line);border-radius:11px;background:#f6faf7}
.firm-case-tasks .muted {font-size:.8rem;margin-bottom:0}
.practice-tools {display:flex;flex-wrap:wrap;gap:9px;margin:0 0 13px}
.practice-tools .button {padding-inline:14px;color:#1b584c}
.practice-tools .button svg {width:18px;height:18px}

/* Operations workspace */
.desk-shell {--desk-navy:#182c3a;--desk-text:#263b49;--desk-faint:#647784;--desk-border:#e0e6e8;
  display:grid;grid-template-columns:226px minmax(0,1fr);width:min(1520px,100%);margin-inline:auto;flex:1;color:var(--desk-text);background:#f5f7f8}
.desk-sidebar {display:flex;flex-direction:column;align-self:start;position:sticky;top:0;min-height:calc(100dvh - 120px);padding:26px 14px 16px;
  border-right:1px solid var(--desk-border);background:#fbfcfc}
.desk-nav-caption {color:var(--desk-faint);font-size:.67rem;font-weight:800;letter-spacing:.12em;padding:0 12px 13px}
.desk-sidebar nav {display:grid;gap:4px}
.desk-sidebar .desk-nav-link {display:flex;justify-content:flex-start;width:100%;border:1px solid transparent;border-radius:8px;background:transparent;
  color:#4d6471;padding:9px 12px;text-align:left;font-weight:650;gap:10px}
.desk-sidebar .desk-nav-link:hover {background:#edf3f4}
.desk-sidebar .desk-nav-link[aria-current=page] {background:#e6eeef;border-color:#dbe8e9;color:#154d4b}
.desk-nav-link svg {width:17px;height:17px}
.desk-sidebar-user {display:flex;align-items:center;gap:9px;margin-top:auto;padding:15px 7px 0;border-top:1px solid var(--desk-border)}
.desk-sidebar-user strong,.desk-sidebar-user small {display:block;overflow-wrap:anywhere}
.desk-sidebar-user strong {font-size:.85rem}
.desk-sidebar-user small {font-size:.71rem}
.desk-avatar {display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:#e5ecef;color:#2f4f64;font-size:.78rem;font-weight:750}
.desk-content {min-width:0}
.desk-content .layout {width:100%;padding:28px clamp(16px,3vw,43px) 42px}
.desk-content .layout.narrow {margin-inline:auto}
.desk-heading {display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:22px;padding:0 0 17px;border-bottom:1px solid var(--desk-border)}
.desk-heading h1,.desk-matter-heading h1 {font-family:Georgia,"Songti SC",serif;letter-spacing:-.035em;font-weight:500;font-size:clamp(2rem,4.6vw,3.3rem);color:var(--desk-navy);margin-bottom:8px}
.desk-heading .kicker,.desk-matter-heading .kicker {font-size:.7rem;color:#33615e}
.desk-heading .kicker span {margin-inline:4px;color:#8a6e42}
.desk-heading p:last-child {margin:0;font-size:.9rem;color:#566a77}
.desk-heading .primary {min-height:42px;padding-inline:14px;white-space:nowrap}
.desk-metrics {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.desk-metrics .desk-metric {display:grid;grid-template-columns:minmax(0,1fr);gap:5px;text-align:left;align-content:start;border:1px solid var(--desk-border);
  border-radius:12px;min-height:114px;padding:12px 15px;background:#fff;color:var(--desk-navy)}
.desk-metrics .desk-metric:hover {background:#f7fbfa;border-color:#adcbc8}
.desk-metric-top {display:flex;justify-content:space-between;gap:5px;align-items:center;color:#4c6672;font-size:.8rem}
.desk-metric-top svg {width:19px;height:19px;color:#23716a}
.desk-metric strong {font-weight:550;font-variant-numeric:tabular-nums;font-size:1.8rem;line-height:1.13}
.desk-metric small {font-size:.7rem;font-weight:450}
.desk-columns {display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:17px;align-items:start}
.desk-columns>div {display:grid;gap:17px;min-width:0}
.desk-panel {border:1px solid var(--desk-border);border-radius:12px;background:white;min-width:0;overflow:hidden}
.desk-panel-head {display:flex;justify-content:space-between;align-items:center;gap:10px;padding:16px 17px 13px}
.desk-panel-head h2 {font-size:1.02rem;line-height:1.25;margin:0 0 4px;color:var(--desk-navy)}
.desk-panel-head p {color:var(--desk-faint);font-size:.77rem;margin:0}
.button.desk-link,.button.desk-case-open {border-color:transparent;background:transparent;color:#225f5b;padding:4px 5px;min-height:36px;font-size:.77rem;white-space:nowrap}
.button.desk-link:hover,.button.desk-case-open:hover {background:#edf5f2;border-color:#e0ebe6}
.desk-link svg,.desk-case-open svg {width:15px;height:15px}
.desk-docket,.desk-queue,.desk-dates {list-style:none;margin:0;padding:0}
.desk-table-head,.desk-docket-row {display:grid;grid-template-columns:minmax(0,1.7fr) minmax(82px,1fr) minmax(56px,.65fr) auto;align-items:center;gap:9px}
.desk-table-head {padding:7px 15px;font-size:.69rem;font-weight:700;color:#536b78;background:#f4f7f7;border-top:1px solid var(--desk-border)}
.desk-docket-row {padding:11px 14px;border-top:1px solid var(--desk-border);min-height:65px}
.desk-case-name {display:flex;gap:8px;align-items:center;min-width:0}
.desk-case-name strong,.desk-case-name small,.desk-case-name div>span {display:block;overflow-wrap:anywhere}
.desk-case-name strong {font-size:.85rem;line-height:1.25}
.desk-case-name small {font-size:.66rem;color:#55707d}
.desk-case-name div>span,.desk-docket-date {font-size:.72rem;color:#526975}
.desk-docket-stage .tag {font-size:.67rem}
.desk-row-icon {display:grid;place-items:center;flex:none;width:29px;height:29px;border-radius:7px;color:#286861;background:#eaf3f0}
.desk-row-icon svg {width:16px;height:16px}
.desk-empty {padding:17px;font-size:.83rem;color:#617681;border-top:1px solid var(--desk-border)}
.desk-task,.desk-dates li:not(.desk-empty) {display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 15px;border-top:1px solid var(--desk-border)}
.desk-task.urgent .desk-row-icon {background:#faf0df;color:#795728}
.desk-task strong,.desk-dates li div strong {display:block;font-size:.82rem;line-height:1.35;overflow-wrap:anywhere}
.desk-task small,.desk-dates li div small {display:block;font-size:.69rem;line-height:1.4}
.desk-task-actions {display:flex;align-items:center;gap:2px}
.desk-date-box {display:grid;justify-items:center;align-content:center;background:#f1f5f5;border:1px solid #e6eded;border-radius:8px;line-height:1;width:37px;height:38px}
.desk-date-box small {font-size:.63rem;color:#56717a;margin-bottom:3px}
.desk-date-box strong {font-size:.96rem}
.desk-pipeline {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;padding:0 15px 16px}
.desk-pipeline .desk-pipeline-stage {display:grid;justify-content:stretch;gap:6px;align-content:center;min-width:0;text-align:left;padding:8px 9px;background:#f7f9f9;
  border-color:#e3e9ea;border-radius:7px;color:#405969;font-size:.72rem}
.desk-pipeline .desk-pipeline-stage:hover {background:#edf5f1;border-color:#afd0c6}
.desk-pipeline-line {display:flex;justify-content:space-between;align-items:center;gap:6px}
.desk-pipeline progress {display:block;width:100%;height:6px;accent-color:#38887d}
.desk-pipeline .tone-0 progress {accent-color:#ac8049}
.desk-pipeline .tone-3 progress {accent-color:#807196}
.desk-search {display:flex;flex-wrap:wrap;align-items:flex-end;gap:9px;margin:0;padding:0 15px 14px}
.desk-search label {min-width:110px;flex:1;margin:0;font-size:.77rem}
.desk-search .button svg {width:15px;height:15px}
.desk-matter-heading {background:#edf3f4;border:1px solid #dbe6e9;border-radius:14px;padding:18px 21px;margin-bottom:13px}
.desk-matter-heading h1 {font-size:clamp(1.75rem,4vw,2.8rem)}
.desk-case-meta {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:13px;padding-top:13px;border-top:1px solid #d6e1e3}
.desk-case-meta small,.desk-case-meta strong {display:block;overflow-wrap:anywhere}
.desk-case-meta small {font-size:.72rem}
.desk-case-meta strong {font-size:.85rem}
.desk-case-progress {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));list-style:none;margin:0 0 13px;padding:12px 8px;
  background:white;border:1px solid var(--desk-border,#e0e6e8);border-radius:12px}
.desk-case-progress li {display:flex;align-items:center;justify-content:center;gap:6px;text-align:center;color:#5b6f78;padding:2px 4px;font-size:.76rem}
.desk-case-progress li>span {display:grid;place-items:center;flex:none;width:23px;height:23px;border-radius:50%;border:1px solid #d7e3e3;font-size:.72rem}
.desk-case-progress li[aria-current=step] {color:#175c55}
.desk-case-progress li[aria-current=step]>span {background:#25675f;color:#fff;border-color:#25675f}
.desk-case-progress li.complete>span {background:#edf7f1;color:#22635e}
.desk-case-progress li svg {width:14px;height:14px}
.desk-case-tabs {display:flex;flex-wrap:wrap;border-bottom:1px solid var(--desk-border);padding-bottom:8px;gap:4px}
.desk-case-tabs .button {background:transparent;border-color:transparent;white-space:nowrap}
.desk-case-tabs .button[aria-pressed=true] {background:#e7f0ee;border-color:#d5e5df}
@media(max-width:1180px) {
  .desk-shell {grid-template-columns:184px minmax(0,1fr)}
  .desk-docket-row .desk-row-icon {display:none}
  .desk-columns {grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}
}
@media(max-width:940px) {
  .desk-columns {grid-template-columns:1fr}
  .desk-metrics {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:690px) {
  .desk-shell {grid-template-columns:minmax(0,1fr)}
  .desk-sidebar {position:static;display:block;min-height:0;padding:5px 10px;border-right:0;border-bottom:1px solid var(--desk-border)}
  .desk-nav-caption,.desk-sidebar-user {display:none}
  .desk-sidebar nav {display:flex;overflow:auto;gap:3px;scrollbar-width:thin;padding:2px}
  .desk-sidebar .desk-nav-link {width:auto;flex:none;white-space:nowrap;font-size:.78rem;padding-inline:8px;gap:5px}
  .desk-nav-link svg {width:15px;height:15px}
  .desk-content .layout {padding:19px 13px 28px}
  .desk-heading {margin-bottom:13px;padding-bottom:12px}
  .desk-metrics {gap:8px}
  .desk-metrics .desk-metric {min-height:90px;padding:9px 10px}
  .desk-metric strong {font-size:1.45rem}
  .desk-metric-top {font-size:.74rem}
  .desk-docket-row,.desk-table-head {grid-template-columns:minmax(0,1.4fr) minmax(57px,.8fr) minmax(47px,.6fr) auto;gap:5px;padding-inline:9px}
  .desk-docket-row .desk-case-open svg {display:none}
  .desk-docket-stage .tag {padding-inline:4px}
  .desk-case-meta {grid-template-columns:1fr 1fr}
  .desk-case-progress li {flex-direction:column;line-height:1.3;font-size:.68rem}
  .desk-case-tabs {overflow:auto;flex-wrap:nowrap;scrollbar-width:thin}
}
.desk-calendar h1 {font-family:Georgia,"Songti SC",serif;font-weight:500;font-size:clamp(1.7rem,4vw,2.6rem)}
.desk-calendar-layout {display:grid;grid-template-columns:minmax(0,1.3fr) minmax(170px,1fr);gap:18px;margin-top:16px}
.desk-calendar-title {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.desk-calendar-title h2 {margin:0}
.desk-calendar-shift {width:41px;font-size:1.3rem}
.desk-calendar-grid {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}
.desk-weekday {font-size:.67rem;color:#526975;font-weight:650;padding:3px}
.desk-calendar-grid .desk-calendar-day {min-width:0;justify-content:flex-start;flex-direction:column;padding:3px 1px;min-height:45px;gap:1px;
  border-radius:6px;border-color:#e1e7e8;background:#f8fafb;font-variant-numeric:tabular-nums}
.desk-calendar-grid .desk-calendar-day[aria-current=date] {border-color:#6d9693}
.desk-calendar-grid .desk-calendar-day[aria-pressed=true] {background:#dfeee9;border-color:#63998d;color:#174e48}
.desk-calendar-day small {display:grid;place-items:center;width:15px;height:14px;border-radius:8px;background:#dcebe7;color:#265f58;font-size:.63rem}
.desk-agenda {background:#f5f8f8;border:1px solid #e2ebeb;border-radius:9px;padding:12px;min-width:0}
.desk-agenda .events {overflow-wrap:anywhere}
@media(max-width:740px) {
  .desk-calendar-layout {grid-template-columns:1fr}
  .desk-calendar-grid {gap:3px}
}
.firm-practice-suite {background:#fbfaf6;border:1px solid #e7e1d3;border-radius:15px;margin:17px 0 20px;padding:16px 17px}
.firm-practice-suite header {display:flex;justify-content:space-between;gap:9px;align-items:flex-start;margin-bottom:13px}
.firm-practice-suite .kicker {color:#806139;margin-bottom:4px}
.firm-practice-suite header h2 {margin:0 0 4px}
.firm-practice-suite header p:last-child {font-size:.81rem;color:#50646a;margin:0}
.firm-practice-suite .tag {flex:none}
.firm-practice-roles {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.firm-practice-roles a {display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:7px;text-decoration:none;
  color:#243c49;background:#fff;border:1px solid #e3e5df;border-radius:9px;padding:9px}
.firm-practice-roles a:hover {background:#f4f9f7;border-color:#b4cfc3}
.firm-practice-roles strong,.firm-practice-roles small {display:block;overflow-wrap:anywhere}
.firm-practice-roles strong {font-size:.79rem}
.firm-practice-roles small {font-size:.68rem}
.firm-practice-roles .firm-tile-icon {width:30px;height:30px}
.firm-practice-roles a svg {width:16px;height:16px}
.firm-case-overview {display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:14px;align-items:start}
.firm-case-overview .firm-case-tasks {margin-top:0}
@media(max-width:840px) {.firm-practice-roles {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:590px) {
  .firm-case-overview {grid-template-columns:1fr}
  .firm-practice-roles a {grid-template-columns:auto minmax(0,1fr)}
  .firm-practice-roles a>svg {display:none}
}
.desk-agenda-header {display:flex;flex-wrap:wrap;align-items:start;justify-content:space-between;gap:8px}
.desk-calendar-title>div {text-align:center}
.desk-calendar-title .desk-calendar-today {min-height:32px;padding:2px 8px;border-color:transparent;color:var(--teal)}
.firm-calendar-editor {margin-top:16px;border:1px solid var(--line);padding:14px;border-radius:10px;background:#f8fbf9}
.firm-calendar-editor [hidden] {display:none}
.team-columns {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.team-columns label.check {align-items:start;padding:7px 0}
.team-columns label small {display:block}
.intake-number {display:flex;gap:12px;align-items:center;background:#edf4f3;padding:12px;border-radius:8px}
.intake-number output {font-family:ui-monospace,monospace;overflow-wrap:anywhere}
.firm-team-dialog {width:min(690px,calc(100% - 28px));max-height:85vh;border:1px solid var(--line);border-radius:12px;padding:18px;color:var(--ink);background:var(--paper)}
.firm-team-dialog::backdrop {background:#122b3b88}
@media (max-width:420px) {.team-columns {grid-template-columns:1fr}}
[data-appointment-picker] {width:100%;min-width:0}
[data-appointment-picker] .desk-calendar-title {min-width:0}
[data-appointment-picker] .desk-calendar-title strong {min-width:0;text-align:center;overflow-wrap:anywhere}
[data-appointment-picker] [data-appointment-times], [data-appointment-picker] label {min-width:0;max-width:100%}
[data-appointment-preview] {display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;margin-bottom:8px}
.appointment-picker-grid {width:100%;max-width:440px;min-width:0;margin-bottom:14px}
.appointment-picker-grid .desk-calendar-day:disabled {cursor:default;color:var(--muted);opacity:.45}
.firm-intake-section {background:#f8fbfa}
[data-appointment-times][hidden] {display:none}
.appointment-time-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(60px,100%),1fr));gap:4px;margin-bottom:12px;width:100%;max-width:510px;min-width:0}
.appointment-time-grid .button {min-width:0;padding:3px 5px;min-height:44px;font-variant-numeric:tabular-nums}
.appointment-time-grid .button[aria-pressed=true] {background:#265f58;color:white}
.appointment-time-grid .button.in-range {background:#e6f1ec}
.auto-choice-group>label.check {display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:0 20px 0 0;cursor:pointer}
.auto-choice-group input[type=radio] {flex:none;width:20px;height:20px;margin:0}
.auto-choice-group>label:not(.check) {display:block;margin-top:10px}
.auto-choice-group>label:not(.check) select {max-width:100%;min-height:44px;margin-left:6px}
@media(max-width:740px) {
  .auto-choice-group>label.check {display:flex;margin-right:0}
  .auto-choice-group>label:not(.check) select {display:block;width:100%;margin:5px 0 0}
}

.firm-live-sidebar {min-height:calc(100dvh - 80px)}
.firm-live-shell .firm-case-navigation {width:100%;padding:5px clamp(10px,2vw,24px);border:0;border-bottom:1px solid var(--desk-border);background:#fff}
.firm-live-shell .firm-case-navigation .firm-navigation {flex-wrap:wrap;overflow:visible;margin:0}
.firm-live-shell .firm-case-navigation .button {min-height:36px}
.firm-live-dashboard .client-metrics {grid-template-columns:repeat(3,minmax(0,1fr))}
.firm-live-footer,.live-filters {padding:12px 16px}
.firm-live-footer {display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:8px}
.live-filters .firm-search {margin:0 0 10px}
.live-filters [aria-pressed=true] {background:#dcece8;border-color:#92b8ac}
.live-queue-note {margin:0;padding:0 16px 10px;color:var(--muted)}
.case-scope {margin-bottom:12px;border-bottom:1px solid var(--line);padding-bottom:9px}
.firm-case-tasks .desk-task {padding-inline:0}
.firm-live-shell .desk-docket-stage {font-size:.78rem;overflow-wrap:anywhere}
@media(max-width:690px) {
  .firm-live-sidebar {min-height:0}
  .firm-live-shell .firm-case-navigation {align-items:flex-start;flex-direction:column;gap:1px}
  .firm-live-shell .firm-case-navigation .firm-navigation {width:100%;padding-block:2px}
  .firm-live-shell .firm-case-navigation .button {padding:2px 6px;font-size:.73rem;min-height:34px}
}
@media(max-width:410px) {.firm-live-dashboard .client-metrics {grid-template-columns:repeat(2,minmax(0,1fr))}}
.firm-live-sidebar .firm-extra-nav {margin-top:15px;padding-top:14px;border-top:1px solid var(--desk-border)}
.firm-mobile-tools {display:none}
@media(max-width:690px) {
  .firm-live-sidebar .firm-primary-nav {flex-wrap:wrap;overflow:visible}
  .firm-live-sidebar .firm-extra-nav {display:none}
  .firm-live-sidebar .firm-mobile-tools {display:block;margin:3px 0 2px}
  .firm-live-sidebar .firm-mobile-tools summary {padding:6px 8px;color:#415e6d;font-size:.77rem}
  .firm-live-sidebar .firm-mobile-tools nav {flex-wrap:wrap;overflow:visible}
}
.document-list {display:grid;gap:8px;margin-top:12px}
.document-card {border:1px solid var(--line);border-radius:9px;background:white}
.document-card>summary {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:11px 13px;list-style:none}
.document-card>summary::-webkit-details-marker {display:none}
.document-card>summary strong::before {content:"›";display:inline-block;margin-right:6px;color:var(--teal)}
.document-card[open]>summary strong::before {transform:rotate(90deg)}
.document-card>summary strong,.document-card>summary small {display:block;overflow-wrap:anywhere}
.document-card-body {padding:9px 13px 14px;border-top:1px solid var(--line)}
.document-filters {padding-block:12px 2px}
.document-filters [aria-pressed=true] {background:#e2efea;border-color:#9dbeb4}
@media(max-width:690px) {
  .firm-live-sidebar .firm-primary-nav {display:flex;gap:3px;flex-wrap:nowrap}
  .firm-live-sidebar .firm-primary-nav .desk-nav-link {flex:1 1 0;min-width:0;justify-content:center;align-items:center;
    flex-direction:column;gap:2px;padding:4px 2px;font-size:.69rem;white-space:normal;text-align:center}
  .firm-live-sidebar .firm-primary-nav .desk-nav-link svg {width:16px;height:16px}
  .firm-live-shell .desk-docket-row {grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;
    grid-template-areas:"case-name open-case" "case-status case-date";padding:9px 12px}
  .firm-live-shell .desk-docket-row .desk-case-name {grid-area:case-name}
  .firm-live-shell .desk-docket-row .desk-case-open {grid-area:open-case;justify-self:end}
  .firm-live-shell .desk-docket-row .desk-docket-stage {grid-area:case-status}
  .firm-live-shell .desk-docket-row .desk-docket-date {grid-area:case-date;justify-self:end}
  .firm-live-shell .desk-table-head {display:none}
  .client-live .desk-columns>div:nth-child(2) {grid-row:1}
  .firm-live-dashboard .client-metrics {grid-template-columns:repeat(3,minmax(0,1fr))}
  .client-metrics .desk-metric-top svg {display:none}
}
.case-date-heading {font-size:.86rem;margin:13px 0 3px}
.case-last-activity {border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:6px 12px;padding-top:8px;margin-top:8px}
.case-last-activity p {font-size:.76rem;color:var(--muted);margin:0}
@media(max-width:420px) {
  .mast-inner {gap:5px}
  .mast-tools {gap:2px}
  .mast-tools .text {padding-inline:4px;font-size:.73rem}
  .mast .brand {gap:6px}
  .mast .brand strong {font-size:1rem}
}
/* Action-oriented portal home and persistent client navigation. */
.gateway-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.gateway-panel .desk-panel-head {min-height:59px}
.gateway-panel .desk-panel-head h2 {font-size:1.1rem;margin:0}
.gateway-message.unread .desk-row-icon {background:#d9efea}
.gateway-message.unread strong {color:#17463f}
.gateway-waiting {margin:10px 0 0}
.gateway-case-picker {display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:18px}
.gateway-case-picker label {flex:1 1 235px}
.gateway-client-shell {display:block;width:100%;max-width:1200px}
.gateway-client-nav {display:flex;align-items:center;justify-content:center;gap:8px;padding:7px 14px;
  background:white;border-bottom:1px solid var(--desk-border)}
.gateway-client-nav .desk-nav-link {background:white;color:#3e5a69;border-color:transparent;min-height:44px}
.gateway-client-nav .desk-nav-link[aria-current=page] {background:#e5efec;border-color:#d9e8e3;color:#184d43}
.gateway-client-nav svg {width:18px;height:18px}
.gateway-client-shell .desk-content {min-height:65vh}
@media(max-width:690px) {
  .gateway-grid {grid-template-columns:minmax(0,1fr);gap:12px}
  .gateway-client-nav .desk-nav-link {flex:1 1 0;min-width:0;flex-direction:column;justify-content:center;gap:2px;padding:3px 2px;
    font-size:.73rem;white-space:normal;text-align:center}
  .firm-live-sidebar .firm-primary-nav {display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .firm-live-sidebar .firm-primary-nav .desk-nav-link {width:100%}
}
.gateway-profile {display:inline-flex;align-items:center;gap:4px}
.gateway-profile svg {width:17px;height:17px}
@media(max-width:460px) {.gateway-profile span {display:none}}

/* Shared portal surfaces, with a shortcut bar for clients and a workbench for staff. */
:root {--portal-blue:#195f88;--portal-dark:#153e5b;--portal-tint:#e9f3fa;--portal-rule:#d6e2eb}
.matter-mast .mast-inner,.gateway-mast .mast-inner {width:min(1520px,100%);padding-inline:clamp(14px,2.2vw,34px);min-height:66px}
.matter-mast .brand strong,.gateway-mast .brand strong {font-family:inherit;font-weight:690;letter-spacing:-.02em}
.matter-mast .monogram,.gateway-mast .monogram {background:var(--portal-dark)}
.matter-mast .primary,.firm-live-shell .button.primary {background:var(--portal-blue);border-color:var(--portal-blue)}
.matter-mast .primary:hover,.firm-live-shell .button.primary:hover {background:var(--portal-dark)}
.firm-live-shell {width:100%;max-width:none;--desk-navy:#1b3950;--desk-text:#263c4c;--desk-faint:#516b7c;--desk-border:var(--portal-rule);background:#f3f7fa}
.firm-live-sidebar {background:#fff;padding:18px 12px;min-height:calc(100dvh - 66px)}
.firm-live-sidebar .desk-nav-link[aria-current=page],.firm-live-shell .firm-navigation .button[aria-current=page] {background:var(--portal-tint);border-color:#c9e0f0;color:#144e75}
.firm-live-shell .desk-heading h1,.firm-live-shell .desk-matter-heading h1 {font-family:inherit;font-size:clamp(1.65rem,3vw,2.5rem);font-weight:700;letter-spacing:-.035em}
.firm-live-shell .desk-heading .kicker {color:var(--portal-blue)}
.firm-live-shell .desk-link,.firm-live-shell .desk-case-open {color:#195779}
.matter-global-search {margin:0;display:flex;align-items:center;gap:7px;flex:1;max-width:510px}
.matter-global-search label {display:flex;align-items:center;gap:7px;flex:1;margin:0;padding:0 10px;border:1px solid var(--portal-rule);background:#f3f7fa;border-radius:7px;color:#476b83}
.matter-global-search svg {width:17px;height:17px}
.matter-global-search input[type=search] {min-width:0;margin:0;padding:7px 0;border:0;background:transparent}
.matter-global-search .button {min-height:38px}
.matter-work {display:grid;min-width:0;gap:15px}
.matter-work .spaced {margin-top:0}
.matter-banner {background:#fff;border-bottom:1px solid var(--portal-rule)}
.matter-banner-inner {padding:12px clamp(16px,3vw,43px) 15px}
.matter-crumb {display:flex;align-items:center;gap:8px;font-size:.8rem;color:#446478;margin-bottom:3px;overflow-wrap:anywhere}
.matter-title {align-items:start}
.matter-title h1 {font-size:clamp(1.45rem,3vw,2.2rem);font-weight:700;overflow-wrap:anywhere;margin:0 0 3px}
.matter-title p {font-size:.85rem;color:#516b7c;margin:0}
.matter-banner .desk-case-meta {margin-top:11px;padding-top:10px}
.firm-live-shell .matter-banner .firm-case-navigation {padding:0 clamp(12px,3vw,43px);border:0}
.firm-live-shell .matter-banner .firm-navigation {position:relative;flex-wrap:nowrap;overflow-x:auto;padding:3px 2px;gap:4px}
.firm-live-shell .matter-banner .firm-navigation .button {min-height:44px;border-radius:5px 5px 0 0}
.firm-live-shell .matter-banner .firm-navigation .button[aria-current=page] {border-bottom:3px solid var(--portal-blue)}
.firm-live-shell .matter-overview {padding-top:18px}
.matter-facts {border-color:var(--portal-rule)}
.matter-facts .case-scope {margin-bottom:12px}
.matter-filters {display:flex;align-items:end;gap:9px;flex-wrap:wrap;padding:12px 15px;margin:0}
.matter-filters label {flex:1 1 128px;min-width:0;margin:0;font-size:.76rem}
.matter-filters label:first-child {flex:1.8 1 190px}
.matter-filters input[type=search],.matter-filters select {min-height:42px;width:100%;border-color:var(--portal-rule)}
.matter-table-head,.firm-live-shell .matter-table-row {display:grid;grid-template-columns:minmax(0,1.75fr) minmax(0,1fr) minmax(0,.85fr) minmax(0,1fr) auto;align-items:center;gap:9px}
.matter-table-head {padding:9px 14px;font-size:.76rem;font-weight:700;background:#edf3f7;border-top:1px solid var(--portal-rule)}
.matter-followup {font-size:.75rem;color:#516b7c;overflow-wrap:anywhere}
.matter-followup.has-wait {color:#86501d}
.firm-live-shell.gateway-client-shell {max-width:none;background:#edf5fb}
.gateway-client-shell .desk-content {width:min(1200px,100%);margin-inline:auto}
.gateway-client-bar {background:var(--portal-dark)}
.gateway-client-nav {width:min(1200px,100%);margin:auto;justify-content:flex-start;padding:6px clamp(12px,3vw,43px);gap:6px;background:transparent;border:0}
.gateway-client-nav .desk-nav-link,.gateway-menu summary {border:1px solid transparent;background:transparent;color:#fff;min-height:44px}
.gateway-client-nav .desk-nav-link:hover,.gateway-client-nav .desk-nav-link[aria-current=page],.gateway-menu[open]>summary {background:#285a79;border-color:#527994;color:#fff}
.gateway-menu {position:relative}
.gateway-menu summary {display:flex;align-items:center;gap:7px;padding:6px 9px;border-radius:7px;font-size:.86rem;white-space:nowrap}
.gateway-menu summary::-webkit-details-marker {display:none}
.gateway-menu-panel {z-index:8;position:absolute;top:calc(100% + 8px);left:0;width:min(280px,90vw);padding:12px;background:#fff;
  color:var(--portal-dark);border:1px solid var(--portal-rule);border-radius:9px;box-shadow:0 8px 24px #153e5b2b}
.gateway-menu-panel input {display:block;width:100%;min-height:40px;margin:5px 0 9px;padding:5px 8px;border:1px solid var(--portal-rule);border-radius:5px}
.gateway-menu-panel .desk-nav-link {width:100%;justify-content:flex-start;color:var(--portal-dark)}
.gateway-menu-panel .desk-nav-link:hover,.gateway-menu-panel .desk-nav-link[aria-current=page] {background:var(--portal-tint);border-color:#c9e0f0;color:var(--portal-dark)}
.gateway-menu-panel [hidden] {display:none}
.gateway-avatar {display:grid;place-items:center;flex:none;width:67px;height:67px;border-radius:50%;background:#d6e9f8;color:#165582;font-size:1.4rem;font-weight:700}
.gateway-grid {grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:16px}
.gateway-client-shell .gateway-panel .desk-panel-head {background:#f9fcff}
.gateway-client-shell .desk-row-icon,.firm-live-shell .desk-row-icon {background:#e7f1f8;color:#24638b}
.gateway-client-shell .gateway-message.unread strong {color:#154d76}
@media(max-width:950px) {
  .matter-table-head {display:none}
  .firm-live-shell .matter-table-row {grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"case-name open-case" "case-status case-date" "followup followup"}
  .matter-table-row .desk-case-name {grid-area:case-name}
  .matter-table-row .desk-case-open {grid-area:open-case;justify-self:end}
  .matter-table-row .desk-docket-stage {grid-area:case-status}
  .matter-table-row .desk-docket-date {grid-area:case-date;justify-self:end}
  .matter-followup {grid-area:followup}
}
@media(max-width:740px) {
  .matter-mast .mast-inner {flex-wrap:wrap;padding-block:8px}
  .matter-mast .mast-tools {margin-left:auto}
  .matter-global-search {order:3;max-width:none;flex:1 0 100%}
  .gateway-grid {grid-template-columns:minmax(0,1fr)}
  .firm-live-sidebar {min-height:0}
}
@media(max-width:690px) {
  .gateway-client-nav {position:static;width:100%;justify-content:flex-start;padding:4px 6px;box-shadow:none}
  .gateway-client-shell {padding-bottom:0}
  .gateway-client-nav .desk-nav-link {padding:3px;line-height:1.15}
  .gateway-menu summary {flex-direction:column;justify-content:center;gap:2px;font-size:.72rem;padding:3px 5px}
  .gateway-menu-panel .desk-nav-link {flex-direction:row;justify-content:flex-start;padding:6px;gap:7px}
  .gateway-avatar {width:49px;height:49px;font-size:1rem}
  .matter-banner .desk-case-meta {grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Gateway and matter workspace use different page compositions for different jobs. */
.gateway-mast {background:#b2e1e3;border:0}
.gateway-mast .mast-inner {width:min(1260px,100%);min-height:63px}
.gateway-mast .brand strong {color:#083979;font-size:clamp(1rem,2.2vw,1.43rem)}
.gateway-mast .brand small {color:#15566b}
.gateway-mast .monogram {background:#006d7e}
.gateway-mast .text {color:#133c64}
.gateway-client-shell {--gateway-blue:#205a94}
.firm-live-shell.gateway-client-shell {background:linear-gradient(110deg,#188eaa 0%,#8bcdd6 58%,#c4e7e9 100%)}
.gateway-client-bar {background:#f7fbfc;border-bottom:1px solid #d3e2e8;box-shadow:0 2px 3px #12516a16}
.gateway-client-nav {width:min(1260px,100%);padding:4px clamp(12px,2.2vw,28px);gap:clamp(5px,1vw,17px)}
.gateway-client-nav .desk-nav-link,.gateway-menu summary {color:#27475c;background:transparent;border-color:transparent}
.gateway-client-nav .desk-nav-link:hover,.gateway-client-nav .desk-nav-link[aria-current=page],.gateway-menu[open]>summary {
  background:#e1f0f9;border-color:#c7e1f1;color:#1a5588
}
.gateway-client-nav svg {width:30px;height:30px;padding:6px;background:#fff;color:#1b609b;border-radius:50%;box-shadow:0 1px 3px #1c55724d}
.gateway-menu summary svg {width:36px;height:36px;padding:7px;background:#24679f;color:white}
.gateway-menu-panel .desk-nav-link {font-weight:500;color:#214b6c}
.gateway-client-shell .desk-content {width:min(1260px,100% - 40px);background:#eef5f8;min-height:calc(100dvh - 118px)}
.gateway-client-shell .desk-content .gateway-home {padding:22px clamp(17px,3vw,43px) 38px}
.gateway-home h1 {font-size:clamp(1.3rem,2.4vw,2.05rem);font-weight:690;letter-spacing:-.02em;color:#194f87;margin-bottom:14px}
.gateway-person {display:flex;align-items:center;gap:9px;color:#23578d;margin-bottom:4px}
.gateway-person .gateway-avatar {width:40px;height:40px;background:#316da6;color:white;font-size:1.04rem}
.gateway-timeline {display:grid;gap:10px;margin-left:19px;padding:4px 0 12px 16px;border-left:4px solid #589bbd}
.gateway-timeline-item {position:relative;min-width:0}
.gateway-timeline-item:before {content:"";position:absolute;top:20px;left:-25px;width:13px;height:13px;border:3px solid #eef5f8;border-radius:50%;background:#4779a5}
.gateway-timeline .desk-panel {border-radius:5px;box-shadow:0 1px 3px #194d6522}
.gateway-timeline .desk-panel-head {min-height:48px;padding:9px 13px;background:#fff}
.gateway-timeline .desk-panel-head h2 {font-size:1rem;color:#214f76}
.gateway-timeline .desk-task,.gateway-timeline .desk-docket-row {min-height:55px}
.gateway-timeline .desk-row-icon {border-radius:4px;background:#eaf4ff;color:#205a94}
.gateway-timeline .desk-task.urgent .desk-row-icon {background:#ffefcc;color:#8a5318}

.docket-shell {--docket-navy:#0b2632;--docket-blue:#176dc3;--desk-border:#e1e4e8;grid-template-columns:232px minmax(0,1fr);background:white}
.docket-shell .desk-content {background:white}
.docket-shell .firm-live-sidebar {background:var(--docket-navy);color:#fff;min-height:100dvh;max-height:100dvh;overflow-y:auto;border:0;padding:22px 18px}
.docket-identity {display:grid;gap:18px;margin-bottom:21px;padding-bottom:21px;border-bottom:1px solid #294350}
.docket-identity .brand {color:#fff}
.docket-identity .brand strong {font-family:inherit;font-size:.99rem;font-weight:650}
.docket-identity .brand small,.docket-identity .desk-sidebar-user small {color:#afc2cb}
.docket-identity .monogram {background:#264b5e;color:white;min-width:34px;height:34px}
.docket-identity .desk-sidebar-user {padding:0;border:0;margin:0}
.docket-identity .desk-avatar {background:#1b79bc;color:white}
.docket-identity .docket-create.button {background:#b9431a;border-color:#b9431a;color:#fff;justify-content:flex-start}
.docket-identity .docket-create:before {content:"+";font-size:1.3rem;line-height:1}
.docket-shell .desk-nav-caption {color:#adc3cd;margin:0;padding:0 10px 6px;letter-spacing:0;text-transform:none;font-weight:500;font-size:.76rem}
.docket-shell .desk-nav-link.button {color:#f3f7fa;border-radius:7px;font-weight:500;min-height:40px}
.docket-shell .desk-nav-link.button:hover,.docket-shell .desk-nav-link.button[aria-current=page] {background:#365460;border-color:#365460;color:white}
.docket-shell .firm-extra-nav {border-top-color:#294350}
.docket-shell .matter-mast {position:relative;margin:0 clamp(14px,2.5vw,30px);border:1px solid var(--desk-border);border-top:0;border-radius:0 0 13px 13px}
.docket-shell .matter-mast .mast-inner {padding:5px 12px;min-height:49px}
.docket-shell .matter-mast .brand {display:none}
.docket-shell .matter-global-search {max-width:405px}
.docket-shell .matter-global-search label {background:#f4f4f5;border-color:#f4f4f5}
.docket-shell .matter-global-search .button {border-color:transparent;color:var(--docket-blue)}
.docket-shell .desk-content .layout {padding:23px clamp(14px,2.5vw,30px) 38px}
.docket-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 20px}
.docket-shell .docket-heading h1,.docket-shell .desk-heading h1,.docket-shell .matter-title h1 {
  font-family:Georgia,"Songti SC",serif;color:#12171d;font-size:clamp(1.68rem,3vw,2.56rem);font-weight:550;letter-spacing:-.04em
}
.docket-heading p {color:#596b7a;font-size:.85rem;margin:0}
.docket-preview.button {border-color:#9db8d6;color:#1b5e9a;text-decoration:none;flex:none}
.docket-work-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(175px,.28fr);gap:clamp(13px,2vw,27px);align-items:start}
.docket-widgets {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;padding:clamp(12px,1.6vw,24px);background:#f4f7fb;border-radius:13px;align-items:start}
.docket-widget,.docket-feed {min-width:0}
.docket-widget.wide {grid-column:span 2}
.docket-widget>h2,.docket-feed>h2 {font-size:.98rem;color:#162331;margin-bottom:10px}
.docket-widget>h2:after,.docket-feed>h2:after {content:"";display:block;width:34px;height:2px;margin-top:3px;background:#2778c5}
.docket-widget .desk-panel,.docket-feed .desk-panel {border-radius:5px}
.docket-widget .desk-panel+.desk-panel {margin-top:8px}
.docket-widget .desk-panel-head,.docket-feed .desk-panel-head {min-height:0;align-items:flex-start;flex-wrap:wrap;padding:8px 9px;gap:2px 4px}
.docket-widget .desk-panel-head h2,.docket-feed .desk-panel-head h2 {font-size:.81rem}
.docket-widget .desk-panel-head p {display:none}
.docket-widget .desk-link,.docket-feed .desk-link,.docket-widget .desk-case-open {min-height:34px;white-space:normal}
.docket-widget .desk-docket-row,.docket-widget .desk-task,.docket-feed .desk-task {
  grid-template-columns:minmax(0,1fr) auto;grid-template-areas:none;gap:4px;padding:8px;align-items:start
}
.docket-widget .desk-docket-row>* {grid-area:auto}
.docket-widget .desk-table-head,.docket-widget .desk-row-icon,.docket-feed .desk-row-icon {display:none}
.docket-widget .desk-docket-stage,.docket-widget .desk-docket-date {grid-column:1/-1;justify-self:start}
.docket-widget .desk-docket-row .desk-case-open {grid-area:1/2;justify-self:end}
.docket-widget .desk-case-name {display:block}
.docket-feed .desk-panel {border:0}
.docket-feed .desk-queue {border-left:1px solid #91b5dc;margin-left:7px}
.docket-feed .desk-task {position:relative;border:0;padding:9px 4px 11px 12px}
.docket-feed .desk-task:before {content:"";position:absolute;width:9px;height:9px;border:2px solid #4c84be;background:#fff;border-radius:50%;left:-5px;top:13px}

.docket-shell .matter-banner {padding:0 clamp(14px,2.5vw,30px);border:0}
.docket-shell .matter-banner-inner,.docket-shell .matter-banner .firm-case-navigation {padding:0}
.docket-shell .matter-banner-inner {margin:17px 0 10px}
.docket-shell .matter-banner .firm-navigation {border:1px solid var(--desk-border);border-radius:8px;padding:0;gap:0}
.docket-shell .matter-banner .firm-navigation .button {min-height:42px;border-radius:0;border:0;border-right:1px solid #e8eaed;padding-inline:13px;color:#182a36}
.docket-shell .matter-banner .firm-navigation .button[aria-current=page] {background:#e5eef9;color:#0d61b7;border:0;border-right:1px solid #d5e4f6}
.docket-shell .matter-banner .desk-case-meta {margin:14px 0 0;padding:12px 13px;border:1px solid var(--desk-border);background:#fff}
.docket-shell .sample-matter .matter-banner {padding:0;margin-bottom:12px}
.docket-shell .sample-matter .matter-banner-inner {margin-top:0}
.docket-shell .firm-case-overview .panel,.docket-shell .firm-case-tasks,.docket-shell .matter-work-panel .panel {border-radius:5px}
.gateway-client-shell .matter-banner .desk-case-meta {margin:0 14px 10px;padding:8px}
@media(max-width:1100px) {
  .docket-shell {grid-template-columns:186px minmax(0,1fr)}
  .docket-shell .firm-live-sidebar {padding-inline:12px}
  .docket-work-grid {grid-template-columns:minmax(0,1fr) minmax(155px,.32fr)}
  .docket-widgets {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:740px) {
  .docket-shell {grid-template-columns:minmax(0,1fr)}
  .docket-shell .firm-live-sidebar {min-height:0;max-height:none;overflow:visible;position:static;padding:9px 9px 6px}
  .docket-identity {display:flex;align-items:center;justify-content:space-between;gap:5px;margin:0 0 6px;padding:0 0 6px}
  .docket-identity .desk-sidebar-user,.docket-shell .desk-nav-caption {display:none}
  .docket-identity .docket-create.button {min-height:35px;font-size:.72rem}
  .docket-shell .firm-primary-nav .desk-nav-link {gap:3px;padding:3px;font-size:.7rem;line-height:1.15;min-height:39px}
  .docket-shell .firm-mobile-tools summary {color:#e6f2f7}
  .docket-shell .matter-mast {margin:0 9px}
  .docket-shell .matter-mast .mast-inner {flex-wrap:nowrap;gap:5px}
  .docket-shell .matter-global-search {flex:1 1 auto;order:0;min-width:0}
  .docket-shell .matter-global-search label {min-width:0;padding-inline:5px}
  .docket-shell .matter-global-search .button {font-size:.72rem;padding-inline:4px}
  .docket-work-grid {grid-template-columns:minmax(0,1fr)}
  .docket-heading {flex-wrap:wrap}
  .gateway-client-shell .desk-content {width:calc(100% - 12px)}
  .gateway-client-nav {padding:3px 4px;gap:1px}
  .gateway-client-nav svg,.gateway-menu summary svg {width:25px;height:25px;padding:5px}
  .gateway-client-nav .desk-nav-link,.gateway-menu summary {min-height:43px;font-size:.66rem}
  .gateway-timeline {margin-left:15px;padding-left:10px}
  .gateway-timeline-item:before {left:-19px}
}
@media(max-width:400px) {
  .docket-widgets {grid-template-columns:minmax(0,1fr)}
  .docket-widget.wide {grid-column:auto}
}
.gateway-login-layout {display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr);gap:clamp(22px,6vw,74px);align-items:start;padding-block:40px}
.gateway-login-intro h1 {color:#1a5086;font-size:clamp(1.55rem,3vw,2.35rem);font-weight:690}
.gateway-login-features {display:grid;gap:18px;margin-top:23px}
.gateway-login-features>div {display:flex;align-items:flex-start;gap:14px}
.gateway-login-features svg {width:42px;height:42px;color:#286995;background:#e3f0fa;border-radius:50%;padding:8px}
.gateway-login-features h2 {margin-bottom:3px;color:#23578d}
.gateway-login-features p {margin:0;color:#4a667b}
.gateway-login-layout .login .primary {background:#1c649d;border-color:#1c649d}
.matter-crumb {flex-wrap:wrap}
.matter-crumb .desk-link {padding-left:0}
@media(max-width:720px) {
  .gateway-login-layout {grid-template-columns:minmax(0,1fr);gap:19px;padding-block:20px}
  .gateway-login-layout>div {grid-row:1}
  .gateway-login-intro {border-top:1px solid #cee0e9;padding-top:17px}
}

/* Keep primary actions legible without changing the two reference layouts. */
.gateway-timeline .desk-task strong,.docket-work-grid .desk-task strong {font-size:.9rem}
.gateway-timeline .desk-task small,.docket-work-grid .desk-task small {font-size:.77rem}
.gateway-timeline .desk-task .button,.docket-work-grid .desk-task .button {min-height:44px}
.gateway-timeline .desk-task .task-action {white-space:normal;text-align:center}
.gateway-menu-panel [data-menu-empty] {color:var(--muted);font-size:.86rem;margin:6px 0 0}
.gateway-menu-panel [data-menu-empty][hidden] {display:none}
@media(max-width:740px) {
  .docket-shell .firm-primary-nav {display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
  .docket-shell .firm-primary-nav .desk-nav-link {min-height:44px;font-size:.76rem}
  .firm-live-shell .matter-banner .firm-navigation {display:flex;flex-wrap:wrap;overflow:visible}
  .firm-live-shell .matter-banner .firm-navigation .button {min-height:44px;font-size:.79rem}
  .docket-shell .matter-banner .firm-navigation .button {padding-inline:8px}
  .gateway-client-nav .desk-nav-link,.gateway-menu summary {font-size:.73rem;min-height:46px}
  .firm-live-shell .desk-content .layout {padding-inline:14px}
  .firm-live-shell .desk-task {padding-inline:8px;gap:7px}
  .firm-live-shell .desk-task .task-action {min-height:44px;max-width:8rem;white-space:normal}
}

.official-package {margin-block:8px}
.official-package>summary,.issued-official-guide>summary {min-height:44px;padding:8px 4px;color:#204f72}
.official-guide {margin:7px 0 12px;padding:10px 12px;background:#f0f6fa;border-left:3px solid #75a8cd;overflow-wrap:anywhere}
.official-guide p {margin:0 0 5px}
.official-source {display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;font-size:.87rem}
.official-source a {display:inline-flex;align-items:center;min-height:40px}
.official-evidence>li {display:grid;gap:4px}
.official-package-picker {display:grid;gap:5px;margin:8px 0;font-size:.88rem}
.official-package-picker select {width:min(100%,580px);min-height:44px;padding:5px;border:1px solid var(--line);border-radius:5px;background:#fff}
.conversation-composer {margin:12px 0 18px;padding:10px 14px;background:#f0f6fb;border:1px solid #cde0ef;border-radius:8px}
.conversation-composer>summary {padding:8px 0;color:#174f78}
.conversation-composer form {margin-top:0}
.case-contact-action,.message-case-picker {margin-bottom:14px}
.case-contact-action svg {width:18px;height:18px}

.portal-skip {position:absolute;z-index:30;left:12px;top:8px;padding:12px;background:#fff;color:#174f78;
  border:2px solid #174f78;transform:translateY(-150%)}
.portal-skip:focus {transform:none}
#portal-main:focus {outline:0}
.matter-overdue {color:#8a351e}
p.matter-overdue {margin:8px clamp(14px,2vw,30px);font-size:.83rem}
.matter-overview .firm-case-navigation {margin:0;padding:0;border:0}
.matter-overview .firm-navigation {justify-content:flex-start}
.document-option summary,.document-history summary {min-height:44px;padding:10px 0;color:#174f78}
.document-actions {margin-top:7px}
.document-history {margin-top:4px;border-top:1px solid var(--line)}
.template-search {display:grid;gap:4px;font-size:.88rem;margin:10px 0 16px}
.template-search input {width:min(100%,410px);min-height:44px;padding:7px 9px;border:1px solid var(--line);border-radius:6px;background:#fff}
[data-template-entry][hidden],[data-template-empty][hidden] {display:none}
@media(max-width:740px) {
  .matter-overview .firm-navigation .button,.case-contact-action .button {min-height:44px}
  .gateway-client-shell .matter-overview .firm-navigation {flex-wrap:wrap}
  .matter-overview .desk-case-progress {margin-bottom:0}
  .document-card .slot-actions .button,.document-actions .button {min-height:44px}
}

.conversation-audience {padding:10px 12px;border-left:3px solid var(--line);background:#f4f7f9;font-size:.88rem}
[data-questionnaire-review] h4 {margin:0 0 6px;font-size:1.1rem}
.questionnaire-answer {white-space:pre-wrap;overflow-wrap:anywhere}

.reply-context blockquote {margin:0 0 6px;padding:8px 12px;border-left:3px solid var(--line);white-space:pre-wrap;overflow-wrap:anywhere}

/* Experience foundation: calm hierarchy, explicit state, recoverable work. */
.home-story,.case-story {background:#eff6fa;border:0;border-left:4px solid #477c9f;border-radius:0 12px 12px 0;padding:22px 25px;margin:0 0 24px;color:#1e435a}
.home-story {display:flex;gap:18px;align-items:flex-start}
.home-story h2,.case-story h2 {font-size:clamp(1.15rem,2vw,1.5rem);line-height:1.5;margin:2px 0 8px;color:#143e5c;font-weight:650}
.home-story p,.case-story p {margin:0 0 6px;line-height:1.7;max-width:64ch}
.home-story .story-icon {display:grid;place-items:center;flex:0 0 42px;height:42px;background:#dcebf3;border-radius:50%}
.case-story small {display:block;color:#536b7a;margin-top:14px}
.gateway-timeline-item:has(.home-story):before {display:none}
.gateway-home>h1 {font-size:1.25rem;font-weight:500;margin-bottom:10px;color:#4d677a}
.gateway-timeline {border-left:0;padding-left:0;margin-left:0}
.gateway-timeline-item:before {display:none}
.gateway-panel {border-radius:10px}
.gateway-timeline .desk-panel-header {padding-block:18px}
.gateway-timeline .desk-task {padding:16px 18px;gap:14px;align-items:center}
.gateway-timeline .desk-task strong {font-size:1rem;line-height:1.5}
.gateway-timeline .desk-task small {font-size:.87rem;line-height:1.6;margin-top:4px}
.gateway-timeline .desk-empty {padding:20px;font-size:.95rem}
.case-story+.firm-case-tasks {border-top:0}
.draft-status {display:flex;gap:10px;flex-wrap:wrap;align-items:center;font-size:.84rem;color:#526875;padding:10px 12px;background:#f1f5f7;border-radius:6px;margin:0 0 18px;min-height:42px}
.draft-status .text {font-size:inherit;min-height:32px}
.draft-comparison {padding:20px;border:2px solid #7194ad;background:#f7fafc;margin-bottom:20px}
.draft-comparison pre {font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;padding:10px;margin:0 0 8px}
.context-reference {display:flex;align-items:center;gap:12px;padding:13px 16px;background:#edf4f8;border-left:3px solid #6898b8;margin:12px 0}
.context-reference div {flex:1;min-width:0}.context-reference small,.context-reference strong {display:block;overflow-wrap:anywhere}
.context-reference small {color:#4d6577;font-size:.78rem;margin-bottom:4px}
.context-ask {margin:4px 0 14px;display:inline-flex;gap:6px;align-items:center;min-height:44px}
.document-steps {padding:14px 14px 14px 34px;background:#f5f8fa;margin-bottom:14px;line-height:1.8;font-size:.92rem}
.file-check {border:1px dashed #90afc2;padding:14px;margin:8px 0 18px;border-radius:8px;background:#f7fafc}
.file-check img {display:block;max-height:260px;max-width:100%;object-fit:contain;margin-block:12px}
.submission-receipt {border-left:3px solid #5a8f7d;padding:12px 16px;margin-top:18px;background:#eef7f2;font-size:.9rem}
.submission-receipt p {margin:5px 0;line-height:1.6}
.operation-status {position:fixed;top:12px;left:50%;transform:translateX(-50%);z-index:100;background:#173f58;color:#fff;border-radius:6px;padding:10px 18px;font-size:.9rem;box-shadow:0 5px 24px #15334426}
.field-error {display:block;color:#923b28;font-size:.86rem;padding:4px 0;font-weight:500}
[aria-invalid=true] {border-color:#a44d37!important;outline:1px solid #a44d37}
.form-chooser {display:flex;gap:8px;overflow-x:auto;padding:12px 0 18px;border-bottom:1px solid #dce5eb;margin-bottom:16px}
.form-chooser .button {display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-width:160px;max-width:300px;white-space:normal;padding:12px 16px;gap:3px}
.form-chooser .button[aria-pressed=true] {background:#e9f3f9;border-color:#4882a6;color:#163f5b}
.form-chooser small {font-weight:400;color:#5b6e79}
.questionnaire-nav {display:flex;align-items:center;gap:6px 15px;flex-wrap:wrap;padding:12px 15px;background:#f2f6f8;border-radius:6px;margin-bottom:20px;font-size:.85rem;position:sticky;top:8px;z-index:2;border:1px solid #dce5eb}
.questionnaire-nav a {padding:4px 0;line-height:1.5;max-width:260px}
.firm-intake-section {scroll-margin-top:110px;padding:22px 20px;margin-block:20px}
.firm-intake-section legend {font-size:1.05rem;color:#1c4967;padding:0 8px}
.answer-help {display:flex;align-items:center;gap:10px;font-size:.8rem!important;font-weight:400!important;color:#5c6b75;margin-top:-8px!important;margin-bottom:24px!important}
.answer-help select {max-width:300px!important;min-height:38px!important;font-size:.84rem!important;background:#f7fafb!important}
.form-list .form-card {width:100%;max-width:940px;margin-inline:auto;padding:24px}
.form-list .issued-official-guide {margin:10px 0 24px}
.search-results li>div {min-width:0;flex:1}.search-results small {display:block;color:#557082;margin-bottom:5px}
.search-results .review-note {font-size:.9rem;line-height:1.6}
.matter-global-search>.text {white-space:nowrap;font-size:.78rem}
form [hidden] {display:none!important}
@media(max-width:740px) {
  .home-story,.case-story {padding:18px 16px;margin-bottom:18px}.home-story {gap:10px}.home-story .story-icon {display:none}
  .gateway-home>h1 {font-size:1.03rem}.gateway-home .gateway-person {margin-block:8px 16px}
  .gateway-timeline .desk-task {display:grid;grid-template-columns:24px minmax(0,1fr);padding:15px 12px;gap:8px}
  .gateway-timeline .desk-task .task-action {grid-column:2;justify-self:start;max-width:none;padding-inline:15px}
  .firm-live-shell .desk-content .layout {padding-inline:12px}.gateway-client-shell .desk-content {width:100%}
  .firm-live-shell input,.firm-live-shell textarea,.firm-live-shell select,.login input {font-size:16px!important;min-height:44px}
  .firm-live-shell textarea {line-height:1.6}.firm-live-shell .button {min-height:44px}
  .form-list .form-card {padding:16px 8px}.firm-intake-section {padding:15px 12px;scroll-margin-top:12px}
  .questionnaire-nav {position:static;gap:6px 12px}.questionnaire-nav a {min-height:32px;display:flex;align-items:center}
  .answer-help {display:block;margin-top:0!important}.answer-help select {margin-top:5px;max-width:100%!important;font-size:14px!important}
  .context-reference {flex-wrap:wrap;padding:12px}.context-reference .button {margin-left:34px}
  .draft-comparison {padding:12px}.document-card-body {padding:14px 12px}
  .chat-log p {font-size:1rem;line-height:1.75}.conversation-audience {font-size:.9rem;line-height:1.7}
  .matter-global-search {flex-wrap:wrap}.matter-global-search>.text {font-size:.72rem}
  .slot-actions {padding-bottom:env(safe-area-inset-bottom,0px)}
}
@media(prefers-reduced-motion:reduce) {* {scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.manager-exceptions {margin:0 0 24px;background:#fff;border:1px solid #dbe5eb;border-top:3px solid #b18961;border-radius:8px;overflow:hidden}
.manager-exceptions>header {display:flex;justify-content:space-between;gap:16px;padding:18px 20px;align-items:center;background:#fbfaf7}
.manager-exceptions h2 {font-size:1.12rem;margin:0}.manager-exceptions .kicker {color:#846343;margin-bottom:5px}
.batch-review {margin:18px 0;padding:12px 16px;border:1px solid #c5d8e3;background:#f6fafc;border-radius:7px}
.batch-review>summary {min-height:40px;display:list-item;padding-top:7px;color:#205475}
.batch-results {padding:16px;border-left:3px solid #639684;background:#f0f7f4;margin-block:18px}.batch-results li {margin-bottom:8px;overflow-wrap:anywhere}
@media(max-width:740px) {.manager-exceptions>header {flex-wrap:wrap;padding:14px}.batch-review {padding:12px}.manager-exceptions .matter-table-row {padding:14px}}

/* Give the team's main queue room to read; keep schedules in a quieter rail. */
.docket-shell .ux-staff-home .docket-heading h1 {font-family:inherit;font-size:clamp(1.6rem,2.7vw,2rem);font-weight:650;letter-spacing:-.025em;margin:2px 0 8px;line-height:1.35}
.ux-staff-home .docket-heading {align-items:center;margin-bottom:24px}
.ux-staff-home .docket-heading .kicker {font-size:.72rem;color:#56717f;letter-spacing:.07em;margin:0 0 6px}
.ux-work-grid {grid-template-columns:minmax(0,1fr) minmax(265px,.46fr);gap:24px}
.ux-work-primary,.ux-work-secondary {min-width:0;display:grid;gap:22px;align-content:start}
.ux-work-primary .desk-panel,.ux-work-secondary .desk-panel {margin:0;box-shadow:none;border-radius:9px}
.ux-work-primary .desk-panel-head,.ux-work-secondary .desk-panel-head {padding:16px 18px;min-height:0;background:#f8fafb}
.ux-work-grid .desk-panel-head h2 {font-size:1rem}
.ux-work-grid .desk-task {padding:15px 16px;align-items:center;gap:12px}
.ux-work-grid .desk-task strong {font-size:.94rem;line-height:1.5}
.ux-work-grid .desk-task small {font-size:.82rem;line-height:1.65;margin-top:3px}
.ux-work-primary .desk-docket-row {padding:16px;grid-template-columns:minmax(170px,1fr) auto auto;gap:12px}
.ux-work-primary .desk-docket-date {grid-column:1;grid-row:2;margin-left:39px;font-size:.82rem;color:#607584}
.ux-work-primary .desk-docket-stage {grid-column:2;grid-row:1 / span 2}
.ux-work-primary .desk-case-open {grid-column:3;grid-row:1 / span 2}
.ux-work-secondary .desk-task {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
.ux-work-secondary .desk-row-icon {display:none}
.ux-work-secondary .desk-empty {padding:20px 18px;font-size:.9rem;line-height:1.65;color:#5a6d79}
.ux-work-secondary .desk-docket-row {display:flex;flex-wrap:wrap;padding:14px;gap:10px}
.ux-work-secondary .desk-case-name {width:100%}
.ux-work-tools {display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:0 8px;border-top:1px solid #e3eaef}
.ux-work-tools>span {font-size:.8rem;color:#657986;margin-right:8px}
.ux-search-return {margin-bottom:14px;min-height:44px}
.chat-log article.search-matched {background:#edf5fa;border:1px solid #89aabe}
.search-match-label {display:block;margin:0 0 8px;color:#315c75;font-size:.78rem}
@media(max-width:1100px) {.ux-work-grid {grid-template-columns:minmax(0,1fr)}.ux-work-secondary {grid-template-columns:repeat(2,minmax(0,1fr))}.ux-work-secondary>.desk-panel:last-child {grid-column:1/-1}}
@media(max-width:740px) {.ux-work-grid {gap:18px}.ux-work-secondary {grid-template-columns:minmax(0,1fr)}.ux-work-primary .desk-panel-head,.ux-work-secondary .desk-panel-head {padding:14px}.ux-work-primary .desk-docket-row {grid-template-columns:minmax(0,1fr) auto;padding:14px}.ux-work-primary .desk-docket-stage {grid-column:1;grid-row:2;margin-left:0;justify-self:start}.ux-work-primary .desk-docket-date {grid-row:3;margin-left:0}.ux-work-primary .desk-case-open {grid-column:2;grid-row:1 / span 3}.ux-work-primary .desk-task {display:grid;grid-template-columns:22px minmax(0,1fr)}.ux-work-primary .desk-task .task-action {grid-column:2;justify-self:start}.ux-staff-home .docket-heading {align-items:flex-start}}
.account-entry-link{margin-top:24px;padding-top:20px;border-top:1px solid #dbe4e9;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;font-size:14px;color:#4d626f}
.account-entry-link a{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:#164c67;font-weight:650;text-decoration:underline;text-underline-offset:4px}
/* Immigration PDF preparation: a focused editor with a stable review rail. */
.auto-workspace{max-width:1440px}.auto-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin:24px 0 14px}.auto-heading h1,.auto-heading h2{margin:6px 0 10px;font-size:clamp(23px,2.3vw,32px);line-height:1.25}.auto-heading p{max-width:780px}.auto-header-actions{display:flex;gap:10px;flex-wrap:wrap;flex-shrink:0}.auto-notice{padding:12px 18px;border-left:3px solid #427d83;background:#edf5f5;color:#35575c;border-radius:0 8px 8px 0;margin:16px 0;font-size:14px}.auto-layout{display:grid;grid-template-columns:minmax(0,1fr) 315px;gap:28px;align-items:start}.auto-editor{background:#fff;border:1px solid #d9e3e8;border-radius:12px;padding:26px;min-width:0}.auto-editor-top{display:flex;align-items:center;justify-content:space-between;gap:18px;position:sticky;top:0;padding:12px 0;background:#fff;z-index:2;border-bottom:1px solid #e4ecee}.auto-editor-top label{display:flex;align-items:center;gap:10px;margin:0}.auto-editor-top select{width:130px}.auto-editor-top span{font-size:13px;color:#5b707d}.auto-field{padding:20px 0;border-bottom:1px solid #e8edef;scroll-margin-top:120px}.auto-field>label>span{display:block;font-size:15px;line-height:1.6;margin-bottom:10px;color:#263f4e;white-space:pre-wrap}.auto-field input,.auto-field select,.auto-field textarea{font-size:16px}.auto-field-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}.auto-field-meta small{color:#56747b}.auto-field-meta label{font-size:12px;max-width:260px;margin:0}.auto-field-meta select{font-size:13px;padding:7px 9px;margin-top:4px}.auto-field-problem{border-left:3px solid #ad6926;padding-left:16px}.auto-field-error{color:#89521f;font-size:13px;margin:6px 0}.auto-required{color:#99602e}.auto-side{position:sticky;top:18px;padding:18px 4px;min-width:0}.auto-side h3{font-size:18px;margin:0 0 12px}.auto-side p{font-size:14px;line-height:1.7}.auto-side a{overflow-wrap:anywhere}.auto-side form{display:grid;gap:10px}.auto-side .button{max-width:100%;white-space:normal;text-align:left}.auto-workflow{border-top:1px solid #d3e1e5;margin-top:24px;padding-top:22px;display:grid;gap:12px}.auto-history{border-top:1px solid #d3e1e5;margin-top:22px;padding-top:18px}.auto-history summary{font-weight:600;cursor:pointer}.auto-history ul{padding-left:20px}.auto-history li{margin:12px 0;font-size:13px}.auto-history small{display:block;line-height:1.6;color:#637982}.auto-issues{list-style:none;padding:0}.auto-issues .button{font-size:12px;line-height:1.5;padding:6px 0;max-height:66px;overflow:hidden;display:block}.auto-pagination{display:flex;gap:14px;justify-content:space-between;padding-top:20px}.auto-save-state{font-size:13px;color:#416b63;min-height:22px}.auto-create{background:#f3f7f9;padding:22px;border-radius:10px;margin:22px 0}.auto-create summary{font-weight:600;cursor:pointer}.auto-create form{margin-top:18px}.auto-common-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.auto-common{margin:24px 0;padding:18px;border:1px solid #d7e4e7;border-radius:10px}.auto-common summary{font-weight:600;cursor:pointer}.auto-common-grid input{min-width:0}.auto-document-list{list-style:none;margin:24px 0;padding:0;border-top:1px solid #d9e3e8}.auto-document-list li{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 4px;border-bottom:1px solid #d9e3e8}.auto-document-list h3{margin:6px 0;font-size:19px}.auto-document-list p{margin:6px 0}.auto-document-list small{color:#4c6070}.auto-stale,.auto-conflict{background:#fff7e8;border:1px solid #e6cf9b;border-radius:10px;padding:22px;margin:18px 0}.auto-conflict>div{border-top:1px solid #dfcaa5;padding-top:12px;margin-top:12px;overflow-wrap:anywhere}.auto-template-editor{max-width:1150px}.auto-template-fields details{padding:18px 0;border-bottom:1px solid #dce6e9}.auto-template-fields summary{cursor:pointer;font-size:15px;line-height:1.6}.auto-template-fields label{margin-top:12px}.auto-field-id{display:block;color:#6d7e86;overflow-wrap:anywhere;margin:8px 0}.auto-sticky-save{position:sticky;bottom:0;background:#fff;padding:16px 0;border-top:1px solid #d9e3e8;margin-top:24px}.auto-intro{max-width:760px;line-height:1.8}
@media(max-width:900px){.auto-layout{grid-template-columns:1fr}.auto-side{position:static;padding:22px;background:#f3f7f9;border-radius:10px}.auto-heading{display:block}.auto-header-actions{margin:16px 0}.auto-editor{padding:18px}.auto-common-grid{grid-template-columns:1fr}.auto-field-meta{align-items:flex-start;flex-direction:column}.auto-field-meta label{max-width:100%;width:100%}.auto-document-list li{align-items:flex-start}.auto-document-list .button{flex-shrink:0}.auto-side .auto-issues{display:none}.auto-workspace{padding-bottom:36px}.auto-sticky-save{padding-bottom:max(16px,env(safe-area-inset-bottom))}}
.permission-layout{max-width:1160px}.permission-editor>header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.permission-editor h2{overflow-wrap:anywhere}.permission-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.permission-scope{background:#edf5f8;border-left:3px solid #4b7a91;padding:16px 20px;margin:20px 0;font-size:14px;line-height:1.75}.permission-scope p{margin:5px 0}.permission-list{display:grid;grid-template-columns:1fr 1fr;gap:0 26px;margin:22px 0;border-top:1px solid #dbe5eb}.permission-option{display:flex!important;gap:13px;align-items:flex-start;border-bottom:1px solid #dbe5eb;padding:20px 0;margin:0!important}.permission-option input{width:20px!important;height:20px;min-width:20px;margin:3px 0!important;accent-color:#275d75}.permission-option strong,.permission-option small,.permission-option em{display:block;line-height:1.65}.permission-option strong{font-size:15px}.permission-option small{font-weight:400;color:#526875;margin-top:4px;font-size:13px}.permission-option em{font-style:normal;font-size:12px;color:#6b7780;margin-top:6px}.permission-option.unavailable{background:#f7f9fa;opacity:.78}.permission-members{list-style:none;padding:0;margin:0}.permission-members li{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:20px 0;border-bottom:1px solid #e0e7eb}.permission-members span,.permission-members small{display:block;overflow-wrap:anywhere;line-height:1.7;color:#526875}.permission-members .button{flex-shrink:0}.permission-save{position:sticky;bottom:0;background:#fff;border-top:1px solid #cbdce5;padding:16px 0;display:flex;align-items:center;gap:24px;justify-content:space-between}.permission-save p{font-size:13px;max-width:680px}.permission-save .button{flex-shrink:0}.permission-confirm h4{font-size:16px}.permission-confirm li{margin:7px 0}.permission-locked{font-size:13px;line-height:1.65;color:#7b5e32;background:#fff7e9;padding:12px;border-radius:6px}
@media(max-width:700px){.permission-fields,.permission-list{grid-template-columns:1fr}.permission-members li{align-items:flex-start}.permission-members .button{font-size:13px;padding:8px 10px}.permission-save{align-items:stretch;flex-direction:column;gap:4px;padding-bottom:max(16px,env(safe-area-inset-bottom))}.permission-editor.panel{padding:20px}.permission-layout{padding-inline:12px}.permission-option{padding:17px 5px}}

.message-flow{max-width:820px;margin:28px auto}.message-flow header{margin:24px 0}.message-flow h1{font-size:clamp(1.6rem,4vw,2.1rem)}.message-flow h1:focus{outline:none}.message-case-options{display:grid;margin:24px 0}.message-case-option.button{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:20px;width:100%;padding:22px 8px;border:0;border-bottom:1px solid #dce5e9;border-radius:0;background:transparent;color:#23485d}.message-case-option strong,.message-case-option small{display:block}.message-case-option small{margin-top:7px;font-weight:400;color:#637782}.message-case-option:hover,.message-case-option:focus-visible{background:#f0f6f8}.message-flow form{display:grid;gap:20px}.message-flow input,.message-flow textarea{width:100%;box-sizing:border-box}.message-flow .kicker{font-size:.8rem}@media(max-width:600px){.message-flow{margin:16px auto;padding:0 18px}.message-case-option.button{padding:20px 4px}.message-case-option small{line-height:1.5}}

.matter-result-count{margin:0;padding:0 15px 12px;font-size:14px;color:var(--portal-muted)}


.appointment-participants,.appointment-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;max-width:62rem}
.appointment-columns{grid-template-columns:minmax(15rem,20rem) minmax(0,1fr);align-items:start;margin:1rem 0}
.appointment-people{min-width:0;padding:.6rem .8rem;border:1px solid #cbd6df;border-radius:8px}
.appointment-people [data-person-chips]{display:flex;flex-wrap:wrap;gap:.35rem}
.appointment-people [data-person-chips] button,.appointment-reviewed button,[data-change-date]{color:#174c77;border:1px solid #ceddea;border-radius:6px;background:#eff5fa;padding:.35rem .6rem;cursor:pointer}
.appointment-directory,.appointment-reviewed [data-slot-review]{max-height:12rem;overflow-y:auto}
.appointment-directory label:not([hidden]){display:flex;align-items:center;gap:.5rem;min-height:2.5rem}
.appointment-directory label[hidden]{display:none}
.appointment-directory input[type=checkbox]{width:1rem;height:1rem;margin:0}
.appointment-date-heading{display:flex;align-items:center;gap:.6rem;justify-content:space-between}
.appointment-columns .appointment-time-grid{grid-template-columns:repeat(auto-fill,minmax(7rem,1fr));max-width:none}
.appointment-columns button[aria-pressed=true]{background:#205e94;color:white}
.appointment-time-grid button[aria-pressed=true]::before{content:'✓ '}
.appointment-reviewed [data-slot-review]>div{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;padding:.35rem 0}
.appointment-date-heading [data-change-date]{display:none}
@media(max-width:680px){.appointment-columns,.appointment-participants{grid-template-columns:minmax(0,1fr)}[data-date-chosen] .appointment-picker-grid{display:none}.appointment-date-heading [data-change-date]:not([hidden]){display:inline-block}}

.final-packet{width:min(96vw,1600px);max-width:96vw;max-height:94vh;padding:1.2rem;color:#203448;border:1px solid #a6b5bd;border-radius:10px}
.final-packet::backdrop,.packet-warning::backdrop{background:#10283d70}
.final-packet header,.packet-library-row,.packet-file,.packet-tools{display:flex;align-items:center;justify-content:space-between;gap:.4rem}
.final-packet button,.packet-warning button{cursor:pointer;padding:.38rem .55rem;margin:2px;color:#214660;border:1px solid #bfced6;border-radius:5px;background:white}
.final-packet button[aria-pressed=true],.final-packet button[data-packet=generate],.packet-warning button[data-packet=confirm]{background:#194865;color:white}
.final-packet button:disabled{opacity:.45;cursor:default}
.packet-columns{display:grid;grid-template-columns:minmax(210px,1fr) minmax(300px,2fr) minmax(210px,1fr);gap:.8rem}
.packet-columns section{min-width:0;padding:.75rem;border:1px solid #d1dbe0;border-radius:6px;max-height:69vh;overflow:auto}
.packet-columns input,.packet-columns textarea,.packet-warning select{width:100%;box-sizing:border-box}
.packet-columns textarea{min-height:15rem}
.packet-library-row,.packet-row{padding:.4rem 0;border-bottom:1px solid #d7e0e5;overflow-wrap:anywhere}
.packet-row small,.packet-library-row div button{display:block}
.packet-file{padding-left:.8rem}.packet-tools{flex-wrap:wrap;justify-content:start}
[data-page-view]{position:relative}[data-page-view] canvas{max-width:100%;height:auto}.packet-note{position:absolute;top:0;left:0;padding:.4rem;background:white;max-width:100%;overflow-wrap:anywhere}
.packet-warning{max-width:min(90vw,680px);border:1px solid #a6b5bd;border-radius:8px;padding:1.2rem}
@media(max-width:800px){.packet-columns{grid-template-columns:1fr}.packet-columns section{max-height:55vh}.final-packet header{flex-wrap:wrap}}

.final-packet :is(button,input,select),.packet-warning :is(button,select){min-height:36px;font:inherit}
.final-packet :focus-visible,.packet-warning :focus-visible{outline:3px solid #176c91;outline-offset:2px}
.final-packet header>div{display:flex;flex-wrap:wrap;gap:4px}


.knowledge-page{max-width:1120px}.knowledge-heading{padding:8px 0 22px}.knowledge-heading h1{margin:5px 0 9px}.knowledge-heading p{max-width:740px;color:var(--muted)}.knowledge-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.knowledge-basic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 28px}.knowledge-basic-grid div{border-bottom:1px solid var(--line);padding-bottom:12px}.knowledge-basic-grid dt,.knowledge-history-item dt{font-size:13px;color:var(--muted)}.knowledge-basic-grid dd,.knowledge-history-item dd{margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.knowledge-item{padding:24px 0;border-bottom:1px solid var(--line)}.knowledge-item:last-child{border-bottom:0}.knowledge-item h3{margin:0;font-size:17px}.knowledge-value{white-space:pre-wrap;margin:12px 0;font-size:16px;line-height:1.6;overflow-wrap:anywhere}.knowledge-source{font-size:13px;color:var(--muted)}.knowledge-conflict{background:#fff7e8;border-left:3px solid #a96b10;padding:12px 15px;line-height:1.6}.knowledge-version-list{list-style:none;padding:0}.knowledge-version-list li{border-bottom:1px solid var(--line);padding:10px 0}.knowledge-version-list p{white-space:pre-wrap;margin:0 0 5px;overflow-wrap:anywhere}.knowledge-version-list small{color:var(--muted)}.knowledge-item form{max-width:680px;margin-top:16px}.knowledge-empty{padding:24px 0;color:var(--muted);max-width:720px;line-height:1.7}.knowledge-history-item{border-top:1px solid var(--line);padding:18px 0}.knowledge-history-item summary{cursor:pointer}.knowledge-history-item summary span{display:block;margin-top:5px;font-size:13px;color:var(--muted)}.knowledge-history-item dl{padding:10px 0}.knowledge-history-item dd{margin-bottom:20px}.knowledge-prefill-note{padding:14px 18px;background:#eef7f6;border-left:3px solid #39766e;margin:15px 0}.knowledge-prefill-note p{margin:7px 0 0;font-size:14px;line-height:1.7}.knowledge-field-note{display:block;color:#39675f;margin:5px 0 8px}.knowledge-template-setting{grid-column:1/-1}.knowledge-template-setting small{line-height:1.6;max-width:780px}@media(max-width:640px){.knowledge-basic-grid{grid-template-columns:1fr;gap:14px}.knowledge-tabs .button{flex:1 1 auto}.knowledge-item{padding:19px 0}.knowledge-item .line{align-items:flex-start;gap:8px}.knowledge-history-item summary{line-height:1.6}.knowledge-prefill-note{padding:12px}.knowledge-item select{max-width:100%;font-size:16px}}@media(prefers-reduced-motion:reduce){.knowledge-page *{scroll-behavior:auto}}
.knowledge-legacy{border:1px solid #a9c9c3;border-radius:8px;margin:18px 0;padding:16px 18px;background:#f8fcfb}.knowledge-legacy>summary{cursor:pointer}.knowledge-legacy>summary span{display:block;font-size:13px;color:var(--muted);margin-top:6px}.knowledge-legacy fieldset{margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:6px}.knowledge-legacy legend{font-weight:600;padding:0 6px}.knowledge-legacy-choice{display:flex!important;align-items:flex-start;gap:10px;padding:13px 0;border-bottom:1px solid var(--line);cursor:pointer}.knowledge-legacy-choice input{width:auto!important;flex:none;margin-top:5px}.knowledge-legacy-choice>span{min-width:0}.knowledge-legacy-choice small{display:block;margin:4px 0;color:var(--muted)}.knowledge-legacy-value{display:block;white-space:pre-wrap;line-height:1.6;overflow-wrap:anywhere}.knowledge-current{padding:10px;background:#edf3f2;white-space:pre-wrap;overflow-wrap:anywhere}

.frontdesk-tabs{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 22px}.frontdesk-tabs [aria-pressed=true],.frontdesk-note-filters [aria-pressed=true]{background:#dceeea;border-color:#9dbcb5}.frontdesk-list>.firm-search,.frontdesk-note-filters,.frontdesk-new-call{padding:18px 22px;border-bottom:1px solid #dce5e8;margin:0}.frontdesk-note-filters{display:flex;gap:8px;flex-wrap:wrap}.frontdesk-rows,.frontdesk-cases{list-style:none;margin:0;padding:0}.frontdesk-client-row,.frontdesk-case,.frontdesk-note-row{display:flex;align-items:center;gap:22px;padding:18px 22px;border-bottom:1px solid #e1e8eb}.frontdesk-client-row>div:first-child,.frontdesk-case>div:first-child,.frontdesk-note-row>div:first-child{flex:1;min-width:0}.frontdesk-client-row small,.frontdesk-case small,.frontdesk-note-row small{display:block;color:#5e7480;font-size:13px;margin-top:6px;line-height:1.6;overflow-wrap:anywhere}.frontdesk-note-row p{font-size:14px;line-height:1.7;margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.frontdesk-team{display:flex;gap:20px;flex-wrap:wrap}.frontdesk-team>span{min-width:110px}.frontdesk-team small{display:block;font-size:12px;color:#637986;margin-top:5px}.frontdesk-pager{display:flex;justify-content:flex-end;align-items:center;gap:14px;padding:16px 22px}.frontdesk-detail{padding:24px}.frontdesk-profile{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 30px;border-block:1px solid #e1e8eb;padding:22px 0;margin:22px 0}.frontdesk-profile dt{font-size:12px;color:#627987}.frontdesk-profile dd{margin:5px 0 0;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.frontdesk-detail h3{margin-top:24px}.frontdesk-call-form{background:#f3f8f9;padding:24px;margin:18px 0;border:1px solid #cfdfe5;border-radius:8px}.frontdesk-call-form>p{color:#52707e;font-size:14px;line-height:1.7}.frontdesk-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 22px}.frontdesk-call-form footer{display:flex;gap:10px;justify-content:flex-end}.frontdesk-original{border-left:3px solid #3d8391;padding:15px 20px;background:#f3f8f9;white-space:pre-wrap;line-height:1.85;overflow-wrap:anywhere}.frontdesk-history{padding-left:20px;color:#53717e;font-size:13px;line-height:2}.frontdesk-detail details{margin-top:20px}.frontdesk-detail summary{cursor:pointer}@media(max-width:800px){.frontdesk-profile{grid-template-columns:1fr 1fr}.frontdesk-client-row,.frontdesk-case,.frontdesk-note-row{flex-wrap:wrap;gap:12px}.frontdesk-case .frontdesk-team{width:100%;order:2}}@media(max-width:560px){.frontdesk-detail{padding:18px}.frontdesk-profile,.frontdesk-form-grid{grid-template-columns:1fr}.frontdesk-call-form{padding:16px}.frontdesk-list>.firm-search{padding:16px}.frontdesk-client-row,.frontdesk-case,.frontdesk-note-row{padding:16px}.frontdesk-client-row>div:first-child,.frontdesk-note-row>div:first-child{flex-basis:75%}.frontdesk-call-form footer{flex-direction:column-reverse}.frontdesk-note-row .button{width:100%}}

.wix-intake-page{max-width:1440px;width:100%}.wix-intake-heading{display:flex;gap:24px;align-items:center;justify-content:space-between;margin:20px 0}.wix-intake-heading h1{margin:0 0 8px}.wix-intake-heading p{margin:0;color:var(--muted,#536879)}.wix-intake-connection{display:flex;justify-content:space-between;gap:28px;padding:20px 24px;margin:0 0 24px;border:1px solid #d5e5e9;background:#f2f8fa;border-radius:10px}.wix-intake-connection p{margin:6px 0 0}.wix-intake-connection>div:last-child{flex-shrink:0}.wix-intake-connection span,.wix-intake-connection strong{display:block}.wix-intake-connection span{font-size:.85rem;margin-bottom:6px;color:#536879}.wix-intake-table-wrap{overflow-x:auto}.wix-intake-table{border-collapse:collapse;width:100%;font-size:.93rem}.wix-intake-table th{text-align:left;color:#4c6274;background:#f7f9fa;font-weight:600}.wix-intake-table th,.wix-intake-table td{padding:14px 16px;border-bottom:1px solid #e0e7ec;vertical-align:middle}.wix-intake-page small{display:block;font-size:.83rem;color:#536879;margin-top:5px}.wix-intake-status{display:inline-block;font-size:.84rem;background:#edf4f7;border:1px solid #d9e5ea;border-radius:5px;padding:4px 8px;white-space:nowrap}.wix-intake-empty{padding:30px 16px;max-width:620px}.wix-intake-empty h3{margin:0 0 10px}.wix-intake-empty p{line-height:1.7}.wix-intake-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:24px}.wix-intake-columns>.panel{min-width:0}.wix-intake-columns h2{margin-top:0}.wix-intake-columns p{line-height:1.65}.wix-intake-fields{margin:20px 0}.wix-intake-fields>div{display:grid;grid-template-columns:130px minmax(0,1fr);gap:18px;padding:12px 0;border-bottom:1px solid #e4ebef}.wix-intake-fields dt{color:#536879;font-size:.9rem}.wix-intake-fields dd{margin:0;overflow-wrap:anywhere}.wix-intake-warning{background:#fff8e9;border-left:3px solid #bd861f;padding:14px 18px 14px 34px;font-size:.9rem;line-height:1.6}.wix-intake-raw,.wix-intake-create{margin-top:24px;border-top:1px solid #dce5eb;padding-top:18px}.wix-intake-page summary{cursor:pointer;font-weight:600;line-height:1.5}.wix-intake-raw dl>div{padding:12px 0;border-bottom:1px solid #e3e9ee}.wix-intake-raw dt{font-size:.84rem;color:#536879}.wix-intake-raw dd{margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.9rem}.wix-intake-candidate{display:flex!important;align-items:flex-start;gap:10px;border:1px solid #dbe5eb;padding:13px;border-radius:7px;margin:10px 0}.wix-intake-candidate input{width:auto!important;margin-top:4px}.wix-intake-page fieldset{border:0;padding:0;margin:0}.wix-intake-page legend{font-weight:600}.wix-intake-page .check{display:flex;align-items:flex-start;gap:9px;line-height:1.5;margin:16px 0}.wix-intake-page .check input{width:auto;margin-top:4px}.wix-intake-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.wix-intake-linked{padding:16px;background:#eff7f4;border:1px solid #d8e9e0;border-radius:8px;margin:16px 0}.wix-intake-linked p{margin:5px 0 12px}.wix-intake-history{margin-top:24px}.wix-intake-history .events li{align-items:start;gap:22px}.wix-intake-history .events li>strong{min-width:70px}.wix-intake-page form>.button{margin-top:8px}@media(max-width:900px){.wix-intake-columns{grid-template-columns:1fr}.wix-intake-connection{align-items:start;flex-direction:column;gap:18px}.wix-intake-table th,.wix-intake-table td{padding:12px}.wix-intake-table th:nth-child(2),.wix-intake-table td:nth-child(2){display:table-cell}}@media(max-width:560px){.wix-intake-heading{align-items:flex-start;gap:16px;flex-direction:column}.wix-intake-form-grid{grid-template-columns:1fr}.wix-intake-fields>div{grid-template-columns:1fr;gap:5px}.wix-intake-table th:nth-child(4),.wix-intake-table td:nth-child(4){display:table-cell}.wix-intake-table th,.wix-intake-table td{padding:10px 6px}.wix-intake-page .panel{padding:18px}.wix-intake-page .button{min-height:42px}.wix-intake-table .button{white-space:normal}.wix-intake-connection{padding:18px}}

.wix-quote{white-space:pre-wrap;overflow-wrap:anywhere}.wix-intake-table .wix-full-quote summary{font-weight:400}.wix-full-quote[open] summary .wix-quote{display:none}.wix-intake-table{min-width:720px}.wix-intake-fields dd{white-space:pre-wrap}

.team-center-dialog{width:min(1160px,calc(100vw - 48px));max-width:1160px;height:min(86vh,940px);max-height:92dvh;padding:0;border:1px solid #d6e1e6;border-radius:18px;box-shadow:0 30px 100px #0b283a42;color:#123341;background:#fff}.team-center-dialog::backdrop{background:#102d4269;backdrop-filter:blur(3px)}.team-center-header{display:flex;justify-content:space-between;align-items:center;padding:22px 30px 18px;border-bottom:1px solid #e3eaee}.team-center-header h2{margin:4px 0 0;font-size:26px}.team-center-header .kicker{margin:0;color:#607988;font-size:11px;letter-spacing:.12em}.team-center-tabs{display:flex;gap:4px;padding:8px 24px;background:#f6f8fa;border-bottom:1px solid #dfe7eb;overflow-x:auto}.team-center-tabs .button{white-space:nowrap;background:transparent;border-color:transparent;border-radius:7px;color:#506879;padding:11px 16px;font-size:14px}.team-center-tabs [aria-current=page]{background:#fff;border-color:#d7e3e8;color:#074e66;box-shadow:0 1px 3px #183a4510}.team-center-body{height:calc(100% - 151px);overflow:auto;padding:26px 30px 40px;overscroll-behavior:contain}.team-center-body h3{font-size:19px;margin:0 0 12px}.team-center-body h4{font-size:15px}.team-center-body section+section{margin-top:30px}.team-my-profile{display:flex;align-items:center;gap:18px;padding-bottom:26px;border-bottom:1px solid #e3eaee}.team-my-profile>div{flex:1}.team-my-profile p{margin:4px 0;font-size:14px}.member-avatar{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;object-fit:cover;background:#e7f0f4;color:#27556a;font-size:14px;font-weight:650;border:1px solid #d7e4e9}.member-avatar.large{width:70px;height:70px;font-size:23px}.team-member-list{display:grid;grid-template-columns:1fr 1fr;gap:0 28px}.team-member-list article{display:flex;align-items:center;gap:12px;padding:17px 0;border-bottom:1px solid #e7edf0}.team-member-list article>div{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.team-member-list article a,.team-member-list article span{font-size:13px;overflow-wrap:anywhere}.team-member-list article a{color:#43687b}.team-member-list article .member-avatar{font-size:14px}.team-section{margin-top:28px}.team-section-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px}.team-section-heading h2,.team-section-heading h3{margin:0 0 7px}.team-section-heading p{margin:0;color:#587180;font-size:14px}.team-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px 22px}.team-center-dialog label,.team-editor label{display:grid;gap:7px;font-size:13px;font-weight:550}.team-center-dialog input:not([type=checkbox]),.team-center-dialog select,.team-center-dialog textarea,.team-editor input:not([type=checkbox]),.team-editor select,.team-editor textarea{width:100%;min-height:42px;padding:10px 12px;border:1px solid #cddae1;border-radius:7px;background:#fff;color:#193846;font:inherit}.team-center-dialog textarea{line-height:1.65}.team-center-dialog .check,.team-editor .check{display:flex;gap:9px;align-items:center;font-weight:400}.team-editor{background:#f6f9fa;border:1px solid #dce7eb;border-radius:10px;padding:22px;margin:20px 0;display:grid;gap:16px}.team-editor .button{justify-self:start}.team-editor .line{margin:0}.team-editor label+label{margin-top:0}.team-request,.team-notice{border-bottom:1px solid #e2e9ed;padding:17px 0}.team-request>summary,.team-notice>summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px}.team-request summary span,.team-notice summary small{font-size:13px;color:#5e7584}.team-notice summary small{display:block;margin-top:6px}.team-notice-body{white-space:pre-wrap;line-height:1.8;padding:20px 0}.team-differences{display:grid;grid-template-columns:170px 1fr;gap:10px;font-size:14px}.team-differences dd{margin:0;overflow-wrap:anywhere}.team-differences dd>span{color:#798a93}.team-request form{display:grid;gap:12px;padding:16px 0}.team-arrangements article{display:flex;justify-content:space-between;gap:18px;padding:19px 0;border-bottom:1px solid #e2eaee}.team-arrangements p{margin:6px 0;font-size:14px}.team-feedback{padding:12px 16px;background:#eaf6f0;border-radius:7px;color:#225b43}.team-feedback.error{background:#fff1ea;color:#8f371e}.team-table-wrap{overflow-x:auto}.team-table{width:100%;border-collapse:collapse;font-size:14px;text-align:left}.team-table th{font-size:12px;font-weight:600;color:#5a7080;background:#f5f8fa;padding:12px}.team-table td{padding:14px 12px;border-bottom:1px solid #e2eaee;vertical-align:top}.team-table small{display:block;margin-top:5px;color:#687e8d}.team-table .button{font-size:12px;white-space:nowrap}.team-section .empty-note{padding:28px 0;color:#677f8d}.team-audit{padding:10px 0;border-bottom:1px solid #e2eaee;font-size:13px}.team-audit pre{white-space:pre-wrap;word-break:break-word;max-height:260px;overflow:auto}.case-primary-actions{display:flex;gap:12px;margin:0 0 22px}.case-member{display:flex!important;align-items:center;gap:12px}.case-member>div{display:grid;gap:4px}.grouped-tools>summary{padding:15px 14px;color:#627d8b;font-size:13px;cursor:pointer}.grouped-tools>nav{padding-top:6px}.calendar-workspace{display:grid;grid-template-columns:190px minmax(0,1fr);gap:24px}.calendar-people{border-right:1px solid #dfe7eb;padding-right:18px}.calendar-people label{display:flex;gap:9px;align-items:center;padding:10px 0;font-size:13px}.calendar-scope-buttons{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:16px}.calendar-scope-buttons .button{font-size:12px;padding:8px}.calendar-scope-buttons [aria-pressed=true]{background:#e5f1f4;color:#07566b;border-color:#9ec4cd}.calendar-person-search{width:100%;margin:8px 0 12px}.calendar-entry{display:flex;gap:12px;padding:15px 0;border-bottom:1px solid #e3ebef}.calendar-entry>div{flex:1}.calendar-entry p{font-size:13px;line-height:1.6;margin:5px 0;color:#587181}.calendar-entry time{font-size:13px}.calendar-color{display:inline-block;width:10px;height:10px;border-radius:3px;flex-shrink:0;margin-top:4px;background:#2b7c99}.cal-color-0{background:#24688d}.cal-color-1{background:#8e60a1}.cal-color-2{background:#a46d28}.cal-color-3{background:#238579}.cal-color-4{background:#bd626f}.cal-color-5{background:#586eb5}.cal-color-6{background:#6b853e}.cal-color-7{background:#a95136}.calendar-colored-days{display:flex;gap:3px;flex-wrap:wrap;justify-content:center;max-width:40px;margin:5px auto}.calendar-colored-days .calendar-color{width:5px;height:5px;margin:0}.home-agenda{margin-bottom:24px}.home-agenda-head{display:flex;justify-content:space-between;gap:16px;align-items:center}.home-agenda-items{display:grid;grid-template-columns:repeat(3,1fr);gap:0 24px}.home-agenda-items article{padding:15px 0;border-bottom:1px solid #e5ecef}.home-agenda-items small{display:block;color:#657d8c;margin-top:6px}.calendar-workspace .desk-calendar-layout{grid-template-columns:minmax(260px,.8fr) minmax(280px,1fr)}.team-center-dialog [hidden]{display:none!important}
@media(max-width:900px){.team-center-dialog{width:calc(100vw - 24px);height:90dvh}.team-member-list{grid-template-columns:1fr}.calendar-workspace{grid-template-columns:1fr}.calendar-people{border-right:0;border-bottom:1px solid #e0e8ed}.calendar-people details>div{display:grid;grid-template-columns:1fr 1fr}.calendar-workspace .desk-calendar-layout{grid-template-columns:1fr}.home-agenda-items{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.team-center-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;margin:0;border:0}.team-center-header{padding:18px}.team-center-header h2{font-size:22px}.team-center-tabs{padding:8px 12px}.team-center-tabs .button{padding:10px 12px}.team-center-body{padding:20px 16px 40px;height:calc(100dvh - 145px)}.team-fields{grid-template-columns:1fr}.team-my-profile{flex-wrap:wrap}.team-my-profile>.button{margin-left:88px}.team-section-heading{flex-wrap:wrap}.team-section-heading input{width:100%}.team-arrangements article{display:block}.team-arrangements .slot-actions{margin-top:13px}.team-editor{padding:16px}.team-differences{grid-template-columns:1fr}.team-differences dd{margin-bottom:12px}.case-primary-actions{flex-wrap:wrap}.team-table{min-width:580px}.home-agenda-items{grid-template-columns:1fr}.calendar-entry .button{padding:8px;font-size:12px}.team-center-body input,.team-center-body select,.team-center-body textarea{font-size:16px!important}}
@media(prefers-reduced-motion:reduce){.team-center-dialog,.team-center-dialog *{transition:none!important;animation:none!important}}

.calendar-client{grid-template-columns:minmax(0,1fr)}
.matter-subnav{display:flex;gap:6px;flex-wrap:wrap;border-top:1px solid var(--line,#dce5e9);padding:9px 0 0;margin:8px 0 0}.matter-subnav .button{font-size:13px;min-height:34px;padding:6px 12px;background:transparent;border-color:transparent}.matter-subnav [aria-current="page"]{color:#07596c;background:#eaf5f6;border-color:#c8e4e9}
.team-section-heading h1{font-size:32px;line-height:1.2;margin:6px 0 14px}.team-center-dialog{overflow:hidden}.team-center-body{height:auto;max-height:calc(86dvh - 154px)}body:has(.team-center-dialog[open]){overflow:hidden}.member-avatar+div{min-width:0}
@media(max-width:600px){.team-section-heading h1{font-size:28px}.team-center-body{max-height:calc(100dvh - 142px);padding-bottom:max(40px,env(safe-area-inset-bottom))}}
.team-center-dialog[open]{display:flex;flex-direction:column}.team-center-header,.team-center-tabs{flex-shrink:0}.team-center-body{flex:1;min-height:0;max-height:none;height:auto}
@media(max-width:600px){
  .team-my-profile{display:grid;grid-template-columns:70px minmax(0,1fr);gap:12px 16px;align-items:start}.team-my-profile>.button{grid-column:2;margin-left:0;justify-self:start}.team-my-profile p{overflow-wrap:anywhere}.team-my-profile>div{min-width:0}
  .team-center-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:7px 12px;overflow:visible}.team-center-tabs .button{white-space:normal;text-align:center;padding:9px 6px;font-size:12px;min-height:38px}
  .team-center-body{min-height:0;height:auto;max-height:none}.team-table{min-width:0}.team-time-summary thead,.billing-time-table thead{display:none}.team-time-summary,.team-time-summary tbody,.team-time-summary tr,.team-time-summary td,.billing-time-table,.billing-time-table tbody,.billing-time-table tr,.billing-time-table td{display:block}.team-time-summary tr,.billing-time-table tr{border-bottom:1px solid #dce5ea;padding:12px 0}.team-time-summary td,.billing-time-table td{border:0;padding:5px 0}.team-time-summary td:nth-child(2)::before{content:attr(data-label);display:inline;color:#637d8c;margin-right:8px}.team-time-summary td:nth-child(3)::before{content:attr(data-label);display:block;font-size:12px;color:#637d8c;margin-bottom:3px}.team-time-summary td:last-child .button,.billing-time-table td:last-child .button{min-height:42px}
}
.team-notice-preview{padding:18px 20px;border:1px solid #b9d5d8;border-left:3px solid #247782;background:#f7fbfb;border-radius:7px;margin:14px 0}.team-notice-preview h4{margin:0 0 10px;color:#416b76;font-size:12px}.team-notice-preview h3{margin:0 0 12px}.team-notice-preview .team-notice-body{white-space:pre-wrap;overflow-wrap:anywhere}

/* Compare the team first; open one person's settings beside the overview. */
.employee-policy-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start;margin-top:16px}
.employee-policy-workspace.has-editor{grid-template-columns:minmax(0,1fr) minmax(320px,400px)}
.employee-policy-overview{min-width:0;border:1px solid #dce7e4;border-radius:9px;background:#fff;overflow:hidden}
.employee-overview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border-bottom:1px solid #dce7e4}
.employee-overview-toolbar>div{display:flex;gap:12px;align-items:baseline}
.employee-overview-toolbar h4{margin:0;font-size:15px}
.employee-overview-toolbar span{font-size:12px;color:#617a80;white-space:nowrap}
.employee-overview-toolbar input{width:min(240px,45%);min-width:0;padding:8px 10px;border:1px solid #ceded9;border-radius:6px;font-size:13px}
.employee-policy-table{min-width:720px;font-size:13px}
.employee-policy-table th{padding:9px 12px}
.employee-policy-table td{padding:10px 12px;vertical-align:middle}
.employee-policy-table tr[aria-selected=true]{background:#edf6f2}
.employee-policy-table small{font-size:11px;margin-top:4px}
.employee-table-person{display:flex;gap:9px;align-items:center;min-width:145px}
.employee-table-person .member-avatar{width:32px;height:32px;font-size:11px}
.employee-week-strip{display:flex;gap:3px;white-space:nowrap}
.employee-week-strip span{display:grid;place-items:center;width:27px;height:27px;border:1px solid #e0e8e5;border-radius:4px;color:#8a9c99;font-size:10px;background:#f7f9f8}
.employee-week-strip .is-working{background:#dceee7;color:#18594c;border-color:#bad9cc;font-weight:650}
.employee-policy-editor.team-editor{margin:0;padding:16px;gap:12px;background:#fff;border-color:#b9d3ca;position:sticky;top:80px;min-width:0}
.employee-policy-editor h4{margin:0;font-size:13px;color:#58736e}
.employee-policy-editor h3{margin:0;font-size:17px}
.employee-policy-editor .team-fields{gap:10px 12px}
.employee-policy-editor .employee-weekdays{display:flex;align-items:center;gap:5px;flex-wrap:nowrap;padding:8px 0 0;border:0;margin:0;min-width:0}
.employee-weekdays legend{font-size:13px;margin-bottom:4px}
.employee-policy-editor .employee-weekdays label.check{position:relative;display:block;flex:1;min-width:0;margin:0;cursor:pointer}
.employee-weekdays input{position:absolute;opacity:0;width:1px;height:1px}
.employee-weekdays span{display:grid;place-items:center;min-height:40px;border:1px solid #ceded7;border-radius:5px;font-size:12px;color:#607870;background:#f7faf8}
.employee-weekdays input:checked+span{color:#fff;background:#275d53;border-color:#275d53;font-weight:650}
.employee-weekdays input:focus-visible+span{outline:2px solid #22879a;outline-offset:2px}
.employee-policy-editor .muted{font-size:12px;line-height:1.5;margin:0}
@media(max-width:1100px){.employee-policy-workspace.has-editor{grid-template-columns:minmax(0,1fr)}.employee-policy-editor.team-editor{position:static;grid-row:1}}
@media(max-width:600px){.employee-overview-toolbar{flex-wrap:wrap;gap:8px}.employee-overview-toolbar input{width:100%}.employee-policy-editor.team-editor{padding:12px}.employee-policy-editor .team-fields{grid-template-columns:1fr 1fr}.employee-weekdays span{min-height:44px;font-size:11px}}

.team-pending-profile{min-width:0;max-width:36rem}
.team-pending-profile>summary{display:list-item;cursor:pointer;width:fit-content}
.team-pending-profile-content{padding:8px 0}
@media(max-width:600px){.team-my-profile>.team-pending-profile{grid-column:2}}

.billing-setup{border:1px solid #d9e4ea;border-radius:8px;padding:18px;margin:22px 0}.billing-setup legend{font-weight:650;padding:0 8px}.billing-setup details{margin-top:16px}.billing-setup summary{cursor:pointer;font-size:14px}.billing-rate-list{display:grid;grid-template-columns:1fr 1fr;gap:14px 22px;margin-top:18px}.billing-rate-list label{display:flex!important;align-items:center;gap:12px;justify-content:space-between}.billing-rate-list label span{display:grid;gap:4px}.billing-rate-list label input{max-width:112px}.billing-rate-list small{color:#63808e;font-size:12px;font-weight:400}.invoice-card{border:1px solid #dce6ec;border-radius:9px;margin:14px 0;background:#fff}.invoice-card>summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:20px;gap:20px}.invoice-card>summary small{display:block;color:#5c7685;margin-top:6px;font-size:13px}.invoice-detail{padding:0 20px 22px;border-top:1px solid #e1e9ee}.invoice-totals{display:grid;grid-template-columns:1fr auto;gap:10px;margin:22px 0 22px auto;max-width:380px;font-size:14px}.invoice-totals dd{text-align:right;margin:0;font-variant-numeric:tabular-nums}.invoice-totals dt:nth-last-of-type(1),.invoice-totals dd:last-child{font-weight:700;padding-top:12px;border-top:1px solid #dce6eb}.payment-row{display:flex;justify-content:space-between;gap:18px;padding:20px 0;border-top:1px solid #e3eaee}.payment-row small{display:block;color:#5e7685;margin-top:7px}.payment-row form{display:grid;gap:10px;max-width:340px}.invoice-void{margin-top:22px;color:#6e7074}.invoice-void form{padding:15px 0}.record-void{color:#8b999f;background:#f8fafb}.time-description{display:block;max-width:330px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin-top:6px}.billing-setup [hidden]{display:none!important}@media(max-width:600px){.billing-rate-list{grid-template-columns:1fr}.invoice-card>summary{padding:16px;font-size:14px}.invoice-detail{padding:0 14px 18px}.payment-row{display:block}.payment-row form{margin-top:15px;max-width:none}.invoice-detail .team-table{min-width:0}.invoice-totals{max-width:none}.billing-setup{padding:14px}}
.payment-mail-source{white-space:pre-wrap;overflow-wrap:anywhere;max-height:340px;overflow:auto;font:14px/1.7 system-ui}.invoice-totals dd{overflow-wrap:anywhere}
.time-completeness{padding:20px;border:1px solid #cbdedb;border-left:4px solid #276f67;border-radius:9px;background:#f1f8f5;margin:24px 0;min-width:0}.time-completeness h3{margin:0 0 10px}.time-completeness p{line-height:1.7}.time-completeness .button{white-space:normal;max-width:100%}.time-confirm-receipt{font-size:14px;line-height:1.8;overflow-wrap:anywhere}.time-confirm-receipt .tag{display:inline-block;margin-top:7px;white-space:normal;line-height:1.5}.time-confirm-members{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.time-confirm-members article{border:1px solid #dce7eb;border-radius:8px;padding:16px;min-width:0}.time-confirm-members small{display:block;color:#627c88;margin-top:7px;line-height:1.6}.time-followup-create{border:1px solid #dce7eb;border-radius:8px;padding:16px;margin:15px 0}.time-followup-create summary{cursor:pointer;line-height:1.6}.time-followup{border:1px solid #e0e8eb;border-radius:8px;padding:18px;margin:14px 0;min-width:0}.time-followup header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}.time-followup .tag{white-space:normal;line-height:1.5}.time-followup p,.time-followup small{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.time-followup small{display:block;color:#607b88}.time-review-note{padding:10px 12px;border-left:3px solid #b3833b;background:#fff8ed;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;font-size:14px}.time-followup-reply{border-left:3px solid #76a69e;padding:8px 12px;margin:15px 0;background:#f2f8f6}.time-followup .team-editor{margin-bottom:0}.time-confirm-history{margin:16px 0}.time-followups .team-editor,.time-followups fieldset{min-width:0}.billing-time-table td{overflow-wrap:anywhere}
@media(max-width:600px){.time-confirm-members{grid-template-columns:minmax(0,1fr)}.time-completeness,.time-followup,.time-followup-create{padding:14px}.time-followups .team-editor{padding:14px}.time-followups input,.time-followups select,.time-followups textarea,.time-completeness button{font-size:16px}.time-followups .button{white-space:normal;max-width:100%}.time-review-note{max-width:100%;box-sizing:border-box}.time-confirm-receipt{font-size:14px}}

.billing-adjustment-help,.billing-invoice-review{padding:16px;border:1px solid #bcd8d4;border-radius:8px;background:#f2f8f6;margin:16px 0;line-height:1.7}.billing-adjustment-help output{display:block;font-weight:700;font-size:18px;color:#17534f}.billing-adjustment-help small{display:block;color:#506e79;margin-top:10px}.billing-invoice-review .check{align-items:flex-start}.billing-invoice-review p{overflow-wrap:anywhere}@media(max-width:600px){.billing-invoice-review,.billing-adjustment-help{padding:12px}.billing-invoice-review .slot-actions{flex-direction:column}.billing-invoice-review .button{white-space:normal;width:100%}}
.appointment-other-times{margin:14px 0;padding:12px;border:1px solid #d6e2e7;border-radius:7px}.appointment-other-times>summary{cursor:pointer;font-weight:600;line-height:1.6}.appointment-other-times .appointment-time-grid{margin-top:12px}
.billing-time-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.billing-time-totals>div{border:1px solid #d7e3e7;border-radius:9px;padding:14px}.billing-time-totals small,.billing-time-totals strong{display:block}.billing-time-totals strong{font-size:22px;margin-top:6px}.billing-time-filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.billing-time-filters label{flex:1;min-width:130px;margin:0}.billing-advanced{border-top:1px solid #d6e1e6;padding:18px 0;margin-top:24px}.billing-advanced>summary{cursor:pointer;font-weight:600}@media(max-width:700px){.billing-time-totals{grid-template-columns:1fr 1fr}.billing-time-filters{display:grid;grid-template-columns:1fr 1fr}.billing-time-filters label{min-width:0}}

.client-financial{max-width:1100px}.financial-filters{display:flex;gap:24px;flex-wrap:wrap;margin:24px 0 32px}.financial-filters label{display:grid;gap:8px;min-width:220px;max-width:100%;flex:1}.financial-filters select{width:100%;min-height:44px}.financial-section{margin:28px 0;border-top:1px solid #dfe7eb;padding-top:24px}.financial-record{margin:20px 0}.financial-agreement{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 0;border-bottom:1px solid #e6ecef}.financial-agreement strong{overflow-wrap:anywhere}.financial-agreement small{display:block;margin-top:6px;color:#617584}@media(max-width:600px){.financial-agreement{align-items:flex-start;flex-direction:column}.financial-filters{gap:14px}}

.financial-agreement{flex-wrap:wrap}.financial-agreement-preview{flex-basis:100%;min-width:0;max-width:760px}.financial-agreement-preview h3{font-size:18px;overflow-wrap:anywhere}.financial-agreement-preview canvas{max-width:100%;height:auto}.financial-agreement .slot-actions{flex-wrap:wrap}

.financial-collections{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:24px;align-items:start}.financial-collections .financial-section{min-width:0;margin-top:0}.financial-section>h2{font-size:20px;min-height:32px;margin:0 0 16px}.financial-collection{box-sizing:border-box;block-size:28rem;overflow:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;padding-inline-end:8px;overflow-wrap:anywhere}.financial-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;min-height:52px;border-top:1px solid #dfe7eb;padding-top:8px}.financial-pagination span{font-size:14px}.financial-collection:focus-visible{outline:2px solid #2465a5;outline-offset:2px}.financial-collection>.financial-record:first-child{margin-top:0}@media(max-width:850px){.financial-collections{grid-template-columns:minmax(0,1fr);gap:16px}.financial-collection{block-size:24rem}}

.billing-invoice-collection{box-sizing:border-box;block-size:28rem;overflow:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;padding-inline-end:8px;overflow-wrap:anywhere}.billing-invoice-collection:focus-visible{outline:2px solid #2465a5;outline-offset:2px}

.billing-case-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}
.time-followup-closed>summary{cursor:pointer;display:flex;align-items:center;gap:10px;min-height:36px}
.time-followup-closed>summary::before{content:'›';font-size:22px;font-weight:700}
.time-followup-closed[open]>summary::before{transform:rotate(90deg)}
.time-followup-closed>summary>span:first-of-type{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;flex:1}
.time-followup-closed>summary:focus-visible{outline:2px solid currentColor;outline-offset:4px;border-radius:4px}

.billing-timer-bar{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin:12px 24px 0;padding:16px 18px;border:1px solid #a8cbc1;border-left:4px solid #237061;border-radius:8px;background:#edf7f2;min-width:0}.billing-timer-bar>div:first-child{flex:1;min-width:190px}.billing-timer-bar strong,.billing-timer-bar small{display:block;overflow-wrap:anywhere}.billing-timer-bar small{font-size:13px;line-height:1.6;margin-top:5px;color:#496d63}.billing-timer-clock{font:650 24px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:nowrap;color:#164f43;font-variant-numeric:tabular-nums}.billing-timer-bar .slot-actions{margin:0;flex-wrap:wrap}.billing-case-timer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;margin-top:14px;border-top:1px solid #dce7e9;background:#f5f9f8;min-width:0}.billing-case-timer small{display:block;font-size:13px;line-height:1.6;color:#60776e;margin-top:4px}.billing-case-timer .button{flex-shrink:0}.appointment-timer-actions{margin-top:14px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.appointment-timer-actions small{font-size:13px;color:#57716a;line-height:1.6}.billing-timer-source{border-left:3px solid #9fbfb5;padding:8px 12px;margin:12px 0;background:#f4f8f6;overflow-wrap:anywhere}.billing-timer-source strong{font-size:14px}.billing-timer-source small{display:block!important;font-size:12px;line-height:1.7;margin-top:5px;color:#547067}.billing-timer-history article{padding:14px 0;border-top:1px solid #e0e9e7}.billing-timer-history>summary{cursor:pointer}.billing-timer-history article>small{color:#557568}.billing-timer-review{color:#876027;font-weight:600}
@media(max-width:600px){.billing-timer-bar{margin:10px 12px 0;padding:14px;gap:12px}.billing-timer-bar>div:first-child{flex-basis:100%;min-width:0}.billing-timer-bar .slot-actions{flex:1;justify-content:flex-end}.billing-timer-bar .button,.billing-case-timer .button{white-space:normal;max-width:100%}.billing-case-timer{padding:14px;align-items:flex-start;flex-direction:column}.appointment-timer-actions{align-items:flex-start;flex-direction:column}.billing-timer-source{padding:8px 10px}.billing-timer-source small{font-size:13px}.billing-timer-clock{font-size:22px}}

.storage-upload,.storage-prepared form{display:grid;gap:15px;margin:22px 0;padding:18px;border:1px solid #d7e5eb;border-radius:9px;background:#f4f9fb}.storage-upload h4{margin:0}.storage-upload p{font-size:14px;margin:0;line-height:1.6}.storage-upload label,.storage-prepared label{display:grid;gap:8px}.storage-upload input,.storage-prepared input,.storage-prepared select{max-width:100%;padding:10px;border:1px solid #cbdce4;border-radius:6px;background:white}.storage-upload button,.storage-prepared button{justify-self:start}.storage-prepared{margin:20px 0}.storage-prepared>summary{padding:12px 0;cursor:pointer;font-weight:600}

[data-storage-preview] img{display:block;max-width:100%;max-height:280px;object-fit:contain;border:1px solid #dce5e9;border-radius:6px}

.storage-drop-zone{border:2px dashed #8faec5;border-radius:10px;padding:24px!important;background:#fff;text-align:center;cursor:pointer;justify-items:center}.storage-drop-zone strong{font-size:17px}.storage-drop-zone span{color:#1763a0}.storage-drop-zone small{color:#536879}.storage-drop-zone:focus-within,.storage-drop-zone.storage-dragover{border-color:#1468ab;background:#eaf4ff}.case-drive.storage-dragover{outline:3px dashed #1468ab;outline-offset:5px}.storage-drop-zone input{width:100%;box-sizing:border-box;cursor:pointer}

.storage-queue{list-style:none;padding:0;margin:0;display:grid;gap:8px}.storage-queue li{display:grid;gap:4px;border-bottom:1px solid #ccd9e3;padding:8px 0;overflow-wrap:anywhere}.storage-queue [data-status=error]{color:#a33b20}.storage-queue [data-status=saved]{color:#23683e}

.storage-queue{max-height:380px;overflow:auto}.storage-queue img{max-height:130px}

.storage-file-review{display:grid;gap:10px;margin:10px 0;padding:14px;background:white;border:1px solid #d2dfe8;border-radius:8px}.storage-file-review pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto;font:14px/1.6 system-ui}.storage-file-review p{font-size:13px}.storage-file-review select{max-width:100%;width:100%;padding:10px;border:1px solid #cbdce4;border-radius:6px;background:white}.storage-file-review .check{display:flex;align-items:flex-start}.storage-file-review input[type=checkbox]{width:auto;flex:none}.storage-queue:has(.storage-file-review){max-height:650px}

/* Keep long file names separate from metadata and access controls. */
.storage-file-list>li>div{min-width:0;width:100%;display:grid;gap:8px}.storage-file-list>li>div>a{font-size:16px;line-height:1.5;overflow-wrap:anywhere}.storage-file-list>li>div>small{display:block;font-size:14px;line-height:1.5;color:var(--bc-muted,#536879)}.storage-file-list details>summary{cursor:pointer;padding:8px 0;min-height:44px;box-sizing:border-box}.storage-file-list [data-form="storage-share"]{max-width:640px;display:grid;gap:12px;margin:8px 0 0}.storage-file-list [data-form="storage-share"] fieldset{margin:0}.storage-file-list [data-form="storage-share"] .button{justify-self:start;min-height:44px}

.account-password-page{max-width:680px;padding-top:32px}.account-password-page .panel{padding:30px}.account-password-page form,.password-reset-panel form{display:grid;gap:16px}.account-password-page form>label,.password-reset-panel form>label{display:grid;gap:7px}.account-password-page form>.muted,.password-reset-panel form>.muted{margin:0}.password-account{display:grid;gap:5px;background:var(--wash,#f1f5f5);border-radius:8px;padding:14px 16px;overflow-wrap:anywhere}.password-account span{color:var(--muted,#52676a)}.account-password-management{display:grid;gap:20px}.account-password-management>.panel{margin:0}.password-reset-panel{border:2px solid var(--brand,#176b70);max-width:760px;width:100%}.password-account-list li{gap:16px;flex-wrap:wrap}.password-account-list li>div{min-width:0;flex:1 1 250px;overflow-wrap:anywhere}.password-account-list small{display:block;margin-top:5px}.password-required{color:#795900}.account-password-management time{font-size:.875rem;white-space:nowrap}@media(max-width:600px){.account-password-page .panel{padding:20px}.account-password-management .line{align-items:flex-start;gap:12px;flex-direction:column}.password-reset-panel{padding:20px}.password-account-list .button{width:100%}}

.events.directory-accounts > li, .events.directory-requests > li { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); gap:12px; align-items:center; }
.events.directory-requests > li {grid-template-columns:minmax(0,1fr) minmax(0,.7fr) minmax(0,1.3fr)}
.events.directory-accounts > li > *, .events.directory-requests > li > * {min-width:0;overflow-wrap:anywhere;text-align:start}
.events.directory-accounts .button {justify-self:start;white-space:normal}
@media(max-width:700px){.events.directory-accounts > li,.events.directory-requests > li {grid-template-columns:minmax(0,1fr);gap:6px}}

.inbox-case-list,.inbox-case-list ul{list-style:none;margin:0;padding:0}
.inbox-case-list>li{border-top:1px solid #dde4eb}
.inbox-case-list summary{display:flex;align-items:center;gap:12px;min-height:44px;padding:4px 16px;cursor:pointer}
.inbox-case-list summary::before{content:'▸'}
.inbox-case-list details[open]>summary::before{content:'▾'}
.inbox-case-list strong{min-width:0;overflow-wrap:anywhere}
.inbox-preview{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.inbox-case-list details ul{max-height:18rem;overflow:auto;padding:0 16px 6px 36px}
.inbox-case-list details li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:3px 0}
.inbox-case-list details li button{min-width:0;text-align:start;white-space:normal;overflow-wrap:anywhere}
@media(max-width:700px){.inbox-case-list summary{flex-wrap:wrap;gap:5px 8px}.inbox-case-list .inbox-preview{display:none}.inbox-case-list details li{flex-wrap:wrap}}

.inbox-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;padding:12px 16px}
.inbox-sources{display:inline-flex;flex-wrap:wrap;align-items:center;gap:2px;background:#edf2f6;border-radius:10px;padding:3px}
.inbox-toolbar .inbox-sources button{background:transparent;color:#344d60;border:1px solid transparent;border-radius:7px;padding:6px 12px;min-height:36px;box-shadow:none}
.inbox-toolbar .inbox-sources button[aria-pressed=true]{background:white;color:#174e83;border-color:#c4d3e1;box-shadow:0 1px 3px #183d5e1c;font-weight:650}
.inbox-toolbar .inbox-unread-switch{display:inline-flex;align-items:center;gap:8px;margin-inline-start:auto;border:0;background:transparent;color:#344d60;min-height:38px}
.inbox-unread-switch::before{content:'';width:32px;height:18px;border-radius:12px;background:radial-gradient(circle at 9px 50%,white 6px,transparent 7px),#627587}
.inbox-unread-switch[aria-checked=true]::before{background:radial-gradient(circle at 23px 50%,white 6px,transparent 7px),#235f99}
.inbox-toolbar button:focus-visible{outline:2px solid #175f9a;outline-offset:2px}
@media(max-width:480px){.inbox-toolbar{padding:8px}.inbox-toolbar .inbox-sources button{padding:5px 8px}}

.admin-section-tabs{display:flex;gap:6px;overflow-x:auto;white-space:nowrap;border-bottom:1px solid #d8e3e8;margin:0 0 20px;padding:0 0 5px;scrollbar-width:thin}.admin-section-tabs>.button{flex:0 0 auto;min-height:44px;border-radius:5px 5px 0 0;padding:10px 14px}.admin-section-tabs>.button[aria-current=page]{color:#174f7c;background:#edf3f8;border-bottom:3px solid #28649a;font-weight:650}.admin-list-pages{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;flex-wrap:wrap}.admin-list-pages>span{font-size:13px;color:#566b77}.security-self-actions{display:flex;gap:12px;flex-wrap:wrap}.permission-layout>.panel{margin-top:0}.admin-section-tabs:focus-within{scroll-behavior:smooth}
@media(max-width:740px){.docket-shell .firm-primary-nav:has([data-action=firm-case-files]){grid-template-columns:repeat(5,minmax(0,1fr))}.docket-shell .firm-primary-nav:has([data-action=firm-case-files]) .desk-nav-link.button{flex-direction:column;gap:4px;text-align:center;font-size:11px;min-height:52px}.admin-section-tabs{max-width:100%;margin-bottom:14px}.admin-section-tabs>.button{font-size:13px;padding:9px 12px}.permission-layout .permission-members li{gap:10px}.permission-layout .permission-members li>div{min-width:0;overflow-wrap:anywhere}}

.admin-list-pages>label{display:flex;align-items:center;gap:8px;font-size:13px;white-space:nowrap}.admin-list-pages select{width:76px;min-height:40px;margin:0;padding:6px 22px 6px 8px}

.client-handoff-guide{white-space:pre-line;overflow-wrap:anywhere}

.password-eye-field{position:relative}
.password-eye-field input{width:100%;box-sizing:border-box;padding-inline-end:3rem}
.password-eye-field .password-eye{position:absolute;inset-inline-end:.2rem;top:50%;transform:translateY(-50%);width:2.5rem;height:2rem;display:grid;place-items:center;background:transparent;border:0;color:inherit;cursor:pointer}
.password-eye[aria-pressed="false"] .eye-slash{display:none}

.password-eye-field{inline-size:min(100%,580px);max-inline-size:100%}
.password-eye-field input{display:block;margin:0}
.account-directory details form{max-width:580px;margin:4px 0 12px}

.account-entry-card .entry-password{display:grid;gap:4px}
.account-entry-card form .password-eye-field input{padding-inline-end:3rem}

.account-directory-actions {
 display:flex;
 flex-wrap:wrap;
 gap:12px;
 margin:16px 0 24px;
}
.account-directory-actions > .button {
 min-inline-size:10rem;
 min-block-size:44px;
 justify-content:center;
}
.account-invite-receipt {overflow-wrap:anywhere}
.account-action-dialog {
 box-sizing:border-box;
 width:min(36rem, calc(100% - 24px));
 max-height:calc(100dvh - 24px);
 overflow:auto;
 padding:clamp(16px, 4vw, 28px);
 border:1px solid #d5e0e9;
 border-radius:12px;
 background:#fff;
 color:inherit;
}
.account-action-dialog::backdrop {background:#142a3b66}
.account-action-dialog h2 {margin:0 0 16px}
.account-action-dialog form > .button {margin:8px 8px 0 0}
.account-action-dialog [hidden] {display:none}
@media(max-width:480px) {
 .account-directory-actions > .button {flex:1 1 10rem}
}

.workbench-home{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0}.workbench-home .ref-widget{min-width:0}.workbench-home li{overflow-wrap:anywhere}.workbench-detail{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}.assignment-rate{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:8px;margin:0 0 18px 28px;font-size:13px}.assignment-rate small{grid-column:1/-1}.team-center-tabs{flex-wrap:wrap}.team-center-body input,.team-center-body textarea{max-width:100%;min-width:0}@media(max-width:700px){.workbench-home{grid-template-columns:1fr}.assignment-rate{margin-left:0}.team-center-tabs .button{min-height:44px}}
.workbench-home .ref-widget{order:0;grid-column:auto;align-self:start}.workbench-home .ref-widget-body{min-height:0;border:1px solid #d4dfe5;border-radius:11px;padding:14px}.workbench-home .ref-widget-body>p{margin:0;line-height:1.6}.workbench-home .desk-queue:empty{display:none}.workbench-home .ref-compact-list{padding:0}.workbench-home .desk-queue{margin:0;padding:0}.workbench-home .ref-widget:last-child{grid-column:1/-1}
.workbench-home>.ref-widget:nth-child(n){order:0}

.idle-warning{width:min(460px,calc(100vw - 32px));max-height:90dvh;overflow:auto;padding:26px;border:1px solid #d6e1dc;border-radius:14px;color:#173641;background:#fff;box-shadow:0 20px 60px #17364140}.idle-warning::backdrop{background:#17364188}.idle-warning h2{font-size:23px;margin-bottom:14px}.idle-warning p{line-height:1.7}.idle-warning .idle-countdown{font-size:40px;font-variant-numeric:tabular-nums;font-weight:700;margin:18px 0}.idle-warning>div{display:flex;gap:12px;flex-wrap:wrap}.idle-warning .button{min-height:44px}.idle-warning [data-idle-error]{color:#8f371e;font-size:14px}.idle-warning [data-idle-error]:empty{display:none}

.contract-work {--ct-ink:#163f48;--ct-line:#d5e0df;--ct-paper:#fff;--ct-pale:#f0f6f4;color:#223c45}
.contract-work>nav {display:flex;flex-wrap:wrap;gap:.5rem;border-bottom:1px solid var(--ct-line);padding:.5rem 0 .85rem;margin-bottom:1rem}
.contract-work>nav .button {padding-inline:1.15rem}
.contract-work .contract-library,.contract-work .contract-editor {max-width:68rem;margin-inline:auto}
.contract-work label {display:grid;align-content:start;gap:.375rem;color:#294851;font-size:.91rem;font-weight:600;min-width:0}
.contract-work :is(input:not([type=file]),select,textarea) {width:100%;min-width:0;padding:.6rem .75rem}
.contract-work input,.contract-work select,.contract-work button {min-height:42px}
.contract-work textarea {resize:vertical;line-height:1.55}
.contract-editor {display:grid;gap:1rem}
.contract-section,.contract-library,.contract-review {border:1px solid var(--ct-line);border-radius:12px;background:var(--ct-paper);box-shadow:0 3px 12px #183e4608}
.contract-work .contract-section>h2 {margin:0;padding:.9rem 1.3rem;border-block-end:1px solid var(--ct-line);border-inline-start:4px solid #376e72;background:#eff5f4;border-radius:11px 11px 0 0;color:var(--ct-ink);font-size:1.08rem}
.contract-work .contract-section:nth-of-type(2)>h2 {background:#f7f4ee;border-inline-start-color:#a28250}
.contract-fields,.contract-compose {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.05rem 1.25rem}
.contract-fields,.contract-library {padding:clamp(.9rem,2vw,1.5rem)}
.contract-wide,.contract-compose>* {grid-column:1/-1}.contract-wide:empty {display:none}
.contract-picker {display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:.75rem;padding:.85rem;background:var(--ct-pale);border-radius:8px}
.contract-picker [data-billing-label] {grid-column:1/-1}
.contract-fee-row {display:grid;grid-template-columns:minmax(10rem,2.3fr) minmax(7rem,1fr) minmax(7rem,1fr) auto;align-items:end;gap:.65rem;padding:.8rem 0;border-bottom:1px solid var(--ct-line)}
.contract-fee-row [data-fee-amount],.contract-fee-foot output {font-variant-numeric:tabular-nums;text-align:right}
.contract-fee-foot,.contract-review,.contract-card header,.contract-inline,.contract-library [data-contract-search],.contract-review [data-contract-review] {display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}
.contract-fee-foot,.contract-card header {justify-content:space-between}
.contract-fee-foot output {font-weight:650;color:var(--ct-ink)}
.contract-review {padding:1rem 1.3rem;justify-content:flex-end}.contract-review [data-contract-review] {margin-inline-end:auto}
.contract-review [data-contract-review]:empty,.contract-work [data-contract-status]:empty {display:none}
.contract-template-save {border-top:1px solid var(--ct-line);padding-top:.75rem}.contract-template-save summary {cursor:pointer;color:var(--ct-ink);font-weight:600}.contract-inline {margin-top:.65rem;align-items:end}
.contract-library [data-contract-search] {align-items:end;border-bottom:1px solid var(--ct-line);padding-bottom:1rem}.contract-library [data-contract-search]>label,.contract-inline>label {flex:1 1 15rem}
.contract-card {overflow-wrap:anywhere;padding:1rem 0;border-block-end:1px solid var(--ct-line)}.contract-card header strong {font-size:1.06rem;color:var(--ct-ink)}.contract-card header span {background:var(--ct-pale);border-radius:5px;color:#2e615e;padding:.15rem .6rem;font-weight:600;font-size:.875rem}
.contract-card p:empty {display:none}.contract-card small {color:#516770}.contract-card .slot-actions {justify-content:flex-start;flex-wrap:wrap}
@media(max-width:720px){.contract-picker {grid-template-columns:minmax(0,1fr) auto}.contract-picker>label:last-of-type {grid-column:1/-1}.contract-fee-row {grid-template-columns:1fr 1fr}.contract-fee-row>label:first-child {grid-column:1/-1}.contract-fee-row>button {justify-self:start}.contract-fields {gap:.8rem}.contract-review [data-contract-review] {width:100%}}
@media(max-width:540px){.contract-fields,.contract-compose {grid-template-columns:minmax(0,1fr)}.contract-work>nav .button {flex:1}.contract-section>h2 {padding:.8rem 1rem}.contract-review>button {width:100%}.contract-card header {align-items:start}}
.contract-result-grid {display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1.25fr) minmax(0,1fr) minmax(7rem,.8fr);gap:1rem}
.contract-result-cell {display:grid;align-content:start;justify-items:start;gap:.2rem;min-width:0}.contract-result-cell small {color:#576b71;font-weight:550}.contract-result-cell>span:not(.contract-state) {font-size:.9rem}
.contract-state {padding:.15rem .6rem;border-radius:5px;background:#edf4f1;color:#25574f;font-size:.875rem;font-weight:650}
.contract-empty {display:grid;justify-items:center;gap:.7rem;padding:clamp(2rem,6vw,4rem) .5rem}.contract-empty>span {display:grid;place-items:center;width:3.25rem;height:3.25rem;border-radius:14px;background:#e9f2ef;color:#315e63}.contract-empty svg {width:1.65rem;height:1.65rem}.contract-empty h2 {margin:0}.contract-work>p.muted {border-inline-start:3px solid #b79759;padding:.3rem .8rem}
@media(max-width:740px){.contract-result-grid {grid-template-columns:repeat(2,minmax(0,1fr))}}

.site-evaluation-label{position:fixed;right:14px;bottom:12px;z-index:110;background:#fff8e9;color:#674f24;border:1px solid #dcc28e;box-shadow:0 2px 8px #142b4012;border-radius:5px;padding:4px 8px;font:11px/1.3 system-ui;pointer-events:none}

.expense-heading,.expense-detail>header{display:flex;align-items:center;justify-content:space-between;gap:16px}.expense-heading h1{margin:0;font-size:25px}.expense-workspace{display:grid;grid-template-columns:minmax(320px,1.1fr) minmax(340px,1fr);gap:18px;align-items:start}.expense-list,.expense-editor,.expense-detail{background:white;border:1px solid #dce3ec;border-radius:9px;padding:16px;min-width:0}.expense-list{padding:0;overflow:auto}.expense-list .button{text-align:left}.expense-list .is-selected{background:#e7f0fb}.expense-editor,.expense-actions form{display:grid;gap:12px}.expense-editor h2,.expense-detail h2{font-size:18px;margin:0}.expense-flags{display:flex;gap:14px;flex-wrap:wrap}.expense-editor label{display:grid;gap:5px;font-size:13px}.expense-editor label.check{display:flex;align-items:center}.expense-detail dl{display:grid;grid-template-columns:auto 1fr;gap:8px 20px;font-size:14px}.expense-detail dd{margin:0}.expense-detail h3{font-size:14px;margin:18px 0 8px}.expense-receipt{display:block;padding:7px 0;color:#024f94;overflow-wrap:anywhere}.expense-actions{display:grid;gap:16px;margin:16px 0}.expense-actions form{padding-top:14px;border-top:1px solid #dce3ec}.expense-detail details{font-size:12px}.expense-workspace>aside{min-width:0}@media(max-width:1050px){.expense-workspace{grid-template-columns:1fr}.expense-workspace>aside:has(.expense-editor){grid-row:1}}@media(max-width:600px){.expense-list table{min-width:420px}.expense-editor .team-fields{grid-template-columns:1fr}.expense-heading h1{font-size:21px}}

.expense-review-note{margin:16px 0;padding:14px 16px;border-left:3px solid #b68b49;background:#faf6ee;border-radius:5px}.expense-review-note p{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}

.expense-list .team-table{table-layout:fixed;min-width:0}.expense-list .team-table th:nth-child(2),.expense-list .team-table td:nth-child(2){width:92px;white-space:nowrap}.expense-list .team-table th:nth-child(3),.expense-list .team-table td:nth-child(3){width:100px;white-space:nowrap}.expense-list .team-table .button{white-space:normal;overflow-wrap:anywhere;padding:4px 0;line-height:1.55}.expense-list .team-table small{overflow-wrap:anywhere}.expense-editor textarea{width:100%;min-height:90px;resize:vertical;box-sizing:border-box}.expense-workspace>aside{max-height:none;overflow:visible}.expense-detail>header{align-items:flex-start}.expense-detail>header h2{min-width:0;overflow-wrap:anywhere}.expense-detail>header .tag{flex-shrink:0;white-space:nowrap}

.immigration-timeline{display:block;max-width:1320px;margin-inline:auto;width:100%;min-width:0}.timeline-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap}.timeline-heading h1,.timeline-heading h2{margin:0 0 8px}.timeline-heading p{margin:4px 0 14px}.timeline-connection,.timeline-notice{padding:18px 22px;margin:18px 0;border:1px solid #c9d9e4;border-radius:12px;background:#f0f6fa}.timeline-connection p{max-width:85ch;margin:8px 0;line-height:1.6}.timeline-notice{background:#fff6db;border-color:#dfc679}.timeline-section{margin:28px 0}.timeline-trackers{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:16px}.timeline-tracker{background:#fff;border:1px solid #d8e1e7;border-radius:12px;padding:20px;min-width:0}.timeline-tracker header,.timeline-event header{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap}.timeline-tracker p,.timeline-event p{overflow-wrap:anywhere}.timeline-tag{font-size:12px;line-height:1.5;padding:3px 8px;border-radius:6px;background:#eaf1f6;color:#344e61;align-self:flex-start}.timeline-tracker dl{font-size:13px}.timeline-tracker dl div{display:grid;grid-template-columns:100px 1fr;gap:8px;margin:8px 0}.timeline-tracker dd{margin:0}.timeline-tracker details{margin-top:16px}.timeline-tracker summary{cursor:pointer}.timeline-events{list-style:none;padding:0;margin:24px 0}.timeline-event{display:grid;grid-template-columns:125px 1fr;gap:24px;padding:0 0 25px;position:relative}.timeline-event article{border-left:2px solid #b7cddd;padding:0 0 16px 24px;min-width:0}.timeline-event h3{margin:0 0 5px;font-size:17px}.timeline-date{font-weight:650;color:#38566c;font-variant-numeric:tabular-nums;padding-top:2px}.timeline-empty{padding:28px;border:1px dashed #b9cad6;border-radius:12px;background:#f8fafc}.timeline-empty h3{margin:0 0 10px}.timeline-empty p{max-width:80ch;line-height:1.7}.timeline-editor{margin:24px 0;max-width:850px}.timeline-editor form{display:grid;gap:16px}.timeline-editor label{display:grid;gap:7px}.timeline-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.timeline-editor .timeline-consent{display:flex;align-items:flex-start;line-height:1.6}.timeline-consent input{width:auto;margin-top:5px}.timeline-warning{padding:12px;background:#fff0ec;color:#973922;border-radius:6px}.timeline-withdrawn{opacity:.7}.timeline-overview-link{margin:0 0 20px;padding:16px 20px;border:1px solid #cbdce6;border-radius:10px;background:#f6fafd}.timeline-overview-link p{margin:6px 0 12px}@media(max-width:650px){.timeline-event{grid-template-columns:1fr;gap:9px}.timeline-event article{padding-left:17px}.timeline-fields{grid-template-columns:1fr}.timeline-heading .slot-actions{width:100%}.timeline-heading .slot-actions .button{flex:1}.timeline-tracker{padding:16px}.timeline-connection,.timeline-empty{padding:18px}.timeline-tracker dl div{grid-template-columns:90px 1fr}}

/* A single uninterrupted axis; dates and event labels are the default view. */
.timeline-simple{max-width:1000px;padding-top:20px}.timeline-simple>.timeline-heading{align-items:center;margin-bottom:24px}.timeline-simple>.timeline-heading h1{font-size:22px;margin:0}.timeline-simple>.timeline-heading .slot-actions{align-items:center;gap:8px}.timeline-tools{position:relative}.timeline-tools>summary{list-style:none;cursor:pointer;font-size:24px;letter-spacing:2px;padding:0 12px;line-height:38px;border-radius:6px}.timeline-tools>summary::-webkit-details-marker,.timeline-node-details>summary::-webkit-details-marker{display:none}.timeline-tools>summary:hover{background:#e6eff4}.timeline-tool-panel{position:absolute;right:0;top:44px;z-index:8;width:min(440px,calc(100vw - 48px));max-height:65vh;overflow:auto;padding:18px;background:white;border:1px solid #d5e1e8;border-radius:8px;box-shadow:0 8px 24px #203c531a}.timeline-tool-panel .timeline-tracker{margin-top:12px}.timeline-update-count{font-size:13px;color:#426d86}.timeline-line{position:relative;list-style:none;margin:0 0 32px 10px;padding:4px 0 4px 27px;min-height:120px}.timeline-line::before{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:#a5bfce}.timeline-node{position:relative;padding:8px 0 25px;margin:0;min-width:0}.timeline-node::before{content:"";position:absolute;left:-31px;top:15px;width:10px;height:10px;background:#24738c;border:2px solid #edf5f8;border-radius:50%;box-sizing:content-box}.timeline-node-details>summary{list-style:none;display:grid;grid-template-columns:115px minmax(0,1fr);gap:18px;cursor:pointer;min-height:28px;align-items:baseline}.timeline-node-date{font-size:14px;color:#587080;font-variant-numeric:tabular-nums}.timeline-node-title{font-size:16px;font-weight:550;line-height:1.6;overflow-wrap:anywhere}.timeline-node-details>summary:hover .timeline-node-title{text-decoration:underline;text-underline-offset:4px}.timeline-node-details>summary:focus-visible,.timeline-tools>summary:focus-visible{outline:2px solid #24738c;outline-offset:4px}.timeline-node-content{margin:8px 0 0 133px;font-size:14px;line-height:1.65;overflow-wrap:anywhere}.timeline-node-content>p{margin:5px 0}.timeline-node-empty{font-size:14px;color:#718695;padding-top:8px}.timeline-node-empty::before{background:#a5bfce}.timeline-simple .timeline-editor{margin:0 0 24px}@media(max-width:650px){.timeline-simple>.timeline-heading .slot-actions{width:auto}.timeline-simple>.timeline-heading .slot-actions .button{flex:initial}.timeline-node-details>summary{grid-template-columns:1fr;gap:3px}.timeline-node-content{margin-left:0}.timeline-node{padding-bottom:23px}.timeline-node-title{font-size:15px}.timeline-line{margin-left:7px;padding-left:24px}.timeline-node::before{left:-28px}.timeline-tool-panel{right:-2px}}

.timeline-node-row{display:flex;align-items:flex-start;gap:12px}.timeline-node-row>.timeline-node-details{flex:1;min-width:0}.timeline-node-row>.button{border:0;background:transparent;color:#507083;min-width:32px;min-height:32px;padding:2px 7px;font-size:20px;line-height:1}.timeline-node-row>.button:hover{background:#e5eff4;color:#154c68}

.timeline-simple .timeline-tool-panel{width:205px;max-width:calc(100vw - 40px);padding:6px;overflow:visible;max-height:none;border-color:#e7edf1;border-radius:10px;box-shadow:0 6px 24px #18334514}.timeline-simple .timeline-tool-panel>.button{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:40px;padding:8px 10px;border:0;background:transparent;box-shadow:none;text-align:left;font-size:13px;font-weight:400;white-space:nowrap}.timeline-simple .timeline-tool-panel>.button:hover{background:#f2f6f8}.timeline-check{display:inline-block;width:16px;color:#23748b;font-weight:650}.timeline-editor-tabs{display:flex;gap:16px;margin-bottom:20px}.timeline-editor-tabs>.button{border:0;border-bottom:2px solid transparent;border-radius:0;background:none}.timeline-editor-tabs>[aria-pressed=true]{border-bottom-color:#23748b;color:#23748b}.timeline-receipt-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;border-top:1px solid #e7edf1}.timeline-receipt-row small{display:block;margin-top:5px;color:#6e7e87}.timeline-receipt-row>.button{border:0;background:none}

.timeline-line.timeline-future::before { background: transparent; width: 0; border-left: 2px dashed #738b99; }
.timeline-line.timeline-uncertain::before { display: none; }

.publication-inbox { margin-block: 1rem; }
.publication-inbox summary { cursor: pointer; font-weight: 600; }
.publication-inbox ul { padding: 0; list-style: none; }
.publication-inbox li + li { border-top: 1px solid var(--bc-divider); }
.publication-link { display: grid; grid-template-columns: 1rem 1fr; width: 100%; padding: .75rem; text-align: start; color: var(--bc-ink); background: white; border: 0; cursor: pointer; font: inherit; }
.publication-link small { grid-column: 2; justify-self: end; color: var(--bc-muted); }
.publication-dot { color: #185caa; }

.security-page{max-width:760px;margin:32px auto;padding:0 20px}.security-page .panel{padding:28px}.security-page code{display:block;padding:12px;background:#f1f5f5;overflow-wrap:anywhere;user-select:all}.security-codes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0;list-style:none}.security-codes code{font-size:13px}.security-events{list-style:none;padding:0}.security-events li{padding:12px 0;border-bottom:1px solid #e5ebed}.security-events small{display:block;overflow-wrap:anywhere}.security-page input{max-width:100%}.security-page details{margin:18px 0}.security-page summary{cursor:pointer}.security-page form{display:grid;gap:12px}@media(max-width:480px){.security-codes{grid-template-columns:1fr}.security-page .panel{padding:20px}}

.security-qr {width:min(220px,100%);margin:16px auto;background:#fff}
.security-qr svg {width:100%;height:auto;display:block}
.security-page .security-manual {margin:12px 0 20px}
.security-manual .button {margin:6px 0;padding-inline:0}
.security-page .security-apple-setup {display:inline-flex;align-items:center;min-height:44px;margin:4px 0 0}
.security-page .security-apple-help {margin:6px 0 14px;color:#496178;font-size:.9rem}
.security-page .security-log-search{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}
.security-log-search label{min-width:0}.security-log-search input,.security-log-search select{width:100%;box-sizing:border-box}
.security-log-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:16px 0}
@media(max-width:560px){.security-page .security-log-search{grid-template-columns:1fr}}

/* Reference-led staff workspace: light navigation, compact records, focused form steps. */
.docket-shell{--docket-navy:#062f40;--docket-blue:#0069c8;--desk-text:#123747;--desk-faint:#597184;--desk-border:#d7dfe4;grid-template-columns:244px minmax(0,1fr);color:var(--desk-text)}
.docket-shell .firm-live-sidebar{background:#f7f8f9;color:#123747;border-right:1px solid #d7dfe4;padding:24px 22px;scrollbar-width:thin}
.docket-identity{border:0;gap:23px;padding:0;margin-bottom:31px}.docket-identity .brand{color:#123747}.docket-identity .brand strong{font-size:14px;line-height:1.45}.docket-identity .brand small,.docket-identity .desk-sidebar-user small{color:#5a7285}.docket-identity .monogram{background:#fff0e9;color:#d74718;border:1px solid #f1ccbb;border-radius:7px}.docket-identity .desk-avatar{background:#9b52b1;font-size:14px;width:39px;height:39px}.docket-identity .desk-sidebar-user strong{font-weight:500;color:#073d53}.docket-identity .docket-create.button{background:#ec5423;border-color:#ec5423;border-radius:9px;min-height:40px;font-size:14px;gap:19px;justify-content:flex-start}
.docket-identity .docket-create.button:hover{background:#cc4216}.docket-shell .desk-nav-caption{color:#5f7688;padding-left:14px;margin-bottom:5px;font-size:13px}.docket-shell .desk-nav-link.button{color:#0e384b;font-size:14px;font-weight:400;min-height:40px;border-radius:10px;gap:11px;padding:8px 14px}.docket-shell .desk-nav-link.button svg{width:21px;height:21px;stroke-width:1.35;flex-shrink:0}.docket-shell .desk-nav-link.button:hover,.docket-shell .desk-nav-link.button[aria-current=page]{background:#e9edef;border-color:transparent;color:#0a3548}.docket-shell .desk-nav-link.button[aria-current=page]{font-weight:650}.docket-shell .firm-extra-nav{border:0;margin-top:25px;padding-top:0}.docket-shell .firm-extra-nav .desk-nav-link{font-size:13px}.docket-shell .firm-mobile-tools summary{color:#174257}
.docket-shell .matter-mast{position:sticky;top:0;z-index:20;background:#fff;border-color:#d6dfe5;margin:0 30px;border-radius:0 0 14px 14px}.docket-shell .matter-mast .mast-inner{min-height:53px;padding:5px 10px;max-width:none}.docket-shell .matter-global-search label{background:#fff;border:1px solid #d6dfe5;border-radius:9px}.docket-shell .matter-global-search{max-width:420px}.docket-shell .mast-tools .button{font-size:12px;padding-inline:9px;min-height:34px}.docket-shell .desk-content .layout{max-width:none;padding:26px 30px 40px}.docket-shell .docket-heading h1,.docket-shell .desk-heading h1,.docket-shell .matter-title h1,.docket-shell .auto-heading h1,.docket-shell .auto-heading h2{font-family:inherit;font-size:24px;line-height:1.3;letter-spacing:-.025em;font-weight:650;color:#052e3e}.docket-shell .docket-heading p,.docket-shell .desk-heading p{font-size:13px;line-height:1.6;margin-top:6px}.docket-shell .docket-heading{margin-bottom:26px}.docket-shell .kicker{font-size:11px;font-weight:550;letter-spacing:.06em}.docket-shell .button.primary{background:#052e3e;border-color:#052e3e;border-radius:6px;font-size:13px}.docket-shell .button.primary:hover{background:#0c5269}.docket-shell .button.ref-create-outline{border:1px solid #ee5a2e;color:#c84115;border-radius:9px;background:#fff;min-width:170px;min-height:40px}.docket-shell .button.ref-create-outline:hover{background:#fff4ef}.docket-shell .desk-link,.docket-shell .ref-name-link,.docket-shell .desk-case-open{color:#0069c8}.docket-shell .desk-link:hover,.docket-shell .ref-name-link:hover{color:#004786;text-decoration:underline;text-underline-offset:3px}.docket-shell .ref-name-link{background:transparent;border:0;min-height:30px;justify-content:flex-start;font-size:14px;font-weight:400;padding:3px 0;text-align:left;white-space:normal}
.ref-dashboard-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:28px;align-items:start}.ref-dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px 20px;background:#f6f8f9;padding:25px 25px 22px;border-radius:16px;align-items:start}.ref-widget{min-width:0;display:flex;flex-direction:column}.ref-widget>header{margin-bottom:12px}.ref-widget h2,.ref-activity h2{font-size:14px;font-weight:650;color:#082e40;margin:0}.ref-widget h2:after,.ref-activity h2:after{content:"";display:block;width:38px;height:2px;background:#ee6a3e;margin-top:5px}.ref-widget-body{background:#fff;border:1px solid #d4dfe5;border-bottom:0;border-radius:11px 11px 0 0;min-height:260px;overflow:hidden;min-width:0}.ref-widget>footer{border:1px solid #d4dfe5;border-radius:0 0 11px 11px;background:#fff;padding:3px 14px;min-height:40px}.ref-widget>footer .button{font-size:12px;padding:5px 0;min-height:30px}.ref-widget.ref-wide{grid-column:span 2}.ref-empty{min-height:258px;padding:26px 22px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;color:#60768a;font-size:14px;line-height:1.65}.ref-empty svg{width:25px;height:25px;color:#57bdd0;margin-bottom:8px}.ref-empty p{max-width:260px;margin:8px 0}.ref-compact-list{list-style:none;padding:10px 16px;margin:0}.ref-compact-list li{padding:6px 0;border-bottom:1px solid #d9e1e6;min-height:46px}.ref-compact-list li:last-child{border:0}.ref-compact-list small{display:block;color:#627b8a;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.ref-deadline{display:block;color:#1b4557;font-size:12px;font-weight:500;padding:3px 0}.ref-count{font-size:11px;font-weight:500;background:#fff3cb;border-radius:5px;padding:2px 6px;white-space:nowrap}.ref-dashboard-grid .desk-row-icon{display:none}.ref-dashboard-grid .desk-task{display:block;padding:12px 15px;min-width:0}.ref-dashboard-grid .desk-task strong{font-size:13px;line-height:1.5}.ref-dashboard-grid .desk-task small{font-size:11px;line-height:1.55;margin-top:4px}.ref-dashboard-grid .desk-task .button{font-size:12px;min-height:30px;padding:4px 0;white-space:normal}.ref-dashboard-grid .desk-task .tag{font-size:10px}.ref-dashboard-grid .appointment-row{font-size:12px;overflow-wrap:anywhere}.ref-activity{padding:25px 0 0;min-width:0}.ref-activity>header p{font-size:11px;color:#6a7f8e;margin:7px 0 16px}.ref-activity ol{padding:0;margin:0 0 15px 10px;list-style:none;border-left:1px solid #91a5b2}.ref-activity li{position:relative;padding:0 0 24px 19px}.ref-activity li:before{position:absolute;left:-6px;top:4px;content:"";width:11px;height:11px;border:1px solid #8198a6;background:white;border-radius:50%}.ref-activity time,.ref-activity small{display:block;font-size:11px;color:#5e7889;line-height:1.55}.ref-activity .tag{margin-top:5px}.ref-activity .ref-name-link{line-height:1.6;margin:2px 0}.ref-activity .ref-empty{min-height:190px;padding-inline:5px}.ref-dashboard .manager-exceptions{margin-bottom:24px}.ref-dashboard .manager-exceptions>header{padding:12px 16px}
.ref-table-wrap{width:100%;overflow-x:auto;scrollbar-width:thin}.ref-table{border-collapse:collapse;width:100%;font-size:13px;line-height:1.5;text-align:left}.ref-table th{font-weight:500;font-size:12px;color:#0c374a;background:#f7f9fa;padding:13px 15px;white-space:nowrap}.ref-table td{border-top:1px solid #d8e1e6;padding:10px 15px;color:#163d50;vertical-align:middle}.ref-table td small{display:block;font-size:11px;color:#4c6070;margin-top:2px}.ref-table td .button{font-size:13px;min-height:30px;padding:3px 0}.ref-table td:first-child{min-width:120px}.ref-table tbody tr:hover{background:#f6fbfd}.ref-dashboard .ref-table td{padding:9px 13px;font-size:12px}.ref-dashboard .ref-table th{padding:12px 13px}.ref-dashboard .ref-table td:nth-child(2){max-width:270px;overflow-wrap:anywhere}.ref-status{display:inline-block;font-size:12px;background:#edf4f6;border:1px solid #d6e6eb;padding:3px 8px;border-radius:4px;color:#305a6d}.ref-status.needs-review{background:#fff5df;border-color:#eed6a2;color:#765219}.ref-list-toolbar{display:flex;align-items:end;gap:10px;margin:24px 0 16px}.ref-list-toolbar label{margin:0;min-width:150px;font-size:12px}.ref-list-toolbar input,.ref-list-toolbar select{min-height:37px;padding:8px 11px;font-size:13px;margin-top:6px}.ref-list-toolbar .ref-list-search{margin-left:auto;min-width:260px}.ref-list-toolbar .button{min-height:37px}.ref-list-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;font-size:12px;color:#527082}.ref-list-footer>div{display:flex;align-items:center;gap:12px}.ref-list-footer .button{font-size:12px;min-height:34px;padding:5px 10px}.auto-list-section>.ref-table-wrap{border:1px solid #d4dfe5;border-radius:8px}.auto-list-table td{padding-block:11px}.auto-list-section{margin-top:20px}.docket-shell .matter-directory{border:0;border-radius:8px;overflow:visible}.docket-shell .matter-filters{padding:0 0 17px;gap:10px;align-items:end}.docket-shell .matter-filters label{font-size:12px}.docket-shell .matter-filters input,.docket-shell .matter-filters select{min-height:36px;padding:8px 10px;font-size:13px;border-color:#d2dee4;border-radius:6px}.docket-shell .matter-filters>.button{min-height:36px}.docket-shell .matter-table-head{padding:12px 16px;background:#f7f9fa;border:1px solid #d6dfe4;border-radius:8px 8px 0 0;font-size:12px;font-weight:500}.docket-shell .matter-directory>.desk-docket{border:1px solid #d6dfe4;border-top:0;border-radius:0 0 8px 8px}.docket-shell .matter-table-row{padding:11px 16px;min-height:66px}.docket-shell .matter-table-row .desk-row-icon{display:none}.docket-shell .matter-table-row .desk-case-name strong{font-size:13px;font-weight:500}.docket-shell .matter-table-row .desk-case-name small{font-size:13px;color:#0069c8}.docket-shell .matter-table-row .desk-case-name span{font-size:11px}.docket-shell .matter-table-row .desk-docket-date,.docket-shell .matter-followup{font-size:12px}
/* The form workflow uses a persistent page rail, primary canvas, and review actions. */
.auto-assemble{border:0;margin:23px 0 28px}.auto-assemble>summary{display:inline-flex;align-items:center;padding:9px 15px;border:1px solid #ee6738;border-radius:7px;color:#c14720;cursor:pointer;font-size:14px}.auto-assemble>form{margin-top:20px}.auto-assemble-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px}.auto-assemble-card{border:1px solid #d5dfe4;border-radius:10px;overflow:hidden;background:#fff;min-width:0}.auto-assemble-card>h3{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;padding:14px 20px;margin:0;background:#eaf7fa}.auto-assemble-card:nth-child(2)>h3{background:#efebfd}.auto-assemble-card:nth-child(3)>h3{background:#fff3ee}.auto-assemble-card>h3>span{display:flex;align-items:center;justify-content:center;border:1px solid #78c5d4;color:#2589a0;border-radius:50%;width:23px;height:23px;font-size:12px}.auto-assemble-card:nth-child(2)>h3>span{border-color:#bda8ed;color:#815bb9}.auto-assemble-card:nth-child(3)>h3>span{border-color:#eeac94;color:#cf673e}.auto-assemble-card>div{padding:20px 22px}.auto-assemble-card label{font-size:13px;font-weight:500;margin-bottom:17px}.auto-assemble-card input,.auto-assemble-card select,.auto-assemble-card textarea{font-size:14px;min-height:41px}.auto-assemble-card p{font-size:12px;color:#60798b;line-height:1.7;margin:4px 0 23px}.auto-assemble-card input[readonly]{background:#f8fafb;color:#537082}.auto-assemble-preview{border:1px solid #dfe6eb;border-radius:8px;padding:15px 17px;margin-bottom:19px}.auto-assemble-preview strong,.auto-assemble-preview span,.auto-assemble-preview small{display:block}.auto-assemble-preview strong{font-size:16px}.auto-assemble-preview span{font-size:13px;margin-top:6px;color:#35576a}.auto-assemble-preview small{font-size:12px;color:#667d8a;margin-top:6px}
.docket-shell .auto-guided-workspace{padding-top:0;background:#f8f9fa}.auto-flow-header{position:sticky;top:53px;z-index:12;background:white;border-bottom:1px solid #d5dee4;padding:9px 0;display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 -30px 17px;padding-inline:30px}.auto-flow-header nav{display:flex;align-items:center;justify-content:center;gap:24px;margin:auto}.auto-step.button{display:flex;flex-direction:column;gap:3px;border:0;background:transparent;color:#6b7e8b;font-size:12px;min-width:74px;padding:0 7px;min-height:49px;border-radius:0}.auto-step .auto-step-number{width:27px;height:27px;border:1px solid #91a2ad;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px}.auto-step[aria-current=step]{color:#083d52}.auto-step[aria-current=step] .auto-step-number{color:#008fa8;border-color:#009db5;background:#eefbfc}.auto-flow-actions{display:flex;align-items:center;gap:9px;flex-shrink:0}.auto-flow-actions .button{min-height:35px;font-size:12px}.auto-guided-workspace>.text{font-size:12px}.auto-guided-workspace .auto-heading{margin:12px 0 8px;gap:15px}.auto-guided-workspace .auto-heading h2{font-size:22px}.auto-guided-workspace .auto-heading .kicker{margin:0}.auto-guided-workspace .auto-heading p{font-size:12px;margin-bottom:6px}.auto-guided-workspace .auto-header-actions .button{font-size:12px;min-height:35px}.auto-guided-workspace .auto-notice{font-size:12px;padding:8px 13px;margin:10px 0 17px;background:#eff6f7;border-left-width:2px}.auto-guided-workspace .auto-save-state{font-size:12px}.auto-guided-layout{grid-template-columns:225px minmax(0,1fr) 240px;gap:24px;margin-top:20px;align-items:start}.auto-main-pane{min-width:0}.auto-form-rail{position:sticky;top:137px;align-self:start;min-width:0;background:#fff;border:1px solid #d9e2e7;border-radius:8px;overflow:hidden}.auto-rail-person{padding:17px;border-bottom:1px solid #e0e6eb}.auto-rail-person>*{display:block;overflow-wrap:anywhere}.auto-rail-person small{font-size:11px;color:#5f798a}.auto-rail-person strong{font-size:15px;margin:6px 0}.auto-rail-person span{font-size:12px;color:#537589}.auto-question-search{padding:15px;margin:0;display:flex;flex-wrap:wrap;gap:7px}.auto-question-search label{font-size:11px;margin:0;width:100%}.auto-question-search input{min-width:0;font-size:13px;padding:8px 10px;margin-top:5px;min-height:36px}.auto-question-search .button{min-height:28px;padding:3px 0;color:#0069c8;border:0;background:none;font-size:12px}.auto-page-links{display:grid;gap:3px;padding:0 10px 14px}.auto-page-link.button{display:flex;justify-content:space-between;border:0;background:transparent;font-size:13px;padding:9px 12px;color:#36586b;border-radius:6px;min-height:40px}.auto-page-link small{font-size:11px;color:#6a8190}.auto-page-link[aria-current=page]{background:#eeeafb;color:#65439b}.auto-page-link[aria-current=page] small{color:#7f63aa}.auto-rail-footer{padding:10px 15px;border-top:1px solid #e0e6eb}.auto-rail-footer .button{font-size:12px;gap:8px;padding:4px 0}.auto-rail-footer svg{width:16px;height:16px}.auto-search-count{font-size:11px;margin:0;padding:0 15px 10px;color:#5f7786}.auto-search-results{padding:0 12px 12px;margin:0;list-style:none;max-height:440px;overflow-y:auto}.auto-search-results .button{white-space:normal;display:block;text-align:left;font-size:12px;line-height:1.5;border-bottom:1px solid #e2e9ed;border-radius:0;padding:10px 3px}.auto-search-results small{display:block;color:#52778a;margin-bottom:4px}.auto-guided-layout .auto-editor{background:transparent;padding:0;border:0;border-radius:0}.auto-guided-layout .auto-editor-top{background:#f8f9fa;top:130px;padding:0 0 15px}.auto-guided-layout .auto-editor-top label{font-size:12px}.auto-guided-layout .auto-editor-top select{min-height:36px;font-size:13px;width:110px}.auto-guided-layout .auto-editor-top span{font-size:11px}.auto-guided-layout .auto-editor>.muted{font-size:12px;line-height:1.7;margin:12px 0 18px}.auto-guided-layout .auto-field{padding:22px 25px;background:#fff;border:1px solid #d8e0e5;border-radius:9px;margin-bottom:18px;scroll-margin-top:195px}.auto-guided-layout .auto-field>label>span{font-size:14px;line-height:1.65;font-weight:500}.auto-guided-layout .auto-field input[type=text]{min-height:41px}.auto-guided-layout .auto-field-meta{align-items:end}.auto-guided-layout .auto-field-meta label{font-size:11px}.auto-guided-layout .auto-field-meta select{font-size:12px;min-height:33px;margin-top:3px}.auto-guided-layout .auto-field-meta small{font-size:11px}.auto-guided-layout .auto-field .muted{font-size:12px;margin:8px 0 0}.auto-guided-layout .auto-field-problem{border-left:3px solid #c68b47}.auto-guided-layout .auto-side{top:137px;padding:0;font-size:12px}.auto-guided-layout .auto-side h3{font-size:15px}.auto-guided-layout .auto-side p,.auto-guided-layout .auto-side label{font-size:12px;line-height:1.7}.auto-guided-layout .auto-side>a{font-size:12px}.auto-guided-layout .auto-workflow{margin-top:19px;padding-top:18px}.auto-guided-layout .auto-history{padding-top:14px;margin-top:18px}.auto-guided-layout .auto-history summary{font-size:12px}.auto-guided-layout .auto-side .button{min-height:36px;font-size:12px}.auto-stage-panel{background:white;border:1px solid #d8e2e8;border-radius:9px;padding:26px;min-width:0}.auto-stage-panel h2{font-size:21px;font-weight:600;margin:0 0 12px}.auto-stage-panel>p{font-size:13px;color:#577388;line-height:1.8}.auto-stage-panel h3{font-size:15px;margin-top:30px}.auto-preparation-summary{margin:24px 0}.auto-preparation-summary>div{padding:15px 0;border-bottom:1px solid #e0e7eb}.auto-preparation-summary dt{font-size:12px;color:#607d8f;margin-bottom:6px}.auto-preparation-summary dd{margin:0;font-size:14px;overflow-wrap:anywhere}.auto-preparation-summary dd small{font-size:12px;color:#648092;display:block;margin-top:3px}.auto-stage-action{margin:20px 0}.auto-stage-panel .events{font-size:12px}.auto-pdf-review{min-width:0;border:1px solid #d3dbe1;background:#edf0f2;border-radius:8px;overflow:hidden}.auto-pdf-bar{display:flex;justify-content:space-between;gap:12px;align-items:center;background:#303638;color:#fff;padding:10px 16px;font-size:13px}.auto-pdf-bar .button{color:#fff;background:transparent;border-color:#69777f;font-size:12px;min-height:32px}.auto-pdf-help{font-size:12px;color:#456272;padding:10px 16px;margin:0;background:#f6f9fa;line-height:1.6}.auto-pdf-frame{width:100%;height:820px;min-height:65vh;border:0;display:block;background:#e6eaed}.auto-pdf-mobile{display:none}.auto-intro{font-size:14px;color:#557488;margin:12px 0}
.permission-layout .panel{border-radius:8px;border-color:#d6e1e7;box-shadow:none}.permission-layout .auto-heading{margin-top:0}.permission-layout .auto-heading h1{font-size:24px}.permission-members li{padding:13px 3px;gap:14px}.permission-members strong{font-size:14px;font-weight:550}.permission-members span,.permission-members small{font-size:12px;line-height:1.6}.permission-members .button{font-size:12px;min-height:34px;color:#0069c8;background:white;border-color:#d3e0e7}.permission-editor>header{border-bottom:1px solid #d9e3e8;padding-bottom:18px;margin-bottom:18px}.permission-editor>header h2{font-size:21px}.permission-editor>header .kicker{color:#657f90}.permission-scope{font-size:13px;background:#f0f7fa;padding:14px 18px;border-color:#8abaca}.permission-fields label{font-size:13px}.permission-fields input,.permission-fields select{font-size:14px;min-height:41px}.permission-option{padding:15px 12px;border-radius:0;gap:10px}.permission-option strong{font-size:13px}.permission-option small{font-size:12px}.permission-option.unavailable{opacity:1}.permission-option.unavailable strong{color:#647a86}.permission-option input{accent-color:#05839b;width:17px!important;height:17px;min-width:17px}.permission-list{display:block;border:0}.permission-category{padding:0;border:0;margin:22px 0}.permission-category legend{display:block;width:100%;padding:10px 12px;background:#f2f6f8;border:1px solid #e0e7eb;font-size:13px;font-weight:600}.permission-category>div{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.permission-members-search{margin-bottom:14px;font-size:12px}.permission-members-search input{max-width:440px;min-height:38px;font-size:13px}.permission-save{padding:12px 0;z-index:3}.permission-save p{font-size:12px}
@media(min-width:1600px){.auto-guided-layout{grid-template-columns:240px minmax(0,1fr) 270px;gap:30px}.ref-dashboard-layout{grid-template-columns:minmax(0,1fr) 295px}}
@media(max-width:1380px){.docket-shell{grid-template-columns:214px minmax(0,1fr)}.docket-shell .firm-live-sidebar{padding:22px 14px}.docket-shell .matter-mast{margin-inline:22px}.docket-shell .desk-content .layout{padding-inline:22px}.ref-dashboard-layout{grid-template-columns:minmax(0,1fr) 220px;gap:20px}.ref-dashboard-grid{gap:20px 14px;padding:20px 18px}.ref-widget-body,.ref-empty{min-height:240px}.ref-table td,.ref-table th{padding-inline:11px}.auto-guided-layout{grid-template-columns:185px minmax(0,1fr);gap:21px}.auto-guided-layout>.auto-side{grid-column:2;position:static;padding:21px;background:#fff;border:1px solid #d9e2e7;border-radius:8px}.auto-flow-header{margin-inline:-22px;padding-inline:22px}.auto-assemble-grid{gap:18px}.auto-assemble-card>div{padding:18px}.auto-assemble-card>h3{padding:13px 15px;font-size:13px}}
@media(max-width:1100px){.ref-dashboard-layout{grid-template-columns:minmax(0,1fr)}.ref-activity{border-top:1px solid #e0e7eb;padding-top:22px}.ref-activity ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:0;gap:12px}.ref-activity li{border-left:1px solid #a4b4bf;padding-bottom:10px}.auto-assemble-grid{grid-template-columns:1fr 1fr}.auto-assemble-card:last-child{grid-column:1/-1}.auto-assemble-card:last-child>div{display:grid;grid-template-columns:1fr 1fr;gap:15px}.auto-assemble-card:last-child p{margin:0}.auto-guided-layout{grid-template-columns:165px minmax(0,1fr)}.auto-flow-header nav{gap:8px}.auto-flow-header .auto-step{min-width:59px;padding-inline:2px}.auto-flow-actions{gap:3px}.auto-flow-header .auto-flow-actions .text{display:none}}
@media(max-width:900px){.ref-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ref-widget:nth-child(3){grid-column:1/-1}.ref-widget:nth-child(3) .ref-widget-body{min-height:0}.ref-widget:nth-child(3) .ref-empty{min-height:120px}.ref-widget.ref-wide{grid-column:1/-1}.ref-widget:last-child{grid-column:1/-1}.auto-guided-layout{display:block}.auto-form-rail{position:static;margin-bottom:20px}.auto-rail-person{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px 15px}.auto-rail-person strong{margin:0}.auto-question-search{display:none}.auto-page-links{display:flex;overflow-x:auto;padding:10px;gap:5px}.auto-page-link.button{flex-shrink:0;gap:10px}.auto-rail-footer{display:none}.auto-guided-layout>.auto-side{margin-top:23px}.auto-flow-header{position:relative;top:0;flex-wrap:wrap}.auto-flow-header nav{justify-content:space-between;flex:1;gap:10px}.auto-flow-actions{margin-left:auto}.auto-guided-layout .auto-editor-top{position:static}.auto-guided-layout .auto-field{padding:21px}.auto-guided-layout .auto-field-meta{flex-direction:row}.auto-guided-layout .auto-field-meta label{width:auto}.auto-guided-layout .auto-side .auto-issues{display:block}.auto-pdf-frame{height:680px}}
@media(max-width:740px){.docket-shell{grid-template-columns:minmax(0,1fr)}.docket-shell .firm-live-sidebar{padding:12px 12px 7px;min-height:0;max-height:none;overflow:visible}.docket-identity{margin:0 0 10px;padding:0 0 8px;gap:12px}.docket-identity .brand strong{font-size:12px}.docket-identity .monogram{min-width:30px;width:30px;height:30px}.docket-identity .brand small{font-size:10px}.docket-identity .docket-create.button{font-size:12px;min-height:38px;gap:8px;padding:8px 12px}.docket-shell .firm-primary-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}.docket-shell .firm-primary-nav .desk-nav-link.button{font-size:12px;gap:5px;min-height:48px;padding:5px 3px;white-space:normal}.docket-shell .firm-primary-nav .desk-nav-link svg{width:19px;height:19px}.docket-shell .firm-mobile-tools{border-top:1px solid #e0e6e9;margin-top:8px}.docket-shell .firm-mobile-tools summary{color:#315c71;font-size:12px;min-height:34px;padding-block:8px}.docket-shell .firm-mobile-tools .desk-nav-link{font-size:12px;min-height:42px}.docket-shell .matter-mast{position:relative;margin:0 12px}.docket-shell .matter-mast .mast-inner{padding:6px;flex-wrap:wrap}.docket-shell .matter-global-search{max-width:none;flex-basis:100%}.docket-shell .matter-global-search input{min-height:39px}.docket-shell .matter-mast .mast-tools{margin-left:auto}.docket-shell .desk-content .layout{padding:22px 14px 32px}.docket-shell .docket-heading h1,.docket-shell .desk-heading h1,.docket-shell .matter-title h1{font-size:22px}.docket-shell .docket-heading{gap:16px}.ref-dashboard-grid{display:flex;flex-direction:column;padding:0;background:none;border-radius:0;gap:23px}.ref-widget{width:100%}.ref-widget:nth-child(3){order:-1}.ref-widget-body,.ref-empty{min-height:150px}.ref-widget.ref-wide .ref-table{min-width:520px}.ref-widget h2,.ref-activity h2{font-size:15px}.ref-dashboard-grid .desk-task{padding:13px 16px}.ref-dashboard-grid .desk-task strong{font-size:14px}.ref-dashboard-grid .desk-task small{font-size:12px}.ref-widget .ref-empty{font-size:14px}.ref-activity ol{display:block}.ref-activity li{margin-bottom:20px}.ref-activity .ref-name-link{font-size:14px}.ref-activity time,.ref-activity small{font-size:12px}.ref-list-toolbar{display:grid;grid-template-columns:1fr auto;gap:12px}.ref-list-toolbar label{min-width:0}.ref-list-toolbar label:first-child{grid-column:1/-1}.ref-list-toolbar .ref-list-search{margin:0;min-width:0}.ref-list-toolbar .button{min-height:44px}.auto-list-table{min-width:650px}.ref-list-footer{align-items:flex-start;flex-wrap:wrap}.auto-list-section{margin-top:20px}.docket-shell .matter-filters{padding-bottom:15px}.docket-shell .matter-table-head{display:none}.docket-shell .matter-directory>.desk-docket{border-top:1px solid #d6dfe4;border-radius:8px}.docket-shell .matter-table-row{padding:16px 12px}.docket-shell .matter-table-row .desk-case-name strong{font-size:15px}.docket-shell .matter-table-row .desk-case-name small{font-size:12px}.docket-shell .matter-table-row .desk-case-name span{font-size:12px}.auto-assemble-grid{display:block}.auto-assemble-card{margin-bottom:16px}.auto-assemble-card:last-child>div{display:block}.auto-assemble-card:last-child p{margin:12px 0}.auto-assemble-card label{font-size:14px}.auto-assemble-card>h3{font-size:15px}.auto-assemble-card p{font-size:13px}.auto-assemble-card .button.primary{width:100%;font-size:14px}.auto-flow-header{margin:-22px -14px 16px;padding:13px 14px;gap:12px}.auto-flow-header nav{width:100%;flex-basis:100%;gap:5px}.auto-step.button{font-size:12px;min-height:52px;min-width:0}.auto-flow-actions .button{min-height:40px;font-size:13px}.auto-guided-workspace .auto-heading{display:block}.auto-guided-workspace .auto-heading h2{font-size:21px}.auto-guided-workspace .auto-header-actions{gap:10px;margin:12px 0}.auto-guided-workspace .auto-header-actions .button{font-size:13px;min-height:42px}.auto-guided-workspace .auto-notice{font-size:13px;line-height:1.75;padding:10px 12px}.auto-guided-layout .auto-field{padding:18px 16px;margin-bottom:16px;scroll-margin-top:25px}.auto-guided-layout .auto-field>label>span{font-size:15px}.auto-guided-layout .auto-field-meta{align-items:flex-start;flex-direction:column;gap:7px}.auto-guided-layout .auto-field-meta label{width:100%;font-size:12px;max-width:none}.auto-guided-layout .auto-field-meta small{font-size:12px}.auto-guided-layout .auto-field-error{font-size:13px}.auto-stage-panel{padding:22px 16px}.auto-stage-panel h2{font-size:20px}.auto-stage-panel>p{font-size:14px}.auto-stage-panel .ref-table{min-width:450px}.auto-guided-layout>.auto-side{padding:20px 16px}.auto-guided-layout .auto-side p,.auto-guided-layout .auto-side label{font-size:14px}.auto-guided-layout .auto-side .button{min-height:44px;font-size:14px}.auto-pdf-frame{height:530px;min-height:0}.auto-pdf-mobile{display:block;padding:12px 15px;font-size:13px;line-height:1.6;color:#567483}.auto-pdf-bar{flex-wrap:wrap}.permission-category>div{grid-template-columns:1fr}.permission-option{padding:16px 3px}.permission-option strong{font-size:15px}.permission-option small{font-size:13px;line-height:1.75}.permission-members li{flex-wrap:wrap;gap:12px}.permission-members .button{min-height:44px}.permission-members strong{font-size:15px}.permission-members span,.permission-members small{font-size:13px}.permission-save{padding-bottom:max(12px,env(safe-area-inset-bottom))}.permission-members-search input{max-width:none}.permission-layout .auto-heading{gap:16px}.permission-layout .auto-heading .button{font-size:13px}}
@media(prefers-reduced-motion:reduce){.docket-shell *{scroll-behavior:auto!important;transition:none!important}}

.docket-shell .docket-create.button{background:#ec5423;border-color:#ec5423;color:#fff}
.docket-shell .docket-create.button:hover{background:#cf4318}
.ref-dashboard .manager-exceptions.is-clear{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid #dce5e8;border-left:3px solid #a2beb5;background:#fbfdfc;margin-bottom:24px}
.ref-dashboard .manager-exceptions.is-clear>header{border:0;background:none;padding:11px 15px;flex-shrink:0;gap:20px}
.ref-dashboard .manager-exceptions.is-clear h2{font-size:13px}.ref-dashboard .manager-exceptions.is-clear .kicker{display:none}.ref-dashboard .manager-exceptions.is-clear .button{font-size:12px;min-height:30px;padding:3px 5px}
.ref-dashboard .manager-exceptions.is-clear .desk-empty{padding:12px 18px;font-size:12px;text-align:right;line-height:1.6}
@media(max-width:900px){.auto-question-search{display:flex;flex-wrap:nowrap;align-items:end;padding-top:10px}.auto-question-search label{flex:1}.auto-question-search .button{min-height:38px;padding:7px}.ref-dashboard .manager-exceptions.is-clear{display:block}.ref-dashboard .manager-exceptions.is-clear>header{justify-content:space-between;padding-bottom:0}.ref-dashboard .manager-exceptions.is-clear .desk-empty{text-align:left;padding-top:7px}}
.auto-case-context{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 30px;border-bottom:1px solid #e1e7eb;background:#fff;font-size:12px}.auto-case-context>div{display:flex;align-items:center;gap:13px;min-width:0;flex-wrap:wrap}.auto-case-context strong{color:#1b5974;font-weight:550}.auto-case-context span{color:#647e8e}.auto-case-context .button{font-size:12px;min-height:32px;flex-shrink:0}.auto-case-context+.auto-guided-workspace{padding-top:0}@media(max-width:740px){.auto-case-context{padding:11px 14px;align-items:flex-start}.auto-case-context>div{gap:5px}.auto-case-context .button{white-space:normal;max-width:120px;min-height:44px}.auto-case-context+.auto-guided-workspace .auto-flow-header{margin-top:0}}
.auto-guided-workspace .auto-heading{margin:4px 0 6px;align-items:center}.auto-guided-workspace .auto-heading h2{font-size:20px;margin:4px 0 6px}.auto-guided-workspace .auto-heading .kicker{display:none}.auto-guided-workspace .auto-header-actions>button{display:none}.auto-guided-workspace .auto-save-state{font-size:11px;min-height:18px}.auto-guided-workspace .auto-notice{margin:8px 0 14px}.auto-guided-layout{margin-top:14px}.auto-flow-header{margin-bottom:10px}.auto-case-context{padding-block:8px}
@media(min-width:1201px) and (max-width:1380px){.auto-guided-layout{grid-template-columns:170px minmax(0,1fr) 215px;gap:20px}.auto-guided-layout>.auto-side{grid-column:auto;position:sticky;top:137px;padding:0;background:transparent;border:0;border-radius:0}.auto-guided-layout .auto-field{padding:19px}.auto-guided-layout .auto-field-meta{flex-wrap:wrap}}
@media(max-width:740px){.auto-guided-workspace .auto-heading{margin:7px 0}.auto-guided-workspace .auto-heading h2{font-size:21px}.auto-guided-workspace .auto-save-state{font-size:12px}.auto-guided-workspace .auto-header-actions{margin:8px 0}.auto-flow-header .auto-flow-actions .text{display:inline-flex}.auto-case-context{padding-block:8px}}
.auto-pdf-paper{padding:15px 13px 20px;min-height:260px}.auto-pdf-paper canvas{display:block;width:100%;height:auto;background:#fff;box-shadow:0 2px 7px #0a1d2b22}.auto-pdf-paper canvas[hidden]{display:none}.auto-pdf-controls{display:flex;align-items:center;justify-content:center;gap:18px;padding:7px 12px;background:#3a4145;color:#fff;font-size:13px}.auto-pdf-controls .button{min-height:31px;min-width:34px;padding:3px 9px;background:transparent;border-color:#81909a;color:#fff;font-size:22px;line-height:1}.auto-pdf-controls .button:disabled{opacity:.4}.auto-pdf-text{padding:9px 15px;background:#fff;border-top:1px solid #d5e0e6;font-size:12px}.auto-pdf-text summary{cursor:pointer;color:#365c73}.auto-pdf-text p{white-space:pre-wrap;line-height:1.7}.auto-guided-workspace .auto-heading{scroll-margin-top:140px}@media(max-width:740px){.auto-guided-workspace .auto-heading{scroll-margin-top:10px}.auto-pdf-controls .button{min-height:44px;min-width:44px}.auto-pdf-paper{padding:12px 8px}.auto-pdf-help{font-size:13px}}
/* Business navigation: one set of role-aware groups on every screen. */
.firm-tool-group{margin:14px 0 4px}.firm-tool-group h3{margin:0 12px 5px;font-size:11px;font-weight:650;color:#607987;letter-spacing:.02em}.firm-tool-group nav{display:flex;flex-direction:column;gap:2px}.firm-tool-group .button{width:100%;justify-content:flex-start}.workspace-search{position:relative;margin-right:auto}.workspace-search>summary{list-style:none;display:flex;gap:8px;align-items:center;cursor:pointer;min-height:44px;padding:8px 13px;border:1px solid #d9e3e8;border-radius:7px;background:#f6f9fa;font-size:14px;color:#244e64}.workspace-search>summary::-webkit-details-marker{display:none}.workspace-search>summary svg{width:18px;height:18px}.workspace-search[open]>summary{background:#e8f3f7}.workspace-search .matter-global-search{position:absolute;top:calc(100% + 8px);left:0;z-index:35;width:min(620px,calc(100vw - 44px));max-width:none;background:white;border:1px solid #d1e0e6;box-shadow:0 8px 25px #143d541f;border-radius:9px;padding:14px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end}.workspace-search .matter-global-search>label{min-width:0}.workspace-search .matter-global-search .workspace-search-scope{grid-column:1/-1;display:block;padding:0;background:none;border:0;font-size:12px}.workspace-search-scope select{margin:3px 0 8px;width:100%;min-height:40px}.workspace-search .matter-global-search input{width:100%;font-size:15px}.workspace-search .matter-global-search .button{min-height:44px}.activity-scope-note{grid-column:1/-1}.activity-scope-note .ref-widget-body{min-height:0}.activity-scope-note p{margin:0;line-height:1.7}
@media(max-width:740px){
 .docket-shell .docket-identity{margin-bottom:5px;padding-bottom:4px}.docket-shell .firm-primary-nav{display:flex;flex-flow:row nowrap;gap:0;overflow-x:auto;scrollbar-width:none;padding-bottom:3px}.docket-shell .firm-primary-nav .desk-nav-link.button{flex:1 0 44px;min-width:44px;width:auto;min-height:48px;font-size:11px;padding:3px 1px;white-space:normal}.docket-shell .firm-primary-nav .desk-nav-link svg{width:16px;height:16px}.docket-shell .firm-live-sidebar .firm-extra-nav{display:block;border-top:1px solid #dbe4e8;margin:2px 0 0;padding:0}.docket-shell .firm-extra-nav>summary{min-height:32px;padding:4px 7px;font-size:12px;color:#315c71}.docket-shell .firm-tool-group{margin:9px 0}.docket-shell .firm-tool-group h3{margin-left:8px}.docket-shell .firm-tool-group nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}.docket-shell .firm-tool-group .button{font-size:12px;min-height:44px;padding:5px 8px}.docket-shell .matter-mast .mast-inner{min-height:46px;flex-wrap:nowrap;padding:3px 6px}.workspace-search>summary{min-height:40px;padding:6px 10px;font-size:13px}.workspace-search .matter-global-search{width:calc(100vw - 44px);padding:12px;flex-basis:auto}.docket-shell .desk-content .layout{padding-top:16px}.docket-shell .docket-heading{margin-bottom:16px}.docket-shell .docket-heading h1{font-size:20px}.docket-shell .workbench-heading{margin-bottom:12px}
}

:root{--portal-canvas:#f1f5f8;--portal-surface:#fff;--portal-line:#c3d1dc;--portal-ink:#17344a;--portal-selected:#dcebf2;--portal-focus:#12658a;--portal-depth:0 2px 6px rgb(33 58 77 / 8%)}
.docket-shell .desk-content{background:var(--portal-canvas);color:var(--portal-ink)}
.docket-shell :is(.desk-panel,.panel,.hg-card,.ref-widget){background-color:var(--portal-surface);border-color:var(--portal-line);box-shadow:var(--portal-depth)}
.docket-shell .desk-sidebar{background-color:#eaf0f5;border-inline-end:1px solid var(--portal-line)}
.docket-shell .desk-nav-link[aria-current=page]{background-color:var(--portal-selected);box-shadow:inset 3px 0 #267491;color:#12405b}
.docket-shell :is(button,a,input,select,summary):focus-visible{outline:2px solid var(--portal-focus);outline-offset:2px}
.docket-shell .account-directory :is(.account-create-row,.staff-invite-panel){box-shadow:none;background:transparent}

.template-library,.template-editor{max-width:1440px;margin:auto!important;padding-top:24px!important;color:#173e49}
.template-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}.template-heading h1{font-size:25px;margin:5px 0 8px}.template-heading p{margin:4px 0;color:#596f78;line-height:1.6}
.template-version-note{font-size:13px;line-height:1.65;padding:12px 16px;border-left:3px solid #92b8c4;background:#f2f8fa;border-radius:0 5px 5px 0}.template-library .template-search{max-width:560px;margin:24px 0 16px}
.template-list{border:1px solid #d8e1e5;border-radius:9px;overflow:hidden;background:white}.template-list-row{padding:19px 22px;border-bottom:1px solid #e0e6e9}.template-list-row:last-child{border:0}.template-row-header{display:flex;justify-content:space-between;align-items:center;gap:24px}.template-row-header h2{font-size:16px;margin:0 0 8px;line-height:1.5}.template-meta{display:flex;gap:15px;flex-wrap:wrap;color:#617681;font-size:12px}.template-row-actions{display:flex;gap:8px;flex-shrink:0}.template-row-actions .button{font-size:13px;padding:8px 12px;min-height:36px}.template-updated{font-size:12px;margin:7px 0 0;color:#687e88}.template-description{font-size:14px;white-space:pre-wrap;margin-bottom:8px}.template-preview{margin-top:12px}.template-preview summary{color:#22718b;font-size:13px;cursor:pointer}.template-preview .firm-intake-section{margin-top:15px}.template-preview ol{padding-left:20px;line-height:1.8;font-size:14px}
.template-savebar{position:sticky;top:0;z-index:5;background:#fff;padding:12px 0;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #d7e2e6;box-shadow:0 6px 12px -13px #163b46;margin-bottom:20px}.template-savebar>div{display:flex;gap:10px}.template-savebar>span{font-size:13px;color:#586e78}.template-basics{padding:5px 0 24px;border-bottom:1px solid #dce5e8}.template-editor h2{font-size:18px;margin:8px 0}.template-editor p{line-height:1.6}.template-two-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px 24px}.template-two-columns label{margin:0!important}.template-editor label{font-size:13px;font-weight:600;color:#304e59}.template-editor input,.template-editor textarea,.template-editor select{font-size:14px;font-weight:400;border:1px solid #cbd8df;border-radius:5px;background:white;line-height:1.6;color:#183d4a}.template-editor textarea{resize:vertical}.template-content-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:25px 0 14px}.template-content-heading p{font-size:13px;color:#617680;margin:0}.template-editor-rows{display:flex;flex-direction:column;gap:10px;margin:16px 0}.template-editor-item{position:relative;border:1px solid #d5dfe5;border-radius:7px;background:#fff;overflow:hidden}.template-editor-item>details>summary{padding:15px 165px 15px 16px;display:flex;align-items:center;gap:14px;cursor:pointer;font-size:14px;min-height:60px;line-height:1.6;background:#f8fafb;list-style:none}.template-editor-item>details>summary:after{content:'⌄';margin-left:auto}.template-editor-item>details[open]>summary:after{content:'⌃'}.template-row-number{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#e8f1f4;color:#346374;flex-shrink:0;font-size:12px}.template-item-actions{position:absolute;right:12px;top:10px;display:flex;gap:4px;align-items:center}.template-item-actions .button{min-height:35px;padding:5px 9px;font-size:13px}.template-item-actions .text{color:#964635}.template-row-fields{padding:20px 25px;border-top:1px solid #e0e6eb}.template-row-fields>label{margin-bottom:16px}.template-import{padding:18px 0;border-top:1px solid #e0e6eb;margin-top:24px}.template-import summary{font-weight:600;cursor:pointer}.template-import select{max-width:620px}.template-undo{background:#eff7f1;padding:8px 15px;font-size:13px;border-radius:5px}.template-editor-footer{border-top:1px solid #d5dfe5;margin-top:24px;padding:20px 0}.template-editor-footer>div{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}.template-editor-footer p{font-size:13px;color:#607681}.template-preview-dialog{max-width:850px;width:90vw;max-height:85dvh;padding:26px;border:1px solid #cbd8de;border-radius:10px;color:#183c48;box-shadow:0 16px 60px #132e3c40}.template-preview-dialog::backdrop{background:#16364160}.template-preview-dialog header{display:flex;justify-content:space-between;gap:15px;align-items:center;position:sticky;top:-26px;background:white;padding:10px 0;z-index:1}.template-preview-dialog small{display:block;font-weight:400;white-space:pre-wrap;line-height:1.6;margin-top:5px}.template-preview-dialog label{margin-bottom:20px}.template-preview-dialog input,.template-preview-dialog textarea{background:#f5f7f8}
@media(max-width:760px){.template-library,.template-editor{padding:18px 14px!important}.template-heading{align-items:flex-start}.template-heading h1{font-size:22px}.template-heading>.button{white-space:nowrap}.template-row-header{align-items:flex-start;flex-direction:column;gap:12px}.template-row-actions{width:100%}.template-list-row{padding:16px}.template-two-columns{grid-template-columns:1fr;gap:14px}.template-savebar{flex-wrap:wrap;top:0;gap:8px}.template-savebar>div{width:100%}.template-savebar>div>.button{flex:1;padding:10px 7px;font-size:13px}.template-editor input,.template-editor textarea,.template-editor select{font-size:16px}.template-content-heading{align-items:flex-start;flex-direction:column;gap:12px}.template-editor-item>details>summary{padding:14px 14px 58px;align-items:flex-start}.template-item-actions{top:unset;bottom:unset;right:10px;margin-top:0;position:static;justify-content:flex-end;padding:8px;background:#f8fafb;border-top:1px solid #e3e9ec}.template-editor-item>details>summary{padding-bottom:14px}.template-item-actions .button{min-height:40px;min-width:42px}.template-row-fields{padding:16px}.template-editor-footer>div>.button{flex-grow:1;min-height:44px}.template-preview-dialog{padding:18px}.template-preview-dialog header{top:-18px}.template-meta{gap:10px}}

.template-question-help{display:block;white-space:pre-wrap;font-weight:400;line-height:1.65;color:#5f737d;margin:6px 0}.template-reset-confirm{padding:16px;background:#fff5e8;border:1px solid #e4ccaa;border-radius:6px}.template-reset-confirm .button{margin-right:8px}

.template-basics{padding:10px 0 18px}.template-basics>summary{font-size:16px;font-weight:600;cursor:pointer;line-height:1.6}.template-basics>summary small{font-size:12px;font-weight:400;color:#667f89;margin-left:14px}.template-basics[open]>summary{margin-bottom:15px}

/* Questionnaire content uses one document column for reading and editing. */
.questionnaire-document{max-width:920px;padding-bottom:48px!important}.questionnaire-document .template-heading{align-items:flex-start}.questionnaire-heading-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.questionnaire-document .template-heading h1{font-size:29px;line-height:1.35}.questionnaire-library .template-title-link{border:0;background:none;box-shadow:none;padding:0;min-height:0;text-align:left;font-size:18px;font-weight:650;color:#174c5d;line-height:1.5}.questionnaire-library .template-title-link:hover{text-decoration:underline}.questionnaire-language{display:flex;gap:16px;align-items:center;justify-content:space-between;border-top:1px solid #d8e2e7;padding-top:18px;margin-top:22px}.questionnaire-language>span{font-size:13px;font-weight:650;color:#3f5d68}.questionnaire-language>div{display:flex;gap:6px}.questionnaire-language .button{font-size:13px;min-height:36px;padding:6px 14px}.questionnaire-language .button[aria-pressed=true]{background:#174d5d;color:#fff;border-color:#174d5d}.questionnaire-language-note,.questionnaire-policy{font-size:13px;line-height:1.65;color:#5d737e}.questionnaire-policy{margin:16px 0 26px;background:#f2f7f8;border-left:3px solid #9ebfc7;padding:12px 16px}.questionnaire-instructions{white-space:pre-wrap;font-size:15px;line-height:1.8;margin:24px 0}.questionnaire-read-questions{background:white;border:1px solid #dbe4e8;border-radius:10px;padding:10px 30px 25px}.questionnaire-read-question{display:grid;grid-template-columns:30px minmax(0,1fr);gap:15px;padding:24px 0;border-bottom:1px solid #e5ecef}.questionnaire-read-question:last-child{border:0}.questionnaire-read-question h3{font-size:16px;line-height:1.7;font-weight:600;margin:0;white-space:pre-wrap}.questionnaire-number{display:inline-grid;place-items:center;align-self:start;background:#edf3f5;border-radius:50%;width:28px;height:28px;font-size:12px;font-weight:650;color:#42636f;flex-shrink:0}.questionnaire-section{font-size:17px!important;margin:28px 0 0!important;padding:0 0 12px;border-bottom:2px solid #dde7eb}.questionnaire-fallback{display:block;font-size:12px;color:#7b6641;font-weight:400;line-height:1.5;margin-top:5px}.questionnaire-optional{display:block;font-size:12px;color:#667e88;margin:7px 0 0}.questionnaire-draft-note,.questionnaire-saved-drafts{background:#fff9ec;border:1px solid #ead7ad;padding:14px 18px;border-radius:7px;font-size:14px;margin:18px 0}.questionnaire-saved-drafts h2{font-size:16px;margin:0 0 10px}.questionnaire-saved-drafts>div{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:8px 0}.questionnaire-saved-drafts .button{font-size:13px}.questionnaire-intro{display:grid;gap:20px;padding:20px 24px;border:1px solid #dbe4e8;border-radius:8px;background:white}.questionnaire-document label{display:grid;gap:7px;margin:0;font-size:14px}.questionnaire-document input,.questionnaire-document textarea{width:100%}.questionnaire-document textarea{min-height:86px;font-size:15px}.questionnaire-source{white-space:pre-wrap;border-left:2px solid #e5d8bd;padding:8px 12px;background:#faf8f3;font-size:14px;margin:0}.questionnaire-source .questionnaire-fallback{margin:0 0 5px}.questionnaire-edit-questions{display:grid;gap:20px;margin:16px 0}.questionnaire-edit-question{padding:22px 24px;background:white;border:1px solid #d5e1e6;border-radius:8px}.questionnaire-question-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.questionnaire-question-header>div{display:flex;gap:5px}.questionnaire-question-header .button{min-height:34px;padding:5px 10px;font-size:13px}.questionnaire-question-header .text{color:#8c4a3b}.questionnaire-document label.questionnaire-optional{display:flex;gap:8px;align-items:center;margin:15px 0;color:#516c77;font-weight:400}.questionnaire-document label.questionnaire-optional input{width:auto;min-height:0}.questionnaire-extra{border-top:1px solid #e4ebee;padding-top:13px;margin-top:15px}.questionnaire-extra>summary{font-size:13px;color:#536e7a;cursor:pointer}.questionnaire-extra[open]>summary{margin-bottom:16px}.questionnaire-extra>label,.questionnaire-extra>.questionnaire-source{margin-top:15px}.questionnaire-paste{padding:22px 24px;background:#f5f8fa;border:1px solid #d7e2e7;border-radius:8px;margin-top:30px}.questionnaire-paste h2{font-size:17px}.questionnaire-paste p{font-size:13px;color:#5b737e}.questionnaire-paste>button{margin-top:14px}.questionnaire-document .template-editor-footer>div{justify-content:flex-start}.questionnaire-document .template-savebar{position:static;padding:12px 0;margin-top:10px}.questionnaire-document .template-import{font-size:14px}.questionnaire-document .template-import label{margin:15px 0}
@media(max-width:760px){.questionnaire-document .template-heading{flex-direction:column;gap:12px}.questionnaire-document .template-heading h1{font-size:24px}.questionnaire-heading-actions{justify-content:flex-start}.questionnaire-document .template-savebar{flex-wrap:nowrap}.questionnaire-document .template-savebar>.button{white-space:nowrap}.questionnaire-read-questions{padding:5px 18px 15px}.questionnaire-read-question{gap:10px;padding:20px 0;grid-template-columns:28px minmax(0,1fr)}.questionnaire-edit-question,.questionnaire-intro,.questionnaire-paste{padding:18px 16px}.questionnaire-document textarea,.questionnaire-document input{font-size:16px}.questionnaire-question-header .button{min-height:42px;min-width:42px}.questionnaire-language{gap:10px}.questionnaire-saved-drafts>div{align-items:flex-start;flex-direction:column;gap:8px}}

.questionnaire-document button[type="submit"]{scroll-margin-top:80px}

/* Long questionnaires and PDF templates keep one editable form while narrowing the view. */
.questionnaire-contents{margin:16px 0;padding:12px 16px;background:#f2f8fa;border:1px solid #d8e1e5;border-radius:8px}.questionnaire-contents summary{cursor:pointer;font-weight:600}.questionnaire-contents details>div{padding-top:12px;line-height:2}.questionnaire-contents a{display:inline-block;margin-right:8px}.questionnaire-contents select{max-width:100%;width:100%;margin-top:6px}.questionnaire-read-question,.questionnaire-edit-question{scroll-margin-top:90px}.auto-template-filters{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;margin:18px 0;padding:14px;background:#f2f8fa;border:1px solid #d8e1e5;border-radius:8px}.auto-template-filters label:first-child{flex:1;min-width:220px}.auto-template-filters p{margin:0 0 10px;color:#5e7580}.auto-template-fields>details[hidden]{display:none!important}.auto-template-fields select{max-width:100%;width:100%}.auto-template-editor .auto-sticky-save{position:sticky;bottom:0;padding:12px;background:#fff;border-top:1px solid #d8e1e5;z-index:2}@media(max-width:640px){.auto-template-filters{display:block}.auto-template-filters label{display:block;margin-bottom:12px}.auto-template-filters input,.auto-template-filters select,.auto-template-fields select{font-size:16px}.auto-template-fields>details{min-width:0}.auto-template-fields summary{overflow-wrap:anywhere}}

/* Let template headings and titles fit narrow screens without hiding content. */
.template-heading>div,.template-row-header>div{min-width:0}
.template-heading h1,.template-row-header h2,.questionnaire-library .template-title-link{overflow-wrap:anywhere;white-space:normal}
@media(max-width:760px){.template-heading{flex-wrap:wrap;gap:12px}.template-heading>.button{white-space:normal;max-width:100%}.template-row-actions{flex-wrap:wrap}.template-list-row{padding:14px}.template-list-row h2{font-size:16px}}

/* Material checklist rows keep the title and all actions on one compact line. */
.template-checklist-row{padding:10px 16px}
.template-checklist-row .template-row-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px}
.template-checklist-row .template-row-header h2{font-size:15px;line-height:1.5;margin:0;overflow-wrap:anywhere}
.template-checklist-row .template-row-actions{width:auto;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.template-checklist-row .template-row-actions .button{min-height:36px;padding:6px 11px;line-height:1.4}
.template-checklist-row .template-preview-toggle{display:inline-flex;align-items:center;gap:5px;color:#22718b;background:transparent;border-color:transparent;font-weight:400}
.template-preview-chevron{display:inline-block;transition:transform .12s}
.template-preview-toggle[aria-expanded=true] .template-preview-chevron{transform:rotate(90deg)}
.template-preview-body{padding-top:12px;margin-top:10px;border-top:1px solid #e2e9e5;min-width:0}
.template-preview-body[hidden]{display:none!important}
.template-preview-body ol{padding-left:20px;font-size:14px;line-height:1.7}
.template-preview-body .template-updated{margin:0 0 10px}
@media(max-width:760px){.template-checklist-row{padding:12px 14px}.template-checklist-row .template-row-header{grid-template-columns:minmax(0,1fr);gap:8px}.template-checklist-row .template-row-actions{justify-content:flex-start;gap:6px}.template-checklist-row .template-row-actions .button{min-height:44px;padding:7px 9px;font-size:12px}}

/* Questionnaire content is edited in place, with compact readable rows. */
.questionnaire-library .template-list-row{padding:10px 16px}
.questionnaire-library .template-row-header{align-items:center;gap:16px}
.questionnaire-library .template-title-link{font-size:15px}
.questionnaire-library .template-row-header h2{margin:0}
.questionnaire-library .template-row-actions .button{min-height:36px;padding:6px 12px}
.questionnaire-document .template-heading{margin:10px 0 12px;gap:12px}
.questionnaire-document .template-heading h1{font-size:25px;margin:0}
.questionnaire-document .template-heading p{margin:4px 0}
.questionnaire-document .kicker{display:none}
.questionnaire-contents{margin:10px 0;padding:10px 12px}
.questionnaire-contents>strong{font-size:13px}
.questionnaire-section-links,.questionnaire-question-links{display:flex;flex-wrap:wrap;gap:4px 8px;margin-top:6px}
.questionnaire-contents a{margin:0;font-size:13px}
.questionnaire-question-links a{display:inline-grid;place-items:center;min-width:28px;min-height:28px;border:1px solid #d8e1e5;border-radius:4px;background:white}
.questionnaire-policy{margin:10px 0;padding:8px 12px;font-size:12px}
.questionnaire-document .template-savebar{margin:0;padding:8px 0;gap:10px}
.questionnaire-document .questionnaire-intro{display:block;padding:10px 14px}
.questionnaire-intro>summary,.questionnaire-paste>summary{cursor:pointer;font-size:14px;font-weight:600}
.questionnaire-intro>label{margin-top:10px}
.questionnaire-edit-questions{gap:0;margin:8px 0;border:1px solid #dbe4e8;border-radius:8px;background:#fff;padding:0 14px}
.questionnaire-read-questions{padding:0 14px}
.questionnaire-read-question{padding:10px 0;gap:10px}
.questionnaire-inline-question{grid-template-columns:28px minmax(0,1fr) auto;align-items:start}
.questionnaire-inline-question>.button{min-height:32px;padding:4px 8px;font-size:12px}
.questionnaire-title-button{display:block;min-height:28px;padding:0;border:0;background:transparent;box-shadow:none;font-size:14px;font-weight:600;text-align:left;white-space:normal;line-height:1.6}
.questionnaire-title-button:hover{text-decoration:underline}
.questionnaire-read-question h3{font-size:14px}
.questionnaire-section{font-size:15px!important;margin:12px 0 0!important;padding:0 0 8px}
.questionnaire-edit-question{border:0;border-bottom:1px solid #dbe4e8;border-radius:0;padding:12px 0}
.questionnaire-question-header{margin-bottom:8px;gap:6px}
.questionnaire-question-header>div{flex-wrap:wrap;justify-content:flex-end}
.questionnaire-document textarea{min-height:64px}
.questionnaire-extra{margin-top:8px;padding-top:8px}
.questionnaire-document .template-content-heading{margin:12px 0 6px}
.questionnaire-paste{margin-top:12px;padding:10px 14px}
@media(max-width:760px){
 .questionnaire-library .template-row-header{gap:8px;flex-wrap:wrap}
 .questionnaire-library .template-row-actions .button{min-height:44px}
 .questionnaire-document .template-heading h1{font-size:21px}
 .questionnaire-inline-question>.button{min-height:44px}
 .questionnaire-title-button{min-height:44px}
 .questionnaire-question-links a{min-width:36px;min-height:36px}
 .questionnaire-document .template-savebar{flex-wrap:wrap}
 .questionnaire-document .template-savebar>span{flex:1 1 180px;font-size:12px}
}

.intake-client-section{overflow:visible}.intake-search>div{display:flex;gap:8px}.intake-search input{margin:0;flex:1;min-width:0}.intake-search .button{min-width:48px}.intake-search .icon{width:20px;height:20px}.intake-results{border:1px solid #d5e1e7;border-radius:7px;margin-top:9px;max-height:320px;overflow:auto;background:#fff}.intake-results>p,.intake-no-match{padding:12px 16px;margin:0}.intake-result{width:100%;background:#fff;border:0;border-bottom:1px solid #edf0f2;padding:13px 16px;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:14px;color:#17394b;font:inherit;cursor:pointer}.intake-result:hover,.intake-result:focus-visible{background:#eef7fa}.intake-result strong,.intake-result small{display:block}.intake-result small{font-size:12px;color:#5a7180;margin-top:4px}.intake-result .tag{white-space:nowrap}.intake-result:disabled{opacity:.55;cursor:default}.intake-selected small{display:block;color:#607581;margin-top:5px}.intake-name-confirm{margin-top:15px}.intake-client-dialog{width:min(800px,calc(100vw - 28px));max-height:90dvh;overflow:auto;border:1px solid #d1dce1;border-radius:12px;padding:26px;color:#153b4e}.intake-client-dialog::backdrop{background:#06273866}.intake-client-dialog h2{margin:0}.intake-client-dialog footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.intake-modal-fields{display:grid;grid-template-columns:1fr 1fr;gap:5px 24px}.internal-targets{margin:20px 0;padding:20px;border:1px solid #cedde5;border-radius:8px}.internal-targets legend{font-weight:650}.internal-targets>p{color:#5b7280;font-size:13px;margin-top:0}.target-field{padding:4px 0}.target-field [hidden]{display:none}.target-field .check{font-size:12px}.matter-internal-targets{padding:13px 28px;display:flex;gap:20px;flex-wrap:wrap;border-top:1px solid #e1e9ed;background:#f3f8fa;font-size:13px}.matter-internal-targets strong{color:#436372}.account-state-zone{margin-top:25px;border-top:1px solid #d4e0e5;padding-top:20px}.account-state-zone>summary{font-weight:650;cursor:pointer}.account-state-zone .state-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.account-delete-confirm{padding:18px;background:#fff5f2;border:1px solid #e9c6bf;border-radius:8px;margin-top:12px}.account-state-badge{font-size:12px;color:#5d7280}.template-hub-nav{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid #d6e1e6;padding-bottom:15px;margin:0 0 24px}.template-hub-nav .active{background:#06394a;color:#fff}.evidence-group{margin:18px 0 26px}.evidence-group>h3{font-size:15px;border-bottom:1px solid #d5e0e5;padding-bottom:10px;color:#234b60}.evidence-compact-row{border-bottom:1px solid #e8eef1;padding:11px 2px}.evidence-compact-row>label{margin:0;align-items:center}.evidence-compact-row details{font-size:13px;color:#566f7d;margin:6px 0 0 28px}.evidence-compact-row summary{cursor:pointer;color:#337492}.evidence-compact-row details p{line-height:1.8;white-space:pre-wrap}.template-guidance{font-size:13px;margin-bottom:18px}.template-guidance summary{cursor:pointer;color:#376a82}.template-editor-group>h3{padding:14px 0 8px;border-bottom:1px solid #dce4e9;font-size:16px}.template-purpose{max-width:850px;color:#587080;font-size:14px;line-height:1.7}@media(max-width:700px){.intake-modal-fields{grid-template-columns:1fr}.intake-client-dialog{padding:18px;max-height:94dvh}.intake-result{padding:14px 10px;align-items:flex-start}.intake-result .tag{font-size:10px}.matter-internal-targets{padding:14px 18px;gap:10px;flex-direction:column}.template-hub-nav{flex-direction:column}.intake-client-dialog footer{position:sticky;bottom:-18px;background:#fff;padding:12px 0}.internal-targets{padding:14px}}
.message-subject{display:block;color:#4c6979;font-size:13px;margin:6px 0}.gateway-message>div>strong{font-size:15px;line-height:1.6;color:#103d54;overflow-wrap:anywhere}
.auto-generation-review{border:1px solid #b5cfdc;background:#f7fafb;border-radius:9px;padding:20px;margin:20px 0;scroll-margin-top:100px}.auto-generation-review>summary{font-weight:650;color:#15465c;cursor:pointer}.auto-generation-review p{font-size:13px;line-height:1.75}.auto-language-findings,.auto-review-notes{padding:0;list-style:none}.auto-language-findings li,.auto-review-notes li{border-top:1px solid #d8e3e9;padding:15px 0}.auto-language-findings small,.auto-review-notes small{display:block;color:#825e26}.auto-generation-review form{max-width:720px}
.case-planning{margin:22px 0;padding:18px;border:1px solid #d6e1e6;border-radius:10px}.case-planning{container:case-planning / inline-size}.case-planning-choice>label{max-width:180px}.case-planning-choice h2{margin-top:0}.case-planning fieldset{min-width:0}.case-planning fieldset{border:0;padding:12px 0 0}.planning-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,.6fr) minmax(150px,.6fr) auto;gap:12px;align-items:end;padding:14px 0;border-top:1px solid #dce5e9}.planning-row label{margin:0;min-width:0}.planning-row input{width:100%;min-width:0}.planning-row input[type=hidden]{display:none}.mandatory-summary{padding:14px 0;border-top:1px solid #dce5e9}.mandatory-summary p{margin:8px 0}
@media(max-width:740px){.planning-row{grid-template-columns:1fr}.case-planning{padding:14px}.planning-row .button{justify-self:start}}

@container case-planning (min-width: 800px){
  .case-planning-grid:has(>fieldset:not([hidden])){display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,2.5fr);gap:24px;align-items:start}
  .case-planning-grid>fieldset{margin:0;padding:0 0 0 20px;border-inline-start:1px solid #dce5e9}
  .case-planning-grid .planning-row:first-child{padding-top:0;border-top:0}
  .case-planning-grid [data-planning-fields="cycle"] .planning-row{grid-template-columns:minmax(0,1fr) minmax(120px,.65fr) auto}
}

/* Always-visible matter status; independent of the collapsible team/date strip. */
/* Always-visible matter status; independent of the collapsible team/date strip. */
.matter-status-heading{display:flex;align-items:center;gap:4px}
.matter-status-heading .icon-button{width:30px;min-height:30px;padding:4px}
.matter-status-stage{display:block;margin-block-start:4px;overflow-wrap:anywhere}
.docket-shell .matter-banner .matter-status-current {
 display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));
 gap:12px 20px;margin:0;padding:12px 0;border-bottom:1px solid var(--bc-section-line);
}
.matter-summary-item dt{color:var(--bc-muted);font-size:.875rem}
.matter-summary-item{min-width:0}.matter-summary-item dt{font-weight:600}.matter-summary-item dd{margin:0;white-space:pre-line;overflow-wrap:anywhere}
.matter-status-dialog{box-sizing:border-box;width:min(650px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #dce6df;border-radius:12px;padding:20px;color:inherit;background:#fff}
.matter-status-dialog::backdrop{background:#18292365}
.matter-status-dialog h2{font-size:19px;margin:0 0 14px}
.matter-status-dialog form{display:grid;gap:12px}
.matter-status-dialog .matter-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.matter-status-dialog .muted{margin:0}
.matter-status-actions{display:flex;justify-content:flex-end;gap:8px}
@media(max-width:600px){.matter-status-dialog .matter-summary-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){
 .docket-shell .matter-banner[data-context-expanded=false] .desk-case-meta.matter-metadata:has(.matter-status-meta){display:grid}
 .docket-shell .matter-banner[data-context-expanded=false] .matter-metadata>div:not(.matter-status-meta){display:none}
 .matter-status-meta{grid-column:1/-1}
}

.docket-shell .matter-overview-grid {
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start;
}
.docket-shell .layout .matter-overview-grid > *,
.docket-shell .layout .matter-overview-grid > :is(.matter-work,.matter-overview-people) > * {min-width:0;margin-block:0}
.matter-overview-grid > .matter-work,
.matter-overview-grid > .matter-overview-people {display:grid;gap:20px}
@media(max-width:900px) {
 .docket-shell .matter-overview-grid {grid-template-columns:minmax(0,1fr);gap:16px}
 .matter-overview-grid > .matter-work,.matter-overview-grid > .matter-overview-people {gap:16px}
}

.docket-shell .matter-overview-grid > .matter-overview-people > .matter-planning-add {
 border:1px solid var(--bc-section-line);border-radius:8px;background:#fff;padding:16px 20px;
}

/* Shared, isolated sign-in presentation for My Case and My Office. */
#app:has(.account-entry){background:#f6f8f7}
.entry-mast{background:#fff;border-bottom:1px solid #e0e7e4}
.entry-mast .mast-inner{width:min(1080px,100% - 64px);min-height:88px}
.entry-mast .brand{gap:12px}
.entry-mast .monogram{width:42px;height:42px;background:#173c43;border-radius:10px;font-size:17px}
.entry-mast .brand strong{font-family:Georgia,"Songti SC",serif;font-size:21px;font-weight:500;letter-spacing:-.025em}
.entry-mast .brand small{font-size:11px;color:#61736e;letter-spacing:.06em}
.entry-mast .text{min-width:48px;border:1px solid #dce5e1;border-radius:8px;color:#264f4b;font-size:13px}
.account-entry{--entry-accent:#24635c;display:grid;grid-template-columns:minmax(0,1fr) minmax(350px,440px);gap:clamp(42px,7vw,100px);align-content:center;align-items:center;width:min(1040px,100% - 64px);padding-block:56px 64px}
.account-entry-office{--entry-accent:#234b60}
.entry-eyebrow{font-size:12px;font-weight:700;letter-spacing:.14em;color:var(--entry-accent);margin:0 0 18px}
.account-entry h1{font-family:Georgia,"Songti SC",serif;font-weight:500;font-size:clamp(44px,4.9vw,64px);letter-spacing:-.045em;line-height:1.08;color:#193b42;margin:0 0 20px}
.entry-summary{font-size:17px;line-height:1.8;color:#526a66;max-width:430px;margin:0}
.entry-features{list-style:none;padding:0;margin:36px 0 0;display:grid;gap:24px}
.entry-features li{display:flex;gap:15px;align-items:flex-start}
.entry-feature-icon{display:grid;place-items:center;flex:none;width:42px;height:42px;border:1px solid #d9e6e0;background:#edf4ef;color:var(--entry-accent);border-radius:12px}
.account-entry-office .entry-feature-icon{background:#edf2f6;border-color:#dce6ed}
.entry-feature-icon svg{width:21px;height:21px}
.entry-features h2{font-size:15px;font-weight:650;color:#294842;margin:0 0 4px;line-height:1.5}
.entry-features p{font-size:14px;line-height:1.7;color:#60736d;margin:0;max-width:350px}
.account-entry-card.panel.login{display:block;padding:36px;border:1px solid #dfe8e3;border-radius:20px;background:#fff;box-shadow:0 14px 45px #193b4207;min-width:0}
.entry-card-label{font-size:12px;font-weight:650;letter-spacing:.03em;color:var(--entry-accent);margin:0 0 10px}
.account-entry-card h2{font-size:25px;letter-spacing:-.025em;font-weight:650;line-height:1.4;margin:0 0 9px;color:#233d3d}
.entry-card-note{font-size:14px;line-height:1.7;color:#64766f;margin:0 0 27px}
.account-entry-card form{display:grid;gap:20px;margin:0}
.account-entry-card label{display:grid;gap:8px;font-size:14px;font-weight:600;color:#344d47;margin:0}
.account-entry-card form input{width:100%;min-height:50px;font-size:16px;font-weight:400;line-height:1.4;border:1px solid #bacdc3;border-radius:9px;background:#fff;padding:12px 13px;box-shadow:none;margin:0}
.account-entry-card input:hover{border-color:#7b9d8d}
.account-entry-card input:focus-visible{outline:3px solid #d8e9df;outline-offset:1px;border-color:#397663}
.account-entry-card .entry-submit.button{display:flex;justify-content:center;gap:10px;width:100%;min-height:50px;margin:3px 0 0;border:1px solid var(--entry-accent);border-radius:9px;background:var(--entry-accent);color:#fff;font-size:15px;font-weight:650;padding:12px 16px}
.account-entry-card .entry-submit:hover{filter:brightness(.94)}
.entry-submit svg{width:17px;height:17px}
.entry-help{font-size:13px;line-height:1.8;color:#65766f;margin:19px 0 0}
.account-entry-card .entry-enrollment{display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px;border-top:1px solid #e5ece7;padding-top:12px;margin:23px 0 0;font-size:13px;line-height:1.8;color:#66776f}
.entry-enrollment a{display:inline-flex;align-items:center;min-height:44px;line-height:1.6;color:var(--entry-accent);font-weight:600}
#app:has(.account-entry)>.footer{width:min(1080px,100% - 64px);padding-block:19px 22px;margin-top:0;font-size:11px;color:#708079;border-color:#dfe7e2}
@media(max-width:760px){
 .entry-mast .mast-inner{width:calc(100% - 36px);min-height:76px;gap:12px}
 .entry-mast .brand strong{font-size:17px;line-height:1.2}
 .entry-mast .brand small{font-size:10px}
 .entry-mast .monogram{width:36px;min-width:36px;height:36px;border-radius:8px;font-size:15px}
 .entry-mast .text{font-size:12px;min-width:44px;min-height:44px}
 .account-entry{grid-template-columns:minmax(0,1fr);gap:25px;align-content:start;width:calc(100% - 36px);padding-block:32px 36px}
 .entry-eyebrow{margin-bottom:11px;font-size:11px}
 .account-entry h1{font-size:40px;margin-bottom:11px}
 .entry-summary{font-size:14px;line-height:1.75;max-width:none}
 .entry-features{display:none}
 .account-entry-card.panel.login{padding:25px 22px;border-radius:15px;box-shadow:0 8px 28px #193b4205}
 .account-entry-card h2{font-size:23px}
 .entry-card-note{font-size:13px;margin-bottom:23px}
 .account-entry-card form{gap:18px}
 .account-entry-card .entry-enrollment{font-size:12px}
 .entry-help{font-size:12px}
 #app:has(.account-entry)>.footer{width:calc(100% - 36px);font-size:10px;padding-block:16px;flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){.account-entry *{scroll-behavior:auto}}

/* Keep the complete desktop sign-in task together, including at laptop heights.
   The document remains scrollable at high zoom or when extra feedback is shown. */
@media (min-width: 761px) {
  #app:has(.account-entry) .entry-mast .mast-inner { min-height: 56px; padding-block: 4px; }
  #app .layout.account-entry { min-height: 0; margin-block: auto; padding-block: clamp(8px, 2vh, 22px); }
  .account-entry .entry-eyebrow, .account-entry h1 { margin-bottom: 8px; }
  .account-entry .entry-summary { line-height: 1.45; }
  .account-entry .entry-features { margin-top: 20px; gap: 12px; }
  .account-entry .entry-features p { line-height: 1.45; }
  .account-entry .account-entry-card.panel.login { padding: 20px 26px; }
  .account-entry .entry-card-label { margin-bottom: 4px; }
  .account-entry .entry-card-note { margin-bottom: 12px; line-height: 1.45; }
  .account-entry .account-entry-card form { gap: 10px; }
  .account-entry .account-entry-card label { gap: 4px; }
  .account-entry .account-entry-card form input,
  .account-entry .entry-submit.button { min-height: 42px; padding-block: 8px; }
  .account-entry .entry-help { margin-block: 8px 0; }
  .account-entry .account-entry-card .entry-enrollment { margin-top: 8px; padding-top: 6px; }
  .account-entry .entry-enrollment a { min-height: 28px; }
  #app:has(.account-entry) > .footer { padding-block: 8px; }
}
@media (min-width: 761px) and (max-height: 640px) {
  .account-entry .entry-card-note, .account-entry .entry-card-label { display: none; }
  .account-entry .entry-features p { display: none; }
  .account-entry .account-entry-card.panel.login { padding-block: 14px; }
}

/* Shared conversation presentation: sender identity is computed by the server. */
.chat-log{display:flex;flex-direction:column;gap:18px;padding:12px 0}
.chat-log article.chat-message{display:flex;gap:10px;align-items:flex-start;max-width:min(82%,740px);padding:0;border:0;background:transparent;min-width:0}
.chat-log .chat-other{align-self:flex-start}.chat-log .chat-self{align-self:flex-end;flex-direction:row-reverse}
.chat-avatar{width:38px;height:38px;flex:none;position:relative;display:grid;place-items:center;border-radius:50%;background:#e8eeef;color:#294b53;font-size:12px;font-weight:650;overflow:hidden}
.chat-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.chat-content{min-width:0}.chat-content header{display:flex;flex-wrap:wrap;gap:3px 8px;align-items:baseline;margin-bottom:6px}.chat-self .chat-content header{justify-content:flex-end}
.chat-title{font-size:12px;color:#526966}.chat-content strong{font-size:14px}.chat-log .chat-bubble{padding:12px 15px;border:1px solid #dce5e2;border-radius:3px 14px 14px;background:#f6f8f7;color:#233d3d}.chat-self .chat-bubble{background:#eaf3f1;border-color:#c9dfd9;border-radius:14px 3px 14px 14px}
.chat-log .chat-bubble p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.chat-bubble .tag,.chat-bubble .button{margin-top:8px}.chat-log .chat-content time{display:block;margin:5px 0 0;font-size:11px;color:#62746f}.chat-self time{text-align:right}.chat-log article.chat-message.search-matched .chat-bubble{border:2px solid #7198b0;background:#edf5fa}
.workbench-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-top:20px}.workbench-heading h2{font-size:20px;margin:0 0 6px}.workbench-heading p{font-size:13px;color:#536b65;margin:0;max-width:750px;line-height:1.7}
.workbench-home>.ref-widget:nth-child(3){grid-column:1/-1}.workbench-home>.ref-widget:last-child{grid-column:auto}
.dashboard-more{margin:24px 0;border-top:1px solid #dce5e2;padding-top:18px}.dashboard-more>summary{font-weight:650;cursor:pointer;padding:10px 0}.dashboard-more>.ref-dashboard-grid{margin-top:16px}
.template-savebar{flex-wrap:wrap;gap:10px}.template-savebar [data-template-dirty]{font-size:13px;line-height:1.7;flex:1 1 260px}.template-draft-actions:has([hidden]):not(:has(button:not([hidden]))){display:none}.template-draft-actions{display:flex;flex-wrap:wrap;gap:8px}.template-draft-actions button{min-height:44px}
.form-error-summary{border:2px solid #a13f34;border-radius:8px;padding:14px 16px;margin:0 0 20px;background:#fff8f6;scroll-margin-top:24px}.form-error-summary strong{display:block;color:#79332d}.form-error-summary p{margin:7px 0;line-height:1.6}.form-error-summary button{display:block;white-space:normal;overflow-wrap:anywhere;max-width:100%;text-align:left;text-decoration:underline;color:#79332d;min-height:44px}.form-error-summary:focus{outline:3px solid #e8c9a1;outline-offset:3px}
.field-error{font-size:13px;color:#983b31;margin:4px 0 8px;font-weight:500;line-height:1.6}input[aria-invalid=true],textarea[aria-invalid=true],select[aria-invalid=true]{border:2px solid #a13f34}
@media(max-width:700px){.chat-log article.chat-message{max-width:94%;gap:8px}.chat-avatar{width:32px;height:32px;font-size:11px}.chat-log .chat-bubble{padding:10px 12px}.chat-content header{gap:2px 6px}.chat-content strong{font-size:13px}.chat-title{font-size:11px}.workbench-heading{align-items:flex-start;flex-wrap:wrap}.workbench-home>.ref-widget:nth-child(n){grid-column:auto}.template-savebar{position:static}.form-error-summary{padding:12px}.chat-log .chat-bubble p{font-size:15px}}
.matter-subnav .button{white-space:nowrap;flex:none;min-height:44px}.matter-subnav{flex-wrap:wrap}
.workbench-home .ref-compact-list button{border:0;box-shadow:none;background:transparent;padding:4px 0;min-height:36px;text-decoration:underline;margin-right:10px}.workbench-other-title{font-size:14px;margin:14px 0 8px}
.portal-account-menu{position:relative;flex:none}.portal-account-menu>summary{display:flex;align-items:center;gap:7px;list-style:none;cursor:pointer;min-height:44px;padding:8px 10px;border:1px solid #d9e3df;border-radius:8px;color:#284e49;background:#fff;font-size:13px}.portal-account-menu>summary::-webkit-details-marker{display:none}.portal-account-menu>summary svg{width:18px;height:18px}.portal-account-menu>summary:focus-visible{outline:3px solid #a7c8df;outline-offset:2px}
.portal-account-options{position:absolute;right:0;top:calc(100% + 6px);width:250px;max-width:calc(100vw - 32px);background:#fff;border:1px solid #d9e3df;border-radius:12px;box-shadow:0 12px 36px #193b4220;padding:10px;z-index:100}.portal-account-options>p{padding:6px 8px 12px;margin:0}.portal-account-options strong,.portal-account-options small{display:block;overflow-wrap:anywhere}.portal-account-options small{font-size:12px;color:#61736e;margin-top:4px}.portal-account-options .button{display:block;width:100%;text-align:left;min-height:44px;border:0;background:transparent;color:#284e49;padding:10px;border-radius:6px}.portal-account-options .button:hover{background:#edf4f1}.portal-account-options hr{border:0;border-top:1px solid #e1e9e5;margin:6px 0}
.portal-account-dialog{width:min(460px,calc(100vw - 32px));max-height:90dvh;overflow:auto;border:1px solid #d9e3df;border-radius:16px;padding:24px;box-shadow:0 20px 60px #173c4330}.portal-account-dialog::backdrop{background:#173c4355}.portal-account-dialog header{display:flex;justify-content:space-between;gap:20px;align-items:center}.portal-account-dialog h2{margin:0;font-size:23px}.portal-account-dialog dl>div{padding:14px 0;border-bottom:1px solid #e3ebe7}.portal-account-dialog dt{font-size:13px;color:#61736e}.portal-account-dialog dd{margin:5px 0 0;overflow-wrap:anywhere;font-size:16px}.portal-account-dialog .icon-button{min-width:44px;min-height:44px}
@media(max-width:600px){.portal-account-menu>summary{min-width:44px;justify-content:center;padding:8px}.portal-account-menu>summary>span:first-of-type{display:none}.portal-account-options{width:240px}}
/* Daily workspace layout: shared navigation and form rhythm. */
.firm-live-shell .matter-banner .firm-case-navigation{display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:0}
.firm-live-shell .matter-banner .firm-case-navigation>.firm-navigation{width:100%;margin:0}
.firm-live-shell .matter-banner .matter-subnav{width:100%;margin:8px 0 0;padding:8px 0 0;gap:6px;align-items:center}
.firm-live-shell .panel>h1{font-size:26px;line-height:1.3;letter-spacing:-.02em;margin:0 0 18px}
.firm-live-shell .firm-search{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;max-width:780px}
.firm-live-shell .firm-search label{min-width:0;max-width:none;width:100%}
.firm-live-shell .firm-search input{width:100%;max-width:none}
.firm-live-shell [data-form="firm-message"]>label:not(.check),.firm-live-shell [data-form="firm-internal-message"]>label:not(.check){max-width:none;width:100%}
.firm-live-shell [data-form="firm-message"] textarea,.firm-live-shell [data-form="firm-internal-message"] textarea{width:100%;min-height:112px}
.firm-live-shell .events>li>div{min-width:0;overflow-wrap:anywhere}
[data-form="team-home-filter"].team-editor{display:flex;align-items:end;gap:12px;max-width:640px;padding:0;margin:0 0 20px;background:transparent;border:0;border-radius:0}
[data-form="team-home-filter"] label{flex:1;min-width:0;max-width:none;margin:0;font-size:13px}
[data-form="team-home-filter"] select{width:100%;min-height:44px;margin-top:6px}
[data-form="team-home-filter"]>.button{flex:none;min-height:44px}
.workbench-heading{margin-top:0}
@media(max-width:740px){
 .firm-live-shell.docket-shell{grid-template-rows:auto minmax(0,1fr);align-content:start}
 .firm-live-shell .panel>h1{font-size:22px;margin-bottom:16px}
 .firm-live-shell .matter-banner .firm-case-navigation{gap:0}
 .firm-live-shell .matter-banner .matter-subnav{margin-top:6px;padding-top:6px}
 .firm-live-shell .matter-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}
 .firm-live-shell .matter-filters label{width:100%;min-width:0}
 .firm-live-shell .matter-filters label:first-child{grid-column:1/-1}
 .firm-live-shell .matter-filters>.button{min-height:44px}
 .firm-live-shell .firm-search{gap:8px;max-width:none}
 .firm-live-shell .firm-search label{font-size:13px}
 .firm-live-shell .events>li{gap:10px;flex-wrap:wrap}
 .firm-live-shell .events>li>div{flex:1 1 180px}
 [data-form="team-home-filter"].team-editor{max-width:none;gap:8px;margin-bottom:18px}
 .workbench-heading>.button{min-height:44px}
 .team-center-dialog .icon-button{min-height:44px;min-width:44px}
}

.firm-live-shell [data-form="firm-signed-profile"]{display:grid;gap:16px}
.firm-live-shell [data-form="firm-signed-profile"]>label{margin:0;max-width:none;min-width:0}
.firm-live-shell [data-form="firm-signed-profile"]>details{margin:4px 0;padding-block:12px;border-block:1px solid var(--line)}
.firm-live-shell [data-form="firm-signed-profile"]>.button{justify-self:start;min-height:44px}
.material-metadata{padding:12px;background:#f5f8fa;border-radius:8px;font-size:13px;margin:0 0 16px}.material-metadata dt{color:#607986;margin-bottom:6px}.material-metadata dd{margin:0;overflow-wrap:anywhere;line-height:1.7}.material-template-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:300px;overflow:auto;margin:12px 0 20px}.material-template-card{display:flex;gap:10px;padding:12px;border:1px solid #d6e1e6;border-radius:8px;margin:0!important;cursor:pointer;align-items:start}.material-template-card:has(input:checked){background:#edf6f6;border-color:#42808b}.material-template-card input{width:auto;flex:none}.material-template-cards [hidden],.material-catalog [hidden],[data-material-item][hidden]{display:none!important}.auto-pdf-paper{position:relative}.auto-pdf-edit-layer{position:absolute;top:15px;left:50%;transform:translateX(-50%);pointer-events:none}.auto-pdf-edit-layer input,.auto-pdf-edit-layer select{position:absolute;pointer-events:auto;min-height:0!important;min-width:0!important;margin:0!important;padding:0 2px!important;border:1px solid #3681aa88!important;border-radius:0!important;background:#eaf7ffcc!important;color:#152e3e;font-size:10px!important;line-height:1!important;box-shadow:none}.auto-pdf-edit-layer input:focus,.auto-pdf-edit-layer select:focus{background:white!important;outline:2px solid #2780ad;z-index:2}.auto-pdf-edit-layer input[type=checkbox],.auto-pdf-edit-layer input[type=radio]{appearance:auto!important}
@media(max-width:740px){.material-template-cards{grid-template-columns:1fr 1fr}.material-template-card{font-size:13px}.material-template-card span{overflow-wrap:anywhere}}

.home-quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}.home-quick-action{display:flex;flex-direction:column;align-items:flex-start;gap:14px;min-height:112px;padding:22px;background:#fff;border:1px solid #dce5e5;border-radius:14px;color:#174e51;text-align:left}.home-quick-action strong{font-size:1.1rem}.home-case-filter{display:flex;align-items:end;gap:10px;margin:22px 0}.home-case-filter label{flex:1;max-width:420px}.conversation-dates{display:block;color:#637879;font-size:.85rem;line-height:1.6}.appointment-time-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.appointment-time-grid button{white-space:normal;padding:10px 6px}.appointment-time-grid button[aria-pressed="true"]{background:#215f61;color:#fff}.appointment-time-grid button:disabled{opacity:.55;background:#edf0f0;color:#687677}.appointment-picker-grid,fieldset[data-appointment-picker]{min-width:0;max-width:100%}[data-appointment-preview]{display:block;overflow-wrap:anywhere;margin-top:14px}@media(max-width:640px){.home-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.home-quick-action{min-height:94px;padding:16px}.appointment-time-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-case-filter{align-items:stretch;flex-direction:column}.home-case-filter label{max-width:none}}

/* Calm, task-led refinement. Existing controls and permissions remain authoritative. */
.docket-shell{--desk-text:#243e44;--desk-faint:#687c80;--desk-border:#e3e9e7;--docket-navy:#204f52;background:#f5f7f5;grid-template-columns:224px minmax(0,1fr)}
.docket-shell .firm-live-sidebar{background:#eef2ef;border-right:1px solid #e1e7e2;padding:30px 18px}
.docket-shell .docket-identity{gap:24px;margin-bottom:30px}
.docket-shell .docket-identity .brand{padding:0 10px}
.docket-shell .docket-identity .brand strong{font-size:15px;line-height:1.55;letter-spacing:.01em;color:#25484b}
.docket-shell .docket-identity .monogram{background:#faf9f2;border:1px solid #e0dac9;color:#77664c;border-radius:11px}
.docket-shell .docket-identity .desk-sidebar-user{padding:14px 10px;border-top:1px solid #dde5df;border-bottom:1px solid #dde5df}
.docket-shell .docket-identity .desk-avatar{background:#d6e4dd;color:#315b4d;font-weight:650}
.docket-shell .docket-identity .docket-create.button{background:#285b59;border-color:#285b59;min-height:44px;border-radius:12px;justify-content:center;gap:10px;box-shadow:0 3px 8px #173e3510}
.docket-shell .docket-identity .docket-create.button:hover{background:#204b49}
.docket-shell .desk-nav-caption{font-size:11px;letter-spacing:.08em;color:#61726c;margin:24px 0 8px;padding-left:14px}
.docket-shell .desk-nav-link.button{min-height:44px;font-size:14px;color:#546d68;border-radius:11px;gap:12px;margin:3px 0}
.docket-shell .desk-nav-link.button[aria-current=page]{background:#fff;color:#234f49;box-shadow:0 2px 7px #294d3c08;font-weight:650}
.docket-shell .desk-nav-link.button:hover{background:#e5ece5}
.docket-shell .firm-extra-nav{margin-top:28px}
.docket-shell .desk-content{background:#f7f9f7;min-width:0}
.docket-shell .matter-mast{border:0;border-bottom:1px solid #e4ebe5;border-radius:0;margin:0;background:#f7f9f7f5}
.docket-shell .matter-mast .mast-inner{min-height:68px;padding:12px 36px;gap:16px}
.docket-shell .matter-mast .button{border-color:#e0e7e2;background:#fff;border-radius:10px;min-height:38px;color:#45625d}
.docket-shell .desk-content .layout{padding:30px 36px 48px;max-width:1480px;margin:0 auto}
.docket-shell .docket-heading h1,.docket-shell .desk-heading h1,.docket-shell .matter-title h1{font-size:28px;font-weight:650;letter-spacing:-.03em;color:#234449}
.docket-shell .docket-heading p,.docket-shell .desk-heading p{font-size:14px;color:#60716c;line-height:1.7;margin-top:9px}
.docket-shell .button{border-radius:10px;min-height:40px;font-weight:550;transition:background .12s ease,border-color .12s ease}
.docket-shell .button.primary{background:#285b59;border-color:#285b59;border-radius:10px;min-height:42px;font-size:14px;padding:10px 18px;box-shadow:0 2px 5px #214f4910}
.docket-shell .button.primary:hover{background:#1d4947}
.docket-shell .button.text{color:#416963}
.docket-shell .button:focus-visible,.billing-workspace summary:focus-visible{outline:3px solid #72a89a;outline-offset:3px}
.docket-shell .matter-banner{background:transparent;border-bottom:0;padding:27px 36px 0;max-width:1480px;margin:auto}
.docket-shell .matter-banner-inner{padding:0!important}
.docket-shell .matter-title{margin-bottom:9px;gap:18px}
.docket-shell .matter-title>.button{background:#fff;border:1px solid #e0e7e2;padding:8px 15px;font-size:13px;color:#57716b}
.docket-shell .matter-crumb{font-size:12px;color:#626e6b;margin-bottom:24px;line-height:1.8;flex-wrap:wrap}
.docket-shell .matter-tabs{margin:0;border:0;border-bottom:1px solid #dfe7e1;border-radius:0;background:transparent;gap:5px;padding:0;box-shadow:none}
.docket-shell .matter-tabs .button{background:transparent;border:0;border-radius:9px 9px 0 0;padding:13px 17px;min-height:46px;color:#60716a;font-size:13px;box-shadow:none;white-space:nowrap}
.docket-shell .matter-tabs .button[aria-current=page]{background:#e7f0e9;color:#28594e;box-shadow:inset 0 -2px #527c64;font-weight:650}
.docket-shell .matter-metadata{background:transparent;border:0;border-radius:0;padding:17px 0;gap:26px;margin:0;border-bottom:1px solid #e6ece6}
.docket-shell .matter-metadata>div{border:0!important;padding:0!important}
.docket-shell .matter-metadata small{font-size:11px;letter-spacing:.02em;color:#636e6a;margin-bottom:5px}
.docket-shell .matter-metadata strong{font-size:13px;color:#526a60;font-weight:550}
.docket-shell .matter-metadata .tag{background:#f5ebd9;color:#87682c;border:0;font-size:11px;padding:5px 10px;border-radius:20px}
.docket-shell .matter-subnav{border:0;background:transparent;padding:10px 0;gap:8px}
.docket-shell .panel{border-color:#e3eae4;border-radius:16px;box-shadow:0 3px 15px #243c2803;padding:26px;background:#fff}
.docket-shell input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.docket-shell select,.docket-shell textarea{border-color:#dce5df;border-radius:9px;background:#fff;box-shadow:none}
.docket-shell label{color:#5d736c;font-weight:500}
.docket-shell .ref-widget{background:#fff;border:1px solid #e4ebe5;border-radius:16px;padding:23px;box-shadow:0 3px 14px #25432f03;min-width:0}
.docket-shell .ref-widget>header{border:0;padding:0;margin:0 0 17px}
.docket-shell .ref-widget h2{font-size:16px;color:#35584e;font-weight:650;line-height:1.55}
.docket-shell .workbench-home{gap:18px}
.docket-shell .workbench-home .ref-widget-body{border:0;padding:0;border-radius:0;background:none}
.docket-shell .workbench-home .ref-widget-body>p{font-size:14px;color:#65706a;line-height:1.8;padding:6px 0}
.docket-shell .workbench-heading h2{font-size:20px;letter-spacing:-.02em}
.docket-shell .workbench-heading p{color:#617069;font-size:13px;max-width:680px;line-height:1.8}
.docket-shell [data-form=team-home-filter]{border:0;background:transparent;padding:0 0 20px;margin:0;display:flex;align-items:end;gap:12px;max-width:500px}
.docket-shell [data-form=team-home-filter] label{flex:1;font-size:12px}
.docket-shell .ref-widget .desk-queue>li,.docket-shell .ref-widget .ref-compact-list>li{border-bottom:1px solid #edf1eb;padding:13px 0;font-size:13px}
.docket-shell .ref-widget .desk-queue>li:last-child,.docket-shell .ref-widget .ref-compact-list>li:last-child{border-bottom:0}
.docket-shell .dashboard-more{border:1px solid #e4ebe5;background:#fff;border-radius:14px;padding:18px 22px;margin-top:25px}
.docket-shell .document-card{border-color:#e1e8e2;border-radius:13px;margin:12px 0;box-shadow:none}
.docket-shell .document-card>summary{padding:19px 20px;background:#fff}
.docket-shell .material-metadata{background:#f3f7f2;border-radius:10px;color:#5b7363;padding:15px 18px}
.docket-shell .document-card-body{padding:20px}
.docket-shell .review-note{border-color:#d9e4dc;background:#f2f6f1;border-radius:9px;color:#536f5e}
.docket-shell .billing-case-timer{border:0;background:#edf3ee;border-radius:12px;margin:15px 0;padding:16px 20px}
/* Billing: a clear rhythm of title, section navigation, summary and records. */
.billing-workspace{max-width:1260px;margin:0 auto;min-width:0;color:#294540}
.billing-page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 25px}
.billing-page-heading h2{font-size:29px!important;font-weight:650!important;letter-spacing:-.035em;margin:3px 0 9px;color:#254d46}
.billing-page-heading p{font-size:14px;line-height:1.7;color:#617067;margin:0}
.billing-page-heading .billing-eyebrow{font-size:10px;letter-spacing:.13em;text-transform:uppercase;color:#66726a;margin:0 0 7px}
.billing-page-heading>.button{font-size:13px;flex-shrink:0}
.billing-view-nav{display:flex;gap:28px;border-bottom:1px solid #dde7dd;margin:0 0 27px;padding:0 4px}
.billing-view-nav .button{background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;font-size:14px;color:#656f68!important;min-height:49px;padding:8px 0 13px;position:relative;white-space:nowrap}
.billing-view-nav .button[aria-current=page]{color:#2b5d4d!important;font-weight:650}
.billing-view-nav .button[aria-current=page]:after{content:'';height:3px;border-radius:3px;background:#688f71;position:absolute;bottom:-1px;left:0;right:0}
.billing-view-nav .button span{font-size:10px;margin-left:8px;background:#e8efe6;border-radius:6px;padding:3px 6px;min-width:18px;color:#5b7259}
.billing-view-panel[hidden]{display:none!important}
.billing-time-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:#eef3e9;border:1px solid #e2e9db;border-radius:16px;padding:23px 6px;margin:0 0 18px}
.billing-time-totals>div{border:0;border-radius:0;padding:3px 25px;border-right:1px solid #dce6d6;min-width:0}
.billing-time-totals>div:last-child{border:0}
.billing-time-totals small{font-size:12px;color:#65715a;line-height:1.6}
.billing-time-totals strong{color:#3d5f3c;font-size:29px;font-weight:550;margin-top:8px;letter-spacing:-.03em;line-height:1.25;font-variant-numeric:tabular-nums}
.billing-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin:4px 0 25px;min-width:0}
.billing-filter-disclosure{flex:1;min-width:0}
.billing-filter-disclosure>summary{display:inline-flex;align-items:center;gap:10px;list-style:none;cursor:pointer;font-size:13px;color:#607366;padding:10px 0;min-height:40px}
.billing-filter-disclosure>summary:before{content:'';display:block;width:14px;height:10px;background:linear-gradient(#8a9f8e,#8a9f8e) 0 0/14px 1px no-repeat,linear-gradient(#8a9f8e,#8a9f8e) 3px 5px/8px 1px no-repeat,linear-gradient(#8a9f8e,#8a9f8e) 5px 10px/4px 1px no-repeat}
.billing-filter-disclosure>summary::-webkit-details-marker{display:none}
.billing-time-filters{padding:18px;background:#fff;border:1px solid #e0e7df;border-radius:12px;margin:8px 0 0;gap:12px}
.billing-time-filters label{font-size:11px!important;font-weight:500!important;min-width:125px}
.billing-time-filters input,.billing-time-filters select{font-size:13px;min-height:40px}
.billing-timer-entry{padding-top:0;flex:none}
.billing-timer-entry>.button:before{content:'▷';margin-right:8px;color:#4f745e}
.billing-timer-entry .muted{font-size:12px;max-width:240px;color:#667269;margin:9px 0}
.billing-records,.billing-invoices{background:#fff;border:1px solid #e2e9e2;border-radius:16px;padding:24px;margin:0 0 22px;box-shadow:0 4px 18px #24452a03;min-width:0}
.billing-records>.line,.billing-invoices>.line{margin:0 0 22px;gap:16px;align-items:center}
.billing-records h3,.billing-invoices h3,.billing-settings-panel h3{font-size:18px;margin:0;color:#35594b;font-weight:650}
.billing-section-note{font-size:12px!important;color:#657169!important;margin:6px 0 0!important;line-height:1.7}
.billing-workspace .billing-time-table{border-collapse:collapse;min-width:0;width:100%;background:none;font-size:13px}
.billing-workspace .billing-time-table thead th{background:#f8faf6;border-top:0;border-bottom:1px solid #e6ece3;color:#656f62;font-size:11px;font-weight:550;padding:13px 12px;white-space:nowrap}
.billing-workspace .billing-time-table td{padding:20px 12px;border-bottom:1px solid #edf1e9;vertical-align:top}
.billing-workspace .billing-time-table tbody tr:last-child td{border-bottom:0}
.billing-workspace .billing-time-table tbody tr:hover{background:#fafcf8}
.billing-work-cell>small{color:#676e61;font-size:11px;display:block;margin:0 0 6px}
.billing-workspace .time-description{font-weight:550;color:#41604e;font-size:13px;line-height:1.75;margin:0;max-width:360px}
.billing-workspace .billing-duration-cell strong{font-size:14px;font-weight:600;white-space:nowrap;color:#355c44}
.billing-select{width:24px}
.billing-select input{accent-color:#668a6a;width:16px;height:16px;margin-top:4px}
.billing-status{font-size:11px;line-height:1.4;display:inline-block;padding:5px 9px;background:#f0f3ed;border-radius:6px;color:#64715d;white-space:nowrap}
.billing-status-submitted{background:#edf2f8;color:#59718a}
.billing-status-approved,.billing-status-billed{background:#eaf2e6;color:#55784c}
.billing-status-returned{background:#faf0dd;color:#856b3c}
.billing-row-details{margin-top:8px;max-width:240px}
.billing-row-details summary{font-size:11px;color:#666f61;cursor:pointer}
.billing-row-details small{display:block;font-size:11px;color:#687161;line-height:1.9;margin-top:7px;overflow-wrap:anywhere}
.billing-edit-cell .button{font-size:12px;min-height:36px;padding:5px 8px}
.billing-batch-action{border-top:1px solid #e7eee2;padding-top:18px;margin-top:10px;align-items:center}
.billing-batch-action small{color:#65715e;font-size:11px}
.billing-empty{text-align:center;padding:42px 20px 50px;max-width:540px;margin:auto}
.billing-empty-mark{display:grid;place-items:center;width:60px;height:60px;border-radius:50%;background:#f0f5e9;color:#617353;font-size:31px;font-weight:300;margin:0 auto 19px}
.billing-empty h4{font-size:18px;color:#56714d;font-weight:550;margin:0 0 9px;letter-spacing:-.015em}
.billing-empty p{font-size:13px;line-height:1.9;color:#67705e;max-width:350px;margin:auto}
.billing-settings-panel,.billing-section-intro{padding:23px;border:1px solid #e2e9df;border-radius:14px;background:#fff;margin:0 0 25px}
.billing-section-intro h3{font-size:20px;margin:0;color:#446647}
.billing-section-intro p{font-size:13px;color:#667360;margin:9px 0 0}
.billing-workspace .team-editor{border:1px solid #e0e8dc;border-radius:12px;background:#f7faf3;padding:22px;margin:20px 0}
.billing-workspace .team-editor h4{font-size:17px;font-weight:600;margin:0 0 18px;color:#506e45}
.billing-workspace .team-editor label{font-size:12px;color:#65735b}
.billing-workspace .team-editor textarea{line-height:1.8;background:#fff}
.billing-original-timers{padding:18px 0;border-top:1px solid #e1e8dd;color:#617358;font-size:13px}
.billing-workspace .invoice-card{border-color:#e2e9dc;border-radius:12px;box-shadow:none}
.billing-workspace .invoice-card>summary{padding:21px;gap:15px}
.billing-workspace .invoice-card>summary strong{color:#516e43;font-weight:600;font-variant-numeric:tabular-nums}
.billing-workspace .invoice-card>summary small{color:#68725e;font-size:12px;margin-top:8px}
.billing-workspace .time-completeness{border:1px solid #dce7d6;border-left:3px solid #9ab48b;background:#f2f7ed;border-radius:13px;padding:24px}
@media(min-width:1500px){.docket-shell .desk-content .layout,.docket-shell .matter-banner{padding-left:52px;padding-right:52px}}
@media(max-width:1000px){.docket-shell{grid-template-columns:195px minmax(0,1fr)}.docket-shell .firm-live-sidebar{padding-inline:12px}.docket-shell .desk-content .layout{padding:25px}.docket-shell .matter-banner{padding:24px 25px 0}.docket-shell .matter-mast .mast-inner{padding-inline:25px}.billing-time-totals>div{padding:3px 15px}.billing-view-nav{gap:22px}.billing-workspace .billing-time-table td{padding:16px 8px}}
@media(max-width:760px){.docket-shell{display:block}.docket-shell .firm-live-sidebar{border:0;border-bottom:1px solid #e0e7dd;padding:14px 18px;background:#f0f4ed}.docket-shell .docket-identity{margin:0;gap:12px}.docket-shell .docket-identity .brand{padding:0}.docket-shell .docket-identity .docket-create.button{min-height:38px;padding:7px 12px;font-size:12px}.docket-shell .desk-content .layout{padding:23px 18px 35px}.docket-shell .matter-mast .mast-inner{min-height:53px;padding:8px 18px}.docket-shell .matter-banner{padding:23px 18px 0}.docket-shell .matter-title h1{font-size:24px}.docket-shell .matter-crumb{margin-bottom:18px}.docket-shell .matter-tabs{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}.docket-shell .matter-tabs .button{padding:11px 12px;font-size:12px;flex:none}.docket-shell .matter-metadata{gap:12px;padding:15px 0}.docket-shell .matter-metadata strong{font-size:12px}.docket-shell .ref-widget{padding:20px}.docket-shell .workbench-home{gap:14px}.billing-page-heading h2{font-size:25px!important}.billing-page-heading{gap:12px;margin-bottom:21px;align-items:flex-start}.billing-page-heading p{font-size:13px}.billing-page-heading>.button{min-width:0;padding:7px 0;font-size:12px}.billing-view-nav{gap:23px;margin-bottom:22px;overflow-x:auto;scrollbar-width:none}.billing-view-nav .button{font-size:13px;flex:none}.billing-time-totals{grid-template-columns:repeat(2,minmax(0,1fr));padding:5px 0 12px;gap:0;border-radius:14px}.billing-time-totals>div{padding:15px 20px 11px;border:0}.billing-time-totals>div:nth-child(odd){border-right:1px solid #dce6d6}.billing-time-totals strong{font-size:25px}.billing-time-totals small{font-size:11px}.billing-toolbar{gap:10px;margin-bottom:15px}.billing-time-filters{grid-template-columns:1fr;padding:14px}.billing-time-filters input,.billing-time-filters select{font-size:16px}.billing-timer-entry .button{font-size:12px;padding-inline:0}.billing-records,.billing-invoices{padding:19px 16px;border-radius:14px}.billing-records>.line{gap:8px;align-items:center}.billing-records h3{font-size:16px}.billing-records>.line .button{padding:9px 12px;font-size:12px}.billing-section-note{font-size:11px!important}.billing-workspace .billing-time-table,.billing-workspace .billing-time-table tbody{display:block;min-width:0}.billing-workspace .billing-time-table thead{display:none}.billing-workspace .billing-time-table tr{display:grid;grid-template-columns:1fr auto;gap:10px 12px;padding:19px 0;border-bottom:1px solid #e5ecdf;position:relative}.billing-workspace .billing-time-table tr:last-child{border:0}.billing-workspace .billing-time-table td{display:block;padding:0;border:0;min-width:0}.billing-workspace .billing-time-table .billing-work-cell{grid-column:1/-1;padding-right:25px}.billing-workspace .billing-time-table td.billing-select{position:absolute;top:20px;right:0;width:auto}.billing-workspace .billing-time-table td[data-label]{font-size:12px;color:#65725e}.billing-workspace .billing-time-table td.billing-duration-cell{text-align:right}.billing-workspace .billing-time-table td.billing-edit-cell{text-align:right;align-self:center}.billing-row-details{max-width:200px}.billing-workspace .time-description{max-width:none;font-size:14px}.billing-workspace .team-table-wrap{overflow:visible}.billing-workspace .invoice-detail .team-table-wrap{overflow:auto}.billing-empty{padding:35px 6px}.billing-empty h4{font-size:17px}.billing-empty p{font-size:12px}.billing-settings-panel,.billing-section-intro{padding:19px}.billing-workspace .team-editor{padding:16px}.billing-workspace .time-completeness{padding:18px}}
@media(prefers-reduced-motion:reduce){.docket-shell .button{transition:none}}

.docket-shell .matter-banner .matter-banner-inner{margin:0 0 8px;padding:0}.docket-shell .matter-banner .matter-crumb{margin:8px 0 14px}.docket-shell .matter-banner .firm-navigation{border:0;border-bottom:1px solid #dce6df;background:transparent;border-radius:0;gap:7px}.docket-shell .matter-banner .firm-navigation .button{border:0;border-radius:8px 8px 0 0;background:none;color:#5c7468;padding:10px 14px;min-height:43px;font-size:13px}.docket-shell .matter-banner .firm-navigation .button[aria-current=page]{border:0;background:#e4eee5;color:#285443;box-shadow:inset 0 -2px #709379}.docket-shell .matter-banner .desk-case-meta.matter-metadata{border:0;border-bottom:1px solid #e3ebe2;background:transparent;padding:14px 0;margin:0;gap:24px}.docket-shell .matter-banner{padding-top:24px}.billing-page-heading{margin-bottom:19px}.billing-page-heading h2{font-size:27px!important;margin-bottom:6px}.billing-view-nav{margin-bottom:22px}.billing-time-totals{padding-block:19px}.billing-time-totals strong{font-size:26px}.billing-workspace [data-form=billing-time]{scroll-margin-top:86px}.billing-workspace .team-editor input,.billing-workspace .team-editor textarea,.billing-workspace .team-editor select{font-size:16px}.billing-workspace .team-editor .muted{font-size:12px;line-height:1.75}.billing-workspace .team-editor>.operation-draft-note{font-size:11px}.billing-workspace .team-editor .team-fields{margin-bottom:15px}
@media(max-width:760px){.docket-shell .matter-banner .firm-navigation{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:4px}.docket-shell .matter-banner .firm-navigation .button{padding:9px 12px;font-size:12px}.docket-shell .matter-banner .desk-case-meta.matter-metadata{gap:10px}.billing-page-heading h2{font-size:24px!important}.billing-workspace .billing-time-table tr:hover{background:none}.billing-workspace .billing-time-table .time-description{font-size:14px}.billing-workspace .team-editor{scroll-margin-top:65px}}
.docket-shell .matter-context-toggle{display:none}
@media(max-width:760px){
 .docket-shell .firm-live-sidebar{padding:10px 16px 9px}
 .docket-shell .docket-identity .brand strong{font-size:13px}
 .docket-shell .docket-identity .brand small{font-size:10px}
 .docket-shell .firm-primary-nav{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:5px;padding:5px 0;margin:6px 0 0;scrollbar-width:none}
 .docket-shell .firm-primary-nav .desk-nav-link.button{display:flex;flex-direction:row;align-items:center;flex:0 0 auto;gap:7px;padding:8px 10px;min-height:40px;font-size:12px;min-width:0;width:auto}
 .docket-shell .firm-primary-nav .desk-nav-link.button span{white-space:nowrap;line-height:1.3}
 .docket-shell .firm-primary-nav .desk-nav-link.button svg{width:17px;height:17px}
 .docket-shell .firm-extra-nav{margin-top:5px!important;padding-top:4px!important;font-size:11px}
 .docket-shell .matter-banner{padding-top:17px}
 .docket-shell .matter-title h1{font-size:21px}
 .docket-shell .matter-title>.button{font-size:11px;min-height:35px;padding:6px 9px;flex-shrink:0}
 .docket-shell .matter-banner .matter-crumb{font-size:10px;margin:5px 0 12px;gap:5px;line-height:1.6}
 .docket-shell .matter-banner .matter-context-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;font-size:11px;min-height:40px;padding:8px 0;color:#62775e}
 .docket-shell .matter-context-toggle:after{content:'⌄';font-size:15px}
 .docket-shell .matter-context-toggle[aria-expanded=true]:after{content:'⌃'}
 .docket-shell .matter-banner[data-context-expanded=false] .desk-case-meta.matter-metadata{display:none}
 .docket-shell .desk-content .layout{padding-top:20px}
 .billing-page-heading{margin-bottom:15px}
 .billing-view-nav{margin-bottom:18px}
 .billing-time-totals{margin-bottom:10px}
}
@media(max-width:760px){
 .docket-shell .matter-banner .matter-context-toggle.button{border:0;background:transparent;box-shadow:none;border-radius:0}
 .billing-time-totals{grid-template-columns:repeat(4,minmax(112px,1fr));overflow-x:auto;scrollbar-width:thin;padding:14px 0;border-radius:12px}
 .billing-time-totals>div,.billing-time-totals>div:nth-child(odd){padding:2px 15px;border-right:1px solid #dce6d6}
 .billing-time-totals>div:last-child{border:0}
 .billing-time-totals strong{font-size:22px;white-space:nowrap;margin-top:7px}
 .billing-time-totals small{font-size:10px;white-space:nowrap}
}
.docket-shell .docket-identity .docket-create.button{font-size:12px;white-space:nowrap;gap:8px;padding-inline:12px;min-height:44px}

/* Purposeful density and progressive disclosure for internal long-running work. */
.adaptive-management{max-width:1440px!important;width:100%;padding:24px!important;box-sizing:border-box;min-width:0}.adaptive-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px}.adaptive-heading h1{font-size:28px;margin:2px 0}.adaptive-heading h2{font-size:22px;margin:0}.adaptive-tabs{display:flex;gap:6px;border-bottom:1px solid #dce5df;padding-bottom:10px;margin-bottom:24px;overflow:auto}.adaptive-tabs [aria-current=page]{background:#285c50;color:#fff}.adaptive-body{min-width:0}.adaptive-filter,.adaptive-viewbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:16px 0}.adaptive-filter label,.adaptive-viewbar label{font-size:13px;display:grid;gap:5px}.adaptive-filter input,.adaptive-filter select,.adaptive-viewbar select{min-height:36px;min-width:135px;max-width:260px}.adaptive-filter .button{min-height:36px}.adaptive-custom-range{display:flex;gap:12px}.adaptive-custom-range[hidden]{display:none}.adaptive-advanced{align-self:center}.adaptive-advanced[open]{flex-basis:100%}.adaptive-range-label{font-size:13px;color:#617169}.adaptive-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}.adaptive-metric{padding:20px;text-align:left;background:#fff;border:1px solid #dbe5df;border-radius:12px;color:#244c43;cursor:pointer}.adaptive-metric[aria-pressed=true]{border:2px solid #326e5e;padding:19px;background:#f0f6f1}.adaptive-metric span,.adaptive-metric small{display:block;font-size:13px}.adaptive-metric strong{display:block;font-size:28px;margin:12px 0;overflow-wrap:anywhere}.adaptive-analysis{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(250px,1fr);gap:16px}.adaptive-panel{padding:20px;background:#fff;border:1px solid #dce5df;border-radius:12px;margin-bottom:16px;min-width:0}.adaptive-panel h3{font-size:16px;margin:0 0 16px}.adaptive-chart{display:block;width:100%;height:260px;fill:#578771}.adaptive-chart text{fill:#65756b;font-size:13px}.adaptive-trend-values{display:flex;flex-wrap:wrap;gap:12px;font-size:12px}.adaptive-trend-values span{display:grid}.adaptive-groups{list-style:none;margin:16px 0 0;padding:0;max-height:300px;overflow:auto}.adaptive-groups button{border:0;border-bottom:1px solid #e5ebe6;background:transparent;display:flex;justify-content:space-between;gap:16px;width:100%;padding:14px 4px;text-align:left;color:#2c5147;cursor:pointer}.adaptive-groups [aria-pressed=true]{background:#eaf2eb}.adaptive-inline-editor{padding:16px;background:#edf4ef;display:flex;align-items:end;flex-wrap:wrap;gap:12px}.adaptive-drawer{position:fixed;z-index:90;right:0;top:0;bottom:0;width:min(420px,100vw);box-sizing:border-box;padding:24px;background:#fff;box-shadow:-8px 0 40px #203f3a26;overflow:auto}.context-help{position:relative;display:inline-flex;vertical-align:middle;margin-left:6px}.context-help-trigger{border:0;background:transparent;color:#738378;font-size:16px;min-height:28px;min-width:28px;cursor:help}.context-help-text{display:none;position:absolute;top:100%;left:0;width:280px;max-width:70vw;padding:12px 14px;border:1px solid #d4e0d8;border-radius:8px;background:#fff;box-shadow:0 8px 24px #193e3326;color:#3b5145;font:13px/1.65 system-ui;z-index:100;white-space:normal}.context-help:hover .context-help-text,.context-help:focus-within .context-help-text,.context-help.pinned .context-help-text{display:block}.adaptive-home-tools{display:flex;justify-content:flex-end;margin-bottom:12px}.adaptive-home-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px;margin:16px 0}.adaptive-home.compact .desk-queue>li,.adaptive-home.compact .ref-compact-list>li{padding:7px 0}.adaptive-home [hidden]{display:none!important}.adaptive-employee>.team-editor{margin-bottom:16px}.adaptive-employee .team-request{padding:14px 16px}.adaptive-employee .team-request p{margin:6px 0}.adaptive-employee [data-form=team-employee-filter]{padding:12px 0;background:none;border:0;display:flex;align-items:end;gap:12px}.adaptive-employee [data-form=team-employee-filter] .team-fields{flex:1}.adaptive-employee [data-form=team-holiday-batch]>.holiday-candidate-row{display:grid;grid-template-columns:minmax(180px,1fr) 170px minmax(180px,1fr);gap:12px;margin:0;padding:8px 0;border-bottom:1px solid #e6ece8}.adaptive-employee .team-center-tabs{margin-bottom:16px}
.adaptive-file-workspace{display:grid;grid-template-columns:240px minmax(0,1fr) 260px;gap:16px;align-items:start}.adaptive-file-list{max-height:72vh;overflow:auto;border:1px solid #dde6e0;border-radius:10px}.adaptive-file-list button{display:block;width:100%;text-align:left;padding:14px;border:0;border-bottom:1px solid #e2e9e4;background:#fff;color:#355c50;cursor:pointer;overflow-wrap:anywhere}.adaptive-file-list button[aria-pressed=true]{background:#e9f2eb;box-shadow:inset 3px 0 #39745f}.adaptive-file-list small{display:block;font-size:12px;margin-top:5px}.adaptive-file-preview,.adaptive-file-actions{min-width:0;border:1px solid #dce5df;border-radius:10px;padding:16px;background:white}.adaptive-file-preview canvas{max-width:100%}.adaptive-file-actions h3{overflow-wrap:anywhere}.adaptive-file-actions dl{font-size:13px}.adaptive-file-actions dd{margin:4px 0 16px}.adaptive-file-actions .button{margin-bottom:8px}.adaptive-file-preview .auto-pdf-paper{min-height:360px}.adaptive-file-image{width:100%;object-fit:contain}.adaptive-file-back{display:none}
@media(max-width:1200px){.adaptive-file-workspace{grid-template-columns:220px minmax(0,1fr)}.adaptive-file-actions{grid-column:2}.adaptive-analysis{grid-template-columns:minmax(0,1fr)}.adaptive-metric strong{font-size:24px}}
@media(max-width:760px){.adaptive-management{padding:16px!important}.adaptive-heading{align-items:flex-start}.adaptive-heading h1{font-size:23px}.adaptive-heading h2{font-size:20px}.adaptive-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.adaptive-metric{padding:14px}.adaptive-metric[aria-pressed=true]{padding:13px}.adaptive-filter label{flex:1;min-width:125px}.adaptive-filter input,.adaptive-filter select{width:100%;min-width:0;max-width:none;box-sizing:border-box}.adaptive-custom-range{width:100%}.adaptive-heading .slot-actions{flex-wrap:wrap}.context-help-trigger{min-height:44px;min-width:44px}.context-help-text{left:auto;right:0}.adaptive-employee [data-form=team-employee-filter]{display:block}.adaptive-employee [data-form=team-holiday-batch]>.holiday-candidate-row{grid-template-columns:1fr}.adaptive-file-workspace{display:block}.adaptive-file-preview,.adaptive-file-actions{margin-top:12px}.adaptive-file-workspace.has-selection .adaptive-file-list{display:none}.adaptive-file-workspace:not(.has-selection) .adaptive-file-preview,.adaptive-file-workspace:not(.has-selection) .adaptive-file-actions{display:none}.adaptive-file-back{display:inline-flex}.adaptive-chart{height:220px}.adaptive-viewbar select{max-width:100%}.adaptive-management .button{min-height:44px}.adaptive-drawer{width:100%}}

.context-help.dismissed .context-help-text{display:none}.adaptive-case-settings{padding:10px 0;border-bottom:1px solid #e4ebe6}.adaptive-case-settings>summary{font-size:13px;color:#446359;cursor:pointer}.adaptive-file-preview [data-pdf-text]{overflow-wrap:anywhere}

.adaptive-management .adaptive-heading{margin-bottom:14px}.adaptive-management .adaptive-tabs{margin-bottom:18px}.adaptive-viewbar{margin:10px 0}.adaptive-metric{padding:16px}.adaptive-metric[aria-pressed=true]{padding:15px}.adaptive-metric strong{margin:8px 0}.adaptive-chart{height:240px}.adaptive-employee .context-help{margin:6px 0}
.docket-shell .desk-content{container-type:inline-size;container-name:internal-workspace}
@container internal-workspace (max-width:1200px){.adaptive-file-workspace{grid-template-columns:220px minmax(0,1fr)}.adaptive-file-actions{grid-column:2}}
@container internal-workspace (max-width:600px){.adaptive-file-workspace{display:block}.adaptive-file-actions{grid-column:auto}}
.docket-shell:has(.adaptive-file-workspace) .billing-case-timer{padding:8px 16px;margin:10px 0;min-height:44px}.docket-shell:has(.adaptive-file-workspace) .billing-case-timer small{display:none}

.adaptive-period-controls>summary{font-size:13px;cursor:pointer;padding:10px 0;color:#3c6252}@media(min-width:761px){.adaptive-period-controls>summary{display:none}}@media(max-width:760px){.adaptive-heading h2{font-size:19px}.adaptive-heading:has(h2){align-items:center}.adaptive-heading:has(h2) .slot-actions{gap:6px}.adaptive-heading:has(h2) .button{font-size:12px;padding:8px}.adaptive-viewbar{gap:8px}.adaptive-range-label{font-size:12px;line-height:1.6}}
@media(max-width:760px){.adaptive-metric strong{font-size:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
.adaptive-file-preview [data-file-preview]{max-height:70vh;overflow:auto}.adaptive-file-list{position:sticky;top:80px}.adaptive-file-preview .auto-pdf-bar{position:sticky;top:0;z-index:2}.adaptive-file-preview .auto-pdf-controls{position:sticky;top:40px;z-index:2;background:#fff;padding:8px}
@container internal-workspace (max-width:1200px){.adaptive-file-list{grid-column:1;grid-row:1 / span 2}.adaptive-file-actions{grid-column:2;grid-row:1;display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:12px 16px}.adaptive-file-actions h3{font-size:15px;margin:0;flex:1}.adaptive-file-actions dl{display:none}.adaptive-file-actions .button{margin:0}.adaptive-file-actions>details{flex-basis:100%}.adaptive-file-preview{grid-column:2;grid-row:2}}
@media(max-width:760px){.adaptive-file-list{position:static}.adaptive-file-actions{display:block}.adaptive-file-actions dl{display:block}.adaptive-file-preview [data-file-preview]{max-height:65vh}}
.adaptive-file-preview .auto-pdf-controls,.adaptive-file-preview .auto-pdf-controls .button{color:#355c50}.adaptive-file-preview .auto-pdf-controls .button{border-color:#b9c9bf}

/* The case file entry opens the full library; preview starts only after selection. */
.adaptive-file-workspace:not(.has-selection){display:block}
.case-file-library{min-width:0;background:#fff;border:1px solid #dce5df;border-radius:9px;overflow:hidden}
.case-file-library-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-bottom:1px solid #dce5df;font-size:13px}
.case-file-library-heading .button{min-height:34px;padding:5px 10px;font-size:12px}
.case-file-table td{padding:9px 12px;vertical-align:middle}
.case-file-table th{padding:9px 12px}
.case-file-table td:first-child{width:48%;min-width:0;overflow-wrap:anywhere}
.case-file-table td:nth-child(2),.case-file-table td:nth-child(3){font-size:12px;color:#627a71;white-space:nowrap}
.case-file-name.button{min-height:32px;padding:0;border:0;background:transparent;box-shadow:none;text-align:left;white-space:normal;font-size:14px;overflow-wrap:anywhere}
.case-file-name.button:hover{text-decoration:underline}
.case-file-row-actions{display:flex;gap:6px;justify-content:flex-end}
.case-file-row-actions .button{font-size:12px;min-height:34px;padding:5px 8px;white-space:nowrap}
.case-file-table .case-file-mobile-meta{display:none}
.adaptive-file-back{display:inline-flex}
.case-file-library>.empty-note,.case-file-library>.review-note{margin:12px 14px}
@media(max-width:760px){
 .case-file-table{table-layout:fixed;width:100%;min-width:0}
 .case-file-table th:nth-child(2),.case-file-table th:nth-child(3),.case-file-table td:nth-child(2),.case-file-table td:nth-child(3){display:none}
 .case-file-table td:first-child{width:65%}
 .case-file-table th:last-child{width:108px}
 .case-file-row-actions{flex-wrap:wrap;justify-content:flex-start}
 .case-file-row-actions .button{min-height:44px}
 .case-file-table .case-file-mobile-meta{display:block;font-size:11px;white-space:normal}
 .case-file-name.button{min-height:44px}
}

/* Firm identity: website logo blue #024F94, with lighter workspace surfaces. */
:root{--bc-brand:#024f94;--bc-action:#146cc4;--bc-hover:#0b5ba8;--bc-ink:#142b40;--bc-muted:#5b6777;--bc-page:#f6f8fb;--bc-selected:#e7f0fb;--bc-divider:#dce3ec;--bc-control:#7d8b9b;--bc-gold:#b59a70;accent-color:var(--bc-action)}
body{background:var(--bc-page);color:var(--bc-ink)}
.docket-shell{--desk-text:#142b40;--desk-faint:#5b6777;--desk-border:#dce3ec;--docket-navy:#024f94;--docket-blue:#146cc4;background:var(--bc-page);color:var(--bc-ink)}
.docket-shell .desk-content,.docket-shell .matter-mast{background:var(--bc-page)}
.docket-shell .firm-live-sidebar{background:#f2f6fb;border-color:var(--bc-divider);padding:22px 16px}
.docket-shell .docket-identity{gap:16px;margin-bottom:20px}.docket-shell .docket-identity .brand strong{color:var(--bc-brand)}
.docket-shell .docket-identity .monogram{color:var(--bc-brand);background:#fff;border-color:#d2dce8}
.docket-shell .docket-identity .desk-avatar,.member-avatar{color:var(--bc-brand);background:var(--bc-selected);border-color:#c5d6eb}
.docket-shell .desk-nav-caption{color:var(--bc-muted);margin-top:18px}.docket-shell .desk-nav-link.button{color:#42556b;min-height:39px;margin:2px 0}
.docket-shell .desk-nav-link.button:hover{background:#e7eef7}.docket-shell .desk-nav-link.button[aria-current=page]{color:var(--bc-brand);background:#fff;box-shadow:inset 3px 0 var(--bc-action),0 2px 6px #142b4008}
.docket-shell .button.primary,.docket-shell .docket-identity .docket-create.button,.button.primary,.team-center-dialog .button.primary{background:var(--bc-action);border-color:var(--bc-action);color:#fff;box-shadow:none}
.docket-shell .button.primary:hover,.docket-shell .docket-identity .docket-create.button:hover,.button.primary:hover{background:var(--bc-hover);border-color:var(--bc-hover)}
.docket-shell .button.text,.docket-shell .button.desk-link,.docket-shell .ref-name-link,.docket-shell .template-title-link,.docket-shell .case-file-name,.docket-shell .matter-mast .button{color:var(--bc-brand)}
.docket-shell .button:focus-visible,button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--bc-action);outline-offset:3px}
.docket-shell h1,.docket-shell h2,.docket-shell h3,.docket-shell .ref-widget h2,.docket-shell .docket-heading h1,.docket-shell .matter-title h1{color:var(--bc-ink)}
.docket-shell .muted,.docket-shell .docket-heading p,.docket-shell label,.docket-shell .matter-metadata small,.docket-shell .desk-queue small{color:var(--bc-muted)}
.docket-shell .panel,.docket-shell .ref-widget,.adaptive-panel,.adaptive-file-list,.adaptive-file-preview,.adaptive-file-actions{border-color:var(--bc-divider);border-radius:10px;box-shadow:none;background:#fff}
.docket-shell input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.docket-shell select,.docket-shell textarea,.team-center-dialog input:not([type=checkbox]):not([type=radio]),.team-center-dialog select,.team-center-dialog textarea{border-color:var(--bc-control);color:var(--bc-ink);background:#fff}
.docket-shell .matter-tabs .button[aria-current=page],.docket-shell .matter-banner .firm-navigation .button[aria-current=page],.team-center-tabs .button[aria-current=page],.adaptive-tabs .button[aria-current=page]{background:var(--bc-selected);color:var(--bc-brand);box-shadow:inset 0 -2px var(--bc-action)}
.docket-shell .matter-tabs .button,.docket-shell .matter-banner .firm-navigation .button{color:var(--bc-muted)}
.employee-weekdays input:checked+span,.appointment-time-grid button[aria-pressed=true]{background:var(--bc-action);border-color:var(--bc-action);color:#fff}
.employee-week-strip .is-working{background:var(--bc-selected);color:var(--bc-brand);border-color:#b5cde8}.employee-week-strip span{color:var(--bc-muted);background:#f6f8fb}
.employee-policy-editor.team-editor{border-color:#b5cde8}.adaptive-metric{color:var(--bc-ink);border-color:var(--bc-divider)}.adaptive-metric[aria-pressed=true]{background:var(--bc-selected);border-color:var(--bc-action)}
.adaptive-chart{fill:var(--bc-action)}.adaptive-chart text{fill:var(--bc-muted)}.adaptive-groups button{color:var(--bc-ink)}.adaptive-groups [aria-pressed=true],.adaptive-file-list button[aria-pressed=true]{background:var(--bc-selected);color:var(--bc-brand);box-shadow:inset 3px 0 var(--bc-action)}
.adaptive-file-list button,.adaptive-file-preview .auto-pdf-controls,.adaptive-file-preview .auto-pdf-controls .button{color:var(--bc-brand)}
.context-help-trigger{color:var(--bc-muted)}.context-help-text{color:var(--bc-ink);border-color:var(--bc-divider)}
.docket-shell .desk-content .layout{padding:22px 28px 32px;max-width:1500px}.docket-shell .docket-heading h1{font-size:24px}.docket-shell .docket-heading p{margin-top:5px}
.home-quick-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.docket-shell .home-quick-action{flex-direction:row;align-items:center;gap:8px;min-height:36px;padding:7px 12px;background:#fff;border:1px solid var(--bc-divider);border-radius:7px;color:var(--bc-brand)}.home-quick-action strong{font-size:13px}.home-quick-action svg{width:16px;height:16px}
.adaptive-home-tools{margin:0 0 8px}.adaptive-home-tools .button{font-size:12px;min-height:32px;padding:6px 10px}.home-case-filter{margin:8px 0 12px;gap:8px}.home-case-filter label{font-size:12px;max-width:320px}.home-case-filter select{min-height:34px}.workbench-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.workbench-heading h2{font-size:16px;margin:0}
.docket-shell .workbench-home{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}.docket-shell .workbench-home .ref-widget{padding:16px;min-width:0;grid-column:auto}.docket-shell .workbench-home .ref-widget>header{margin:0 0 10px;display:flex;align-items:center;justify-content:space-between;gap:8px}.workbench-home .ref-widget h2{font-size:15px}.workbench-home .desk-queue>li,.workbench-home .ref-compact-list>li{padding:8px 0}.workbench-home .desk-queue{margin:0}.workbench-home .ref-widget-body{max-height:230px;overflow:auto;scrollbar-width:thin}.workbench-home .home-mini-calendar{grid-row:span 1}.home-mini-calendar header .button{font-size:12px;min-height:30px;padding:5px 8px}
.home-calendar-layout{display:grid;grid-template-columns:minmax(180px,1fr) minmax(140px,.8fr);gap:16px}.home-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;align-content:start}.home-weekday{text-align:center;font-size:10px;color:var(--bc-muted);padding:4px 0}.home-month-grid button{position:relative;display:grid;place-items:center;min-width:0;min-height:30px;padding:3px;border:1px solid transparent;background:transparent;border-radius:5px;font:12px system-ui;color:var(--bc-ink);cursor:pointer}.home-month-grid button:hover{background:#f0f5fc}.home-month-grid button[aria-pressed=true]{background:var(--bc-selected);border-color:var(--bc-action);color:var(--bc-brand);font-weight:700}.home-month-grid button[aria-current=date] span{text-decoration:underline;text-underline-offset:3px}.home-month-grid button i{width:3px;height:3px;background:var(--bc-action);border-radius:50%;position:absolute;bottom:2px}.home-day-events{border-left:1px solid var(--bc-divider);padding-left:12px;min-width:0}.home-day-events>strong{font-size:12px;color:var(--bc-muted)}.home-event{display:flex;text-align:left;gap:7px;border:0;border-bottom:1px solid var(--bc-divider);background:none;padding:10px 0;width:100%;color:var(--bc-ink);cursor:pointer}.home-event>span:last-child{min-width:0}.home-event b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:550}.home-event small{display:block;margin-top:4px;font-size:10px;color:var(--bc-muted)}.home-day-events>.button{min-height:30px;font-size:12px;padding:5px 0}.home-day-events .empty-note{font-size:12px;line-height:1.5;padding:16px 0}.home-mini-calendar+.ref-widget{min-height:0}
.docket-shell .conversation-list>li{display:grid;grid-template-columns:minmax(180px,1fr) 150px 90px 110px;gap:16px;align-items:center;padding:12px 0}.conversation-list>li>strong{overflow-wrap:anywhere}.conversation-list>li>.conversation-dates{grid-column:2;text-align:left;font-variant-numeric:tabular-nums;color:var(--bc-muted)}.conversation-list>li>.tag{grid-column:3;justify-self:start}.conversation-list>li>.button{grid-column:4;justify-self:end}.conversation-audience:empty{display:none}
[data-draft-status]:not(:has(button)):has([role=status]:empty){display:none}.operation-draft-note small{display:none}
.docket-shell .template-list-row{padding-block:10px}.docket-shell .template-heading{margin-bottom:12px}.questionnaire-read-question{padding-block:12px}.questionnaire-read-questions{padding:6px 18px}.questionnaire-section{margin-top:14px}.template-version-note{display:none}
@media(max-width:1150px){.home-calendar-layout{grid-template-columns:minmax(0,1fr)}.home-day-events{border-left:0;border-top:1px solid var(--bc-divider);padding:8px 0 0;display:flex;align-items:center;gap:10px}.home-day-events>strong{white-space:nowrap}.home-event{padding:5px 0;max-width:180px;border:0}.home-day-events .home-event:nth-of-type(n+2){display:none}.home-day-events .empty-note{padding:4px 0}.home-day-events>.button{margin-left:auto}.docket-shell .conversation-list>li{grid-template-columns:minmax(140px,1fr) 120px 75px 100px;gap:8px}}
@media(max-width:760px){.docket-shell .desk-content .layout{padding:18px 16px 28px}.docket-shell .workbench-home{grid-template-columns:minmax(0,1fr)}.home-calendar-layout{grid-template-columns:minmax(180px,1fr) minmax(120px,.8fr)}.home-day-events{display:block;border-left:1px solid var(--bc-divider);border-top:0;padding:0 0 0 10px}.home-day-events .home-event:nth-of-type(n+2){display:flex}.home-event{padding:10px 0;max-width:none}.home-month-grid button{min-height:32px}.docket-shell .conversation-list>li{grid-template-columns:minmax(0,1fr) auto;gap:8px}.conversation-list>li>.conversation-dates{grid-column:1;grid-row:2}.conversation-list>li>.tag{grid-column:2;grid-row:2}.conversation-list>li>.button{grid-column:2;grid-row:1;min-height:38px;font-size:12px}.home-quick-actions{gap:6px}.docket-shell .home-quick-action{min-height:36px;padding:7px 9px}.home-quick-action strong{font-size:12px}.docket-shell .workbench-home .ref-widget-body{max-height:none}}

.home-queue-group{font-size:11px!important;color:var(--bc-muted)!important;margin:8px 0 2px;letter-spacing:.02em}.workbench-home .ref-widget-body{min-height:140px}.docket-shell .workbench-home .home-mini-calendar{min-height:270px}.docket-shell .template-editor-footer>p:empty{display:none}

#app:has(.account-entry){background:var(--bc-page)}.account-entry,.account-entry-office{--entry-accent:#024f94}.entry-mast .monogram{background:var(--bc-brand);color:#fff}.entry-mast .brand strong,.account-entry h1,.entry-features h2{color:var(--bc-ink)}.entry-mast .brand small,.entry-summary{color:var(--bc-muted)}.entry-feature-icon,.account-entry-office .entry-feature-icon{background:var(--bc-selected);border-color:#c5d6eb}.entry-mast .text{color:var(--bc-brand)}
.docket-shell .desk-calendar-day[aria-pressed=true],.calendar-scope-buttons [aria-pressed=true],.docket-shell .billing-view-nav [aria-current=page]{background:var(--bc-selected);color:var(--bc-brand);border-color:var(--bc-action)}
.docket-shell button.button:not(.primary):not(.text):not(.desk-nav-link):not(.home-quick-action):not(.desk-calendar-day):not([aria-current=page]){border-color:var(--bc-control)}
.docket-shell .desk-nav-link.button:disabled,.docket-shell button:disabled{cursor:default}

.eval-viewbar{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin:12px 0}.eval-viewbar label{font-size:12px;display:grid;gap:4px}.eval-viewbar input{max-width:180px}.eval-viewbar select{min-width:160px}.eval-viewbar .button{min-height:35px;font-size:12px}.eval-display{margin:8px 0 12px;font-size:12px}.eval-display form,.eval-display form>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:8px 0}.eval-pagination,.eval-file-nav{display:flex;gap:12px;align-items:center;justify-content:center;padding:10px}.eval-file-nav{justify-content:space-between;border-bottom:1px solid #dce3ec;margin-bottom:10px}.eval-files.compact td{padding:8px 10px}.eval-files.comfortable td{padding:16px 12px}.eval-files table{min-width:650px}.eval-conversations{display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px;align-items:start}.eval-thread-list{background:#fff;border:1px solid #dce3ec;border-radius:9px;max-height:70vh;overflow:auto;position:sticky;top:80px}.eval-thread-list h2{font-size:15px;padding:16px;margin:0}.eval-thread-list button{display:block;width:100%;border:0;border-top:1px solid #dce3ec;background:white;text-align:left;padding:12px 16px;color:#142b40;cursor:pointer}.eval-thread-list button[aria-pressed=true]{background:#e7f0fb;box-shadow:inset 3px 0 #146cc4}.eval-thread-list small{display:block;margin-top:5px;color:#5b6777}.eval-conversations>section>.layout{padding:0!important}.eval-question-sections{display:flex;flex-wrap:wrap;gap:7px;position:sticky;top:0;z-index:4;background:#f6f8fb;padding:10px 0}.eval-question-sections .button[aria-pressed=true]{background:#e7f0fb;color:#024f94;border-color:#146cc4}.questionnaire-document article[hidden]{display:none!important}.eval-tasks section{background:#fff;border:1px solid #dce3ec;border-radius:8px;padding:14px;margin-top:12px}.eval-tasks h2{font-size:15px}.eval-tasks.compact .desk-queue>li{padding:8px 0}.eval-tasks.comfortable .desk-queue>li{padding:17px 0}@media(max-width:900px){.eval-conversations{grid-template-columns:minmax(0,1fr)}.eval-thread-list{position:static;max-height:180px}.eval-thread-list button{display:inline-block;width:230px;vertical-align:top}.eval-thread-list{white-space:nowrap}.eval-thread-list h2{display:none}.eval-thread-list strong,.eval-thread-list small{white-space:normal}.eval-file-nav{flex-wrap:wrap}.eval-question-sections{position:static}}@media(max-width:600px){.eval-viewbar input{max-width:140px}.eval-viewbar .button{min-height:40px}}
.eval-calendar-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}.eval-calendar-controls .button[aria-pressed=true]{background:#e7f0fb;border-color:#146cc4;color:#024f94}.eval-calendar-scroll{overflow:auto;border:1px solid #dce3ec;background:white;border-radius:9px;max-height:78vh}.eval-time-grid{border-collapse:collapse;width:100%;min-width:850px;table-layout:fixed}.eval-time-grid th,.eval-time-grid td{border:1px solid #dce3ec;padding:5px;vertical-align:top;font-size:12px;overflow-wrap:anywhere}.eval-time-grid th:first-child{width:75px;background:#f2f6fb}.eval-time-grid thead{position:sticky;top:0;z-index:2;background:#f2f6fb}.eval-time-grid td{height:42px}.eval-time-grid .calendar-entry{display:block;border:0;padding:4px;background:#e7f0fb;border-radius:4px}.eval-time-grid .calendar-entry strong{font-size:12px}.eval-time-grid .calendar-entry p{font-size:10px}.eval-time-grid .calendar-entry .button{font-size:10px;padding:3px;min-height:26px}.eval-calendar-event+.eval-calendar-event{margin-top:4px}.eval-home-layout{font-size:12px;margin:8px 0}.eval-home-layout .button{font-size:12px;min-height:32px;margin:5px}.eval-home-grid.work-first .workbench-home{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}.home-month-nav{display:flex;gap:4px;align-items:center}.home-month-nav .button{min-height:28px;padding:2px 8px}.docket-shell .home-mini-calendar header{flex-wrap:wrap}.home-day-events .home-event:nth-of-type(n+2){display:flex!important}.home-day-events{max-height:208px;overflow:auto}.eval-home-grid .workbench-home [hidden]{display:none!important}@media(max-width:760px){.eval-home-grid.work-first .workbench-home{grid-template-columns:minmax(0,1fr)}.eval-time-grid{min-width:720px}}
.site-evaluation-label{pointer-events:auto!important;font-size:12px}.site-evaluation-label>summary{cursor:pointer;list-style:none}.site-evaluation-label>div{display:grid;min-width:150px;gap:3px;padding-top:7px;max-height:65vh;overflow:auto}.site-evaluation-label .button{font-size:12px;min-height:32px;justify-content:start}
.questionnaire-edit-question>[data-eval-action=question-save]{margin:12px 0 0}.adaptive-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:760px){.adaptive-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
.eval-refund{padding:12px 0;border-top:1px solid #dce3ec}.eval-refund form{display:grid;gap:12px;padding:12px 0}.eval-refund label{display:grid;gap:5px}.eval-refund label.check{display:flex;align-items:center}
.adaptive-chart rect[role=button]{cursor:pointer}.adaptive-chart rect[role=button]:focus-visible{outline:3px solid #142b40;outline-offset:2px}.questionnaire-section[hidden]{display:none!important}
.eval-finance-metrics{font-size:12px;margin:10px 0}.eval-finance-metrics .check{display:inline-flex!important;gap:5px;align-items:center;margin:8px 15px 0 0}.docket-shell .adaptive-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:1100px){.docket-shell .adaptive-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Keep the private role switcher in flow so it never covers client work. */
.site-evaluation-label{position:relative;right:auto;bottom:auto;z-index:auto;margin:8px 14px 0;width:fit-content;max-width:calc(100% - 28px);box-shadow:none}
.site-evaluation-label>summary{min-height:24px;display:flex;align-items:center}

.personal-task-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.personal-task-heading h1{margin:0;font-size:24px}.personal-task-list{max-height:62vh;overflow:auto;background:#fff;border:1px solid var(--bc-divider);border-radius:9px;padding:0 16px}.personal-task-list .desk-queue>li{padding:12px 0}.case-progress>section{border-top:1px solid var(--bc-divider);margin-top:12px;padding-top:10px}.case-progress h3{font-size:14px;margin:0 0 6px}.case-progress-item{padding:10px 0!important;display:block!important}.case-progress-item .desk-task{padding:0!important}.task-current-owner{display:block;margin:5px 0 0 32px;color:var(--bc-muted)}.task-owner-editor{font-size:12px;margin:7px 0 0 32px}.task-owner-editor summary{cursor:pointer;color:var(--bc-brand)}.task-owner-editor form{display:flex;gap:8px;align-items:end;flex-wrap:wrap;padding:8px 0}.task-owner-editor select{width:auto;max-width:100%;min-height:36px}.task-owner-editor .button{min-height:36px}.case-progress{max-height:70vh;overflow:auto;padding-right:8px}
@media(max-width:600px){.personal-task-list{max-height:65vh;padding:0 10px}.case-progress{max-height:65vh}.task-owner-editor select{max-width:180px}}

.compact-viewbar{justify-content:flex-end;margin:8px 0}.personal-view-settings{font-size:12px}.personal-view-settings summary{cursor:pointer;color:var(--bc-brand)}.personal-view-settings>div{display:flex;flex-wrap:wrap;gap:8px;padding:10px;background:white;border:1px solid var(--bc-divider);border-radius:6px;margin-top:8px}.matter-followup{overflow-wrap:anywhere;min-width:0}.personal-task-page .adaptive-filter{margin-top:8px}

.matter-task-panel > details {margin-block:12px}
.matter-task-panel > details > summary {font-weight:600;cursor:pointer}
.matter-assign-task > form {display:grid;gap:10px;max-width:560px;margin:12px 0}
.matter-assign-task > form > .button {justify-self:start}
.matter-task-list > .case-progress {margin-top:8px}

.expense-workspace>.expense-list{max-height:65vh;overflow:auto}.expense-list thead{position:sticky;top:0;background:#fff;z-index:1}.expense-workspace>aside{max-height:none;overflow:visible}.duration-calendar-scroll{max-height:70vh;overflow:auto;border:1px solid var(--bc-divider);border-radius:9px;background:#fff}.duration-calendar-head,.duration-calendar-allday,.duration-calendar-body{display:grid;grid-template-columns:64px repeat(var(--calendar-days),minmax(0,1fr));min-width:760px}.single-day .duration-calendar-head,.single-day .duration-calendar-allday,.single-day .duration-calendar-body{min-width:0}.duration-calendar-head{position:sticky;top:0;z-index:5;background:#f2f6fb;border-bottom:1px solid var(--bc-divider)}.duration-calendar-head>.button{min-height:38px;border:0;border-radius:0;font-size:12px}.duration-calendar-head>strong,.duration-calendar-allday>strong{font-size:11px;padding:10px 5px}.duration-calendar-allday{border-bottom:1px solid var(--bc-divider)}.duration-calendar-allday>div{border-left:1px solid var(--bc-divider);min-width:0}.duration-calendar-allday .calendar-entry{font-size:11px;padding:5px}.duration-calendar-body{position:relative}.duration-calendar-times{position:relative;font-size:10px;background:#f6f8fb}.duration-calendar-times>span{position:absolute;right:8px}.duration-calendar-day{position:relative;border-left:1px solid var(--bc-divider);background:repeating-linear-gradient(to bottom,transparent,transparent calc(var(--calendar-step) - 1px),#dce3ec calc(var(--calendar-step) - 1px),#dce3ec var(--calendar-step))}.duration-calendar-event{position:absolute;box-sizing:border-box;overflow:auto;min-width:0;border:1px solid #b4cce7;border-left:3px solid var(--bc-action);background:var(--bc-selected);border-radius:4px;z-index:2}.duration-calendar-event .calendar-entry{display:block;padding:4px!important;margin:0;border:0;font-size:11px;background:transparent;min-height:0}.duration-calendar-event .calendar-entry>.calendar-color{display:none}.duration-calendar-event strong{font-size:12px}.duration-calendar-event p{font-size:10px;margin:3px 0}.duration-calendar-event small{font-size:10px}.duration-calendar-event .button{min-height:24px;font-size:10px;padding:2px 4px}.duration-calendar-event:focus-within{z-index:4;outline:2px solid var(--bc-action)}
@media(max-width:600px){.home-calendar-layout{grid-template-columns:minmax(0,1fr)}.home-day-events{border-left:0;border-top:1px solid var(--bc-divider);padding:8px 0 0;max-height:112px;overflow:auto}.docket-shell .workbench-home .home-mini-calendar{min-height:0}.duration-calendar-head,.duration-calendar-allday,.duration-calendar-body{grid-template-columns:52px repeat(var(--calendar-days),minmax(0,1fr))}.expense-workspace>aside{max-height:none}.expense-list{max-height:50vh}.expense-heading,.expense-detail>header{flex-wrap:wrap}.expense-detail dd{overflow-wrap:anywhere}.expense-detail dl{grid-template-columns:auto minmax(0,1fr)}}
.duration-calendar-event{overflow:hidden}.duration-calendar-compact{display:block;width:100%;height:100%;border:0;background:transparent;color:var(--bc-ink);font:12px/1.4 system-ui;text-align:left;padding:4px;cursor:pointer;overflow:hidden}.duration-calendar-compact strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.duration-calendar-compact small{display:block;font-size:10px;white-space:nowrap}.duration-calendar-compact:hover{background:#d9e9fa}.duration-calendar-compact:focus-visible{outline:2px solid var(--bc-action);outline-offset:-2px}.calendar-detail-pane header{display:flex;justify-content:space-between;align-items:center;gap:12px}.calendar-detail-pane h2{font-size:18px}.calendar-detail-pane .calendar-entry{margin-top:16px}
/* Keep metadata readable and stable when names, dates and amounts vary in length. */
.docket-shell .template-updated,.docket-shell .template-meta,.docket-shell .questionnaire-optional{color:var(--bc-muted)}.expense-list td{vertical-align:top}.expense-list td>small{display:block;margin-top:4px;line-height:1.45;color:var(--bc-muted);overflow-wrap:anywhere}.expense-list td:nth-child(2){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.expense-list th:nth-child(2){text-align:right}.expense-detail dd,.eval-files td,.invoice-totals dd{font-variant-numeric:tabular-nums}.expense-heading h1,.expense-detail>header h2,.personal-task-heading h1{overflow-wrap:anywhere;min-width:0}.eval-files td:first-child .button{white-space:normal;overflow-wrap:anywhere;text-align:left}.personal-task-heading>.button{flex-shrink:0}.case-progress .task-current-owner{line-height:1.5;overflow-wrap:anywhere}
@media(max-width:600px){.context-help-text{position:fixed;left:16px;right:16px;top:auto;bottom:16px;width:auto;max-width:none}.expense-detail>header{align-items:flex-start}.personal-task-heading{align-items:flex-start}}
.duration-calendar-workspace>section{min-width:0}.calendar-editor-pane .firm-calendar-editor{padding:0;border:0;margin:0}.calendar-editor-pane .firm-calendar-editor>header{align-items:flex-start}.calendar-editor-pane .time-pair{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.calendar-editor-pane input,.calendar-editor-pane select,.calendar-editor-pane textarea{max-width:100%;box-sizing:border-box}.case-primary-actions>[data-eval-action=follow-case]{margin-left:auto}.matter-follow-toolbar{display:flex;justify-content:flex-end;margin-bottom:10px}@media(max-width:600px){.calendar-editor-pane .time-pair{grid-template-columns:minmax(0,1fr)}.case-primary-actions>[data-eval-action=follow-case]{margin-left:0}}

.duration-calendar-scroll{--calendar-days:7;--calendar-step:34.5px}.duration-calendar-scroll.single-day{--calendar-days:1}
.profile-signin-email{overflow-wrap:anywhere;min-width:0}

/* Client dashboard: content scrolls within stable modules, including empty states. */
.gateway-client-shell .gateway-panel{display:flex;flex-direction:column;min-width:0}
.gateway-client-shell .gateway-panel>.desk-queue,.gateway-client-shell .gateway-panel>.desk-docket{box-sizing:border-box;block-size:16rem;min-block-size:16rem;max-block-size:16rem;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable;overflow-wrap:anywhere;margin-block:0;padding-inline-end:8px}
.gateway-client-shell .gateway-panel>ul:focus-visible{outline:2px solid #2465a5;outline-offset:2px}

.ma-divorce-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.ma-divorce-heading h1{margin:0 0 6px}.ma-divorce-heading p{margin:0 0 14px;color:var(--bc-muted)}.ma-divorce-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 16px}.ma-divorce-fields label{display:flex;flex-direction:column;gap:5px;font-size:13px}.ma-divorce-fields select{width:100%;min-width:0}.ma-divorce-options{margin:12px 0}.ma-divorce-options .ma-divorce-fields{margin-top:12px}.ma-divorce-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 12px}.ma-divorce-tabs [aria-pressed=true]{background:var(--bc-selected);border-color:var(--bc-action)}.ma-divorce-content{max-height:65vh;overflow:auto;overscroll-behavior:contain;padding:1px 4px 6px 1px}.ma-divorce-form-grid,.ma-divorce-package-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ma-divorce-card{border:1px solid var(--bc-divider);border-radius:8px;background:white;padding:14px;min-width:0}.ma-divorce-card h3{font-size:15px;margin:0 0 10px}.ma-divorce-card ul{list-style:none;margin:0;padding:0}.ma-divorce-card li{padding:9px 0;border-top:1px solid var(--bc-divider)}.ma-divorce-card li>div{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.ma-divorce-card li strong{font-size:13px}.ma-divorce-card a,.ma-divorce-steps a{font-size:12px}.ma-divorce-card small{display:block;color:var(--bc-muted);margin-bottom:8px}.ma-divorce-steps{margin:0;padding:0 10px 0 28px}.ma-divorce-steps li{padding:8px 0;border-bottom:1px solid var(--bc-divider)}.ma-divorce-steps p{margin:0 0 5px}.ma-divorce-reference{margin-top:14px}.ma-divorce-reference p,.ma-divorce-reference li{font-size:13px}.ma-divorce-reference li{margin-bottom:5px}@media(max-width:760px){.ma-divorce-fields,.ma-divorce-form-grid,.ma-divorce-package-grid{grid-template-columns:minmax(0,1fr)}.ma-divorce-heading{flex-wrap:wrap}.ma-divorce-content{max-height:none;overflow:visible}.ma-divorce-workbench .slot-actions{flex-wrap:wrap}}
.ma-packet-summary{background:#eef6f7;border-left:3px solid #3c797e;padding:12px 16px;margin:18px 0}.ma-packet-summary p{margin:4px 0;font-size:14px}.ma-packet-stages{display:grid;gap:12px;margin:18px 0}.ma-packet-stages details>summary{font-size:17px;font-weight:650;cursor:pointer}.ma-divorce-card li small{display:block;color:var(--bc-muted);margin:4px 0}.packet-item-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.ma-divorce-card form{display:grid;gap:12px;border-top:1px solid var(--bc-divider);padding-top:18px;margin-top:16px}.ma-financial-parties{background:#f2f7f9;border-radius:8px;padding:12px;margin:12px 0}.ma-financial-parties p{font-size:14px}.ma-divorce-card select{max-width:100%;width:100%;padding:9px;min-height:42px;border:1px solid var(--bc-divider);border-radius:6px;font:inherit}.ma-packet-stages+.ma-divorce-card,.ma-divorce-card+.ma-divorce-card{margin-top:18px}@media(max-width:650px){.ma-divorce-card li{display:block}.packet-item-actions{margin-top:8px}.ma-divorce-tabs{flex-wrap:wrap}}

.ma-packet-review { margin: 18px 0; }
.ma-packet-review h2 { margin: 0 0 6px; font-size: 19px; }
.ma-packet-review form { margin-top: 12px; padding-top: 12px; }
.ma-packet-review fieldset { min-width: 0; margin: 0; padding: 10px 12px; border: 1px solid var(--bc-divider); border-radius: 6px; }
.ma-review-people, .ma-review-controls, .ma-review-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 16px; align-items: start; }
.ma-review-controls label { display: grid; gap: 5px; min-width: 0; }
.ma-packet-review :is(input[type=date], textarea) { width: 100%; min-width: 0; }
.ma-review-group { border: 1px solid var(--bc-divider); border-radius: 6px; padding: 0 10px; margin-top: 8px; }
.ma-review-group summary { padding: 10px 0; cursor: pointer; overflow-wrap: anywhere; }
.ma-review-group summary small { display: inline; margin: 0 0 0 4px; }
.ma-review-group li { padding: 0; }
.ma-review-option { display: flex; align-items: flex-start; gap: 9px; min-height: 44px; padding: 9px 0; overflow-wrap: anywhere; }
.ma-review-option input { flex: 0 0 auto; margin: 3px 0 0; }
.ma-review-option span { min-width: 0; }
.ma-review-option small { display: block; margin-top: 4px; }
.ma-packet-review button[type=submit] { justify-self: start; }
@media (max-width: 650px) {
 .ma-review-people,.ma-review-controls,.ma-review-columns { grid-template-columns: minmax(0,1fr); }
 .ma-review-columns h3 { margin-top: 8px; }
}

.uscis-heading{display:flex;justify-content:space-between;align-items:start;gap:16px}.uscis-heading h1{margin:4px 0 14px}.uscis-tabs,.uscis-presets{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:14px}.uscis-tabs [aria-pressed=true]{background:var(--bc-selected);border-color:var(--bc-action)}.uscis-presets>span{font-size:12px;color:var(--bc-muted)}.uscis-plan-list{max-height:58vh;overflow:auto;border:1px solid var(--bc-divider);border-radius:8px;background:#fff}.uscis-plan-row{display:grid;grid-template-columns:minmax(160px,1fr) minmax(180px,1fr) minmax(170px,.9fr) minmax(190px,1fr);align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid var(--bc-divider)}.uscis-plan-row:last-child{border:0}.uscis-row-title strong{display:block}.uscis-row-title>span{font-size:12px;color:var(--bc-muted)}.uscis-plan-row label,.uscis-add label{font-size:12px;display:grid;gap:4px}.uscis-plan-row select,.uscis-add select{width:100%;min-width:0}.uscis-row-actions,.uscis-pdf-actions{display:flex;flex-wrap:wrap;gap:6px}.uscis-pdf-actions select{max-width:230px}.uscis-other-roles{grid-column:2/-1;font-size:12px}.uscis-other-roles>div{display:flex;gap:12px;margin-top:8px}.uscis-other-roles label{max-width:300px;flex:1}.uscis-add,.uscis-save{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:14px 0}.uscis-save{border-top:1px solid var(--bc-divider);padding-top:12px}.uscis-save span{font-size:12px;color:var(--bc-muted)}.uscis-intake-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-height:60vh;overflow:auto}.uscis-intake-card{border:1px solid var(--bc-divider);border-radius:8px;padding:14px;background:white}.uscis-intake-card h3{font-size:15px;margin:0 0 6px}.uscis-intake-card p{font-size:13px;color:var(--bc-muted);margin:0 0 10px}.uscis-intake-card button{margin:0 6px 6px 0}.uscis-review-list{max-height:60vh;overflow:auto}.uscis-review-list article{display:flex;align-items:center;justify-content:space-between;padding:12px;border-bottom:1px solid var(--bc-divider)}.uscis-review-list p{font-size:13px;margin:4px 0}.uscis-sources{font-size:13px}.uscis-sources li{margin:5px 0}.uscis-empty{color:var(--bc-muted)}@media(max-width:1100px){.uscis-plan-row{grid-template-columns:1fr 1fr}.uscis-other-roles{grid-column:1/-1}}@media(max-width:650px){.uscis-plan-row,.uscis-intake-grid{grid-template-columns:minmax(0,1fr)}.uscis-plan-list,.uscis-intake-grid,.uscis-review-list{max-height:none;overflow:visible}.uscis-heading{flex-wrap:wrap}.uscis-other-roles{grid-column:1}.uscis-other-roles>div{flex-wrap:wrap}}

.uscis-heading h1{font-size:27px;line-height:1.25}.uscis-plan-row select,.uscis-add select{height:36px;border:1px solid var(--bc-divider);border-radius:6px;background:white;padding:0 9px;font:inherit;color:inherit}.uscis-plan-row{gap:8px 12px;padding:10px 14px}.uscis-other-roles{margin:0;padding:0;border:0}.uscis-other-roles summary{padding:0;min-height:22px}.uscis-pdf-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:5px}.uscis-pdf-actions select{height:30px}.uscis-row-actions .button{font-size:12px;padding:7px 10px;min-height:32px}.uscis-row-title{align-self:center}.uscis-save{margin-bottom:10px}.uscis-tabs .button{padding:8px 12px}
.i129-plan{grid-column:1/-1;border-top:1px solid var(--bc-divider);padding-top:10px;font-size:13px}.i129-plan summary{font-weight:600}.i129-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}.i129-plan-grid input{min-width:0;width:100%;height:36px;border:1px solid var(--bc-divider);border-radius:6px;padding:0 9px;box-sizing:border-box}.i129-plan fieldset{border:1px solid var(--bc-divider);border-radius:6px;margin:12px 0}.i129-plan .check{display:flex;gap:8px;align-items:center}.i129-issues{color:#8b3d18;margin:10px 0}.i129-review-panel{border:1px solid var(--bc-divider);border-radius:8px;padding:14px;margin:12px 0}.i129-review-panel form{display:grid;gap:10px}.i129-review-panel .check{display:flex;align-items:flex-start;gap:8px}.i129-review-panel textarea{width:100%;box-sizing:border-box}.i129-review-panel p{font-size:13px}.i129-guidance{margin:10px 0;padding:10px;background:var(--bc-selected);border-radius:6px}@media(max-width:800px){.i129-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.i129-plan-grid{grid-template-columns:1fr}}
.uscis-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:5px;background:#edf3f6;border-radius:10px}.uscis-tabs .button{border:0;background:transparent;text-align:center;white-space:normal;min-height:44px}.uscis-tabs [aria-pressed=true]{background:white;box-shadow:0 1px 4px #14344b20;font-weight:650}.uscis-people>header{margin:18px 0}.uscis-people h2{font-size:20px;margin:0 0 6px}.uscis-people>header p{max-width:75ch;color:var(--bc-muted)}.uscis-intake-grid{max-height:none;overflow:visible}.uscis-intake-card{border-radius:12px;padding:18px}.uscis-intake-card .line{align-items:start;flex-wrap:wrap}.uscis-intake-card details{margin:12px 0}.uscis-issued-questionnaire{display:grid;gap:5px;margin-top:12px;border-top:1px solid var(--bc-divider);padding-top:12px}.uscis-issued-questionnaire small{color:var(--bc-muted)}.uscis-edition{display:block;color:var(--bc-muted);font-size:11px;line-height:1.5}.uscis-save{position:sticky;bottom:0;background:#fff;padding:12px 0;z-index:2}@media(max-width:650px){.uscis-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.uscis-people h2{font-size:18px}.uscis-save{position:static}.uscis-intake-card{padding:14px}}
.uscis-person-roles{padding-left:18px;font-size:13px;margin:8px 0}.uscis-person-roles li{margin:5px 0}

.case-package-picker{border:1px solid var(--bc-divider);background:#f5fafb;border-radius:12px;padding:20px;margin:16px 0 22px}.case-package-picker h2{font-size:20px;margin:0 0 14px}.case-package-picker select{width:100%;min-height:42px;background:white;border:1px solid var(--bc-divider);border-radius:6px;padding:8px;font:inherit}.case-package-people{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}.case-package-picker fieldset{border:0;padding:0;margin:12px 0}.case-package-picker .check{display:flex;align-items:center;gap:8px}.case-package-picker p{font-size:14px}@media(max-width:650px){.case-package-people{grid-template-columns:1fr}.case-package-picker{padding:15px}}

.uscis-invite-composer {
  border: 1px solid var(--bc-divider);
  border-radius: 10px;
  background: #f7fafb;
  padding: 0 12px;
}

.uscis-invite-composer summary { cursor: pointer; font-weight: 650; padding: 12px 0; }
.uscis-invite-composer form { display: grid; gap: 12px; padding: 0 0 12px; }
.uscis-invite-composer form > p { margin: 0; }
.uscis-invite-composer label:not(.uscis-question-choice) { display: grid; gap: 4px; }
.uscis-invite-composer fieldset {
  min-width: 0;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid var(--bc-divider);
  border-radius: 8px;
  background: white;
}
.uscis-invite-composer legend { font-weight: 650; padding: 0 5px; }
.uscis-question-choice { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; }
.uscis-question-choice + .uscis-question-choice { border-top: 1px solid var(--bc-divider); }
.uscis-question-choice small, .questionnaire-clarify-choice { color: var(--bc-muted); }
.uscis-question-choice input, .questionnaire-clarify-choice input { flex: none; margin: 0; }
.uscis-invite-composer input[type="date"], .uscis-invite-composer textarea, .uscis-add input {
  min-width: 0; max-width: 100%; box-sizing: border-box;
}
.questionnaire-clarify-choice { display: flex; align-items: baseline; gap: 6px; margin-top: 5px; font-size: .85em; }
.uscis-intake-grid:has(.uscis-invite-composer[open]) { grid-template-columns: minmax(0, 1fr); }
.uscis-intake-card .uscis-invite-group { margin: 0; }
.uscis-invite-group > summary { padding: 9px 4px; }
.uscis-invite-group > summary span { font-weight: 400; color: var(--bc-muted); }

/* The preparation workspace uses the firm's own palette and typography. */
.uscis-workbench { --preparation-accent: #195f88; }
.uscis-heading { align-items: center; margin-bottom: 18px; }
.uscis-heading-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.uscis-tabs { display: flex; gap: 4px; padding: 0; margin-bottom: 26px; background: transparent; border-radius: 0; border-bottom: 1px solid var(--bc-divider); }
.uscis-tabs .button { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 10px 18px; color: var(--bc-muted); border-radius: 6px 6px 0 0; }
.uscis-tabs .button[aria-pressed=true] { color: var(--bc-brand); background: #edf4fa; box-shadow: inset 0 -2px var(--preparation-accent, #195f88); }
.uscis-step-icon { display: inline-flex; color: inherit; }
.uscis-step-icon .icon { width: 18px; height: 18px; }
.uscis-assembly { display: grid; grid-template-columns: minmax(210px, .9fr) minmax(230px, 1fr) minmax(300px, 1.35fr); gap: 20px; align-items: start; }
.uscis-assembly-column { min-width: 0; border: 1px solid var(--bc-divider); border-top: 3px solid var(--preparation-accent); border-radius: 6px; background: white; }
.uscis-assembly-column > h2 { margin: 0; padding: 16px 18px; border-bottom: 1px solid var(--bc-divider); color: var(--bc-brand); font-size: 16px; font-weight: 650; }
.uscis-column-body { padding: 18px; min-width: 0; }
.uscis-case-context { margin: 0 0 18px; font-size: 13px; color: var(--bc-muted); overflow-wrap: anywhere; }
.uscis-contact-list { list-style: none; padding: 0; }
.uscis-contact-list small { display: block; color: var(--bc-muted); overflow-wrap: anywhere; }
.uscis-assembly .case-package-people { grid-template-columns: 1fr; margin: 0; gap: 16px; }
.uscis-assembly .case-package-people label, .uscis-assembly .case-package-picker > label, .uscis-assembly .uscis-add > label { display: grid; gap: 7px; margin: 0; font-size: 14px; }
.uscis-assembly .case-package-picker { border: 0; border-radius: 0; padding: 0; margin: 0; background: transparent; }
.uscis-assembly .case-package-picker p { color: var(--bc-muted); line-height: 1.6; }
.uscis-assembly .case-package-picker .check { align-items: flex-start; min-height: 40px; }
.uscis-assembly .uscis-add { display: grid; gap: 10px; padding-top: 20px; margin: 20px 0 0; border-top: 1px solid var(--bc-divider); }
.uscis-assembly .uscis-add > .button { justify-self: start; }
.uscis-assembly select, .uscis-assembly input:not([type=checkbox]) { width: 100%; max-width: 100%; min-width: 0; min-height: 44px; height: auto; box-sizing: border-box; padding: 9px 10px; border: 1px solid var(--bc-control); border-radius: 5px; background: white; color: var(--bc-ink); font: inherit; font-size: 14px; }
.uscis-assembly .immigration-staff-defaults { margin: 20px 0 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--bc-divider); }
.uscis-assembly .immigration-staff-defaults .team-fields { grid-template-columns: 1fr; }
.uscis-assembly .uscis-plan-list { border: 0; border-radius: 0; max-height: none; overflow: visible; }
.uscis-assembly .uscis-plan-row { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 0 0 20px; margin-bottom: 20px; }
.uscis-assembly .uscis-plan-row:last-child { padding-bottom: 0; margin-bottom: 0; }
.uscis-assembly .uscis-plan-row label { font-size: 14px; }
.uscis-assembly .uscis-other-roles, .uscis-assembly .i129-plan { grid-column: 1; }
.uscis-assembly .uscis-other-roles > div, .uscis-assembly .team-fields, .uscis-assembly .i129-plan-grid { display: grid; grid-template-columns: 1fr; }
.uscis-assembly .uscis-other-roles label { max-width: none; }
.uscis-assembly .uscis-row-title strong { font-size: 17px; }
.uscis-assembly .uscis-row-actions .button { min-height: 44px; border: 0; background: transparent; padding: 6px 0; color: #963c3c; }
.uscis-assembly .uscis-row-order .button { min-height: 32px; width: 28px; }
.uscis-assembly summary { min-height: 36px; cursor: pointer; }
.uscis-assembly .i129-plan summary { min-height: 44px; }
.uscis-save { position: static; margin-top: 20px; padding: 14px 0; }
.uscis-recipient-table { border: 1px solid var(--bc-divider); border-radius: 6px; overflow: auto; margin: 16px 0 24px; background: white; }
.uscis-recipient-table table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.uscis-recipient-table th { text-align: start; font-size: 13px; font-weight: 600; background: #f5f8fb; color: var(--bc-muted); }
.uscis-recipient-table th, .uscis-recipient-table td { padding: 16px; border-bottom: 1px solid var(--bc-divider); vertical-align: top; overflow-wrap: anywhere; }
.uscis-recipient-table th:last-child { width: 30%; }
.uscis-recipient-table tr:last-child td { border-bottom: 0; }
.uscis-recipient-table td > small { display: block; color: var(--bc-muted); margin-top: 7px; font-size: 12px; }
.uscis-recipient-table .uscis-person-roles { padding: 0; list-style: none; margin: 0; font-size: 13px; }
.uscis-recipient-table .uscis-person-roles li { margin: 0 0 8px; }
.uscis-recipient-actions > .button, .uscis-issued-questionnaire > .button { border: 0; background: transparent; justify-content: flex-start; text-align: start; padding: 4px 0; min-height: 40px; color: var(--bc-brand); font-size: 13px; white-space: normal; }
.uscis-issued-questionnaire { margin-top: 6px; padding-top: 6px; gap: 2px; }
.uscis-invitation-status { display: inline-block; font-size: 13px; line-height: 1.5; color: var(--bc-muted); }
.uscis-invitation-status[data-status=submitted] { color: #247048; }
.uscis-invitation-status[data-status=awaiting-client], .uscis-invitation-status[data-status=draft] { color: var(--bc-brand); }
.uscis-invitation-status[data-status=correction] { color: #8c551d; }
.uscis-invite-dialog { width: min(600px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: calc(100dvh - 48px); box-sizing: border-box; padding: 0; border: 1px solid var(--bc-divider); border-radius: 10px; background: white; color: var(--bc-ink); box-shadow: 0 18px 60px #10283c40; overflow-y: auto; }
.uscis-invite-dialog::backdrop { background: #142b4066; }
.uscis-invite-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 24px; border-bottom: 1px solid var(--bc-divider); }
.uscis-invite-dialog h2 { font-size: 21px; margin: 0; }
.uscis-invite-dialog > header .button { min-height: 44px; background: transparent; border: 0; color: var(--bc-muted); }
.uscis-invite-dialog form { display: block; margin: 0; }
.uscis-invite-fields { padding: 22px 24px; display: grid; gap: 16px; }
.uscis-invite-dialog label:not(.uscis-question-choice) { display: grid; gap: 7px; margin: 0; font-size: 14px; }
.uscis-invite-dialog select, .uscis-invite-dialog input:not([type=checkbox]), .uscis-invite-dialog textarea { width: 100%; min-width: 0; box-sizing: border-box; min-height: 44px; padding: 10px; border: 1px solid var(--bc-control); border-radius: 5px; color: inherit; background: white; font: inherit; }
.uscis-dialog-recipient { margin: -8px 0 0; color: var(--bc-muted); font-size: 13px; overflow-wrap: anywhere; }
.uscis-delivery { display: flex; gap: 20px; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--bc-divider); border-bottom: 1px solid var(--bc-divider); font-size: 14px; }
.uscis-delivery strong { font-weight: 600; color: var(--bc-brand); }
.uscis-invite-dialog [data-uscis-invite-count] { font-size: 13px; margin: 0; color: var(--bc-muted); }
.uscis-invite-options > summary { cursor: pointer; min-height: 44px; padding: 10px 0; box-sizing: border-box; color: var(--bc-brand); font-size: 14px; }
.uscis-invite-options > label { margin-top: 16px !important; }
.uscis-invite-scope { border-top: 1px solid var(--bc-divider); }
.uscis-invite-group { border-bottom: 1px solid var(--bc-divider); }
.uscis-invite-group > summary { padding: 12px 0; min-height: 44px; box-sizing: border-box; cursor: pointer; font-size: 14px; }
.uscis-invite-group > summary span { color: var(--bc-muted); font-size: 12px; }
.uscis-invite-group fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.uscis-invite-dialog .uscis-question-choice { min-height: 44px; box-sizing: border-box; align-items: flex-start; line-height: 1.6; padding: 12px 0; }
.uscis-question-choice input { margin-top: 4px; flex: none; }
.uscis-invite-dialog footer { position: sticky; bottom: 0; background: white; border-top: 1px solid var(--bc-divider); padding: 16px 24px; display: flex; justify-content: flex-end; gap: 10px; }
.uscis-invite-dialog footer .button { min-height: 44px; }
.uscis-invite-dialog footer .button.primary { flex: 1; }
.uscis-invite-dialog .feedback { width: auto; margin: 16px 24px 0; }
@media (max-width: 1150px) {
 .uscis-assembly { grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.4fr); }
 .uscis-assignment-column { grid-column: 1 / -1; }
 .uscis-assignment-column .uscis-plan-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
 .uscis-assignment-column .uscis-plan-row { padding-bottom: 18px; margin: 0; }
}
@media (max-width: 650px) {
 .uscis-assembly { grid-template-columns: minmax(0, 1fr); gap: 16px; }
 .uscis-assignment-column { grid-column: auto; }
 .uscis-assignment-column .uscis-plan-list { display: block; }
 .uscis-assignment-column .uscis-plan-row { margin-bottom: 20px; }
 .uscis-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
 .uscis-tabs .button { justify-content: flex-start; padding: 10px; font-size: 13px; }
 .uscis-recipient-table { border: 0; background: transparent; overflow: visible; }
 .uscis-recipient-table table, .uscis-recipient-table tbody, .uscis-recipient-table tr, .uscis-recipient-table td { display: block; width: auto; }
 .uscis-recipient-table thead { display: none; }
 .uscis-recipient-table tr { border: 1px solid var(--bc-divider); border-radius: 6px; background: white; margin-bottom: 14px; }
 .uscis-recipient-table td { border: 0; padding: 12px 16px 0; }
 .uscis-recipient-table td:last-child { padding-bottom: 16px; }
 .uscis-invite-dialog { max-height: calc(100dvh - 24px); }
 .uscis-invite-dialog > header, .uscis-invite-fields { padding: 16px; }
 .uscis-invite-dialog footer { padding: 12px 16px; }
 .uscis-invite-dialog footer .button.primary { flex: 1; white-space: normal; }
 .uscis-heading-actions { width: 100%; }
}
.uscis-assignment-column .uscis-plan-list { max-height: max(320px, calc(100dvh - 340px)); overflow-y: auto; padding-right: 5px; }
.questionnaire-send-dialog fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.questionnaire-send-dialog fieldset legend { font-size: 14px; margin-bottom: 8px; }
.questionnaire-send-dialog .uscis-invite-fields fieldset label { display: flex; align-items: center; gap: 9px; min-height: 44px; }
@media (max-width: 650px) {
 .uscis-assignment-column .uscis-plan-list { max-height: none; overflow: visible; padding: 0; }
}

.uscis-workbench .uscis-multi-options label.check {display:grid;grid-template-columns:1.125rem minmax(0,1fr);align-items:start;justify-content:start;gap:.5rem;min-width:0;overflow-wrap:anywhere}
.uscis-workbench .uscis-multi-options label.check input[type="checkbox"] {width:1rem;height:1rem;min-height:0;margin:.2rem 0 0;padding:0;justify-self:start}
.uscis-workbench .uscis-multi-options label[hidden] {display:none}

.auto-form-tools{border-top:1px solid var(--bc-divider);padding:10px 0;font-size:12px}.auto-form-tools>summary{font-weight:650}.auto-calculation{display:grid;gap:5px;padding:10px 0;border-bottom:1px solid var(--bc-divider)}.auto-calculation>div{display:flex;gap:5px;flex-wrap:wrap}.auto-calculation .button{font-size:11px;padding:5px 7px}.auto-calculation-conflict{color:#9a4118}.form-supplement-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.form-supplement-grid label,.auto-supplements form>label{display:grid;gap:4px;margin:7px 0}.auto-supplements input,.auto-supplements textarea{width:100%;min-width:0;border:1px solid var(--bc-divider);border-radius:5px;padding:7px;font:inherit}.auto-supplements details{margin:8px 0}.uscis-row-order{display:flex;gap:3px;grid-column:1/-1}.uscis-row-order .button{min-height:24px;padding:2px 8px;font-size:12px}.uscis-packet-builder{border:1px solid var(--bc-divider);border-radius:8px;padding:12px;margin-bottom:12px;background:#fff}.uscis-packet-builder h2{font-size:15px;margin:0 0 8px}.uscis-packet-select{display:flex;gap:8px 18px;flex-wrap:wrap;margin-bottom:10px}.uscis-packet-select label{font-size:13px}@media(max-width:600px){.form-supplement-grid{grid-template-columns:1fr}.uscis-packet-select{display:grid;grid-template-columns:1fr}}

.uscis-row-title{position:relative;padding-right:58px}.uscis-row-order{position:absolute;top:0;right:0;grid-column:auto;gap:2px}.uscis-row-order .button{min-height:23px;width:24px;padding:1px 4px}.uscis-plan-list{max-height:max(220px,calc(100dvh - 440px))}

/* Keep the questions and their review tools together without introductory banners. */
.docket-shell .billing-case-timer{padding:6px 22px;margin:0;min-height:42px;border-radius:0;background:transparent;border:0;justify-content:flex-end;gap:10px;font-size:12px}
.docket-shell .billing-case-timer .button{min-height:30px;padding:4px 10px;font-size:12px}
.auto-guided-workspace .auto-flow-header{padding-block:5px;margin-bottom:8px}
.auto-guided-workspace .auto-step.button{flex-direction:row;gap:7px;min-height:36px}
.auto-guided-workspace .auto-step-number{width:23px;height:23px;font-size:12px}
.auto-guided-workspace .auto-heading{margin:8px 0 3px;align-items:center}
.auto-guided-workspace .auto-heading h2{font-size:20px;margin:0}
.auto-guided-workspace .auto-heading p{margin:3px 0}
.auto-guided-workspace .auto-save-state{margin:4px 0 8px}
.auto-guided-workspace .auto-guided-layout{margin-top:10px;gap:14px;align-items:start}
.auto-guided-layout .auto-field{padding:12px 15px;margin:0 0 8px;border-radius:7px;scroll-margin-top:145px}
.auto-guided-layout .auto-field>label>span{line-height:1.45;font-size:13px}
.auto-guided-layout .auto-field input[type=text]{min-height:36px;margin-top:6px}
.auto-guided-layout .auto-field .check{padding:4px 0;margin:0;min-height:30px;line-height:1.4}
.auto-guided-layout .auto-field details:not(.auto-answer-options){font-size:11px;margin:5px 0}
.auto-guided-layout .auto-field-meta.auto-answer-options{display:block;margin:5px 0 0;padding:0;border:0}
.auto-guided-layout .auto-answer-options>summary{cursor:pointer;font-size:11px;color:var(--bc-text-muted,#526678);width:fit-content;padding:4px 0}
.auto-guided-layout .auto-answer-options[open]{background:#f6f9fc;border-radius:5px;padding:6px 8px}
.auto-guided-layout .auto-answer-options label{font-size:11px;margin:4px 0}
.auto-guided-layout .auto-answer-options select{font-size:12px;min-height:32px;max-width:100%;width:100%}
.auto-guided-layout .auto-side{padding:0!important;border:0!important;background:transparent!important}
.auto-guided-layout .auto-side .auto-generation-review{padding:10px 0;margin:0;border:0;border-top:1px solid var(--bc-divider);border-radius:0;background:transparent}
.auto-guided-layout .auto-generation-review>summary{font-size:12px;line-height:1.5}
.auto-guided-layout .auto-generation-review p{font-size:12px;line-height:1.5}
.auto-guided-layout .auto-source-help{display:inline-block;margin:8px 5px 0 0}
.auto-guided-layout .auto-side .auto-issues{max-height:220px;overflow-y:auto;overscroll-behavior:contain;margin:5px 0;padding:0;list-style:none}
.auto-guided-layout .auto-issues .button{font-size:11px;line-height:1.5;min-height:30px;padding:5px 7px;text-align:left;white-space:normal}
.auto-guided-layout .auto-workflow{margin:10px 0;padding-top:10px}
.auto-guided-layout .auto-workflow h3{margin:0 0 6px}
.auto-guided-layout .auto-history{margin-top:10px;padding-top:8px}
.auto-guided-layout .auto-rail-person{padding:10px 12px}
.auto-guided-layout .auto-question-search{padding:10px}
.auto-guided-layout .auto-page-links{gap:1px;padding:0 6px 8px}
.auto-guided-layout .auto-page-link.button{min-height:32px;padding:5px 8px;font-size:12px}
.auto-guided-layout .auto-editor-top{padding-bottom:8px;position:static}
@media(min-width:1101px){
 .auto-guided-workspace .auto-guided-layout{grid-template-columns:160px minmax(0,1fr) 220px}
 .auto-guided-layout>.auto-side{grid-column:3;position:sticky;top:114px;max-height:calc(100dvh - 132px);overflow-y:auto;overscroll-behavior:contain}
 .auto-guided-layout .auto-form-rail{top:114px;max-height:calc(100dvh - 132px);overflow-y:auto;overscroll-behavior:contain}
}
@media(min-width:1600px){.auto-guided-workspace .auto-guided-layout{grid-template-columns:180px minmax(0,1fr) 250px}}
@media(max-width:700px){
 .docket-shell:has(.auto-guided-workspace) .firm-live-sidebar{padding:8px 12px}
 .docket-shell:has(.auto-guided-workspace) .docket-identity{margin-bottom:0;padding-bottom:0}
 .docket-shell:has(.auto-guided-workspace) .firm-primary-nav{padding:2px 0;margin-top:2px;min-height:36px;height:auto}
 .docket-shell:has(.auto-guided-workspace) .firm-primary-nav .button{min-height:34px;padding-block:4px}
 .docket-shell:has(.auto-guided-workspace) .firm-extra-nav{margin-top:0;padding-top:0}
 .auto-guided-workspace .auto-flow-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;padding-inline:8px}
 .auto-guided-workspace .auto-flow-header nav{width:auto;margin:0;justify-content:space-between}
 .auto-guided-workspace .auto-step.button{min-width:0;font-size:11px;flex-direction:column;gap:2px}
 .auto-guided-workspace .auto-flow-header nav{gap:4px}
 .auto-guided-workspace .auto-flow-actions{gap:4px}
 .auto-guided-workspace .auto-flow-actions>.text{display:none}
 .auto-guided-workspace .auto-flow-actions .button{font-size:11px;padding:6px;min-height:34px}
 .auto-guided-workspace .auto-heading{flex-wrap:wrap}
 .docket-shell .billing-case-timer{flex-direction:row;align-items:center;padding:5px 12px}
 .auto-guided-layout .auto-field{padding:10px 12px}
}

.record-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.record-row{padding:16px;border:1px solid #d5dfe8;border-radius:10px;margin:12px 0;background:#f8fafc}.record-row label{min-width:0}.record-row input,.record-row select{width:100%;box-sizing:border-box}.record-row .check input{width:auto}.record-editor .answer-help{margin-top:12px}.answer-grid dd{white-space:pre-wrap;overflow-wrap:anywhere}.mapping-coverage{margin:14px 0;padding:14px;border:1px solid #d5dfe8;border-radius:10px}.mapping-coverage table{width:100%;font-size:13px}.mapping-coverage td{padding:5px;vertical-align:top}.history-window{padding:14px;border:1px solid #d5dfe8;border-radius:10px}.history-window .record-grid{margin:12px 0}@media(max-width:600px){.record-grid{grid-template-columns:1fr}.record-row{padding:12px}.record-row .button{width:100%}}
.auto-side .history-window .record-grid{grid-template-columns:1fr}.auto-side .history-window input[type=date]{min-width:0;width:100%;font-size:14px}.history-window p{overflow-wrap:anywhere}.record-editor pre{white-space:pre-wrap;overflow-wrap:anywhere}

.record-answer-list{list-style:none;margin:0;padding:0;display:grid;gap:16px;white-space:normal}.record-answer-list>li{padding:16px;background:#fff;border:1px solid #dce5e5;border-radius:8px}.record-answer-list h4{margin:0 0 12px;font-size:14px;color:#45616a}.record-answer-list dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;margin:0}.record-answer-list dl>div{min-width:0}.record-answer-list dt{font-size:12px;color:#60747b;margin:0 0 3px;font-weight:400}.record-answer-list dd{margin:0;font-size:14px;color:#243c47;white-space:pre-wrap}.answer-grid>dt:has(+dd .record-answer-list),.answer-grid>dd:has(.record-answer-list){grid-column:1/-1}@media(max-width:600px){.record-answer-list dl{grid-template-columns:1fr}.record-answer-list>li{padding:12px}}

[data-intake-navigation]:not([data-intake-sectioned]) > .intake-attention { margin: 0 0 12px; }
.intake-attention{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:10px;font-size:13px}.intake-attention .button{white-space:normal;min-height:44px;text-align:left}.intake-attention [role=status]{color:var(--bc-muted)}
.intake-compact-chooser{display:flex;align-items:center;gap:12px;margin:12px 0 18px;font-size:13px;font-weight:600;min-width:0}.intake-compact-chooser select{flex:1;width:100%;min-width:0;max-width:100%;min-height:44px;padding:8px 10px;border:1px solid var(--bc-divider);border-radius:7px;background:white;font:inherit;color:inherit}@media(max-width:650px){.intake-compact-chooser{display:grid;gap:6px}}

[data-questionnaire-fields] { min-width: 0; }
[data-intake-edit-body] { min-width: 0; }
[data-questionnaire-fields] [hidden], form[data-form="firm-form-answer"] > [hidden] { display: none !important; }
.intake-directory { min-width: 0; margin-bottom: 18px; }
.intake-directory h4 { margin: 0 0 6px; }
.intake-chapters { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--bc-divider); }
.intake-chapters li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--bc-divider); }
.intake-chapters button { min-height: 44px; text-align: start; color: var(--bc-action); white-space: normal; padding: 5px 2px; }
.intake-chapters [aria-current="step"] { font-weight: 700; }
.intake-chapters [data-intake-chapter-status] { text-align: end; color: var(--bc-muted); font-size: 13px; padding: 6px 2px; }
.intake-directory .slot-actions { margin-top: 12px; }
[data-intake-sectioned].intake-editing { display: grid; grid-template-columns: minmax(168px, 1fr) minmax(0, 2.8fr); gap: 12px 24px; align-items: start; }
[data-intake-sectioned].intake-editing > .intake-errors { grid-column: 1 / -1; }
[data-intake-sectioned].intake-editing > [data-intake-edit-body] { grid-column: 2; }
[data-intake-sectioned].intake-editing .intake-chapters li { flex-wrap: wrap; gap: 0 6px; }
[data-intake-sectioned].intake-editing .intake-chapters [data-intake-chapter-status] { text-align: start; }
[data-intake-actions] .button,.intake-directory .button,.intake-errors button,.intake-review-group button { min-height: 44px; white-space: normal; }
.intake-errors { border: 2px solid #a42d29; border-radius: 8px; padding: 12px 16px; color: #70231f; background: #fff8f7; margin-bottom: 12px; }
.intake-errors h4 { margin: 0; }
.intake-errors ul,.intake-followup ul { margin: 4px 0; padding-inline-start: 22px; }
.intake-errors button { color: inherit; text-align: start; }
.intake-field-error { color: #8a241f; margin: 8px 0; }
.intake-prior,.intake-followup,.questionnaire-receipt { padding: 12px 14px; border: 1px solid var(--bc-divider); border-radius: 8px; margin: 12px 0; }
.intake-prior { background: #f5f8fa; }
.intake-prior div,.intake-review-group dd { overflow-wrap: anywhere; }
.intake-review-group .answer-grid { min-width: 0; }
.questionnaire-receipt { background: #f0f8f3; }
.questionnaire-receipt p { margin: 4px 0 0; }
[data-intake-edit-body] .record-row summary,.questionnaire-submitted summary { cursor: pointer; min-height: 44px; }
.intake-directory button:focus-visible,.intake-errors button:focus-visible,.intake-review-group button:focus-visible { outline: 3px solid #104e70; outline-offset: 2px; }
@media(max-width: 760px) {
 [data-intake-sectioned].intake-editing { display: block; }
 [data-intake-sectioned].intake-editing .intake-directory { display: none; }
 .intake-review-group .answer-grid { display: block; }
 .intake-review-group .answer-grid dd { margin-inline-start: 0; }
}
[data-intake-chapter-nav] { display: flex; align-items: start; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
[data-intake-chapter-nav] .button { min-height: 44px; }
.intake-attention .button { min-height: 44px; }

.topic-answer{padding:1rem 0;border-bottom:1px solid var(--line,#dce2e7)}
.topic-answer h4{margin:0 0 .5rem}.topic-answer>small{display:block;color:#526470;margin:.5rem 0}
.topic-answer .tag{display:inline-block;margin:.25rem 0}.topic-answer details{margin:.6rem 0}
.topic-answer form{padding:.75rem;background:#f6f8fa;border-radius:.5rem}
.topic-questionnaire>.firm-intake-section{padding:1rem;margin:.8rem 0;border:1px solid #dce2e7;border-radius:.7rem}
.topic-questionnaire summary{font-weight:650;cursor:pointer}.topic-questionnaire .auto-field{margin-top:1rem}

.immigration-review-heading{margin:0 0 20px}.immigration-review-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--bc-divider)}.immigration-review-toolbar nav{display:flex;gap:6px}.immigration-review-toolbar [aria-pressed=true]{background:var(--bc-selected);border-color:var(--bc-action)}.immigration-linked-review .auto-form-rail{top:20px}.immigration-linked-review .auto-side{top:20px}.immigration-source-panel{background:#fff;border:1px solid var(--bc-divider);padding:16px;border-radius:10px;margin-bottom:16px}.immigration-source-panel h3{margin:0 0 12px}.immigration-source-panel h4{font-size:14px;line-height:1.6}.immigration-source-panel select{width:100%;min-width:0;max-width:100%;min-height:44px}.immigration-source-panel label{display:grid;gap:6px}.immigration-source-panel small{display:block;color:var(--bc-muted)}.immigration-source-answer{white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:var(--bc-selected);border-radius:6px;max-height:320px;overflow:auto}.immigration-source-panel .button{white-space:normal;text-align:left;max-width:100%;min-height:44px;margin:6px 0}.immigration-revoke{margin-top:12px;border-top:1px solid var(--bc-divider);padding-top:10px}.immigration-revoke form{display:grid;gap:10px}.immigration-revoke textarea{width:100%;box-sizing:border-box}.immigration-linked-review .auto-guided-layout{grid-template-columns:155px minmax(0,1fr) 320px}@media(max-width:1150px){.immigration-linked-review .auto-guided-layout{grid-template-columns:145px minmax(0,1fr)}.immigration-linked-review .auto-side{grid-column:1/-1;position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.immigration-linked-review .immigration-source-panel{grid-row:span 5}}@media(max-width:740px){.immigration-linked-review .auto-guided-layout{display:block}.immigration-linked-review .auto-side{display:block}.immigration-review-toolbar{align-items:flex-start}.immigration-review-toolbar .button{min-height:44px}.immigration-source-panel{margin-top:16px}.immigration-source-answer{max-height:none}}
.immigration-linked-review .auto-page-link[aria-current=page]{background:var(--bc-selected);color:var(--bc-action)}.immigration-linked-review .auto-page-link[aria-current=page] small{color:var(--bc-action)}
.immigration-packet-switch{display:flex;align-items:center;gap:12px;font-size:13px;margin:0 0 16px;min-width:0}.immigration-packet-switch select{min-width:0;max-width:100%;min-height:44px;flex:1;border:1px solid var(--bc-divider);border-radius:7px;background:#fff;padding:8px;font:inherit}.immigration-role-reuse{border:1px solid var(--bc-divider);padding:12px 14px;margin:12px 0;border-radius:8px;background:#fff}.immigration-role-reuse summary{font-weight:600}.immigration-role-reuse p{font-size:13px;color:var(--bc-muted);margin:8px 0}.immigration-role-controls{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end}.immigration-role-controls label{display:grid;gap:6px;font-size:13px;min-width:0}.immigration-role-controls select{width:100%;min-width:0;min-height:44px;font:inherit;border:1px solid var(--bc-divider);border-radius:6px;background:white;padding:8px}.immigration-role-controls .button{min-height:44px}@media(max-width:650px){.immigration-packet-switch{display:grid;gap:6px}.immigration-role-controls{grid-template-columns:minmax(0,1fr)}.immigration-role-controls .button{width:100%}}
.immigration-staff-defaults{padding:12px 16px!important;margin:12px 0!important}.immigration-staff-defaults summary{font-weight:600;cursor:pointer;font-size:14px}.immigration-staff-defaults .team-fields{grid-template-columns:repeat(3,minmax(0,1fr));margin:12px 0}.immigration-staff-defaults p{font-size:13px;color:var(--bc-muted);margin:10px 0}.immigration-staff-defaults select{min-height:44px}@media(max-width:650px){.immigration-staff-defaults .team-fields{grid-template-columns:minmax(0,1fr)}}
.immigration-staff-defaults:not([open]){display:block!important;min-height:0!important}.immigration-linked-positions{margin:12px 0}.immigration-linked-positions summary{font-size:13px;cursor:pointer}.immigration-linked-positions[open]{max-height:280px;overflow:auto}

.immigration-intake-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.immigration-intake-nav button[aria-current=page]{background:var(--bc-selected);border-color:var(--bc-action);color:var(--bc-action)}
.client-review-heading{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:8px 24px;margin:12px 0 18px}
.client-review-heading h2,.client-review-heading p{margin:0;overflow-wrap:anywhere}
.client-review-heading p{margin-top:4px;color:var(--bc-muted)}
.client-review-heading>strong{padding:6px 10px;border-radius:6px;background:var(--bc-selected);color:var(--bc-action)}
.client-immigration-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,325px);align-items:start;gap:20px}
.client-immigration-grid>*{min-width:0}
.client-review-actions{margin:0!important}
.client-review-actions h3,.client-review-actions h4{margin:0}
.client-review-actions form,.wet-staff-review form{display:grid;gap:12px}
.client-review-actions .button,.wet-staff-review .button,.wet-next-link,.wet-review-return .button,.immigration-intake-nav .button{min-height:44px;white-space:normal}
.client-review-actions textarea,.wet-staff-review textarea,.auto-workflow [name=mailingAddress]{box-sizing:border-box;width:100%;min-width:0}
.client-correction,.wet-staff-review details{margin-top:16px;border-top:1px solid var(--bc-divider);padding-top:12px}
.client-correction summary,.wet-staff-review summary{padding:8px 0;cursor:pointer}
.wet-signature-options fieldset{margin:0;padding:0;min-width:0;border:0}
.wet-signature-options legend{margin-bottom:10px;font-weight:600}
.wet-signature-option{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 10px;margin:0 0 8px;box-sizing:border-box;border:1px solid var(--bc-divider);border-radius:7px;cursor:pointer}
.wet-signature-option:has(:checked){background:var(--bc-selected);border-color:var(--bc-action)}
.wet-signature-option input{margin:0;flex:none}
.wet-signature-option span,.wet-signature-steps{min-width:0;overflow-wrap:anywhere}
.wet-signature-steps .button{display:flex;justify-content:center;margin:8px 0;text-align:center}
.wet-signature-steps address{padding:12px 14px;background:var(--bc-selected);border-radius:8px;font-style:normal}
.review-preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere}
.wet-review-return{margin:0 0 10px}
#form-next-step{scroll-margin-top:16px}
.client-immigration-review .auto-pdf-paper canvas{max-width:100%;height:auto}
.client-immigration-review .auto-pdf-paper{min-width:0}
@media(max-width:760px){
 .client-immigration-grid{grid-template-columns:minmax(0,1fr);gap:12px}
 .client-immigration-review .auto-pdf-paper{max-height:56vh;overflow:auto}
 .client-immigration-review .auto-pdf-bar{flex-wrap:wrap}
 .immigration-linked-review.immigration-preview-active .auto-guided-layout{display:flex;flex-direction:column}
 .immigration-preview-active .auto-main-pane,.immigration-preview-active .auto-side,.immigration-preview-active .auto-form-rail{width:100%;min-width:0;box-sizing:border-box}
 .immigration-preview-active .auto-form-rail{order:3}
}
.client-immigration-review .auto-pdf-bar,.client-immigration-review .auto-pdf-controls{background:#eef2f5;color:#1b354b}
.client-immigration-review .auto-pdf-controls{border-top:1px solid var(--bc-divider)}
.client-immigration-review .auto-pdf-controls .button,.client-immigration-review .auto-pdf-bar .button{min-height:44px;color:#194365}
.client-immigration-review .auto-pdf-controls .button{min-width:44px}
.client-immigration-review .auto-pdf-controls .button:disabled{color:#526374}
.wet-client-next{display:none}
#client-review-action{scroll-margin-top:12px}
@media(max-width:760px){.wet-client-next{display:inline-flex;min-height:44px;margin-bottom:8px}}

.leave-workspace{color:var(--bc-ink);min-width:0}.leave-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:12px 0 22px}.leave-heading h2{font-size:26px;margin:0 0 6px}.leave-heading p{margin:0;color:var(--bc-muted)}.leave-actions,.leave-date-nav{display:flex;gap:8px;flex-wrap:wrap}.leave-workspace .button{min-height:44px}.leave-navigation{display:flex;gap:8px;border-bottom:1px solid var(--bc-divider);margin-bottom:22px;overflow:auto}.leave-navigation .button{border:0;background:transparent;border-radius:0;padding:12px 14px;white-space:nowrap;color:var(--bc-muted)}.leave-navigation [aria-current=page]{color:var(--bc-action);border-bottom:3px solid var(--bc-action);font-weight:650}.leave-content{min-width:0}.leave-content.has-side{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,410px);gap:22px;align-items:start}.leave-balances{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:22px}.leave-balances article,.leave-panel{background:#fff;border:1px solid var(--bc-divider);border-radius:10px;padding:20px;min-width:0}.leave-balances h4{margin:0 0 12px;font-size:15px}.leave-balances article>strong{font-size:27px;line-height:1.3;color:var(--bc-action)}.leave-balances article>p{font-size:12px;color:var(--bc-muted);margin:8px 0 16px}.leave-balances dl,.leave-detail>dl{display:grid;grid-template-columns:1fr auto;font-size:13px;gap:8px;margin:0}.leave-balances dd,.leave-detail dd{margin:0;text-align:right}.leave-balances dt,.leave-detail dt{color:var(--bc-muted)}.leave-overview-grid{display:grid;gap:18px}.leave-panel>header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.leave-panel>header h3{font-size:18px;margin:0}.leave-panel>header p{font-size:13px;color:var(--bc-muted)}.leave-panel>header label{display:flex;align-items:center;gap:8px}.leave-request-row{display:grid;grid-template-columns:minmax(110px,1fr) minmax(150px,1.3fr) auto auto;gap:14px;align-items:center;padding:14px 0;border-top:1px solid var(--bc-divider)}.leave-request-row>div{display:grid;gap:5px}.leave-request-row strong{font-size:13px}.leave-request-row span{font-size:12px;color:var(--bc-muted)}.leave-empty{padding:20px 0;color:var(--bc-muted);font-size:14px}.leave-editor{position:sticky;top:20px}.leave-editor form,.leave-decision{display:grid;gap:14px}.leave-editor label,.leave-decision label{display:grid;gap:6px;font-size:13px}.leave-editor input,.leave-editor select,.leave-editor textarea,.leave-panel select,.leave-search input,.leave-decision textarea{box-sizing:border-box;width:100%;min-width:0;min-height:44px;border:1px solid var(--bc-divider);border-radius:6px;padding:9px 11px;background:#fff;color:inherit;font:inherit}.leave-date-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.leave-editor small{color:var(--bc-muted)}.leave-preview{padding:14px;background:var(--bc-selected);border-radius:7px;font-size:13px}.leave-preview h4{margin:0 0 8px}.leave-preview ul{list-style:none;padding:0;margin:10px 0;max-height:220px;overflow:auto}.leave-preview li{display:flex;justify-content:space-between;gap:10px;padding:5px 0}.leave-preview p{margin:8px 0}.leave-workspace .leave-warning{color:#a23b1b}.leave-detail .team-request{display:block;border:0;padding:0}.leave-detail .team-request .slot-actions{justify-content:flex-start;flex-wrap:wrap}.leave-detail>dl{border-top:1px solid var(--bc-divider);padding-top:16px}.leave-settings-nav{display:flex;gap:8px;margin-bottom:18px}.leave-settings-nav [aria-pressed=true]{background:var(--bc-selected)}.leave-wallchart{overflow:auto;border:1px solid var(--bc-divider);border-radius:7px}.leave-wallchart table{border-collapse:collapse;width:100%;min-width:950px;font-size:12px}.leave-wallchart th,.leave-wallchart td{padding:12px 7px;text-align:center;border-bottom:1px solid var(--bc-divider);border-right:1px solid #eaf0f3;min-width:44px}.leave-wallchart thead th{background:#f5f8fa;font-weight:500}.leave-wallchart th>span{display:block}.leave-wallchart tbody th{position:sticky;left:0;background:white;min-width:150px;text-align:left;z-index:1;white-space:nowrap}.leave-wallchart tbody th span{display:inline}.leave-wallchart .member-avatar{height:28px;width:28px;font-size:10px;margin-right:8px;vertical-align:middle}.leave-wallchart [aria-current=date]{background:var(--bc-selected);color:var(--bc-action);font-weight:700}.leave-arranged{background:#e5f1fa;color:#17649a}.leave-holiday{background:#eef0f2;color:#6b7881}.leave-mobile-agenda{display:none}.leave-search{display:grid;gap:6px;max-width:340px;font-size:13px;margin:12px 0}.leave-panel .leave-decision{margin:16px 0;border-top:1px solid var(--bc-divider);padding-top:16px}@media(max-width:1150px){.leave-content.has-side{grid-template-columns:minmax(0,1fr)}.leave-editor{position:static;grid-row:1}.leave-content.has-side .leave-request-row{grid-template-columns:1fr 1fr auto auto}}@media(max-width:700px){.leave-heading{align-items:flex-start;flex-direction:column}.leave-heading h2{font-size:23px}.leave-balances{grid-template-columns:1fr;gap:12px}.leave-balances article,.leave-panel{padding:16px}.leave-navigation{gap:0}.leave-navigation .button{padding:10px;font-size:13px}.leave-request-row,.leave-content.has-side .leave-request-row{grid-template-columns:1fr auto;gap:10px}.leave-request-row>div:nth-child(2){grid-column:1;grid-row:2}.leave-request-row>.button{grid-column:2;grid-row:2}.leave-request-row>.tag{grid-column:2;grid-row:1}.leave-wallchart{display:none}.leave-mobile-agenda{display:grid;gap:12px}.leave-mobile-agenda section{border-bottom:1px solid var(--bc-divider);padding:10px 0}.leave-mobile-agenda h4{margin:0 0 7px}.leave-mobile-agenda p{font-size:13px;margin:5px 0}.leave-date-fields{grid-template-columns:1fr}.leave-panel>header{align-items:flex-start;flex-wrap:wrap}}
/* Week and list share a date range and privacy boundary at every viewport. */
.leave-calendar-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.leave-view-toggle{display:flex;gap:5px}.leave-view-toggle [aria-pressed=true]{background:var(--bc-selected);color:var(--bc-action)}.leave-date-range{font-weight:600}.leave-calendar .leave-wallchart table{table-layout:fixed;min-width:620px}.leave-calendar .leave-wallchart th:first-child{width:150px}.leave-calendar[data-mode=week] .leave-wallchart{display:block}.leave-calendar[data-mode=week] .leave-mobile-agenda{display:none}.leave-calendar[data-mode=list] .leave-wallchart{display:none}.leave-calendar[data-mode=list] .leave-mobile-agenda{display:grid;gap:12px}.leave-day-button{border:0;background:transparent;color:inherit;width:100%;padding:0;min-width:0}.leave-row-actions{display:flex!important;gap:7px;flex-wrap:wrap}.leave-request-row .leave-row-actions .button{font-size:12px;padding:7px 10px}.leave-count{background:var(--bc-selected);color:var(--bc-action);border-radius:20px;padding:1px 6px;font-size:11px}.leave-mobile-nav,.leave-mobile-more{display:none}.leave-balances details{margin-top:14px;font-size:12px;color:var(--bc-muted)}.leave-review-notice{border-left:3px solid #b87521;padding:8px 14px;background:#fff9ef}.leave-review-notice h4{margin:0}.leave-review-notice ul{padding-left:18px;font-size:13px}.leave-edit-history{margin-top:14px}.leave-edit-history p{font-size:13px}.leave-workspace [hidden]{display:none!important}
@media(max-width:700px){.leave-navigation{display:none}.leave-mobile-nav{display:flex;position:sticky;bottom:0;z-index:4;justify-content:space-between;gap:2px;border:1px solid var(--bc-divider);border-radius:8px;background:white;margin-top:18px;padding:4px}.leave-mobile-nav .button{flex:1;min-width:0;font-size:11px;padding:8px 2px;border:0;background:transparent}.leave-mobile-nav [aria-current=page]{color:var(--bc-action);background:var(--bc-selected)}.leave-mobile-more{display:flex;gap:8px;flex-wrap:wrap;background:#fff;padding:12px;border:1px solid var(--bc-divider);border-radius:7px}.leave-calendar .leave-wallchart table{min-width:0;font-size:11px}.leave-calendar .leave-wallchart th:first-child{width:80px;min-width:0;white-space:normal}.leave-calendar .leave-wallchart th,.leave-calendar .leave-wallchart td{min-width:0;padding:5px 1px;overflow-wrap:anywhere}.leave-calendar .member-avatar{display:none}.leave-calendar .leave-wallchart th>span{font-size:10px}.leave-calendar .leave-day-button{font-size:12px;padding:0;min-height:44px}.leave-request-row>.leave-row-actions{grid-column:1/-1;grid-row:3}.leave-workspace .leave-panel>header{gap:8px}.leave-date-nav{gap:4px}.leave-date-nav .button{padding:8px 12px}}
@media(max-width:700px){.leave-workspace{padding-bottom:90px}.leave-mobile-nav{position:fixed;left:12px;right:12px;bottom:12px;box-shadow:0 3px 16px #132b4318;margin:0}.leave-mobile-more{position:fixed;bottom:76px;left:12px;right:12px;z-index:5}}
.leave-request-row,.leave-content.has-side .leave-request-row{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) auto}.leave-request-row>.leave-row-actions{grid-column:1/-1;justify-content:flex-end}.leave-request-row strong{overflow-wrap:anywhere}@media(max-width:700px){.leave-request-row,.leave-content.has-side .leave-request-row{grid-template-columns:minmax(0,1fr) auto}.leave-request-row>.leave-row-actions{justify-content:flex-start}}
/* Focused request and policy drawers preserve the underlying workspace geometry. */
.leave-content.has-side{display:block}.leave-content.has-side:has(.leave-editor)::before,.employee-policy-workspace.has-editor::before{content:"";position:fixed;inset:0;background:#14283f45;z-index:49}
.leave-editor.leave-panel,.leave-policy-drawer{position:fixed;inset:12px 12px 12px auto;width:min(520px,calc(100vw - 24px));box-sizing:border-box;z-index:50;background:#fff;border:1px solid var(--bc-divider);border-radius:12px;box-shadow:0 12px 48px #122a4238;overflow:auto;padding:20px;max-height:calc(100dvh - 24px)}
.leave-editor>header{position:sticky;top:-20px;background:white;z-index:2;padding:12px 0;border-bottom:1px solid var(--bc-divider)}
.leave-editor .leave-submit-footer{position:sticky;bottom:-20px;padding:12px 0 20px;background:#fff;border-top:1px solid var(--bc-divider);display:grid;gap:10px;z-index:1}
.leave-submit-footer .leave-preview{max-height:220px;overflow:auto}.leave-submit-footer>.button{width:100%}.leave-outcome{font-size:13px;line-height:1.6;margin:0;color:var(--bc-ink)}
.leave-balances article{padding:16px 20px}.leave-balances article>strong{font-size:25px}.leave-balances article>strong.leave-unconfigured{font-size:18px;color:#8c5c18}.leave-balances article>p{margin:8px 0}.leave-balances details{margin-top:10px}.leave-balances dl{padding-top:12px}.leave-balances article>.button{margin-top:10px}
.leave-policy-drawer .employee-policy-editor.team-editor{position:static;padding:0;border:0}.employee-policy-workspace.has-editor{display:block}.leave-policy-drawer .muted{display:block!important;line-height:1.6}
.leave-weekend{background:#f4f5f6}.leave-calendar-legend{font-size:12px;color:var(--bc-muted);line-height:1.7}.leave-holiday-candidates{margin:20px 0}.leave-holiday-candidates>summary{padding:14px;background:white;border:1px solid var(--bc-divider);border-radius:8px;cursor:pointer;font-weight:600}
@media(max-width:700px){.leave-editor.leave-panel,.leave-policy-drawer{inset:0;width:100%;height:100dvh;max-height:100dvh;border-radius:0;padding:16px}.leave-editor>header{top:-16px}.leave-editor .leave-submit-footer{bottom:-16px;padding-bottom:max(16px,env(safe-area-inset-bottom))}.leave-submit-footer .leave-preview{max-height:160px}.leave-date-fields{grid-template-columns:1fr 1fr}.leave-editor~.leave-mobile-nav{display:none}}
.leave-report-filter{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:16px 0}.leave-report-filter label{display:grid;gap:5px;font-size:13px}.leave-report-filter input{min-height:44px;padding:8px;border:1px solid var(--bc-divider);border-radius:6px}.leave-policy-drawer .team-editor>p.muted{display:block!important}.leave-detail .leave-review-notice .button{margin:8px 8px 0 0}

.case-drive{max-width:1600px}.drive-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.drive-heading h1{font-size:25px;margin:0 0 7px}.drive-heading p{margin:0;color:var(--bc-muted)}.drive-toolbar,.drive-layout{display:flex;gap:8px;flex-wrap:wrap}.drive-layout [aria-pressed=true]{color:var(--bc-action);background:var(--bc-selected)}.drive-search{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:16px}.drive-search label{display:grid;gap:6px;font-size:13px}.drive-search label:first-child{flex:1;min-width:200px}.drive-search input,.drive-search select{border:1px solid var(--bc-divider);padding:10px 12px;border-radius:6px;font:inherit;min-height:44px;box-sizing:border-box;background:white;color:var(--bc-ink)}.drive-crumb{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--bc-divider);padding:8px 0 16px;margin-bottom:18px;font-size:14px}.drive-crumb .button{background:transparent;border:0;padding:6px}.drive-folders{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}.drive-folder{display:flex;align-items:center;gap:14px;padding:20px;background:white;border:1px solid var(--bc-divider);border-radius:9px;text-align:left;cursor:pointer;color:var(--bc-ink);min-width:0}.drive-folder:hover{background:var(--bc-selected);border-color:var(--bc-action)}.drive-folder>span:nth-child(2){flex:1;min-width:0}.drive-folder strong,.drive-folder small{display:block;overflow-wrap:anywhere}.drive-folder strong{font-size:14px}.drive-folder small{font-size:12px;color:var(--bc-muted);margin-top:7px}.drive-folder-icon{width:44px;min-width:44px;height:40px}.drive-folders.as-list{grid-template-columns:1fr}.drive-folders.as-list .drive-folder{padding:12px 18px}.drive-pagination{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:24px}.drive-workspace{display:grid;grid-template-columns:180px minmax(0,1fr) 260px;gap:18px;align-items:start}.drive-tree{display:grid;gap:4px;border-right:1px solid var(--bc-divider);padding-right:12px}.drive-tree .button{text-align:left;border:0;background:transparent;white-space:normal;display:flex;justify-content:space-between;min-height:44px}.drive-tree [aria-current=page]{background:var(--bc-selected);color:var(--bc-action)}.drive-tree hr{width:100%;border:0;border-top:1px solid var(--bc-divider)}.drive-content{min-width:0}.drive-category-folders{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-bottom:20px}.drive-category-folders .drive-folder{padding:14px;gap:10px}.drive-category-folders .drive-folder-icon{width:32px;min-width:32px}.drive-file-count{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.drive-files.as-list{display:grid;gap:0;border:1px solid var(--bc-divider);border-radius:8px;overflow:hidden}.drive-file{display:flex;gap:8px;align-items:center;background:white;min-width:0}.drive-files.as-list .drive-file{border-bottom:1px solid var(--bc-divider)}.drive-file>button{flex:1;display:flex;align-items:center;gap:12px;padding:14px;border:0;text-align:left;background:transparent;min-width:0;color:inherit;cursor:pointer}.drive-file strong,.drive-file small{display:block;overflow-wrap:anywhere}.drive-file strong{font-size:13px}.drive-file small{font-size:12px;color:var(--bc-muted);margin-top:5px}.drive-file-symbol{display:flex;align-items:center;justify-content:center;min-width:38px;width:38px;height:46px;background:#edf3fa;color:#245989;border:1px solid #cedae8;border-radius:5px;font-size:10px;font-weight:700}.drive-file.is-selected{background:var(--bc-selected)}.drive-files.as-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}.drive-files.as-tiles .drive-file{display:block;border:1px solid var(--bc-divider);border-radius:8px;padding:6px}.drive-files.as-tiles .drive-file>button{width:100%;align-items:start}.drive-detail{border:1px solid var(--bc-divider);border-radius:9px;padding:18px;background:white;position:sticky;top:20px;min-width:0}.drive-detail header{display:flex;justify-content:space-between;align-items:center}.drive-detail h2{font-size:17px;margin:0}.drive-detail h3{font-size:15px;overflow-wrap:anywhere;margin:20px 0}.drive-detail dl{font-size:12px;margin:0}.drive-detail dt{color:var(--bc-muted);margin-top:12px}.drive-detail dd{margin:4px 0;overflow-wrap:anywhere}.drive-detail-actions{display:grid;gap:8px;margin-top:20px}.drive-preview-context{padding:16px 24px}.drive-upload{padding:15px;border:1px solid var(--bc-divider);background:white;margin:12px 0}.case-drive .button{min-height:44px}.drive-upload .storage-prepared{margin-top:12px}@media(max-width:1200px){.drive-workspace{grid-template-columns:150px minmax(0,1fr)}.drive-detail{position:static;grid-column:2}.drive-detail-empty{display:none}}@media(max-width:700px){.drive-heading{align-items:flex-start;flex-direction:column}.drive-heading h1{font-size:21px;overflow-wrap:anywhere}.drive-workspace{display:flex;flex-direction:column}.drive-tree{display:flex;flex-wrap:wrap;width:100%;border:0;padding:0}.drive-tree hr{display:none}.drive-tree .button{font-size:12px;padding:7px 10px;gap:8px}.drive-content,.drive-detail{width:100%;box-sizing:border-box}.drive-detail:not(.drive-detail-empty){order:-1}.drive-search{gap:8px}.drive-search label{flex:1;min-width:120px}.drive-folders{grid-template-columns:1fr}.drive-category-folders{grid-template-columns:repeat(2,minmax(0,1fr))}.drive-category-folders .drive-folder{flex-direction:column;align-items:flex-start}.drive-folders .drive-folder strong{font-size:12px}.drive-files.as-tiles{grid-template-columns:1fr}.drive-file>button{padding:12px 8px}.drive-crumb{font-size:12px}.drive-crumb .button{font-size:12px}.drive-preview-context{padding:10px}}

.drive-blocked{display:block;padding:8px 12px;font-size:12px;color:#89521f}.drive-detail .review-note{overflow-wrap:anywhere}.drive-detail .review-note{font-size:13px;line-height:1.6}

.drive-related{display:flex;gap:8px;flex-wrap:wrap;margin:-6px 0 18px}.drive-tree{max-height:calc(100vh - 240px);overflow:auto}.drive-category-folders{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}@media(max-width:700px){.drive-tree{max-height:none;overflow:visible}.drive-related .button{font-size:12px}}

.drive-folder-group{border-bottom:1px solid var(--bc-divider);padding:5px 0}.drive-folder-group summary{padding:10px 5px;font-size:13px;font-weight:600;cursor:pointer}.drive-folder-group .button{padding-left:15px;font-size:12px}.drive-category-folders{display:grid;gap:12px;margin-bottom:18px}.drive-group-card{border:1px solid var(--bc-divider);border-radius:8px;background:white;padding:12px}.drive-group-card summary{display:flex;align-items:center;gap:9px;cursor:pointer;flex-wrap:wrap;min-height:46px}.drive-group-card summary strong{font-size:14px}.drive-group-card small{font-size:12px;color:var(--bc-muted)}.drive-group-card>.button{display:block;width:100%;text-align:left;margin-top:4px}.drive-group-card .drive-folder-icon{width:30px;min-width:30px}

.resource-library{max-width:1200px}.resource-heading,.resource-detail>header,.resource-review>header{display:flex;justify-content:space-between;align-items:center;gap:16px}.resource-heading h1{margin-bottom:8px}.resource-heading p{margin:0;color:var(--muted,#64748b)}.resource-search{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:24px 0}.resource-search>label{flex:1;min-width:210px}.resource-search input{width:100%}.resource-filters{position:relative}.resource-filters[open] label{display:block;margin-top:12px}.resource-tabs,.resource-edit-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.resource-tabs [aria-current=page],.resource-edit-tabs [aria-current=page]{background:#e3f1ee;color:#185e52;border-color:#77a899}.resource-picker-grid{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px}.resource-results,.resource-selection,.resource-case-items,.resource-detail,.resource-editor,.resource-review{background:#fff;border:1px solid #dce5e5;border-radius:12px;padding:20px;min-width:0}.resource-selection{align-self:start}.resource-selection h2{font-size:17px;margin-top:0}.resource-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 0;border-bottom:1px solid #e8eeef}.resource-row:last-child{border-bottom:0}.resource-row>div:first-child{min-width:0}.resource-row strong,.resource-title{overflow-wrap:anywhere}.resource-title{border:0;background:none;text-align:left;font:inherit;font-weight:600;color:#174e56;cursor:pointer;padding:0}.resource-row small{display:block;color:#6d7f89;margin-top:5px}.resource-row-actions{display:flex;gap:8px;flex-shrink:0}.resource-detail{margin-top:22px}.resource-detail h2{font-size:19px}.resource-case-items{margin-top:20px}.resource-steps{display:flex;gap:25px;list-style-position:inside;padding:16px 20px;background:#eef4f3;border-radius:10px}.resource-steps [aria-current=step]{font-weight:700;color:#155f50}.resource-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.resource-editor label{display:block;margin:15px 0}.resource-editor input,.resource-editor textarea{display:block;width:100%;margin-top:6px}.resource-paper{white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;border:1px solid #dce5e5;padding:32px;margin:22px auto;max-width:760px;line-height:1.85;min-height:350px}.resource-case-context{background:#f1f5f5;padding:12px;border-radius:8px}.resource-file-entry{display:flex;justify-content:flex-end;padding:0 20px}.resource-library [hidden]{display:none!important}@media(max-width:760px){.resource-picker-grid{grid-template-columns:1fr}.resource-selection{grid-row:1}.resource-heading{align-items:start}.resource-fields{grid-template-columns:1fr}.resource-steps{gap:12px;font-size:13px;padding:12px}.resource-row{align-items:start}.resource-row-actions{gap:4px}.resource-row-actions .button{padding:8px 10px}.resource-paper{padding:18px}.resource-results,.resource-selection,.resource-editor,.resource-review{padding:14px}.resource-search>label{min-width:0;flex-basis:100%}}

.resource-library .resource-heading h1{font-size:30px;line-height:1.3;margin:0 0 8px}.resource-picker-grid.resource-browse-only{grid-template-columns:1fr}.resource-detail{position:fixed;z-index:100;top:7vh;right:24px;bottom:7vh;width:min(620px,calc(100vw - 48px));overflow:auto;margin:0;box-shadow:0 0 0 100vmax #17334155,0 12px 40px #17334133}.resource-detail>header{align-items:start}.resource-detail>header h2{line-height:1.55;margin-top:0}.resource-detail:focus{outline:2px solid #7aa99c;outline-offset:2px}@media(max-width:760px){.resource-library .resource-heading h1{font-size:24px}.resource-detail{right:12px;width:calc(100vw - 24px);top:3vh;bottom:3vh}}

.resource-downloads{display:flex;flex-wrap:wrap;gap:8px;width:100%;margin-bottom:8px}.resource-downloads .button{white-space:normal;overflow-wrap:anywhere}

/* Stable navigation; content-sized panels and responsive working columns. */
.docket-shell .desk-content{min-width:0}
.docket-shell .desk-content>.layout,.docket-shell .matter-banner{
  box-sizing:border-box;width:100%;max-width:1500px;margin-inline:auto;
  padding-inline:clamp(16px,2vw,28px);
}
.docket-shell .matter-mast{margin-inline:0;border-radius:0}
.docket-shell .matter-mast .mast-inner{
  box-sizing:border-box;width:100%;max-width:1500px;margin-inline:auto;
  padding-inline:clamp(16px,2vw,28px);
}
.gateway-client-shell .desk-content{box-sizing:border-box;width:100%;max-width:1260px;margin-inline:auto;min-width:0}
.layout fieldset{min-inline-size:0;min-width:0;max-width:100%;box-sizing:border-box}
.layout input,.layout select,.layout textarea{max-width:100%;box-sizing:border-box}
.layout input:not([type=checkbox]):not([type=radio]),.layout select,.layout textarea{min-width:0}

/* A one-line empty card should not reserve room for future rows. */
.docket-shell .workbench-home .ref-widget{min-height:0;align-self:start}
.docket-shell .workbench-home .ref-widget-body{
  min-height:0;height:auto;max-height:none;overflow:visible;
}
.docket-shell .ref-dashboard .ref-empty{min-height:0}

/* Respond to usable content width, including the space taken by the staff nav. */
.auto-guided-workspace{container-name:form-frame;container-type:inline-size;min-width:0}
.auto-guided-layout>*{min-width:0}
.auto-guided-layout>.auto-side .auto-issues,
.auto-guided-layout>.auto-side .immigration-source-answer{max-height:none;overflow:visible}
@container form-frame (max-width:42rem){
  .auto-guided-layout,.immigration-linked-review .auto-guided-layout{
    display:grid;grid-template-columns:minmax(0,1fr);
  }
  .auto-guided-layout .auto-form-rail,.auto-guided-layout>.auto-side{
    position:static;grid-column:auto;max-height:none;overflow:visible;
  }
  .auto-guided-layout .auto-side{display:block}
  .auto-guided-layout .auto-page-links{display:flex;flex-wrap:wrap;gap:4px}
  .auto-guided-layout .auto-page-link.button{flex:1 1 9rem;white-space:normal}
}
@media(max-width:760px){
  .docket-shell .desk-content>.layout,.docket-shell .matter-banner,
  .docket-shell .matter-mast .mast-inner{padding-inline:16px}
  /* On narrow screens the page owns vertical scrolling; the PDF keeps its ratio. */
  .adaptive-file-preview [data-file-preview]{max-height:none;overflow:visible}
  .adaptive-file-preview .auto-pdf-paper{min-height:0}
  .adaptive-file-preview .auto-pdf-bar,.adaptive-file-preview .auto-pdf-controls{position:static}
  .auto-guided-workspace .auto-flow-header{position:static;top:auto}
}

/* Shared visual language: quiet surfaces, text navigation, one clear primary action. */
:root{--bc-page:#fff;--bc-divider:#e9edf1;--bc-control:#cbd3dd;--bc-selected:#f0f5fb;--bc-muted:#667485}
body,.docket-shell,.docket-shell .desk-content,.docket-shell .matter-mast{background:#fff}
.docket-shell{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.012em}
.docket-shell .firm-live-sidebar{background:#f8f9fb;border-right:1px solid #edf0f3;padding:20px 12px}
.docket-shell .docket-identity{border-bottom:0;gap:13px}.docket-shell .desk-nav-caption{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#4c6070;font-weight:500}
.docket-shell .desk-nav-link.button{border:0!important;border-radius:6px!important;background:transparent;box-shadow:none!important;font-size:13px;min-height:38px;padding:9px 12px;transition:background .12s,color .12s}
.docket-shell .desk-nav-link.button svg{width:17px;height:17px;opacity:.75}.docket-shell .desk-nav-link.button:hover{background:#edf0f4}
.docket-shell .desk-nav-link.button[aria-current=page]{background:#eaf0f7;color:#154d82;font-weight:600}
.docket-shell .docket-identity .docket-create.button{background:transparent!important;color:#315c85!important;border:0!important;border-radius:6px;justify-content:flex-start;box-shadow:none;padding:8px 12px;min-height:38px;font-size:13px}.docket-shell .docket-identity .docket-create.button:hover{background:#eaf0f7!important}
.docket-shell .button:not(.primary):not(.desk-nav-link){background:transparent;border-color:transparent;box-shadow:none;color:#536577;border-radius:6px;font-weight:500}
.docket-shell .button:not(.primary):not(.desk-nav-link):hover{background:#f0f3f7;border-color:transparent;color:#173e65}
.docket-shell .button.primary{background:#2465a5;border:1px solid #2465a5;border-radius:7px;box-shadow:none;font-weight:550}.docket-shell .button.primary:hover{background:#1c558b;border-color:#1c558b}
.docket-shell .button{min-height:36px;font-size:13px;padding:7px 11px;line-height:1.45}
.docket-shell .button:disabled{opacity:.42;cursor:default}.docket-shell .button:focus-visible,.docket-shell summary:focus-visible,.docket-shell [data-light-row]:focus-visible{outline:2px solid #367cbd;outline-offset:3px}
.docket-shell .adaptive-tabs,.docket-shell .team-center-tabs,.docket-shell .matter-tabs,.docket-shell .matter-banner .firm-navigation,.docket-shell .leave-settings-nav{display:flex;gap:20px;border-bottom:1px solid #edf0f3;background:transparent;padding:0;overflow:auto;border-radius:0}
.docket-shell :is(.adaptive-tabs,.team-center-tabs,.matter-tabs,.firm-navigation,.leave-settings-nav)>.button{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:12px 0;color:#778391;white-space:nowrap;min-height:44px;position:relative}
.docket-shell :is(.adaptive-tabs,.team-center-tabs,.matter-tabs,.firm-navigation,.leave-settings-nav)>.button:is([aria-current=page],[aria-pressed=true]){color:#235a8b;font-weight:600;box-shadow:inset 0 -2px #3b6c9a!important}
.docket-shell .matter-mast{border-bottom:1px solid #edf0f3;box-shadow:none}.workspace-search>summary,.docket-shell .account-menu>summary{background:transparent;border-color:transparent;box-shadow:none}
.docket-shell .workspace-search>summary{color:#4c6070;padding-inline:4px}.docket-shell .workspace-search>summary:hover{color:#254d71}
.docket-shell .desk-content .layout{padding:28px 34px 40px;max-width:1480px}
.docket-shell h1,.docket-shell .docket-heading h1{font-size:26px;letter-spacing:-.035em;font-weight:620}.docket-shell h2{letter-spacing:-.025em;font-weight:600}.docket-shell h3{font-weight:580}
.docket-shell .panel,.docket-shell .ref-widget,.docket-shell .adaptive-panel,.docket-shell .leave-panel{box-shadow:none;border-color:transparent;border-radius:0;background:#fff}
.docket-shell .workbench-home .ref-widget{border:0;border-top:1px solid #e8edf2;padding:18px 0 6px}.docket-shell .workbench-home{gap:28px}
.docket-shell .home-quick-action{border:0;background:transparent;padding:7px 6px;color:#59748c}.docket-shell .home-quick-actions{gap:20px}
.docket-shell .team-my-profile{border:0;background:transparent;border-radius:0;padding-inline:0}.docket-shell .team-member-list>article{border:0;border-bottom:1px solid #edf0f3;border-radius:0;box-shadow:none;background:transparent}
.docket-shell .team-request{border:0;border-bottom:1px solid #edf0f3;border-radius:0;box-shadow:none;background:transparent}
.docket-shell .team-notice{border:0;border-bottom:1px solid #e9edf2;border-radius:0;background:white}
.docket-shell .home-quick-action:hover,.docket-shell .light-open-row:hover{background:#f7f9fc}.docket-shell .light-open-row{cursor:pointer;transition:background .1s;outline-offset:-2px}
.docket-shell .light-row-action{color:#47769d!important}.docket-shell .light-row-action:after{content:" ↗";font-size:12px;opacity:.6}
.docket-shell .ref-table,.docket-shell .team-table{border-collapse:collapse}.docket-shell :is(.ref-table,.team-table) th{background:transparent;color:#4c6070;font-weight:500;font-size:12px;border-color:#edf0f3}.docket-shell :is(.ref-table,.team-table) td{border-color:#edf0f3}
.docket-shell .tag{border:0;box-shadow:none;border-radius:4px;font-size:11px;padding:3px 6px;letter-spacing:0;font-weight:500}.docket-shell .tag.neutral{background:#f1f4f7;color:#657589}
.docket-shell input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.docket-shell select,.docket-shell textarea{border-color:#d8dfe6;border-radius:6px;box-shadow:none;font-size:13px}
.docket-shell input:focus,.docket-shell select:focus,.docket-shell textarea:focus{border-color:#75a0c9}
.docket-shell .employee-week-strip span{border:0;border-radius:3px;background:#f6f7f9}.docket-shell .employee-week-strip .is-working{background:#eef3f8;color:#50718d}.docket-shell .employee-weekdays input:checked+span{background:#e7f0f9;color:#275d8d;border-color:transparent}
.docket-shell .adaptive-metric{border:0;border-radius:0;border-bottom:2px solid transparent;background:transparent}.docket-shell .adaptive-metric[aria-pressed=true]{background:transparent;border-bottom-color:#3973a9}.docket-shell .adaptive-file-list,.docket-shell .adaptive-file-preview,.docket-shell .adaptive-file-actions{box-shadow:none;border-color:#edf0f3;border-radius:4px}
/* Leave: one task page, compact balances, records inline. */
.light-breadcrumb{display:flex;align-items:center;gap:9px;color:#8b96a0;font-size:12px;margin:-4px 0 26px}.light-breadcrumb .button{padding:0;min-height:24px;font-size:12px}
.adaptive-body.light-leave-page{min-width:0;max-width:100%;box-sizing:border-box}.light-leave-page .leave-heading{margin:0 0 24px;align-items:center}.light-leave-page .leave-heading h2{font-size:28px;font-weight:620;letter-spacing:-.04em;margin:0 0 6px}.light-leave-page .leave-heading p{font-size:13px;color:#8994a0}
.light-actions{gap:12px;align-items:center;flex-wrap:nowrap}.light-menu{position:relative}.light-menu>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:7px 10px;border:0;border-radius:6px;box-sizing:border-box;color:#6c7d8c;font-size:13px;white-space:nowrap;user-select:none}.light-menu>summary::-webkit-details-marker{display:none}.light-menu>summary:hover{background:#f1f4f8}.light-menu .light-request-trigger{background:#2465a5;color:white;padding:8px 15px}.light-menu .light-request-trigger:hover{background:#1d568b}
.light-menu-popover{position:absolute;right:0;top:calc(100% + 8px);min-width:190px;background:white;border:1px solid #e9edf2;border-radius:9px;box-shadow:0 8px 30px #203c5717;padding:5px;z-index:30}.light-menu-popover .light-menu-item.button{display:flex;justify-content:flex-start;width:100%;border:0;border-radius:5px;min-height:40px;padding:9px 12px;background:transparent;color:#425b70;font-size:13px;text-align:left}.light-menu-popover .light-menu-item.button:hover{background:#f0f5fa}
.light-leave-page .leave-navigation{display:flex!important;gap:26px;margin:0 0 30px;padding:0;border-color:#edf0f3;overflow:auto}.light-leave-page .leave-navigation .button{border:0;border-radius:0;padding:11px 0;min-height:42px;font-size:13px;background:transparent;color:#87929e;box-shadow:none;position:relative}.light-leave-page .leave-navigation [aria-current=page]{color:#245e91;border-bottom:2px solid #447ba9;font-weight:600}.light-leave-page .leave-navigation .button:hover{background:transparent;color:#245e91}
.light-leave-page .leave-balances.light-balance-strip{display:flex;gap:0;margin:0 0 32px;border:0;border-bottom:1px solid #edf0f3;padding-bottom:26px;align-items:flex-start}
.light-balance{position:relative;flex:1;max-width:340px;padding:0 30px 0 0}.light-balance+.light-balance{border-left:1px solid #edf0f3;padding-left:30px}.light-balance>summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:1fr auto;gap:9px 16px;padding:0;border:0;color:#6d7d8d;font-size:12px;min-height:78px}.light-balance>summary::-webkit-details-marker{display:none}.light-balance>summary>strong{grid-row:2;grid-column:1;font-size:28px;letter-spacing:-.04em;line-height:1.15;color:#254a6c;font-weight:550}.light-balance>summary>strong.light-unconfigured{font-size:22px;color:#87929d;font-weight:450}.light-balance-hint{grid-row:2;grid-column:2;font-size:11px;align-self:end;color:#7b92a5;opacity:.75}.light-balance>summary:hover .light-balance-hint,.light-balance[open] .light-balance-hint{color:#2465a5;opacity:1}
.light-balance-detail{margin-top:15px;padding:16px;background:#f8fafc;border:1px solid #e9eef3;border-radius:7px;font-size:12px;color:#6a7b8b}.light-balance-detail p{font-size:12px;line-height:1.65;margin:0 0 12px}.light-balance-detail p:last-child{margin:12px 0 0}.light-balance-detail dl{padding:0;gap:7px}.light-balance-detail dd{color:#3e5a71}
.light-leave-page .leave-panel{padding:0;border:0;border-radius:0;margin-bottom:22px}.light-leave-page .leave-panel>header{margin-bottom:10px}.light-leave-page .leave-panel>header h3{font-size:15px;font-weight:550;color:#344e65}.light-leave-page .leave-panel>header label{font-size:12px;color:#8b96a2;gap:10px}.light-leave-page .leave-panel>header select{width:auto;border:0;border-bottom:1px solid #edf0f3;border-radius:0;background:transparent;padding:6px 20px 6px 8px;min-height:36px;font-size:12px}
.light-leave-page .leave-empty{margin:0;padding:36px 0;color:#8a97a3;font-size:13px;border-top:1px solid #edf0f3;min-height:0}.light-footnote{font-size:12px;color:#8b97a3;margin-top:22px}
.light-leave-page .leave-request-row{border-color:#edf0f3;padding:17px 10px;margin:0 -10px;border-radius:4px;grid-template-columns:minmax(140px,1fr) minmax(180px,1.3fr) auto auto;gap:14px}.light-leave-page .leave-request-row>.leave-row-actions{grid-column:auto;flex-wrap:nowrap;opacity:.65}.light-leave-page .leave-request-row:hover>.leave-row-actions,.light-leave-page .leave-request-row:focus-within>.leave-row-actions{opacity:1}.light-leave-page .leave-request-row strong{font-size:13px;font-weight:500}.light-leave-page .leave-row-actions .button{font-size:12px;min-height:32px;padding:5px 7px}
.docket-shell .leave-content:has(.leave-detail)::before{content:"";position:fixed;inset:0;background:#14283f26;z-index:49}.light-leave-page .leave-detail{position:fixed;inset:12px 12px 12px auto;width:min(500px,calc(100vw - 24px));box-sizing:border-box;max-height:calc(100dvh - 24px);overflow:auto;z-index:50;background:white;border:1px solid #e8edf2;border-radius:10px;padding:24px;box-shadow:0 10px 38px #1735501a}.light-leave-page .leave-detail .team-request{border:0}
.light-leave-page .leave-editor.leave-panel,.light-leave-page .leave-policy-drawer{padding:24px;border:1px solid #e8edf2;border-radius:10px;box-shadow:0 10px 38px #1735501a}.light-leave-page .leave-editor form{gap:17px}.light-leave-page .leave-editor>header{padding:6px 0 16px}.light-leave-page .leave-editor input,.light-leave-page .leave-editor select{min-height:40px;font-size:13px}.light-leave-page .leave-submit-footer{padding-top:14px}.light-leave-page .leave-outcome{font-size:12px;color:#7b8997}.light-leave-page .leave-preview{background:#f6f9fc;border-radius:6px;padding:12px}.light-leave-page .leave-preview h4{font-size:14px;font-weight:600}
.light-leave-page .employee-policy-overview{border:0;border-radius:0}.light-leave-page .employee-overview-toolbar{padding-inline:0}.light-leave-page .leave-calendar-tools{margin-bottom:12px}.light-leave-page .leave-view-toggle .button[aria-pressed=true]{background:#f0f4f8}.light-leave-page .leave-calendar-legend{font-size:11px;color:#8b96a1;max-width:720px}.light-leave-page .leave-wallchart{border-color:#edf0f3;border-radius:5px}.light-leave-page .leave-wallchart thead th{background:#fafbfc}.light-leave-page .leave-wallchart th,.light-leave-page .leave-wallchart td{border-color:#edf0f3}.light-leave-page .leave-holiday-candidates>summary{padding:12px 0;border:0;border-bottom:1px solid #edf0f3;border-radius:0;font-size:13px;color:#557995;font-weight:500}
@media(hover:hover) and (pointer:fine){.light-open-row .light-row-action{opacity:.25}.light-open-row:hover .light-row-action,.light-open-row:focus-within .light-row-action{opacity:1}}
@media(max-width:740px){.docket-shell .desk-content .layout{padding:22px 18px 32px}.docket-shell .firm-live-sidebar{padding:10px 12px 5px}.docket-shell .firm-primary-nav .desk-nav-link.button{min-height:46px;font-size:11px;padding:5px}.docket-shell .docket-identity .docket-create.button{min-height:36px}.docket-shell .button{min-height:44px}.docket-shell .adaptive-tabs,.docket-shell .team-center-tabs,.docket-shell .matter-tabs{gap:18px}.docket-shell .workbench-home{gap:22px}.light-breadcrumb{margin:0 0 20px;font-size:11px}.light-leave-page .leave-heading{gap:12px;margin-bottom:20px;flex-direction:row;align-items:flex-start}.light-leave-page .leave-heading h2{font-size:22px;max-width:220px}.light-leave-page .leave-heading p{display:none}.light-actions{gap:2px}.light-menu>summary{min-height:40px;padding:7px 8px;font-size:12px}.light-menu .light-request-trigger{padding:8px 10px}.light-leave-page .leave-navigation{gap:24px;margin-bottom:24px}.light-leave-page .leave-workspace{padding-bottom:0}.light-leave-page .leave-balances.light-balance-strip{margin-bottom:24px;padding-bottom:22px}.light-balance{padding-right:16px}.light-balance+.light-balance{padding-left:16px}.light-balance>summary{grid-template-columns:1fr;gap:6px;min-height:92px}.light-balance-hint{grid-column:1;grid-row:3;font-size:11px}.light-balance-detail{position:absolute;top:100%;left:0;right:-150px;background:#fff;z-index:10;box-shadow:0 8px 24px #213e5915}.light-balance:last-child .light-balance-detail{left:-150px;right:0}.light-leave-page .leave-request-row{grid-template-columns:minmax(0,1fr) auto;gap:7px;padding:16px 8px}.light-leave-page .leave-request-row>.leave-row-actions{grid-column:1/-1;grid-row:3;justify-content:flex-start;opacity:1}.light-leave-page .leave-request-row>.tag{grid-column:2;grid-row:1}.light-leave-page .leave-row-actions .button{min-height:40px}.light-leave-page .leave-editor.leave-panel,.light-leave-page .leave-policy-drawer,.light-leave-page .leave-detail{inset:0;width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:20px}.light-leave-page .leave-navigation.light-leave-tabs{display:flex!important}.light-leave-page .leave-mobile-nav{display:none!important}.light-leave-page .leave-date-fields{grid-template-columns:1fr 1fr}.light-leave-page .leave-calendar .leave-wallchart th:first-child{width:86px}.light-leave-page .leave-calendar-legend{font-size:11px}.light-leave-page .leave-panel>header{gap:10px;align-items:center}.light-leave-page .leave-editor>header{top:-20px}}
@media(prefers-reduced-motion:reduce){.docket-shell *{transition:none!important}}
.docket-shell .light-leave-page .leave-navigation .button[aria-current=page]{color:#245e91!important;border-bottom:2px solid #447ba9!important;font-weight:600;background:transparent!important}
.docket-shell .button[aria-pressed=true]:not(.desk-nav-link){background:#edf3fa;color:#245a89;border-color:transparent}
.docket-shell .team-table tbody th{color:#314f68;font-size:13px;font-weight:500}
.light-leave-page .leave-heading h1{font-size:28px;font-weight:620;letter-spacing:-.04em;margin:0 0 6px;line-height:1.25}
@media(max-width:740px){.light-leave-page .leave-heading h1{font-size:22px;max-width:220px}.docket-shell .light-leave-page .leave-heading{gap:8px}}
/* Read-only destinations use link affordances instead of miniature boxed buttons. */
body .docket-shell .button:not(.primary):not(.desk-nav-link){border-color:transparent!important;box-shadow:none!important;background:transparent!important}
body .docket-shell .button:not(.primary):not(.desk-nav-link):hover{background:#f0f4f8!important}
body .docket-shell .button[aria-pressed=true]:not(.desk-nav-link){background:#edf3fa!important;color:#245a89}
body .docket-shell .light-open-row .light-row-action{border:0!important;background:transparent!important;box-shadow:none!important;font-size:0!important;min-width:36px;opacity:.7;color:#41617c!important}
body .docket-shell .light-row-action svg{display:none}.docket-shell .light-row-action:after{content:"→";font-size:17px;opacity:1}.docket-shell .light-open-row:hover .light-row-action,.docket-shell .light-open-row:focus-within .light-row-action{opacity:1!important}
.docket-shell .matter-directory>.desk-docket{border:0!important;border-radius:0!important}.docket-shell .matter-table-row{border-bottom:1px solid #edf0f3;background:white;border-radius:0}.docket-shell .matter-table-head{background:#fafbfc;border:0;border-bottom:1px solid #edf0f3}
.docket-shell .matter-filters>.button.primary{background:transparent;border-color:transparent;color:#41617c;box-shadow:none;font-weight:500}.docket-shell .matter-filters>.button.primary:hover{background:#f0f5fa}
.docket-shell .timeline-overview-link{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 20px;background:transparent!important;border:0!important;border-bottom:1px solid #edf0f3!important;border-radius:0;padding:0 0 18px!important;margin:0 0 18px!important}.timeline-overview-link>strong{font-size:14px;font-weight:550}.timeline-overview-link>p{grid-column:1;font-size:12px;color:#7e8c99;margin:0!important}.timeline-overview-link>.button{grid-column:2;grid-row:1/3;align-self:center}
.docket-shell .case-primary-actions{gap:12px;align-items:center}.docket-shell .case-primary-actions>.button:not(.primary){padding:7px 4px;border:0}.docket-shell .case-primary-actions>.button svg{width:16px;height:16px}
@media(max-width:740px){.timeline-overview-link{gap:5px 8px}.timeline-overview-link>p{max-width:230px}.timeline-overview-link>.button{padding:6px;font-size:12px}.docket-shell .case-primary-actions{gap:7px}.docket-shell .matter-table-row{border-radius:0!important}}
.docket-shell .drive-folder{border:0;border-radius:6px;background:#fafbfd;padding:17px;box-shadow:none}.docket-shell .drive-folder:hover{background:#f0f5fa;border-color:transparent}.drive-folder-icon path{fill:#ecf2f9;stroke:#8da8c1;stroke-width:1}.drive-folder-icon path+path{fill:#f5f8fc;stroke:#8da8c1}.docket-shell .drive-folders.as-list .drive-folder{border:0;border-bottom:1px solid #edf0f3;border-radius:0;background:white}.docket-shell .drive-group-card{border:0;border-bottom:1px solid #edf0f3;border-radius:0;padding:10px 0}.docket-shell .drive-detail{border:0;border-left:1px solid #edf0f3;border-radius:0;box-shadow:none}.docket-shell .conversation-list>li{border-color:#edf0f3;padding:17px 10px;border-radius:4px}.docket-shell .drive-layout .button{font-size:12px}
body .docket-shell .button[aria-current=page]:not(.desk-nav-link){color:#245a89!important}
body .docket-shell .drive-tree .button[aria-current=page]{background:#edf3fa!important;color:#245a89!important}
/* Client workspace shares the same quiet surfaces and readable task hierarchy. */
.gateway-mast{background:#fff!important;border-bottom:1px solid #edf0f3!important;box-shadow:none}.gateway-mast .mast-inner{max-width:1200px;min-height:62px}.gateway-mast .brand strong{font-size:18px;color:#245579;font-weight:600}.gateway-mast .monogram{background:#f1f6fb!important;color:#245579;border:1px solid #e6edf4;border-radius:6px}.gateway-mast .account-menu>summary{border-color:transparent;background:transparent;box-shadow:none}
.firm-live-shell.gateway-client-shell,.gateway-client-shell .desk-content,.gateway-client-shell main.layout{background:#fff!important}.gateway-client-shell{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#29465e}
.gateway-client-bar{background:#fff!important;border-bottom:1px solid #edf0f3;box-shadow:none}.gateway-client-nav{gap:24px;padding-block:0;min-height:54px}.gateway-client-nav .desk-nav-link,.gateway-menu>summary{background:transparent!important;border:0!important;border-radius:0;box-shadow:none;color:#4c6070!important;font-size:13px;min-height:50px;padding:10px 0;gap:7px}.gateway-client-nav .desk-nav-link[aria-current=page]{color:#245a89!important;box-shadow:inset 0 -2px #447ba9!important}.gateway-client-nav .desk-nav-link:hover,.gateway-menu>summary:hover{color:#245a89!important}.gateway-client-nav svg,.gateway-menu>summary svg{background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0;padding:0!important;width:17px!important;height:17px!important;color:inherit}
.gateway-client-shell .gateway-home{padding:28px 28px 40px!important}.gateway-client-shell .gateway-person{margin-bottom:20px}.gateway-client-shell .gateway-person .gateway-avatar{background:#eef4fa;color:#38678e;font-size:14px;width:32px;height:32px}.gateway-client-shell .gateway-home>h1{font-size:19px;color:#546b7e;font-weight:500;margin-bottom:16px}
.gateway-client-shell .home-story{background:transparent;border:0;border-radius:0;padding:8px 0 24px;box-shadow:none}.gateway-client-shell .home-story h2{font-size:24px;font-weight:600;letter-spacing:-.025em}.gateway-client-shell .home-story>svg,.gateway-client-shell .home-story .desk-row-icon{display:none}.gateway-client-shell .home-story p{font-size:13px;color:#4c6070}
.gateway-client-shell .gateway-timeline{gap:28px}.gateway-client-shell .gateway-panel,.gateway-client-shell .gateway-timeline .desk-panel{border:0;border-top:1px solid #edf0f3;border-radius:0!important;box-shadow:none;background:#fff}.gateway-client-shell .gateway-panel .desk-panel-head{background:transparent!important;padding:16px 0 10px;border:0}.gateway-client-shell .gateway-panel h2{font-size:15px;font-weight:550}.gateway-client-shell .gateway-panel .desk-task,.gateway-client-shell .gateway-panel .desk-docket-row{background:white;border-color:#edf0f3;padding:16px 0;box-shadow:none}.gateway-client-shell .gateway-panel .desk-task strong{font-size:14px;font-weight:500}.gateway-client-shell .gateway-panel .desk-task small{font-size:12px;color:#4c6070}.gateway-client-shell .desk-row-icon{background:transparent!important;color:#7291aa}.gateway-client-shell .button:not(.primary){background:transparent!important;border-color:transparent!important;box-shadow:none!important;border-radius:5px;color:#41617c}.gateway-client-shell .button:not(.primary):hover{background:#f2f6fa!important;color:#245a89}.gateway-client-shell .button.primary{background:#2465a5;border-color:#2465a5;border-radius:7px;box-shadow:none}.gateway-client-shell .tag{border:0;border-radius:4px;font-size:11px}
.gateway-client-shell .timeline-notice{border:0;border-left:2px solid #d1ad6b;border-radius:0;background:#fffcf5;padding:13px 16px;margin-bottom:24px}.gateway-client-shell .timeline-notice h2{font-size:14px;margin-bottom:8px}.gateway-client-shell .timeline-notice>div{display:grid;grid-template-columns:1fr auto;gap:4px 16px}.gateway-client-shell .timeline-notice p{margin:0;font-size:12px;color:#705b38}.gateway-client-shell .timeline-notice strong{font-size:12px;font-weight:500}.gateway-client-shell .timeline-notice .button{grid-column:2;grid-row:1/3;align-self:center;font-size:12px}
.gateway-client-shell .light-open-row{cursor:pointer}.gateway-client-shell .light-open-row:hover{background:#f8fafc!important}.gateway-client-shell .light-row-action{border:0!important;font-size:0!important;min-width:36px}.gateway-client-shell .light-row-action:after{content:"→";font-size:17px}.gateway-client-shell [data-light-row]:focus-visible{outline:2px solid #367cbd;outline-offset:-2px}
@media(max-width:740px){.gateway-mast .mast-inner{min-height:56px}.gateway-mast .brand strong{font-size:14px}.gateway-client-nav{gap:14px;padding-inline:16px;overflow:visible;min-height:48px}.gateway-client-nav .desk-nav-link,.gateway-menu>summary{min-height:46px;font-size:12px;flex-direction:row;gap:5px}.gateway-client-shell .gateway-home{padding:22px 18px 32px!important}.gateway-client-shell .home-story h2{font-size:21px}.gateway-client-shell .timeline-notice{padding:12px}.gateway-client-shell .timeline-notice>div{gap:4px 8px}.gateway-client-shell .gateway-panel .desk-task{padding-block:16px}.gateway-client-shell .gateway-panel .task-action{min-height:44px;padding:8px 0!important}.gateway-client-shell .gateway-panel .desk-task strong{font-size:14px}.gateway-client-shell .gateway-panel .desk-task small{font-size:12px}.gateway-client-nav .gateway-menu-panel .desk-nav-link{justify-content:flex-start}}

/* Quiet file workspace: content rows, compact filters, and restrained selection. */
body .case-drive{max-width:1200px}body .drive-root{max-width:1040px;padding-top:24px}.drive-root .drive-heading{margin-bottom:30px}.drive-root .drive-heading h1{font-size:28px;font-weight:600;letter-spacing:-.5px}.drive-root-search{gap:12px;border-bottom:1px solid #e5ebef;padding-bottom:14px;margin-bottom:10px}.drive-root-search label{flex:1}.drive-root-search input{border:0!important;background:#f7f9fa!important;border-radius:9px!important;padding:12px 15px!important;font-size:14px!important}.drive-root-search>.button{border:0;background:none;box-shadow:none}.drive-case-list{display:grid}.drive-case-row{display:flex;justify-content:space-between;align-items:center;gap:24px;width:100%;padding:23px 12px;border:0;border-bottom:1px solid #edf1f3;background:transparent;text-align:left;color:#294b5e;font:inherit;cursor:pointer;border-radius:0;box-shadow:none}.drive-case-row strong{display:block;font-size:16px;font-weight:550;overflow-wrap:anywhere}.drive-case-row small{display:block;font-size:12px;line-height:1.6;color:#768590;margin-top:6px;overflow-wrap:anywhere}.drive-case-row:hover{background:#f5f9fa}.drive-case-row:focus-visible{outline:2px solid #6f9bab;outline-offset:-2px}.drive-row-open{color:#8ca2af;font-size:18px}.case-drive .drive-search select,.case-drive .drive-search input{border:0;border-bottom:1px solid #dce5eb;border-radius:0;background:transparent;min-height:40px;padding:8px 24px 8px 4px;box-shadow:none}.case-drive .drive-search select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23748898' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 6px center}.case-drive .drive-search>.button,.case-drive .drive-related>.button,.case-drive .drive-layout>.button{border:0;background:none;box-shadow:none;font-weight:400}.case-drive .drive-layout>[aria-pressed=true]{border-bottom:2px solid #457d94;border-radius:0;color:#255b73}.case-drive .drive-category-folders{display:block}.case-drive .drive-group-card{border:0;border-bottom:1px solid #edf1f3;border-radius:0;padding:9px 0;background:none}.case-drive .drive-group-card .drive-folder-icon{display:none}.case-drive .drive-group-card summary{gap:12px;min-height:42px}.case-drive .drive-group-card summary strong{font-size:13px;font-weight:550}.case-drive .drive-group-card>.button{border:0;background:none;font-weight:400}.case-drive .drive-files.as-list{border:0;border-radius:0}.case-drive .drive-file-symbol{background:transparent;border:0;border-left:2px solid #b6cbd6;border-radius:0;min-width:30px;width:30px;height:32px;color:#718694}.case-drive .drive-detail{border:0;border-left:1px solid #edf1f3;border-radius:0;background:none}.case-drive .drive-tree [aria-current=page]{border-radius:0;border-left:2px solid #457d94;background:#f3f7f9}.case-drive .drive-file>button:focus-visible{outline:2px solid #6f9bab;outline-offset:-2px}.case-drive .drive-file.is-selected{background:#f0f7fa}.case-drive .drive-file{border-radius:0}.case-drive .drive-search label{font-size:12px;color:#71818e}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:700px){.drive-case-row{padding:20px 6px;gap:12px}.drive-case-row strong{font-size:15px}.drive-root .drive-heading h1{font-size:24px}.case-drive .drive-detail{border-left:0;border-bottom:1px solid #edf1f3}.case-drive .drive-search label{min-width:130px}.drive-root-search label{min-width:160px}}

.gateway-client-shell .document-card{border:0;border-bottom:1px solid #e7edf1;border-radius:0;background:transparent}.gateway-client-shell .document-card>summary{padding:20px 4px}.gateway-client-shell .document-card>summary strong{font-weight:550}.gateway-client-shell .document-card-body{padding:16px 8px 24px;border-top:0;background:#fafcfd}.gateway-client-shell .matter-filters select,.gateway-client-shell .material-chooser select,.case-drive select{border:0;border-bottom:1px solid #dfe7ec;border-radius:0;box-shadow:none;background-color:transparent;font-size:13px;min-height:42px}.gateway-client-shell .matter-filters{background:transparent;border:0;padding:0 0 18px}.gateway-client-shell .matter-directory{border:0;background:transparent}.gateway-client-shell .matter-table-row{border:0;border-bottom:1px solid #e7edf1;border-radius:0;background:transparent}.gateway-client-shell .document-card .tag{border:0;font-size:11px;font-weight:500}

.case-drive .drive-workspace:not(:has(.drive-detail)){grid-template-columns:180px minmax(0,1fr)}@media(max-width:1200px){.case-drive .drive-workspace:not(:has(.drive-detail)){grid-template-columns:150px minmax(0,1fr)}}

.client-review-item{padding:24px 0;border-bottom:1px solid #e5e7eb}.review-content{white-space:pre-wrap;line-height:1.7;margin:20px 0}.client-review-item form{margin-top:20px}

.client-matter-overview{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:40px;align-items:start}.client-overview-main{min-width:0}.client-matter-overview h2{font-size:20px}.client-overview-team{border-left:1px solid #e4e9ec;padding-left:24px}.client-overview-team ul{padding:0;list-style:none}.client-overview-team li{display:grid;gap:4px;margin:18px 0}.client-overview-team small{color:#657680}.client-overview-team details{margin-top:24px}.client-overview-updates{margin-top:32px;border-top:1px solid #e4e9ec;padding-top:24px}.client-overview-updates header{display:flex;align-items:center;justify-content:space-between;gap:16px}.overview-timeline{list-style:none;padding:0 0 0 20px;margin:20px 0;border-left:2px solid #d8e4e9}.overview-timeline li{position:relative;padding:0 0 24px 8px;display:grid;gap:6px}.overview-timeline li:before{content:"";position:absolute;left:-26px;top:5px;width:10px;height:10px;border-radius:50%;background:#557f92}.overview-timeline time{font-size:13px;color:#657680}.overview-timeline p{margin:0;white-space:pre-wrap}.client-matter-overview .firm-case-tasks{padding:0;border:0;background:transparent}.client-matter-overview .desk-queue{margin-top:16px}.client-matter-overview .desk-task{padding:16px 0}@media(max-width:760px){.client-matter-overview{grid-template-columns:1fr;gap:28px}.client-overview-team{border-left:0;border-top:1px solid #e4e9ec;padding:20px 0}.firm-case-navigation .firm-navigation{overflow-x:auto;flex-wrap:nowrap}.firm-case-navigation .firm-navigation button{white-space:nowrap;flex-shrink:0}}
.gateway-client-shell .client-docket-row{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.gateway-client-shell .client-docket-row .desk-case-name{flex:1 1 240px;min-width:0}.gateway-client-shell .client-docket-row .desk-case-open{margin-left:auto}.gateway-client-shell .client-docket-row .matter-followup{font-size:13px}@media(max-width:600px){.gateway-client-shell .client-docket-row{gap:12px}.gateway-client-shell .client-docket-row .desk-case-name{flex-basis:100%}.gateway-client-shell .client-docket-row .desk-docket-stage{flex:1}}
/* Staff audit: start with current work, keep configuration and waiting states secondary. */
.docket-shell .ref-dashboard .docket-heading{margin-bottom:16px}.docket-shell .adaptive-home-tools{margin:0;display:flex;justify-content:flex-end}.docket-shell .home-case-filter{margin:0 0 20px;align-items:flex-end;gap:10px;max-width:470px}.docket-shell .home-case-filter label{flex:1;min-width:0}.staff-layout-options{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.docket-shell .ref-dashboard .ref-widget>header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 0 16px}.docket-shell .ref-dashboard .ref-widget h2{font-size:18px}.docket-shell .ref-dashboard .ref-widget-body{padding:0}.docket-shell .ref-dashboard .workbench-home{margin-top:0;align-items:start;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr)}.docket-shell .eval-home-grid.work-first .workbench-home{grid-template-columns:minmax(0,1.4fr) minmax(280px,.6fr)}
.docket-shell .staff-manager-summary{margin:28px 0 0;border:0;border-top:1px solid #e5e9ee;border-radius:0;background:transparent}.staff-manager-summary>summary{cursor:pointer;padding:18px 0;color:#566777;font-size:14px}.staff-manager-summary>summary span,.staff-waiting>summary span{display:inline-block;min-width:22px;margin-left:6px;padding:2px 6px;background:#eff3f7;border-radius:5px;text-align:center}.staff-manager-summary>header{display:none}.staff-manager-summary .desk-docket{border:0}.docket-shell .timeline-notice{margin:16px 34px 0;padding:12px 16px;border:0;border-left:3px solid #6b91b1;border-radius:0;background:#f4f7fa}.docket-shell .timeline-notice h2{font-size:14px;margin:0 0 5px}.docket-shell .timeline-notice>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.docket-shell .timeline-notice p{margin:0;font-size:12px;color:#4c6070}.docket-shell .timeline-notice .button{margin-left:auto}
.docket-shell .matter-overview .firm-case-overview{grid-template-columns:minmax(0,1fr) 290px;gap:40px}.docket-shell .matter-overview .matter-work{min-width:0}.docket-shell .matter-overview .firm-case-tasks{padding:0;border:0;background:transparent}.docket-shell .matter-overview .firm-case-tasks h2{font-size:20px;margin-top:0}.docket-shell .matter-overview .matter-facts{border:0;border-left:1px solid #e6ebef;padding:0 0 0 24px;background:transparent}.docket-shell .matter-overview .matter-facts h2{font-size:17px}.docket-shell .matter-overview .matter-facts .events>li{padding-inline:0}.staff-waiting{margin-top:20px;border-top:1px solid #e9edf1}.staff-waiting>summary{padding:16px 0;cursor:pointer;color:#62778b;font-size:14px}.staff-recent-updates{margin-top:28px;border-top:1px solid #e9edf1;padding-top:24px}.staff-recent-updates>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.staff-recent-updates h2{font-size:18px;margin:0}.staff-completed-tasks>summary{cursor:pointer;color:#6b7d8b;padding:14px 0}.matter-follow-toolbar{display:flex;justify-content:flex-end;margin:-14px 0 12px}.docket-shell .matter-overview .panel.spaced{padding:20px 0 0;margin-top:24px;border-top:1px solid #e9edf1}.docket-shell .matter-overview .panel.spaced h2{font-size:17px}.docket-shell .matter-overview .desk-task{padding:15px 0}.docket-shell .matter-overview .desk-empty{padding:14px 0;color:#7b8895}
@media(max-width:900px){.docket-shell .matter-overview .firm-case-overview{grid-template-columns:minmax(0,1fr)}.docket-shell .matter-overview .matter-facts{border-left:0;border-top:1px solid #e6ebef;padding:24px 0 0}.docket-shell .ref-dashboard .workbench-home,.docket-shell .eval-home-grid.work-first .workbench-home{grid-template-columns:minmax(0,1fr)}.docket-shell .timeline-notice{margin:16px 18px 0}.docket-shell .home-case-filter{max-width:none}.docket-shell .adaptive-home-tools .button{min-height:44px}.docket-shell .staff-manager-summary .matter-table-row{grid-template-columns:minmax(0,1fr) auto}}
.docket-shell .adaptive-home-tools{float:right;margin-top:16px}.docket-shell .ref-dashboard .home-case-filter{padding-top:0}.docket-shell .ref-dashboard .ref-widget h2:after{display:none}.docket-shell .case-drive .drive-heading{margin-bottom:18px}.docket-shell .case-drive .drive-heading h1{font-size:21px}.docket-shell .case-drive .drive-related{margin-block:8px 16px}.docket-shell .case-drive .drive-file-search{border:0;border-bottom:1px solid #e9edf1;border-radius:0;padding:0 0 20px;background:transparent}
.docket-shell details.firm-tool-group{margin:6px 0}.docket-shell .firm-tool-group>summary{cursor:pointer;padding:10px 12px;color:#62788a;font-size:12px;font-weight:550}.docket-shell .firm-tool-group>summary:hover{background:#eef2f6;border-radius:5px}.docket-shell .firm-tool-group nav{padding-left:6px}.docket-shell .firm-tool-group .desk-nav-link.button{font-size:12px;min-height:36px}
.staff-mobile-more{display:none}
@media(max-width:740px){.docket-shell .firm-primary-nav:has(>[data-mobile-shortcut="true"])>.desk-nav-link:not([data-mobile-shortcut="true"]){display:none}.docket-shell .firm-primary-nav>.desk-nav-link{flex:1!important}.docket-shell .staff-mobile-more{display:block;margin-top:4px}.staff-mobile-more>summary{cursor:pointer;padding:8px 10px;font-size:13px;color:#466984}.staff-mobile-more>nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:8px 0}.staff-mobile-more .desk-nav-link.button{justify-content:flex-start;align-items:center;min-height:44px;min-width:0;width:100%;white-space:normal;text-align:left}.staff-mobile-more .desk-nav-link>span{min-width:0;overflow-wrap:anywhere}.docket-shell .adaptive-home-tools{float:none;margin:0 0 8px}.docket-shell .home-case-filter{display:block;margin:0 0 18px;width:100%;max-width:none}.docket-shell .home-case-filter label{display:block;width:100%}.docket-shell .timeline-notice{margin:0 0 18px;padding:12px}.docket-shell .timeline-notice>div{gap:4px 10px}.docket-shell .timeline-notice .button{padding:4px;min-height:36px}.docket-shell .timeline-notice h2{margin-bottom:8px}.docket-shell .ref-dashboard .docket-heading{margin-bottom:8px}}
.staff-invite-panel>summary{font-size:16px;font-weight:550;cursor:pointer;padding:14px 0}.staff-invite-panel>form{max-width:640px}
.staff-file-preview-grid{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:28px;align-items:start}.staff-file-preview-grid>section{min-width:0}.staff-file-preview .drive-heading{gap:20px;align-items:flex-start}.staff-file-preview .drive-heading h2{font-size:18px;overflow-wrap:anywhere;flex:1}.drive-preview-step{display:flex;gap:6px;flex-wrap:wrap}.staff-file-preview .drive-detail{position:static;width:auto;box-shadow:none;border:0;border-left:1px solid #e5ebf0;border-radius:0;max-height:none}.staff-file-preview .drive-detail>header{display:none}.staff-file-preview .drive-detail h3{font-size:14px}.staff-file-preview .auto-pdf-paper{background:#f5f7fa;padding:12px}.staff-file-preview .auto-pdf-paper canvas{max-width:100%;height:auto!important}@media(max-width:900px){.staff-file-preview-grid{grid-template-columns:minmax(0,1fr)}.staff-file-preview .drive-detail{border-left:0;border-top:1px solid #e5ebf0;padding:18px 0}.staff-file-preview .drive-heading{flex-wrap:wrap}.staff-file-preview .drive-heading h2{flex-basis:100%}}
.workbench-home [data-home-module="messages"] li>div{display:grid;gap:6px;min-width:0}.workbench-home [data-home-module="messages"] li strong{overflow-wrap:anywhere}.workbench-home [data-home-module="messages"] li small{display:block;line-height:1.5;color:#657680}

/* Keep every client destination distinct at narrow widths and high zoom. */
@media(max-width:740px){
  .gateway-client-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;padding:4px 12px}
  .gateway-client-nav>.desk-nav-link,.gateway-client-nav>.gateway-menu>summary{display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:56px;padding:6px 2px;white-space:normal;overflow-wrap:anywhere;text-align:center;font-size:14px}
  .gateway-client-nav>.gateway-menu{min-width:0}
  .gateway-client-nav svg{flex-shrink:0}
}
@media(max-width:460px){
  .gateway-client-nav{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Matter hierarchy: normal-flow context and a single running timer. */
.matter-banner{position:relative!important;top:auto!important}.matter-foundation{padding:20px 24px;margin:0 0 20px;background:#fff;border-bottom:1px solid #dce4e9;border-radius:8px}.matter-foundation header{display:flex;justify-content:space-between;align-items:center;gap:16px}.matter-foundation h2{font-size:17px;margin:0 0 10px}.matter-foundation textarea{width:100%}.matter-overview>.mandatory-summary,.matter-overview>.matter-internal-targets{margin:16px 0;padding:16px 24px;background:#f5f7fa;border-radius:8px}.matter-work>section{margin-bottom:24px;padding:22px;background:white;border:1px solid #e4e9ed;border-radius:8px}.matter-facts>h2{padding-top:20px;border-top:1px solid #e4e9ed}.billing-case-timer{margin:0;padding:0;border:0;background:none}.billing-timer-bar{position:sticky;top:0;z-index:50;padding:8px 16px;margin:0;border-radius:0;gap:12px}.billing-timer-bar small{display:none}.billing-timer-clock{font-size:18px}.client-matter-overview>.matter-foundation{grid-column:1/-1}.drive-file-selection{padding:10px}.drive-archive-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:12px 0}.drive-file.is-archived{opacity:.8}.drive-tree{max-height:65vh;overflow:auto}.matter-foundation .time-pair{max-width:700px}@media(max-width:600px){.matter-foundation{padding:16px}.billing-timer-bar>div:first-child{flex-basis:auto;min-width:0}.billing-timer-bar .button{padding:6px}.billing-timer-bar{gap:8px}}

.matter-type-filter{display:flex;gap:12px;flex-wrap:wrap}.matter-type-filter label{min-width:145px}.matter-planning-add{margin:0 0 16px}.matter-foundation .review-note{background:none;padding:0}.matter-overview>.matter-foundation:nth-of-type(2){padding-top:12px;padding-bottom:12px}
.file-organize{padding:18px;border:1px solid #dce4ea;border-radius:8px;margin-bottom:16px;max-width:620px}.file-organize header,.file-bulk{display:flex;align-items:center;gap:12px;justify-content:space-between}.file-bulk{justify-content:flex-start;padding:10px;background:#edf4f8;flex-wrap:wrap}.file-folder-node{padding-left:calc(var(--folder-depth)*12px)}.file-type-filters{margin-top:20px;border-top:1px solid #e1e7ed;padding-top:15px}.file-type-filters summary{cursor:pointer}.file-all-tasks{margin:16px 0}.matter-context-compact{padding:8px 24px}.matter-context-compact summary{cursor:pointer;color:#657780}.drive-file{grid-template-columns:32px minmax(0,1fr) auto!important}.drive-workspace:has(.drive-tree[hidden]){grid-template-columns:minmax(0,1fr)}.drive-detail{max-height:75vh;overflow:auto}@media(max-width:760px){.drive-detail{max-height:none}.file-organize{width:100%;box-sizing:border-box}.drive-workspace{display:block!important}.drive-tree{max-height:240px;margin-bottom:16px}}
body .case-drive{padding-top:18px!important}.case-drive .drive-heading{margin:0 0 10px;padding:0;justify-content:space-between}.case-drive .drive-heading h2{font-size:21px;margin:0}.case-drive .drive-crumb{padding:8px 0;margin:0;display:flex;gap:10px;flex-wrap:wrap}.case-drive .drive-related{display:none}.case-drive .drive-search{padding:8px 0;margin:0 0 12px}.case-drive .drive-archive-tools{margin:8px 0}.case-drive .drive-workspace{margin-top:0}.case-drive .drive-tree h3{font-size:14px;margin:12px 0}.case-drive .drive-toolbar{gap:8px}.case-drive .drive-file-search label{gap:4px}.case-drive .drive-file-count{padding:8px 0}.case-drive .drive-heading>div:first-child{flex:1}

.docket-shell .matter-directory .matter-filters{grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr))}
.matter-keyword{min-width:0}.matter-keyword-box{position:relative}.matter-keyword-box input{width:100%;padding-inline-end:72px!important}.matter-keyword-box button{position:absolute;inset-block:2px;right:2px;width:32px;padding:0;border:0;background:transparent;color:#245473;cursor:pointer}.matter-keyword-box [data-keyword-cancel]{right:34px}.matter-keyword-box svg{width:17px;height:17px}.matter-keyword-box input::-webkit-search-cancel-button{display:none}

#app:has(.account-entry)>.footer{color:#4c6070}

.timeline-notice>div>p{color:#4c6070}

/* Three navigation levels: app sidebar, matter tabs, section choices. */
:root{--bc-section-line:#d8e2eb;--bc-section-surface:#f6f8fb;--bc-section-text:#233b50}
.docket-shell .firm-case-navigation{margin-top:18px}
.docket-shell .firm-case-navigation>.firm-navigation{gap:22px;border-bottom:2px solid #dce5ed;padding:0 4px}
.docket-shell .firm-case-navigation>.firm-navigation>.button{font-size:14px;font-weight:550;color:#4e6072}
.docket-shell .firm-case-navigation>.firm-navigation>.button[aria-current=page]{color:#174d7c;font-weight:700;box-shadow:inset 0 -3px #2465a5!important}
.docket-shell .matter-subnav{display:flex;align-items:center;gap:6px;flex-wrap:wrap;background:#f3f6fa;border:1px solid #e2e8ef;border-radius:7px;padding:7px 10px;margin:12px 0 6px}
.docket-shell .matter-subnav>.nav-scope-label{font-size:12px;color:#586c7f;font-weight:600;padding:5px 12px 5px 2px;border-right:1px solid #cbd7e2;margin-right:6px;white-space:nowrap}
.docket-shell .matter-subnav>.button{font-size:13px;min-height:34px;padding:6px 11px;border-radius:5px;color:#4f6376}
.docket-shell .matter-subnav>.button[aria-current=page]{background:#fff!important;color:#174d7c!important;box-shadow:0 0 0 1px #cad8e5;font-weight:650}
/* Sibling sections get boundaries; nested content uses spacing and dividers. */
.docket-shell .layout :is(.matter-foundation,.leave-panel,.ref-widget,.team-section,.expense-detail,.file-organize,.adaptive-panel){box-sizing:border-box}
.docket-shell .layout :is(.matter-foundation,.leave-panel,.ref-widget,.expense-detail,.file-organize){border:1px solid var(--bc-section-line);border-radius:8px;background:#fff;padding:20px;margin-bottom:20px}
.docket-shell .layout :is(.matter-work,.billing-panel,.client-overview-main)>section,
.docket-shell .layout .billing-workspace>.team-section,
.docket-shell .layout .team-section:has(>h3),
.docket-shell .layout .team-section:has(>h4){border:1px solid var(--bc-section-line);border-radius:8px;background:#fff;padding:20px;margin:0 0 20px}
.docket-shell .layout .team-section .team-section{border:0;border-top:1px solid #e1e8ef;border-radius:0;padding:18px 0 0;margin-top:18px}
.docket-shell .layout :is(.matter-foundation,.leave-panel,.ref-widget,.team-section,.expense-detail,.file-organize)>:is(h2,h3,h4),
.docket-shell .layout :is(.matter-foundation,.leave-panel,.ref-widget,.team-section,.expense-detail,.file-organize)>header{padding-bottom:12px;margin-top:0;margin-bottom:16px;border-bottom:1px solid #e0e7ee}
.docket-shell .layout h2{font-size:20px;color:#233b50;line-height:1.4}
.docket-shell .layout h3{font-size:16px;color:#2d465d;line-height:1.45}
.docket-shell .layout h4{font-size:14px;color:#38536c;line-height:1.5}
.docket-shell .layout header :is(h2,h3,h4){margin-top:0;margin-bottom:0}
.docket-shell .layout header :is(p,.muted){font-size:13px;margin:6px 0 0;color:#5e7183;line-height:1.55}
.docket-shell .layout .matter-facts{border:1px solid var(--bc-section-line)!important;border-radius:8px;padding:20px!important;background:#f9fbfd!important}
.docket-shell .layout .matter-facts>h2:first-child{border-top:0;padding-top:0}
.docket-shell .layout .matter-facts>h2{margin-top:24px;padding-top:20px}
/* Section tabs have a softer selected surface than matter-level navigation. */
.docket-shell .layout :is(.billing-view-nav,.leave-navigation,.team-center-tabs,.adaptive-tabs){display:flex;gap:8px;align-items:center;overflow:auto;padding:6px;background:#f3f6fa;border:1px solid #e0e7ee;border-radius:7px;margin:16px 0 24px}
.docket-shell .layout :is(.billing-view-nav,.leave-navigation,.team-center-tabs,.adaptive-tabs)>.button{padding:8px 12px;border-radius:5px!important;white-space:nowrap;box-shadow:none!important;color:#52677b;min-height:36px}
.docket-shell .layout :is(.billing-view-nav,.leave-navigation,.team-center-tabs,.adaptive-tabs)>.button:is([aria-current=page],[aria-pressed=true]){background:#fff!important;color:#174d7c;font-weight:650;box-shadow:0 0 0 1px #cbd8e4!important}
.docket-shell .layout .leave-settings-nav{margin:0 0 20px;padding:0 8px;border-bottom:1px solid #dce5ed;gap:18px}
/* Fields remain visibly editable, and each option keeps its label. */
.docket-shell .layout label{color:#344d64;font-size:13px;line-height:1.5}
.docket-shell .layout label>input:not([type=checkbox]):not([type=radio]),.docket-shell .layout label>select,.docket-shell .layout label>textarea{margin-top:5px;border:1px solid #bfcdd9;background:#fff;border-radius:6px;min-height:38px}
.docket-shell .layout fieldset{border:1px solid #d8e2eb;border-radius:7px;padding:16px;margin:12px 0 20px}
.docket-shell .layout fieldset legend{font-size:14px;font-weight:650;color:#304b63;padding:0 7px}
.docket-shell .layout fieldset fieldset{border:0;border-top:1px solid #e0e7ee;border-radius:0;margin-top:14px;padding-inline:0}
.docket-shell .layout :is(.adaptive-filter,.matter-filters,.drive-file-search){background:#f8fafc;border:1px solid #e0e7ee;border-radius:7px;padding:12px!important;gap:12px;margin-bottom:18px!important}
.docket-shell .layout :is(.adaptive-filter,.matter-filters,.drive-file-search) label{font-size:12px}
.docket-shell .layout :is(.case-scope,.file-profile-fields>details,.staff-waiting){border-bottom:1px solid #dfe7ef}
.docket-shell .layout :is(.case-scope,.file-profile-fields>details,.staff-waiting)>summary{font-weight:550;color:#344e65;padding:12px 0;cursor:pointer}
.docket-shell .layout :is(.case-scope,.file-profile-fields>details)>form{padding:8px 0 18px}
.docket-shell .layout .option-section{padding:14px 0;border-top:1px solid #e0e7ee}
.docket-shell .layout .option-section:first-child{border-top:0}
/* Views and actions are distinct within the file workspace. */
.docket-shell .file-view-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 0;margin:0 0 12px;border-bottom:1px solid #dce5ed}
.docket-shell .file-view-controls>.nav-scope-label{font-size:12px;font-weight:650;color:#586e82;margin-right:8px}
.docket-shell .file-view-controls .button[aria-pressed=true]{background:#e7eff8;color:#174d7c;font-weight:650;box-shadow:inset 0 -2px #2465a5}
.docket-shell .file-view-controls .file-new-folder{margin-left:auto;border-left:1px solid #d5e0ea;border-radius:0;padding-left:16px}
.docket-shell .drive-tree{background:#f7f9fc;border:1px solid #dce5ed;border-radius:7px;padding:12px;box-sizing:border-box}
.docket-shell .drive-detail{background:#f9fbfd;border:1px solid #dce5ed;border-radius:7px;padding:18px}
.docket-shell .drive-file-count{border-bottom:1px solid #e0e7ee;margin-bottom:8px}
.docket-shell .file-bulk{border:1px solid #bfd1e2;border-radius:7px;margin-bottom:12px}
@media(max-width:760px){
 .docket-shell .matter-subnav{flex-wrap:nowrap;overflow-x:auto}.docket-shell .matter-subnav>.button{flex-shrink:0}.docket-shell .matter-subnav>.nav-scope-label{flex-shrink:0}
 .docket-shell .layout :is(.matter-foundation,.leave-panel,.ref-widget,.expense-detail,.file-organize),.docket-shell .layout :is(.matter-work,.billing-panel,.client-overview-main)>section{padding:16px;margin-bottom:16px}
 .docket-shell .layout h2{font-size:18px}.docket-shell .layout h3{font-size:16px}
 .docket-shell .file-view-controls{gap:4px}.docket-shell .file-view-controls .button{font-size:12px;padding:7px 9px}.docket-shell .file-view-controls .file-new-folder{margin-left:0}
}
.profile-local-edit {margin-top:8px;border-top:1px solid var(--line,#e3e8ed);padding-top:7px}
.profile-local-edit summary {font-size:13px;cursor:pointer;color:#29618a}
.profile-local-edit form {margin-top:10px;max-width:560px}
.file-folder-tools {margin:10px 0 16px;padding:10px 0;border-bottom:1px solid #e3e8ed}
.file-folder-tools summary {font-weight:600;cursor:pointer}
.file-folder-tools p {font-size:13px;color:#637284}
/* Short section menus remain fully visible instead of clipping the last tab. */
@media(max-width:740px){
 .docket-shell .layout :is(.adaptive-tabs,.frontdesk-tabs,.template-hub-nav),.layout .knowledge-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;overflow:visible;max-width:100%;box-sizing:border-box}
 .docket-shell .layout :is(.resource-tabs,.resource-edit-tabs,.leave-settings-nav){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;overflow:visible;max-width:100%;box-sizing:border-box}
 .docket-shell .layout :is(.adaptive-tabs,.frontdesk-tabs,.template-hub-nav,.resource-tabs,.resource-edit-tabs,.leave-settings-nav)>.button,.layout .knowledge-tabs>.button{min-width:0;width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center;justify-content:center;min-height:44px;padding:8px 6px;box-sizing:border-box}
 .docket-shell .firm-tool-group nav{grid-template-columns:repeat(2,minmax(0,1fr))}
 .docket-shell .firm-tool-group .desk-nav-link.button{min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:left;align-items:center}
 .docket-shell .firm-primary-nav:not(:has(>[data-mobile-shortcut])){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;overflow:visible}
 .docket-shell .firm-primary-nav:not(:has(>[data-mobile-shortcut]))>.desk-nav-link{min-width:0;white-space:normal;text-align:left;justify-content:flex-start}
}
/* One daily menu plus four role-aware work areas. */
.docket-shell .firm-workspace-groups{display:grid;gap:4px;border-top:1px solid #dce5ed;margin-top:18px;padding-top:14px}
.workspace-section-context{padding:14px clamp(16px,2vw,28px);border-bottom:1px solid #dce5ed;background:#f7f9fc;box-sizing:border-box}
.workspace-section-context>.nav-scope-label{display:block;font-weight:650;font-size:13px;color:#344e65;margin-bottom:8px}
.workspace-section-context>nav{display:flex;flex-wrap:wrap;gap:6px}
.workspace-section-context .button{border:0;background:transparent;min-height:40px;padding:7px 12px;color:#52687b;white-space:normal}
.workspace-section-context .button[aria-current=page]{background:#e6eef8;color:#174d7c;font-weight:650;box-shadow:inset 0 -2px #2465a5}
.firm-case-navigation{position:relative}
.docket-shell .firm-case-navigation>.firm-navigation{padding-right:78px}
.matter-more{position:absolute;top:0;right:0;z-index:12}
.matter-more>summary{cursor:pointer;min-height:44px;padding:10px 12px;box-sizing:border-box;font-size:13px;color:#52687b}
.matter-more>summary[aria-current=page]{color:#174d7c;font-weight:650}
.matter-more>div{position:absolute;right:0;min-width:150px;background:white;border:1px solid #dce5ed;border-radius:6px;box-shadow:0 4px 16px #15334b18;padding:6px}
.simplified-client-nav{justify-content:center}
@media(max-width:740px){
 .docket-shell .firm-workspace-groups{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-top:7px;padding-top:7px}
 .docket-shell .firm-workspace-groups>.desk-nav-link{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-width:0;min-height:50px;white-space:normal;text-align:center;padding:5px 3px;font-size:12px}
 .workspace-section-context>nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:6px}
 .workspace-section-context .button{width:100%;min-width:0;overflow-wrap:anywhere;text-align:center;justify-content:center;min-height:44px}
 .gateway-client-nav.simplified-client-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
 .gateway-client-nav.simplified-client-nav:has(>button:nth-child(5)){grid-template-columns:repeat(5,minmax(0,1fr))}
 .docket-shell .firm-case-navigation>.firm-navigation{padding-right:0;margin-right:65px}
 .matter-more>summary{padding:10px 6px}
}
body .docket-shell .workspace-section-context .button[aria-current=page]{background:#e6eef8!important;box-shadow:inset 0 -2px #2465a5!important;color:#174d7c!important;font-weight:650}

/* Use the same content frame for section navigation and its workspace. */
.docket-shell .desk-content:has(> .workspace-section-context) {
  --section-frame-width: 1440px;
  --section-frame-inset: 24px;
}
.docket-shell .desk-content > .workspace-section-context,
.docket-shell .desk-content:has(> .workspace-section-context) > main.layout {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--section-frame-width) !important;
  margin-inline: auto;
  padding-inline: var(--section-frame-inset) !important;
}
@media (max-width: 700px) {
  .docket-shell .desk-content:has(> .workspace-section-context) {
    --section-frame-inset: 16px;
  }
}

/* Section choices share the page grid; a single underline marks selection. */
body .docket-shell .workspace-section-context {
  background: transparent;
  border: 0;
  padding-block: 8px 0;
}
body .docket-shell .workspace-section-context > .nav-scope-label { display: none; }
body .docket-shell .workspace-section-context > nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  align-items: center;
  border-bottom: 1px solid #dce5ed;
}
body .docket-shell .workspace-section-context > nav > .button {
  width: auto;
  padding: 7px 0;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent !important;
}
body .docket-shell .workspace-section-context > nav > .button[aria-current=page] {
  background: transparent !important;
  box-shadow: inset 0 -2px #2465a5 !important;
}
body .docket-shell .workspace-section-context > nav > .button:focus-visible {
  outline: 2px solid #2465a5;
  outline-offset: 2px;
}
.docket-shell .desk-content:has(> .workspace-section-context) > main.layout > .panel {
  padding-inline: 0;
}

.matter-files {
  --file-line:#dce5ed;
  --file-muted:#4b6072;
  --file-accent:#235987;
  --file-wash:#ecf3f9;
  container-type:inline-size;
  container-name:file-workspace;
}
.matter-files .button { min-height:44px; }
.matter-files :is(button,input,select,textarea,summary,a):focus-visible {
  outline:2px solid #245e93;
  outline-offset:-2px;
}
.matter-file-heading,.matter-file-scope,.matter-file-dialog>header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.matter-file-heading h1 { margin:0; font-size:clamp(1.35rem,3vw,1.65rem); line-height:1.25; }
.matter-file-heading p { color:var(--file-muted); margin:.35rem 0 0; overflow-wrap:anywhere; }
.matter-files .drive-crumb { border:0; padding:.45rem 0; }
.matter-file-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:0 0 12px; border-bottom:1px solid var(--file-line); }
.matter-file-toolbar form { display:flex; flex:1 1 14rem; gap:4px; min-width:0; }
.matter-file-toolbar input,.matter-file-dialog :is(input,select,textarea) {
  box-sizing:border-box;
  min-height:44px;
  width:100%;
  min-width:0;
  font:inherit;
  color:#172c3d;
  border:1px solid #8498aa;
  border-radius:6px;
  background:#fff;
  padding:8px 10px;
}
.matter-file-toolbar input::placeholder { color:var(--file-muted); opacity:1; }
.matter-file-toolbar form button { flex:none; }
.matter-file-active-filters { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:6px; }
.matter-file-active-filters>span { background:var(--file-wash); color:#23435f; border-radius:4px; padding:4px 8px; font-size:.82rem; }
.matter-file-workspace {
  display:grid;
  grid-template-columns:minmax(9rem,12rem) minmax(0,1fr);
  gap:16px;
  margin-top:16px;
  align-items:start;
}
.matter-file-tree {
  position:sticky;
  top:12px;
  max-height:calc(100dvh - 7rem);
  overflow:auto;
  padding:0 10px 12px 0;
  border-right:1px solid var(--file-line);
}
.matter-files .matter-file-mobile-tree { display:none; }
.matter-file-tree .button,.matter-file-folder-picker .button {
  display:flex;
  width:100%;
  justify-content:space-between;
  text-align:left;
  white-space:normal;
  overflow-wrap:anywhere;
  background:transparent;
  border:0;
  box-shadow:none;
  color:#213a50;
}
.matter-file-tree .button:hover,.matter-file-folder-picker .button:hover { background:#f3f7fb; }
.matter-file-tree [aria-current=page],.matter-file-folder-picker [aria-current=page] { background:var(--file-wash); color:#174d7c; font-weight:650; }
.matter-file-folders { margin-top:12px; padding-top:8px; border-top:1px solid var(--file-line); }
.matter-file-folder-heading { display:flex; align-items:center; justify-content:space-between; gap:6px; padding-left:8px; }
.matter-file-folder-heading h3 { margin:0; font-size:.875rem; color:var(--file-muted); }
.matter-file-folder-heading>.button { width:44px; flex:none; justify-content:center; padding:0; font-size:1.15rem; }
.matter-file-branch { margin:.35rem 0 .35rem .3rem; padding-left:.35rem; border-left:1px solid var(--file-line); }
.matter-file-tree details>summary,.matter-file-folder-picker details>summary { cursor:pointer; padding:12px 6px; min-height:44px; box-sizing:border-box; overflow-wrap:anywhere; }
.matter-file-content,.matter-file-name { min-width:0; }
.matter-file-scope { padding:0 0 10px; }
.matter-file-scope h2 { font-size:1rem; margin:0; overflow-wrap:anywhere; }
.matter-file-scope span { color:var(--file-muted); font-size:.82rem; white-space:nowrap; }
.matter-file-list { padding:0; margin:0; list-style:none; }
.matter-file-list-heading,.matter-file-row {
  display:grid;
  grid-template-columns:24px minmax(0,2.4fr) minmax(5rem,.8fr) minmax(6rem,1fr) minmax(4.5rem,.7fr) 44px;
  align-items:center;
  gap:8px;
  border-bottom:1px solid var(--file-line);
}
.matter-file-list-heading {
  padding:9px 0;
  color:#41586c;
  font-weight:650;
  font-size:.79rem;
}
.matter-file-row { position:relative; min-height:62px; color:#233b50; font-size:.86rem; }
.matter-file-row.is-selected,.matter-file-row:hover { background:#f4f8fc; }
.matter-file-select { display:grid; place-items:center; min-height:44px; }
.matter-file-select input { width:17px; height:17px; margin:0; accent-color:var(--file-accent); }
.matter-file-list-heading > span:nth-child(2) { padding-inline-start:45px; }
.matter-file-list-end { margin:0 0 32px; padding:12px 16px; background:var(--file-wash); color:var(--file-muted); border-bottom:1px solid var(--file-line); border-radius:0 0 6px 6px; font-size:.8rem; }
.matter-files .matter-file-main .button {
  justify-content:flex-start;
  display:flex;
  align-items:center;
  gap:9px;
  width:100%;
  padding:8px 4px;
  border:0;
  background:transparent;
  box-shadow:none;
  text-align:left;
  color:#183248;
  font-weight:600;
}
.matter-file-main .drive-file-symbol { width:32px; min-width:32px; height:38px; }
.matter-file-name strong { display:block; font-size:.9rem; overflow-wrap:anywhere; }
.matter-file-date small,.matter-file-name small { color:var(--file-muted); font-size:.75rem; display:block; overflow-wrap:anywhere; }
.matter-file-name small { display:none; }
.matter-file-category,.matter-file-audience { overflow-wrap:anywhere; }
.matter-file-view,.matter-file-new { position:relative; }
.matter-file-view>summary,.matter-file-new>summary { display:flex; align-items:center; justify-content:center; cursor:pointer; list-style:none; min-height:44px; }
.matter-file-view>summary::-webkit-details-marker,.matter-file-new>summary::-webkit-details-marker { display:none; }
.matter-files .matter-file-row-menu { font-size:1.35rem; min-width:44px; padding:0; border-radius:6px; }
.matter-file-row-menu:hover { background:var(--file-wash); }
.matter-file-menu-items {
  position:absolute;
  z-index:5;
  top:100%;
  right:0;
  min-width:10rem;
  max-width:calc(100vw - 2rem);
  max-height:calc(100dvh - 7rem);
  overflow:auto;
  background:#fff;
  border:1px solid #a9b9c7;
  border-radius:7px;
  padding:5px;
  box-shadow:0 5px 20px #112d4420;
}
.matter-file-menu-items>.button { display:flex; align-items:center; justify-content:flex-start; background:transparent; box-shadow:none; border:0; width:100%; text-align:left; white-space:normal; }
.matter-file-menu-items>.button:hover { background:var(--file-wash); }
.matter-file-menu-items .drive-layout { flex-wrap:nowrap; }
.matter-file-details {
  position:sticky; top:12px;
  grid-column:3; grid-row:1;
  max-height:calc(100dvh - 24px);
  overflow:auto;
}
.matter-file-workspace:has(.matter-file-details) { grid-template-columns:minmax(8rem,11rem) minmax(0,1fr) minmax(14rem,18rem); }
.matter-files .matter-file-details .drive-detail { position:static; max-height:none; overflow:visible; }
.matter-file-empty { padding:28px 14px; text-align:center; background:#f5f8fb; border-radius:7px; color:var(--file-muted); }
.matter-file-empty p { margin:0; }
.matter-file-empty .button { margin-top:8px; }
.matter-file-list.tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr)); gap:10px; }
.matter-file-list.tiles .matter-file-row { border:1px solid var(--file-line); border-radius:7px; grid-template-columns:24px minmax(0,1fr) 44px; padding:5px 0; }
.matter-file-list.tiles .matter-file-category,.matter-file-list.tiles .matter-file-audience { display:none; }
.matter-file-list.tiles .matter-file-date { grid-column:2; grid-row:2; padding:0 4px 6px; }
.matter-file-list.tiles .matter-file-row-menu { grid-column:3; grid-row:1; }
.matter-file-dialog {
  box-sizing:border-box;
  border:1px solid #96abbd;
  border-radius:10px;
  background:#fff;
  color:#172c3d;
  max-height:calc(100dvh - 32px);
  width:min(34rem,calc(100% - 32px));
  padding:18px;
  overflow:auto;
}
.matter-file-dialog[data-file-dialog="actions"] { width:min(24rem,calc(100% - 24px)); }
.matter-file-dialog [data-file-actions-name] { overflow-wrap:anywhere; }
.matter-file-action-list { display:grid; gap:2px; margin-top:8px; }
.matter-file-action-list>.button { width:100%; min-height:44px; justify-content:flex-start; text-align:left; white-space:normal; }
.matter-file-action-list>.button:hover { background:var(--file-wash); }
.matter-file-dialog.wide { width:min(56rem,calc(100% - 32px)); }
.matter-file-dialog::backdrop { background:#132b3a75; }
.matter-file-dialog>header { border-bottom:1px solid var(--file-line); margin-bottom:12px; padding-bottom:6px; }
.matter-file-dialog>header h2 { margin:0; font-size:1.125rem; overflow-wrap:anywhere; }
.matter-file-dialog .file-dismiss { width:44px; font-size:1.3rem; }
.matter-file-dialog form { display:grid; gap:12px; }
.matter-file-dialog label { display:grid; gap:5px; }
.matter-file-dialog textarea { font-size:1rem; resize:vertical; max-height:55dvh; min-height:10rem; line-height:1.55; }
.matter-file-dialog .file-organize { margin:0; padding:0; border:0; }
.matter-file-dialog .file-organize header button { display:none; }
.matter-file-dialog .file-inline-error:empty { display:none; }
.matter-file-dialog .file-inline-error { color:#922c25; margin:0; }
.matter-file-folder-picker { max-height:65dvh; overflow:auto; }
.matter-file-form-actions { display:flex; gap:6px; flex-wrap:wrap; }
.matter-draft-history summary { cursor:pointer; padding:12px 0; }
.matter-draft-history ul { max-height:12rem; overflow:auto; padding-left:1.3rem; }
.matter-draft-history li { overflow-wrap:anywhere; margin-bottom:6px; }
.matter-file-dialog .file-muted { color:#485d6e; margin:0; }
@container file-workspace (max-width:62rem) {
  .matter-file-workspace:has(.matter-file-details) { grid-template-columns:minmax(9rem,11rem) minmax(0,1fr); }
  .matter-file-details { display:none; }

}
@container file-workspace (max-width:49rem) {
  .matter-file-workspace,.matter-file-workspace:has(.matter-file-details) { grid-template-columns:minmax(0,1fr); }
  .matter-file-tree { display:none; }
  .matter-files .matter-file-mobile-tree { display:inline-flex; }
}
@container file-workspace (max-width:36rem) {
  .matter-file-list-heading { display:none; }
  .matter-file-row { grid-template-columns:24px minmax(0,1fr) 44px; gap:3px; }
  .matter-file-date { grid-column:2; grid-row:2; padding:0 4px 9px 45px; }
  .matter-file-category,.matter-file-audience { display:none; }
  .matter-file-name small { display:block; }
  .matter-file-row-menu { grid-column:3; grid-row:1; }
  .matter-file-toolbar form { flex-basis:100%; order:-1; }
  .matter-file-heading { align-items:flex-start; }
  .matter-file-toolbar .button { padding-inline:8px; }
}
@media (max-width:600px) {
  .matter-file-dialog[data-file-dialog="actions"] { width:min(24rem,calc(100% - 24px)); }
.matter-file-dialog [data-file-actions-name] { overflow-wrap:anywhere; }
.matter-file-action-list { display:grid; gap:2px; margin-top:8px; }
.matter-file-action-list>.button { width:100%; min-height:44px; justify-content:flex-start; text-align:left; white-space:normal; }
.matter-file-action-list>.button:hover { background:var(--file-wash); }
.matter-file-dialog.wide { width:100%; max-width:100%; height:100dvh; max-height:100dvh; border:0; border-radius:0; }
  .matter-file-dialog :is(input,select,textarea) { font-size:1rem; }
}

.matter-file-category small { display:block; color:var(--file-muted); font-size:.75rem; }
[data-file-dialog="details"]>.drive-detail { border:0; box-shadow:none; background:white; position:static; max-height:none; overflow:visible; padding:0; }
[data-file-dialog="details"]>.drive-detail>header { display:none; }
.my-file-list { margin-top:10px; }
.my-file-line { display:grid; grid-template-columns:minmax(0,1fr) 44px; gap:8px; align-items:center; border-bottom:1px solid var(--file-line); }
.my-files .my-file-name { display:block; text-align:left; overflow-wrap:anywhere; white-space:normal; padding:10px 6px; }
.my-file-name small { display:block; font-weight:normal; color:var(--file-muted); }
.my-folder-list { list-style:none; padding:0; margin:12px 0; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr)); gap:8px; }
.my-folder-list .button { width:100%; text-align:left; white-space:normal; overflow-wrap:anywhere; }

.document-workspace{max-width:1400px;width:100%;box-sizing:border-box}.document-heading,.document-heading>div,.document-actions,.document-view,.document-path,.document-search,.document-detail>header{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.document-heading{justify-content:space-between;padding-bottom:20px;border-bottom:1px solid var(--line,#dde3e8)}.document-heading>div:first-child{display:block}.document-heading h1{margin:0}.document-heading p{margin:8px 0 0;color:#5c6b79}.document-view{margin:16px 0;padding:8px;background:#f1f5f8;border-radius:12px}.document-view [aria-current=page]{background:#fff;color:#153b57;box-shadow:0 1px 4px #18374c15}.document-path{margin:12px 0;overflow-wrap:anywhere}.document-search{margin:12px 0 20px}.document-search label{flex:1}.document-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,350px);gap:24px;align-items:start}.document-layout:has(>section:last-child){grid-template-columns:minmax(0,1fr)}.document-row,.document-folder{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e3e9ef;padding:10px 4px;min-width:0}.document-row>button{display:flex;align-items:center;gap:12px;text-align:start;flex:1;min-width:0;background:transparent;border:0;padding:8px;cursor:pointer}.document-row strong,.document-row small,.document-history small{display:block;overflow-wrap:anywhere}.document-row strong{font-size:15px}.document-row small{color:#5c6b79;margin-top:5px;font-size:12px}.document-type{font-size:10px;background:#eaf1f7;color:#294b69;border-radius:6px;padding:9px;flex:none}.document-row.is-selected{background:#eef5fa;border-radius:10px}.document-detail{border:1px solid #dde5ec;border-radius:14px;padding:18px;min-width:0}.document-detail h3{overflow-wrap:anywhere;flex:1;margin:0}.document-detail p{font-size:13px;color:#566a7b}.document-detail .document-actions{gap:6px;margin:12px 0}.document-upload{position:relative;overflow:hidden;cursor:pointer}.document-upload input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.document-inline{display:flex;gap:12px;flex-wrap:wrap;padding:16px;background:#f4f7fa;border-radius:12px;margin:12px 0}.document-inline label{flex:1;min-width:140px}.document-history{border-top:1px solid #dde5ec;margin-top:18px;padding-top:14px}.document-history ol{list-style:none;padding:0;max-height:420px;overflow:auto}.document-history li{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid #e3e9ef}.document-history li>div{flex:1;min-width:140px}.document-history small{font-size:12px;margin-top:5px;color:#5c6b79}.document-notice{padding:12px;background:#eef4f8;border-radius:8px;font-size:13px}.document-editor-page{width:100%;max-width:none}.document-editor-page>header{display:flex;justify-content:space-between;gap:12px}.document-editor-page iframe{width:100%;height:78vh;border:1px solid #dde5ec;border-radius:10px}.document-composer{margin:8px 0 12px}.document-pending{display:flex;gap:8px;flex-wrap:wrap}.document-pending>span{background:#edf4f9;padding:4px 8px;border-radius:8px;overflow-wrap:anywhere}.document-link-picker{background:#f5f8fa;border:1px solid #dce5ed;border-radius:12px;padding:16px;max-height:320px;overflow:auto}.document-link-picker>button{display:block;text-align:start;max-width:100%;overflow-wrap:anywhere}.document-message-links{padding:8px 12px;max-width:100%;overflow-wrap:anywhere}.document-message-links>div{background:#eaf2f8;border-radius:8px;padding:8px;margin:5px 0}.document-message-links small{display:block;color:#52677a;margin:3px 8px}.document-workspace button:focus-visible,.document-workspace a:focus-visible,.document-composer button:focus-visible{outline:3px solid #4c8ab1;outline-offset:2px}@media(max-width:760px){.document-layout{grid-template-columns:minmax(0,1fr)}.document-detail{grid-row:1}.document-heading{align-items:flex-start}.document-heading>.document-actions{width:100%}.document-row{padding:8px 0}.document-row>button{padding:6px 0;gap:8px}.document-row strong{font-size:14px}.document-actions .button,.document-view .button{min-height:40px}.document-history li{align-items:flex-start}.document-editor-page iframe{height:74vh}.document-inline{padding:12px}.document-path{gap:3px}}

/* Matter messaging shares the portal's colors and navigation. The transcript owns its scroll. */
#app:has(>.chat-active) {
  display:flex;
  flex-direction:column;
  height:var(--chat-visible-height,100dvh);
  min-height:0;
}
#app:has(>.chat-active) > :is(.mast,.feedback,.site-evaluation-label) {flex:none}
#app > .chat-active {flex:1;min-height:0;grid-template-rows:minmax(0,1fr);overflow:hidden}
#app > .gateway-client-shell.chat-active {display:flex;flex-direction:column}
.chat-active > :is(.desk-sidebar,.gateway-client-bar) {min-height:0;flex:none}
.chat-active > .desk-sidebar {overflow-y:auto}
.chat-active > .desk-content {
  display:flex;
  flex:1;
  flex-direction:column;
  min-height:0;
  overflow:hidden;
}
.chat-active > .desk-content > :not(.chat-workspace) {flex:none}
#app .chat-workspace {
  --chat-line:#dce7ee;
  --chat-subtle:#536a7f;
  --chat-ink:#1d3548;
  --chat-accent:#20597c;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  flex:1;
  width:calc(100% - 32px);
  min-height:0;
  max-width:1440px;
  margin:14px auto 16px;
  padding:0;
  gap:0;
  border:1px solid var(--chat-line);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  color:var(--chat-ink);
}
#app .chat-workspace.chat-with-list {grid-template-columns:280px minmax(0,1fr)}
.chat-sidebar {
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:0;
  border-inline-end:1px solid var(--chat-line);
  background:#f7fafc;
}
.chat-sidebar-header {padding:14px 12px 10px;border-bottom:1px solid var(--chat-line)}
.chat-list-title,.chat-list-case,.chat-row-details,.chat-picker-heading {display:flex;align-items:center;justify-content:space-between;gap:8px}
.chat-list-title h2,.chat-heading h2 {margin:0;color:var(--chat-ink);font-size:1.14rem;line-height:1.25;overflow-wrap:anywhere}
.chat-workspace .button {white-space:normal}
.chat-workspace .chat-new {min-height:40px;padding:6px 10px;font-size:.84rem}
.chat-list-case {margin:5px 0;color:var(--chat-subtle);font-size:.75rem;flex-wrap:wrap}
.chat-workspace .chat-list-case .button {font-size:.78rem;min-height:36px;padding:4px 2px;text-align:start}
.chat-kinds,.chat-filters {display:flex;flex-wrap:wrap;gap:6px;margin-block:5px}
.chat-workspace :is(.chat-kinds,.chat-filters) .button {
  min-height:36px;
  padding:4px 9px;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  color:var(--chat-subtle);
  font-size:.81rem;
}
.chat-workspace :is(.chat-kinds,.chat-filters) .button[aria-pressed=true] {background:#e5eff7;border-color:#d4e4f1;color:#194f78;font-weight:660}
.chat-list-scroll,.chat-history,.chat-new-body {min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.chat-list-scroll {flex:1;padding:6px}
.chat-workspace .chat-list-row {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:3px;
  width:100%;
  min-height:66px;
  padding:8px 10px;
  margin:0 0 3px;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  color:var(--chat-ink);
  text-align:start;
  box-shadow:none;
}
.chat-workspace .chat-list-row:hover {background:#edf4f9}
.chat-workspace .chat-list-row[aria-current=true] {background:#e3eff8;border-color:#d0e2ef}
.chat-row-subject {font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-list-row.has-unread .chat-row-subject {font-weight:720}
.chat-row-details small,.chat-created {color:var(--chat-subtle);font-size:.72rem;line-height:1.4;overflow-wrap:anywhere}
.chat-unread {min-width:20px;padding:1px 5px;border-radius:10px;background:var(--chat-accent);color:#fff;text-align:center;font-size:.72rem}
.chat-sr {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.chat-workspace .chat-more {margin:6px 4px}
.chat-pane {min-width:0;min-height:0;display:flex;flex-direction:column}
.chat-placeholder {align-items:center;justify-content:center;padding:20px;background:#fbfcfd;color:var(--chat-subtle);text-align:center}
.chat-heading {min-height:65px;padding:9px clamp(10px,2vw,22px);display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--chat-line);flex:none}
.chat-heading-text {min-width:0}
.chat-heading p {margin:4px 0 0;color:var(--chat-subtle);font-size:.76rem;overflow-wrap:anywhere;line-height:1.4}
.chat-workspace .chat-back {
  width:44px;
  min-width:44px;
  height:44px;
  padding:0;
  border-color:transparent;
  border-radius:8px;
  font-size:1.65rem;
  line-height:1;
  color:var(--chat-accent);
  background:#f0f5fa;
}
.chat-history {flex:1;padding:10px clamp(12px,3vw,34px);background:#fbfcfd}
.chat-history .chat-log,.chat-history > :is(.context-reference,.chat-history-earlier) {width:100%;max-width:960px;margin-inline:auto}
.chat-history .chat-log {margin-block:0;gap:15px}
.chat-history-earlier {text-align:center}
.chat-history .chat-content time {font-size:12px}
.chat-empty {margin:12px;color:var(--chat-subtle);font-size:.9rem}
.chat-new-body {flex:1;padding:14px clamp(14px,3vw,34px)}
.chat-new-body form {max-width:720px;margin:0 auto}
.chat-composer-shell {flex:none;width:100%;padding:9px clamp(10px,2vw,20px);border-top:1px solid var(--chat-line);background:#fff}
.chat-workspace .chat-composer {display:grid;gap:6px;max-width:960px;margin:0 auto;padding:0}
.chat-composer-line {display:flex;align-items:flex-end;gap:7px;min-width:0}
.chat-workspace .chat-composer textarea {
  flex:1;
  width:auto;
  min-width:0;
  min-height:44px;
  max-height:124px;
  margin:0;
  padding:10px 12px;
  resize:none;
  box-sizing:border-box;
  border:1px solid #b8cbd9;
  border-radius:13px;
  font:inherit;
  font-size:16px;
  line-height:22px;
  overflow:auto;
}
.chat-workspace .chat-composer :is(.chat-tool,.chat-send) {
  display:inline-flex;
  flex:none;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:44px;
  width:auto;
  min-height:44px;
  margin:0;
  padding:7px 11px;
  border-radius:10px;
}
.chat-workspace .chat-tool {color:var(--chat-accent);background:#f0f5fa;border-color:#dce7ee;font-size:1.2rem}
.chat-workspace .chat-send {background:#20597c;border-color:#20597c;color:white}
.chat-workspace .chat-send span:last-child {font-size:1.1rem;line-height:1}
.chat-composer .check {min-height:24px;margin:0;color:var(--chat-subtle);font-size:.78rem}
.chat-composer > [data-draft-status]:empty {display:none}
.chat-composer > .reply-context {max-height:84px;overflow:auto;margin:0}
.chat-composer .reply-context blockquote {margin:0;overflow-wrap:anywhere}
.chat-workspace .document-pending {max-height:78px;overflow:auto}
.chat-workspace .document-pending > span {min-width:0;max-width:100%;font-size:.8rem}
.chat-workspace .document-link-picker {max-height:min(260px,32dvh);margin:0 auto 8px;max-width:960px;padding:8px 12px}
.chat-picker-heading h3 {margin:0;font-size:.95rem}
.chat-workspace .document-link-picker form {display:flex;align-items:center;gap:8px;margin:0 0 5px}
.chat-workspace .document-link-picker input {flex:1;min-width:0;margin:0}
.chat-workspace :is(button,textarea,[tabindex]):focus-visible,.chat-workspace .document-upload:focus-within {outline:2px solid #286c9a;outline-offset:2px}

@media(max-width:900px) {
  #app .chat-workspace.chat-with-list {grid-template-columns:minmax(0,1fr)}
  .chat-list .chat-placeholder,.chat-open .chat-sidebar,.chat-compose .chat-sidebar {display:none}
  .chat-sidebar {border-inline-end:0}
  .chat-sidebar-header {padding:10px 12px 7px}
  .chat-workspace :is(.chat-kinds,.chat-filters) .button {min-height:44px}
  .chat-workspace .chat-list-case .button {min-height:44px}
  .chat-workspace .chat-list-row {min-height:64px}
  .chat-workspace .chat-send span:first-child {display:none}
}
@media(max-width:740px) {
  #app .chat-workspace {width:100%;margin:0;border:0;border-radius:0}
  #app > .docket-shell.chat-active {display:flex;flex-direction:column}
  #app > .docket-shell.chat-active > .desk-content {flex:1}
  #app:has(.chat-active :is(.chat-open,.chat-compose)) > :is(.mast,.site-evaluation-label),
  .chat-active:has(:is(.chat-open,.chat-compose)) > :is(.desk-sidebar,.gateway-client-bar),
  .chat-active:has(:is(.chat-open,.chat-compose)) > .desk-content > .mast {display:none}
  .chat-heading {min-height:58px}
  .chat-composer-shell {padding-bottom:max(8px,env(safe-area-inset-bottom))}
  .chat-history {padding-inline:12px}
  .chat-history .chat-log article.chat-message {max-width:94%}
  /* Reserve a real column for More on matter pages that lead into chat. */
  #app .matter-banner .firm-case-navigation:has(>.matter-more) > .firm-navigation {width:calc(100% - 66px);margin-inline-end:66px}
}

.chat-sidebar-header .button.chat-matter-back {display:flex;align-items:center;width:fit-content;min-height:44px;margin-bottom:8px;padding:6px 12px;border:1px solid #98b5ce;border-radius:7px;background:#fff;color:#194f78;font-weight:600}
.chat-sidebar-header .button.chat-matter-back:hover {background:#edf4fa}

#app > .chat-window {
  display:flex;
  flex-direction:column;
}
#app .chat-window .chat-workspace {
  width:100%;
  max-width:none;
  margin:0;
  border:0;
  border-radius:0;
}
.chat-window-bar {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:4px 12px;
  padding:8px 12px;
  border-bottom:1px solid #dce7ee;
  color:#1d3548;
}
.chat-window-bar strong {overflow-wrap:anywhere}
.chat-window-bar .button {min-height:40px}

.chat-window .chat-window-identity{display:grid;min-width:0;gap:3px;overflow-wrap:anywhere}
.chat-window .chat-window-identity strong{white-space:normal}
.chat-window .chat-window-identity span{font-size:.875rem;color:#344f65}

.team-chat-filters{display:flex;flex-wrap:wrap;gap:6px;padding:10px;border-bottom:1px solid #d5dfe8}.team-chat-filters .button{font-size:14px;min-height:40px;white-space:normal}.team-chat-filters [aria-pressed=true]{background:#e5eff8;color:#173e60}.team-mention-picker{margin:0 0 10px}.team-mention-picker summary{cursor:pointer;font-weight:600;padding:10px}.team-mention-picker>div{max-height:180px;overflow:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;padding:10px}.team-attention-kind{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:14px;margin-bottom:10px}.team-attention-kind select{max-width:100%;min-height:40px}.team-attention-badges,.team-message-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.team-attention-badge{font-size:14px;background:#eef3f7;padding:4px 8px;border-radius:4px}.team-message-actions .button{font-size:14px;min-height:40px;padding:6px 8px;white-space:normal}.team-chat-context{font-size:14px;padding:8px 12px;margin:0}.team-mention-picker .check{overflow-wrap:anywhere}

.client-chat-category{border-bottom:1px solid #d6e0e8}.client-chat-category>summary{padding:14px 10px;min-height:44px;cursor:pointer;font-weight:650;font-size:14px;overflow-wrap:anywhere}.client-chat-category>summary span{font-weight:400}.client-chat-category .chat-list-row{margin-inline:6px;width:calc(100% - 12px)}

/* Keep attachment controls from squeezing the mobile message field. */
@media(max-width:600px){
  .chat-composer-line:has(>[data-action="doc-chat-folder"]){display:grid;grid-template-columns:46px minmax(0,1fr) 44px 44px;align-items:end}
  .chat-composer-line:has(>[data-action="doc-chat-folder"])>.document-upload{grid-column:1;grid-row:1}
  .chat-composer-line:has(>[data-action="doc-chat-folder"])>[data-action="doc-chat-folder"]{grid-column:2 / 4;grid-row:1;justify-self:start;max-width:100%;white-space:normal;overflow-wrap:anywhere}
  .chat-composer-line:has(>[data-action="doc-chat-folder"])>[data-action="doc-chat-picker"]{grid-column:4;grid-row:1}
  .chat-workspace .chat-composer-line:has(>[data-action="doc-chat-folder"])>textarea{grid-column:1 / 4;grid-row:2;width:100%;min-width:0}
  .chat-composer-line:has(>[data-action="doc-chat-folder"])>.chat-send{grid-column:4;grid-row:2}
}

@media (pointer: coarse) {
  [data-staff-message] .review-note { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
}

.firm-live-shell .matter-directory {
  --matter-columns: minmax(0, 1.65fr) minmax(0, 1fr) minmax(0, .95fr) minmax(0, 1.3fr) 5.5rem;
}
.firm-live-shell .matter-directory .matter-table-head,
.firm-live-shell .matter-directory .matter-table-row {
  grid-template-columns: var(--matter-columns);
  gap: 12px;
  padding-inline: 16px;
  border-inline: 0;
}
.matter-directory .matter-table-head > :last-child {
  text-align: end;
}
.firm-live-shell .matter-directory .matter-table-row {
  grid-template-areas: "case-name case-status case-date followup open-case";
}
.matter-table-row > *,
.matter-table-row .desk-case-name > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.matter-table-row .desk-case-name { grid-area: case-name; }
.matter-table-row .desk-docket-stage { grid-area: case-status; }
.matter-table-row .desk-docket-date { grid-area: case-date; }
.matter-table-row .matter-followup { grid-area: followup; }
.matter-table-row .desk-case-open { grid-area: open-case; justify-self: end; }
.matter-table-row .desk-docket-stage .tag { white-space: normal; }

.firm-live-shell .matter-directory .matter-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
}
.matter-directory .matter-type-filter { display: contents; }
.firm-live-shell .matter-directory .matter-filters label {
  flex: 1 1 9.5rem;
  min-width: 0;
  width: auto;
  margin: 0;
}
.firm-live-shell .matter-directory .matter-filters > label:first-child { flex-basis: 12rem; }
.firm-live-shell .matter-directory .matter-filters :is(input, select, .button) {
  min-height: 44px;
}
.matter-directory .matter-filters select { min-width: 0; }

.expense-list .team-table :is(th, td):nth-child(2) {
  width: 7rem;
  text-align: end;
  font-variant-numeric: tabular-nums;
}
.expense-list .team-table :is(th, td):nth-child(3) {
  width: 6.75rem;
  white-space: normal;
  overflow-wrap: anywhere;
}
.expense-list .team-table td:first-child { overflow-wrap: anywhere; }

.leave-request-list { container-type: inline-size; }
.leave-request-list .leave-request-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .7fr) minmax(0, 1fr);
  grid-template-areas: "name dates status actions";
  align-items: start;
  gap: 12px;
}
.leave-request-list .leave-request-row > * {
  min-width: 0;
  overflow-wrap: anywhere;
}
.leave-request-list .leave-request-row > :first-child { grid-area: name; }
.leave-request-list .leave-request-row > :nth-child(2) { grid-area: dates; }
.leave-request-list .leave-request-row > .tag {
  grid-area: status;
  justify-self: start;
  white-space: normal;
}
.leave-request-list .leave-request-row > .leave-row-actions {
  grid-area: actions;
  justify-content: flex-start;
}
.leave-request-list .leave-row-actions .button {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.events.client-directory-list > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 4.5rem) minmax(0, 7rem);
  align-items: start;
  gap: 10px;
}
.client-directory-list > li > *,
.personal-task-list .desk-task > div,
.message-case-option > :first-child,
.document-folder > .button:first-child > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.client-directory-list > li > .button { justify-self: end; white-space: normal; }
.firm-live-shell .personal-task-list .desk-task {
  grid-template-columns: 30px minmax(0, 1fr) minmax(0, 8rem);
  align-items: start;
}
.personal-task-list .desk-task .task-action { justify-self: end; text-align: end; }
.message-case-options .message-case-option.button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1rem;
  align-items: center;
  gap: 10px;
}
.message-case-option > :last-child { justify-self: end; }

.document-workspace .document-folder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}
.document-workspace .document-folder > .button:first-child {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr) 1rem;
  align-items: center;
  justify-content: stretch;
  gap: 8px;
  min-width: 0;
  text-align: start;
  white-space: normal;
}
.document-folder > .button:first-child > :last-child { justify-self: end; }
.document-folder svg { width: 18px; height: 18px; }
.document-path .button {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

@container (max-width: 31rem) {
  .leave-request-list .leave-request-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 6.5rem);
    grid-template-areas: "name status" "dates actions";
  }
}
@media (max-width: 740px) {
  .firm-live-shell .matter-directory .matter-table-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 7rem);
    grid-template-areas: "case-name open-case" "case-status case-date" "followup followup";
    padding-inline: 12px;
  }
  .matter-table-row .desk-docket-date { justify-self: end; text-align: end; }
  .matter-table-row .desk-docket-date:empty,
  .matter-table-row .matter-followup:empty { display: none; }
}
@media (max-width: 480px) {
  .expense-list .team-table :is(th, td) { padding-inline: 7px; }
  .expense-list .team-table :is(th, td):nth-child(2) {
    width: 6.75rem;
    font-size: .75rem;
  }
  .expense-list .team-table :is(th, td):nth-child(3) { width: 4.5rem; font-size: .75rem; }
  .firm-live-shell .matter-directory .matter-filters > label:first-child { flex-basis: 100%; }
  .firm-live-shell .matter-directory .matter-filters label { flex-basis: 7.5rem; }
  .events.client-directory-list > li {
    grid-template-columns: minmax(0, 1fr) minmax(0, 6.5rem);
  }
  .client-directory-list > li > .button { grid-column: 2; grid-row: 1 / span 2; }
  .client-directory-list > li > span { grid-column: 1; }
  .firm-live-shell .personal-task-list .desk-task {
    grid-template-columns: 24px minmax(0, 1fr) minmax(0, 5.5rem);
  }
}
.team-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}
.team-fields > *, .leave-date-fields > * { min-width: 0; }
:is(.team-fields, .leave-date-fields) > label {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
:is(.team-fields, .leave-date-fields) > label:not(.check) {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  justify-content: space-between;
  gap: 7px;
}
:is(.team-fields, .leave-date-fields) > label > :is(input, select, textarea) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}
.team-fields > label.check { align-self: end; min-height: 44px; }
.team-fields > :is(input:not([type=checkbox]), select),
:is(.team-fields, .leave-date-fields, .employee-quota-controls) > label > :is(input:not([type=checkbox]), select) {
  box-sizing: border-box;
  min-width: 0;
  min-height: 44px;
  height: 44px;
  max-width: 100%;
}
:is(.team-editor, .expense-editor, .leave-editor, .leave-decision) label.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
:is(.team-editor, .expense-editor, .leave-editor, .leave-decision) label.check > input[type=checkbox] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  margin: 2px 0 0;
}
.employee-policy-editor .employee-weekdays label.check { display: block; }
.employee-policy-editor .employee-weekdays input[type=checkbox] { margin: 0; }
.employee-quota-list { display: grid; gap: 18px; min-width: 0; }
.employee-quota-field {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--bc-divider);
  border-radius: 8px;
}
.employee-quota-field legend { max-width: 100%; padding: 0 5px; overflow-wrap: anywhere; }
.employee-quota-help { margin: 0 0 12px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.employee-quota-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(5rem, .55fr);
  align-items: end;
  gap: 12px;
}
.employee-quota-controls > label { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.employee-quota-controls > label.check { min-height: 44px; align-items: center; }
.employee-quota-controls input[type=number] { box-sizing: border-box; min-width: 0; max-width: 100%; }
.leave-date-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
:is(.leave-editor, .leave-policy-drawer) :is(h3, h4, p, small, .leave-outcome) { overflow-wrap: anywhere; }
:is(.leave-editor, .leave-policy-drawer) .line { align-items: flex-start; gap: 12px; }
:is(.leave-editor, .leave-policy-drawer) .line > h3 { min-width: 0; flex: 1; }
:is(.leave-editor, .leave-policy-drawer) .line > .button { flex: 0 0 auto; }
:is(.team-editor, .expense-editor, .leave-editor) .slot-actions { flex-wrap: wrap; }
:is(.team-editor, .expense-editor, .leave-editor) .button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .team-fields { grid-template-columns: minmax(0, 1fr); }
  .employee-policy-editor .team-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .leave-date-fields, .employee-policy-editor .team-fields, .employee-quota-controls { grid-template-columns: minmax(0, 1fr); }
}

.home-manager-list,.home-message-list{list-style:none;margin:0;padding:0;min-width:0}
.staff-manager-summary .home-manager-list>li,.workbench-home .home-message-list>li{display:grid;align-items:center;gap:4px 12px;padding:3px 0;border-bottom:1px solid #dce5ed;box-sizing:border-box}
.staff-manager-summary .home-manager-list>li{grid-template-columns:minmax(0,1fr) minmax(0,2fr) auto;min-height:44px}
.workbench-home .home-message-list{max-height:240px;overflow:auto}
.workbench-home .home-message-list>li{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) minmax(0,.95fr) auto;min-height:44px}
.home-message-list>li>*,.home-manager-list>li>*{min-width:0;overflow-wrap:anywhere}
.workbench-home .home-message-list .button{min-height:36px;padding:4px 8px}
.workbench-home .ref-widget:has(.home-message-list) .ref-widget-body{height:auto;max-height:none;overflow:visible}
@media(max-width:760px){.workbench-home .home-message-list>li,.staff-manager-summary .home-manager-list>li{grid-template-columns:minmax(0,1fr) auto}.home-message-list>li>small,.home-manager-list>li>span{grid-column:1}.home-message-list>li>.button,.home-manager-list>li>.button{grid-column:2;grid-row:1/4}.workbench-home .home-message-list{max-height:24rem}}

.workspace-layout-editor{max-width:48rem;display:grid;gap:16px}
.workspace-layout-editor ol{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.workspace-layout-editor li{display:flex;align-items:center;gap:12px;border:1px solid #d8e2eb;border-radius:8px;padding:8px 12px}
.workspace-layout-editor li label{margin-inline-start:auto}
.workspace-layout-editor .layout-grip{cursor:grab;touch-action:none;min-width:44px;min-height:44px;font-size:22px}
.workspace-layout-editor .layout-grip:active{cursor:grabbing}
.workspace-layout-editor footer{display:flex;flex-wrap:wrap;gap:8px}

/* Staff navigation, case headers and page bodies share one centered content edge. */
html { scrollbar-gutter: stable; }
.docket-shell .desk-content {
  --workspace-gutter: clamp(16px, 2vw, 28px);
}
.docket-shell .desk-content > .workspace-section-context,
.docket-shell .desk-content > main.layout:not(.narrow),
.docket-shell .desk-content .matter-banner,
.docket-shell .desk-content:has(.matter-banner) .matter-mast .mast-inner {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 1500px !important;
  margin-inline: auto !important;
  padding-inline: var(--workspace-gutter) !important;
}
.docket-shell .desk-content:has(.matter-banner) > .matter-work-panel > .panel {
  margin-inline: 0;
  padding-inline: 0;
}

.docket-shell .desk-content > main.layout > .back-button:first-child {
  padding-inline-start: 0;
}
/* Time entries: fixed date column and a shared Details / Edit action cell. */
.billing-filter-disclosure>h4{font-size:14px;margin:0 0 10px}.billing-filter-disclosure .billing-time-filters{display:flex;flex-wrap:wrap;gap:12px;padding:0;background:transparent}.billing-time-table .billing-date-cell{width:110px;white-space:nowrap}.billing-time-table .billing-work-cell{width:38%;overflow-wrap:anywhere}.billing-time-table .billing-select{width:32px}.billing-time-table input[type=checkbox]{width:18px;height:18px}.billing-row-actions{display:flex;align-items:flex-start;gap:7px;min-width:135px}.billing-row-actions .button,.billing-row-actions summary{min-height:36px;padding:8px 0!important;font-size:13px;line-height:20px;white-space:nowrap}.billing-row-actions>span{padding-top:8px;line-height:20px;color:#8a999f}.billing-row-details{margin:0!important}.billing-row-details summary{cursor:pointer;list-style:none;color:#24566e}.billing-row-details summary::-webkit-details-marker{display:none}.billing-row-details small{display:block;line-height:1.6;white-space:normal}.billing-batch-review{padding:14px 16px;margin:16px 0;background:#f4f8fa;border:1px solid #dce5eb;border-radius:8px;display:grid;grid-template-columns:1fr auto;gap:10px 16px;align-items:center}.billing-batch-review p{margin:0;font-size:14px}.billing-batch-review .slot-actions{margin:0}.billing-batch-review label{grid-column:1/-1;font-size:13px}.billing-batch-review textarea{width:100%;box-sizing:border-box;min-height:52px}.billing-time-table td.billing-edit-cell{text-align:left}
@media(max-width:760px){.billing-workspace .billing-time-table .billing-date-cell{width:auto;grid-column:1}.billing-workspace .billing-time-table .billing-work-cell{width:auto;grid-column:1/-1}.billing-workspace .billing-time-table .billing-edit-cell{grid-column:1/-1;text-align:left}.billing-batch-review{display:flex;flex-direction:column;align-items:stretch}.billing-filter-disclosure .billing-time-filters{display:grid;grid-template-columns:1fr 1fr}}
.profile-birth {display:flex;align-items:end;gap:.5rem}
.profile-birth>label:first-child {flex:1;min-width:0}
.profile-birth .birth-picker {position:relative;display:grid;place-items:center;width:44px;height:44px;border:1px solid #b9c7cc;border-radius:6px}
.birth-picker input {position:absolute;inset:0;width:100%;height:100%;opacity:0}
.birth-picker:focus-within {outline:2px solid #195b68}
.client-email-row {display:flex;gap:.5rem;align-items:center}
.client-email-row input {min-width:0;flex:1}
.client-email-row button {min-width:44px;min-height:44px}

@media (max-width: 700px) {
  form.resource-search[data-resource-form="search"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .6rem;
    align-items: end;
  }
  form.resource-search[data-resource-form="search"] > label { min-width: 0; }
  form.resource-search[data-resource-form="search"] > .resource-filters { grid-column: 1 / -1; width: 100%; }
  .resource-filters label:has(input[type="checkbox"]) { display: flex; align-items: center; gap: .5rem; }
  .resource-filters input[type="checkbox"] { width: 1.2rem; height: 1.2rem; min-height: 0; margin: 0; }
  nav.resource-tabs { display: flex; gap: .25rem; overflow-x: auto; }
  nav.resource-tabs button { flex: 0 0 auto; }
  .resource-selection[hidden] { display: none; }
}

.hg-toolbar{display:flex;gap:12px;margin:16px 0}.hg-toolbar button{padding:10px 16px;border:1px solid #9aafb9;border-radius:6px;background:white;color:#163c4c;cursor:pointer}.hg-shell{display:flex;gap:20px;align-items:flex-start}.hg-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px;flex:1;min-width:0;padding:16px;border:1px solid #cbdce3;border-radius:12px;background:#f4f8fa;align-items:start}.hg-card{min-width:0;border:1px solid #bbced7;border-radius:10px;background:white;overflow:hidden}.hg-placeholder{position:relative;display:flex;align-items:center;justify-content:center;height:100%;background:linear-gradient(135deg,#f4fafb,white)}.hg-placeholder h2{font-size:18px;padding:24px;text-align:center}.hg-grip,.hg-resize{position:absolute;border:0;background:transparent;color:#087f82;font-size:26px;padding:12px;touch-action:none}.hg-grip{top:0;left:0;cursor:grab}.hg-resize{bottom:0;right:0;cursor:nwse-resize}.hg-options{width:210px;padding:16px;border:1px solid #cbdce3;border-radius:10px}.hg-options label{display:flex;gap:10px;align-items:center;margin:18px 0}.hg-content{height:100%;overflow:auto;padding:16px}.hg-content .ref-widget{display:block!important;max-height:none!important}.hg-content .ref-widget-body{max-height:none!important;min-height:0!important;overflow:visible!important}@media(max-width:700px){.hg-shell{flex-direction:column}.hg-grid{grid-template-columns:1fr;width:100%}.hg-options{width:100%}.hg-card{grid-column:1!important}.hg-toolbar{flex-wrap:wrap}}

.hg-card{grid-column:span 6;height:320px}
.hg-card[data-hg-width="3"]{grid-column:span 3}.hg-card[data-hg-width="4"]{grid-column:span 4}.hg-card[data-hg-width="5"]{grid-column:span 5}.hg-card[data-hg-width="6"]{grid-column:span 6}.hg-card[data-hg-width="7"]{grid-column:span 7}.hg-card[data-hg-width="8"]{grid-column:span 8}.hg-card[data-hg-width="9"]{grid-column:span 9}.hg-card[data-hg-width="10"]{grid-column:span 10}.hg-card[data-hg-width="11"]{grid-column:span 11}.hg-card[data-hg-width="12"]{grid-column:span 12}.hg-card[data-hg-height="180"]{height:180px}.hg-card[data-hg-height="200"]{height:200px}.hg-card[data-hg-height="220"]{height:220px}.hg-card[data-hg-height="240"]{height:240px}.hg-card[data-hg-height="260"]{height:260px}.hg-card[data-hg-height="280"]{height:280px}.hg-card[data-hg-height="300"]{height:300px}.hg-card[data-hg-height="320"]{height:320px}.hg-card[data-hg-height="340"]{height:340px}.hg-card[data-hg-height="360"]{height:360px}.hg-card[data-hg-height="380"]{height:380px}.hg-card[data-hg-height="400"]{height:400px}.hg-card[data-hg-height="420"]{height:420px}.hg-card[data-hg-height="440"]{height:440px}.hg-card[data-hg-height="460"]{height:460px}.hg-card[data-hg-height="480"]{height:480px}.hg-card[data-hg-height="500"]{height:500px}.hg-card[data-hg-height="520"]{height:520px}.hg-card[data-hg-height="540"]{height:540px}.hg-card[data-hg-height="560"]{height:560px}.hg-card[data-hg-height="580"]{height:580px}.hg-card[data-hg-height="600"]{height:600px}.hg-card[data-hg-height="620"]{height:620px}.hg-card[data-hg-height="640"]{height:640px}.hg-card[data-hg-height="660"]{height:660px}.hg-card[data-hg-height="680"]{height:680px}.hg-card[data-hg-height="700"]{height:700px}.hg-card[data-hg-height="720"]{height:720px}
@media(max-width:700px){.hg-grid>.hg-card{grid-column:1!important}}
/* A single card surface; only the content body scrolls. */
.ref-dashboard .docket-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.hg-toolbar{margin:0;flex-wrap:wrap}.hg-toolbar button{font-size:13px;min-height:40px}.hg-toolbar [data-hg=save]{background:#195b68;color:#fff;border-color:#195b68}.hg-shell{display:block}.hg-grid{padding:0;border:0;background:transparent;gap:18px}.hg-card{border:1px solid #dce4e8;border-radius:9px;box-shadow:0 1px 3px #163c4c06}.hg-content{padding:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.hg-content>section,.docket-shell .hg-content>.ref-widget{margin:0!important;padding:18px!important;border:0!important;border-radius:0!important;box-shadow:none!important;min-height:0!important;height:auto!important;background:#fff}.hg-content header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px!important;padding:0 0 12px!important;border-bottom:1px solid #e8edef}.hg-content h2{font-size:16px!important;margin:0!important;line-height:1.4}.hg-content .ref-empty{min-height:0!important;padding:20px 0!important}.hg-content .ref-widget-body{padding:0!important}.hg-content .ref-widget footer{padding-top:12px}.hg-content .home-manager-list{padding:0;margin:0;list-style:none}.hg-content .home-manager-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;padding:12px 0;border-bottom:1px solid #e8edef}.hg-content .home-manager-list li span{grid-column:1;font-size:12px;color:#697c86}.hg-content .home-manager-list li .button{grid-column:2;grid-row:1/3}.hg-content .home-manager-list strong{overflow-wrap:anywhere;font-size:14px}.hg-content .workbench-list{margin:0}.hg-help{font-size:13px;color:#647987;margin:0 0 16px}.hg-shell.is-editing{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:20px}.is-editing .hg-grid{padding:16px;background:#f5f8fa;border:1px dashed #bcced5;gap:12px}.hg-placeholder{background:#fff}.hg-grip{inset:0 0 36px;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;font-size:22px;cursor:grab}.hg-grip span{font-size:16px;font-weight:600;overflow-wrap:anywhere}.hg-grip:active{cursor:grabbing}.hg-resize{font-size:22px;padding:8px}.hg-options{width:auto;background:white}.hg-options h2{font-size:15px}.hg-options label{font-size:13px;line-height:1.5}.hg-options input{width:17px;height:17px;flex-shrink:0}.hg-content .ref-table{min-width:440px}.hg-content .ref-table th,.hg-content .ref-table td{padding:10px 8px;font-size:12px}
.docket-shell .matter-crumb .billing-case-actions{margin-left:auto;gap:8px}.docket-shell .matter-crumb .billing-case-timer{padding:0;margin:0;border:0;background:transparent;display:flex;flex-direction:row;align-items:center;gap:8px}.docket-shell .matter-crumb .billing-case-timer .button{min-height:40px;padding:9px 15px;font-size:14px;font-weight:600;background:#195b68;color:white;border-radius:6px}.docket-shell .matter-crumb .billing-case-actions>.button{background:white;color:#195b68;border:1px solid #cbd8dd;min-height:40px}.docket-shell .matter-crumb{flex-wrap:wrap}
@media(max-width:1000px){.hg-card{grid-column:span 12!important}.hg-shell.is-editing{grid-template-columns:minmax(0,1fr) 185px}.is-editing .hg-card{grid-column:span 6!important}}
@media(max-width:700px){.ref-dashboard .docket-heading{align-items:flex-start}.hg-shell.is-editing{display:flex;flex-direction:column-reverse}.is-editing .hg-options{width:100%;box-sizing:border-box}.hg-options label{display:inline-flex;margin:8px 16px 8px 0}.hg-grid{width:100%}.is-editing .hg-grid{box-sizing:border-box}.is-editing .hg-card{grid-column:1!important}.docket-shell .matter-crumb .billing-case-actions{margin-left:0;flex-basis:100%;justify-content:flex-start;margin-top:8px}}
.ref-dashboard .home-case-filter{margin:0 0 18px!important}.hg-content .home-message-list{list-style:none;margin:0;padding:0;border:0;border-radius:0}.hg-content .home-message-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:12px 0;border-bottom:1px solid #e8edef}.hg-content .home-message-list strong{grid-column:1;font-size:14px;overflow-wrap:anywhere}.hg-content .home-message-list small{grid-column:1;display:block;color:#687d86;font-size:12px;line-height:1.5}.hg-content .home-message-list .button{grid-column:2;grid-row:1/4;align-self:center}.hg-content .ref-compact-list{border:0;border-radius:0}.hg-content .desk-queue{border:0;border-radius:0}

@media (max-width:700px) {
  .hg-shell:not(.is-editing) .hg-card {height:auto;max-height:min(72vh,36rem)}
  .hg-shell:not(.is-editing) .hg-content {height:auto;max-height:inherit;overflow:auto}
  .hg-shell:not(.is-editing) .ref-table {min-width:0;width:100%;table-layout:fixed}
  .hg-content .ref-table td,.hg-content .ref-table th {overflow-wrap:anywhere}
}
@media (max-width:700px) {
  .docket-identity .docket-create {display:none}
  .inbox-toolbar .inbox-unread-switch {margin-inline-start:0}
}
@media (max-width:700px) {
  .docket-identity>.mast-tools {display:flex;align-items:center;margin-inline-start:auto;gap:4px}
  .docket-identity .portal-account-menu {position:relative}
  .docket-identity .portal-account-options {position:absolute;inset-inline-end:0;z-index:30}
}

/* Explicit cell coordinates, never DOM-order swapping. */
.hg-grid,.is-editing .hg-grid{grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(10,72px);gap:12px;padding:0;align-items:stretch}.hg-grid>.hg-card{height:auto!important;min-height:0}.is-editing .hg-grid{background:repeating-linear-gradient(0deg,#e1e9ee 0 1px,transparent 1px 84px),repeating-linear-gradient(90deg,#e1e9ee 0 1px,transparent 1px 12.5%)}.hg-invalid{outline:3px solid #ae3030}.hg-options{max-height:70vh;overflow:auto}
.hg-grid>.hg-card[data-hg-y="1"]{grid-row-start:1!important}.hg-grid>.hg-card[data-hg-rows="1"]{grid-row-end:span 1!important}
.hg-grid>.hg-card[data-hg-y="2"]{grid-row-start:2!important}.hg-grid>.hg-card[data-hg-rows="2"]{grid-row-end:span 2!important}
.hg-grid>.hg-card[data-hg-y="3"]{grid-row-start:3!important}.hg-grid>.hg-card[data-hg-rows="3"]{grid-row-end:span 3!important}
.hg-grid>.hg-card[data-hg-y="4"]{grid-row-start:4!important}.hg-grid>.hg-card[data-hg-rows="4"]{grid-row-end:span 4!important}
.hg-grid>.hg-card[data-hg-y="5"]{grid-row-start:5!important}.hg-grid>.hg-card[data-hg-rows="5"]{grid-row-end:span 5!important}
.hg-grid>.hg-card[data-hg-y="6"]{grid-row-start:6!important}.hg-grid>.hg-card[data-hg-rows="6"]{grid-row-end:span 6!important}
.hg-grid>.hg-card[data-hg-y="7"]{grid-row-start:7!important}.hg-grid>.hg-card[data-hg-rows="7"]{grid-row-end:span 7!important}
.hg-grid>.hg-card[data-hg-y="8"]{grid-row-start:8!important}.hg-grid>.hg-card[data-hg-rows="8"]{grid-row-end:span 8!important}
.hg-grid>.hg-card[data-hg-y="9"]{grid-row-start:9!important}.hg-grid>.hg-card[data-hg-rows="9"]{grid-row-end:span 9!important}
.hg-grid>.hg-card[data-hg-y="10"]{grid-row-start:10!important}.hg-grid>.hg-card[data-hg-rows="10"]{grid-row-end:span 10!important}
.hg-grid>.hg-card[data-hg-x="1"]{grid-column-start:1!important}.hg-grid>.hg-card[data-hg-cols="1"]{grid-column-end:span 1!important}
.hg-grid>.hg-card[data-hg-x="2"]{grid-column-start:2!important}.hg-grid>.hg-card[data-hg-cols="2"]{grid-column-end:span 2!important}
.hg-grid>.hg-card[data-hg-x="3"]{grid-column-start:3!important}.hg-grid>.hg-card[data-hg-cols="3"]{grid-column-end:span 3!important}
.hg-grid>.hg-card[data-hg-x="4"]{grid-column-start:4!important}.hg-grid>.hg-card[data-hg-cols="4"]{grid-column-end:span 4!important}
.hg-grid>.hg-card[data-hg-x="5"]{grid-column-start:5!important}.hg-grid>.hg-card[data-hg-cols="5"]{grid-column-end:span 5!important}
.hg-grid>.hg-card[data-hg-x="6"]{grid-column-start:6!important}.hg-grid>.hg-card[data-hg-cols="6"]{grid-column-end:span 6!important}
.hg-grid>.hg-card[data-hg-x="7"]{grid-column-start:7!important}.hg-grid>.hg-card[data-hg-cols="7"]{grid-column-end:span 7!important}
.hg-grid>.hg-card[data-hg-x="8"]{grid-column-start:8!important}.hg-grid>.hg-card[data-hg-cols="8"]{grid-column-end:span 8!important}
@media(max-width:700px){.hg-shell:not(.is-editing) .hg-grid{display:flex;flex-direction:column}.hg-shell:not(.is-editing) .hg-card{max-height:min(72vh,36rem)}.is-editing .hg-grid{grid-template-rows:repeat(10,54px);width:100%}.is-editing .hg-grip span{font-size:12px}.hg-grip{padding:4px;gap:2px}}

.followup-line{display:block;margin:3px 0}.matter-sort-heading{display:flex;gap:8px;align-items:center;min-width:0}.matter-sort-heading details{position:relative}.matter-sort-heading summary{cursor:pointer;list-style:none;font-size:20px;min-width:30px;min-height:32px;text-align:center}.matter-sort-menu{position:absolute;top:100%;right:0;z-index:25;min-width:190px;padding:8px;background:white;border:1px solid #ccd9df;border-radius:8px;box-shadow:0 8px 24px #19334425}.matter-sort-menu button{display:block;width:100%;border:0;background:white;padding:12px;text-align:left;color:#23404c;cursor:pointer}.matter-sort-menu button[aria-pressed=true]{background:#eaf1f7;font-weight:700}.team-change-add,.team-change-remove{padding:12px;margin:12px 0;border-left:4px solid #28765d;background:#f2f8f5}.team-change-remove{border-color:#a94040;background:#fff4f4}@media(max-width:700px){.matter-directory .matter-table-head{display:flex!important;flex-wrap:wrap;gap:8px 20px}.matter-table-head>span:last-child{display:none}.matter-sort-menu{left:0;right:auto}}

.all-matter-folders{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;margin:20px 0}.all-matter-folder{display:flex;align-items:center;gap:16px;padding:20px;background:white;border:1px solid #d5e0e6;border-radius:9px;cursor:pointer;text-align:left;color:#243e4a}.all-matter-folder svg{width:42px;flex-shrink:0}.all-matter-folder span{min-width:0}.all-matter-folder strong,.all-matter-folder small{display:block;overflow-wrap:anywhere}.all-matter-folder small{margin-top:8px}.chat-composer-line{flex-wrap:wrap}.chat-composer-line>[data-action=doc-chat-folder]{font-size:13px}.document-link-picker{max-height:320px;overflow:auto}

.hg-shell:not(.is-editing) .hg-grid{grid-template-rows:repeat(10,minmax(0,auto));align-items:stretch}
.hg-shell:not(.is-editing) .hg-grid>.hg-card{min-height:0;height:auto!important;max-height:none;overflow:visible}
.hg-shell:not(.is-editing) .hg-card>.hg-content{height:auto;max-height:none;overflow:visible}
.hg-content :is(li,.ref-widget-body button){min-height:32px}
.hg-content .ref-widget-body li{padding-block:4px}
.hg-shell:not(.is-editing) .hg-content header{background:#f2f6fa;border-bottom-color:#bfcfdc;padding:8px 10px!important}

.hg-card[data-hg-key="activity"] :is(.ref-compact-list,.workbench-list){display:grid;gap:0}
.hg-card[data-hg-key="activity"] :is(li,.ref-compact-list>button){margin:0;padding-block:4px;min-height:32px}
.hg-card[data-hg-key="activity"] li .button{margin-block:0;padding-block:3px;min-height:28px}

/* Preserve saved desktop coordinates; use readable cards below desktop width. */
@media(max-width:1100px){
 .hg-shell:not(.is-editing) .hg-grid{display:flex;flex-direction:column}
 .hg-shell:not(.is-editing) .hg-grid>.hg-card{width:100%;min-width:0}
}

.civil-workspace{max-width:1600px;width:100%;font-size:1rem}.civil-heading,.civil-entry,.civil-editor>header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.civil-heading p,.civil-entry p{color:#526275;margin:8px 0}.civil-entry{padding:22px;border:1px solid #cad6df;border-left:4px solid #256b83;border-radius:8px;background:#f6fafc;margin-bottom:20px}.civil-entry h2{margin:0;font-size:1.2rem}.civil-tabs{display:flex;gap:8px;border-bottom:1px solid #cbd5df;margin:22px 0 0;padding-bottom:12px;flex-wrap:wrap}.civil-tabs button[aria-pressed=true]{background:#173b52;color:white}.civil-tabs small{margin-left:10px;font-size:.875rem}.civil-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:18px 0}.civil-toolbar form{display:flex;align-items:end;gap:10px;flex:1;flex-wrap:wrap}.civil-toolbar label{min-width:140px;flex:1}.civil-split{display:grid;grid-template-columns:minmax(320px,.85fr) minmax(420px,1.3fr);gap:20px;align-items:start}.civil-list,.civil-editor,.civil-empty{border:1px solid #d4dce4;border-radius:8px;background:white;min-width:0}.civil-count{padding:12px 16px;margin:0;color:#526275;font-size:.875rem}.civil-list table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.875rem}.civil-list th{text-align:left;background:#f2f6f9;padding:12px 10px;font-weight:600}.civil-list th:first-child{width:48%}.civil-list td{padding:12px 10px;border-top:1px solid #e2e8ee;vertical-align:top;overflow-wrap:anywhere}.civil-list td .button{border:0;background:transparent;text-align:left;padding:0;font-weight:600;color:#174d69;line-height:1.5}.civil-list td small{display:block;font-size:.875rem;margin-top:6px;color:#526275}.civil-list .selected{background:#eaf3f8;box-shadow:inset 3px 0 #246a87}.civil-status{display:inline-block;border:1px solid #c4d3df;border-radius:5px;padding:3px 7px;font-size:.875rem}.civil-editor{padding:20px}.civil-editor h2{font-size:1.2rem;margin:0 0 20px}.civil-editor fieldset{margin:0;padding:0;border:0;min-width:0;display:block}.civil-editor label,.civil-toolbar label,.civil-branch label{display:block;font-size:.875rem;font-weight:600;margin-bottom:12px}.civil-editor input,.civil-editor select,.civil-editor textarea,.civil-toolbar input,.civil-toolbar select,.civil-branch select{display:block;box-sizing:border-box;width:100%;margin-top:6px;min-height:40px;font-size:1rem;border:1px solid #b9c7d3;border-radius:5px;background:white;color:#172c3c;padding:9px}.civil-editor textarea{resize:vertical;line-height:1.6}.civil-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}.civil-editor .muted{font-size:.875rem;color:#526275}.civil-sources{margin-top:20px;border-top:1px solid #d7e0e8;padding-top:14px}.civil-sources h3,.civil-linked-facts h3{font-size:1rem;margin-top:0}.civil-source-row{padding:12px;border:1px solid #dae3ea;background:#f6f9fb;border-radius:6px;margin-bottom:10px}.civil-source-row .button{font-size:.875rem;margin-right:8px}.civil-file-search{display:flex;align-items:end;gap:10px;margin-top:15px}.civil-file-search label{flex:1;margin:0}.civil-save{position:sticky;bottom:0;background:#fff;border-top:1px solid #d7e0e8;padding:14px 0 0;margin-top:20px;display:flex;gap:10px;flex-wrap:wrap;align-items:center;z-index:2}.civil-save span{width:100%;font-size:.875rem;color:#526275}.civil-empty{padding:28px}.civil-empty h2{font-size:1.15rem}.civil-history{margin-top:18px;font-size:.875rem}.civil-source-preview iframe{width:100%;height:540px;border:1px solid #cad6df}.civil-linked-facts{background:#f4f8fb;padding:14px;border-radius:6px}.civil-linked-facts .check{display:flex;align-items:flex-start;gap:8px}.civil-linked-facts input{width:auto;min-height:0}.civil-linked-facts small{display:block;font-weight:400;margin-top:4px}.civil-branch{max-width:480px;margin:0 0 20px}.civil-branch[hidden]{display:none}.civil-branch small{font-size:.875rem;color:#526275}.civil-prep{display:grid;gap:18px}.civil-workspace button:focus-visible,.civil-workspace a:focus-visible{outline:3px solid #207ca2;outline-offset:3px}@media(min-width:1400px){.civil-workspace:has(.civil-prep) .civil-split{grid-template-columns:minmax(280px,.65fr) minmax(720px,2fr)}.civil-prep{grid-template-columns:1.6fr 1fr}}@media(max-width:1050px){.civil-split{grid-template-columns:1fr}.civil-editor{scroll-margin-top:20px}.civil-heading{flex-wrap:wrap}}@media(max-width:520px){.civil-pair{grid-template-columns:1fr;gap:0}.civil-editor{padding:14px}.civil-toolbar form{width:100%;flex-basis:100%}.civil-entry{flex-direction:column}.civil-list td,.civil-list th{padding:10px 7px}.civil-list th:first-child{width:40%}.civil-save{position:static}.civil-file-search{flex-wrap:wrap}.civil-file-search label{min-width:180px}.civil-tabs button{flex:1;min-width:140px}.civil-heading h1{font-size:1.6rem}}
@media(min-width:1400px){.civil-workspace:has(.civil-source-preview) .civil-split{grid-template-columns:minmax(260px,.6fr) minmax(800px,2fr)}.civil-editor:has(.civil-source-preview){display:grid;grid-template-columns:1fr 1fr;gap:18px}.civil-editor:has(.civil-source-preview)>header,.civil-editor:has(.civil-source-preview)>.civil-history{grid-column:1/-1}.civil-source-preview{position:sticky;top:20px}.civil-source-preview h3{font-size:1rem;overflow-wrap:anywhere}}
@media(min-width:1051px){.civil-list{position:sticky;top:84px;max-height:calc(100vh - 110px);overflow:auto}}
.civil-editor input,.civil-editor textarea,.civil-editor select,.civil-toolbar input,.civil-toolbar select{font-weight:400}
@media(min-width:1051px){.civil-workspace .civil-split:has(.civil-source-preview){grid-template-columns:1fr}.civil-split:has(.civil-source-preview)>.civil-list{display:none}.civil-editor:has(.civil-source-preview){display:grid;grid-template-columns:minmax(300px,.8fr) minmax(400px,1.2fr);gap:22px}.civil-editor:has(.civil-source-preview)>header,.civil-editor:has(.civil-source-preview)>.civil-history{grid-column:1/-1}.civil-source-preview{position:sticky;top:84px;min-width:0}.civil-source-preview iframe{height:calc(100vh - 200px);min-height:480px}.civil-source-preview h3{font-size:1rem;overflow-wrap:anywhere}.civil-source-preview>header{margin-bottom:12px}}
@media(min-width:1051px){.civil-source-preview{align-self:start}}
/* Compact matter identity: navigation, identifier and metadata have separate roles. */
.docket-shell .matter-return.button{padding:4px 0;min-height:36px;margin:0 0 6px;font-size:14px}
.docket-shell .matter-banner .matter-crumb{gap:8px 12px;margin:4px 0 12px;line-height:1.5;font-size:14px}
.matter-number{font-weight:600;color:#334b5d}.matter-type-summary{display:inline-flex;flex-wrap:wrap;gap:4px 10px;align-items:center}.matter-type-summary>span+span:before{content:'·';margin-right:10px;color:#81909c}
.docket-shell .matter-overview>.civil-entry{padding:14px 16px;margin:0 0 16px;align-items:center}.docket-shell .matter-overview>.civil-entry h2{font-size:17px;margin:0}.docket-shell .matter-overview>.civil-entry p{margin:4px 0 0;font-size:14px}
@media(max-width:760px){
 .docket-shell .firm-live-sidebar{padding:10px 16px 4px}.docket-shell .firm-live-sidebar>.firm-workspace-groups{display:none}.staff-mobile-more .staff-mobile-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;border-top:1px solid #dce3e9;padding-top:6px}.docket-shell .staff-mobile-more{margin:0}.docket-shell .staff-mobile-more>summary{min-height:36px;padding:7px 0;font-size:14px}
 .docket-shell .matter-mast .mast-inner{min-height:40px;padding-block:0}.docket-shell .workspace-search>summary{min-height:40px;padding:8px 0;font-size:14px}
 .docket-shell .matter-banner{padding-top:10px}.docket-shell .matter-banner .matter-title{margin:0 0 4px;gap:8px}.docket-shell .matter-title h1{font-size:22px;line-height:1.3;margin:0}.docket-shell .matter-banner .matter-banner-inner{margin-bottom:4px}
 .docket-shell .matter-banner .matter-crumb{gap:6px 8px;align-items:center;margin:4px 0 8px;font-size:14px;line-height:1.45}.docket-shell .matter-crumb .matter-number{flex-basis:100%;overflow-wrap:anywhere}.docket-shell .matter-type-summary{flex:1;gap:4px 8px}.docket-shell .matter-type-summary>span+span:before{margin-right:8px}.docket-shell .matter-crumb>.icon-button{min-height:36px;width:36px;padding:7px}
 .docket-shell .matter-crumb .billing-case-actions{margin:4px 0 0;gap:8px}.docket-shell .matter-crumb .billing-case-timer .button,.docket-shell .matter-crumb .billing-case-actions>.button{min-height:40px;padding:8px 12px;font-size:14px;line-height:1.4}
 .docket-shell .matter-banner .firm-navigation{gap:4px}.docket-shell .matter-banner .firm-navigation .button{padding:9px 10px;font-size:14px;min-height:40px}.docket-shell .matter-banner .matter-context-toggle.button{font-size:14px;min-height:36px;padding:6px 0}.docket-shell .matter-banner .desk-case-meta.matter-metadata{padding:8px 0;gap:10px 16px}.docket-shell .matter-metadata small,.docket-shell .matter-metadata strong,.docket-shell .matter-metadata .tag{font-size:14px;line-height:1.45}
 .docket-shell .desk-content>.matter-overview{padding-top:12px}.docket-shell .matter-overview>.civil-entry{flex-direction:row;align-items:center;gap:10px;padding:12px;margin-bottom:12px}.docket-shell .matter-overview>.civil-entry p{display:none}.docket-shell .matter-overview>.civil-entry h2{font-size:16px}.docket-shell .matter-overview>.civil-entry>.button{min-height:40px;flex-shrink:0;font-size:14px;padding:8px 10px}
 .docket-shell .matter-overview>.matter-foundation{padding:14px;margin-bottom:12px}.docket-shell .matter-overview>.matter-foundation>header{padding:0 0 8px;margin:0 0 10px}.docket-shell .matter-overview>.matter-foundation h2{font-size:17px;margin:0}.docket-shell .matter-overview>.matter-foundation .review-note{margin:0;line-height:1.5;font-size:16px}
}
/* Keep dense records usable at narrow widths and with long case content. */
.civil-workspace,.civil-workspace h1,.civil-workspace h2,.civil-workspace p,.civil-linked-facts span,.matter-title h1,.matter-type-summary{overflow-wrap:anywhere;min-width:0}
.civil-heading>div,.civil-entry>div,.civil-editor>header>div{min-width:0}.civil-editor>header{flex-wrap:wrap;gap:10px}.civil-list td .button{white-space:normal;overflow-wrap:anywhere;max-width:100%;min-height:40px}.civil-list th{overflow-wrap:anywhere}
.civil-linked-facts{max-height:360px;overflow:auto}.civil-history[open]{max-height:240px;overflow:auto;overflow-wrap:anywhere}.civil-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px;border-top:1px solid #d4dce4;font-size:14px}.civil-pagination .button{min-height:40px;padding:8px 12px}.civil-source-row select{max-width:100%}.civil-source-preview{scroll-margin-top:20px}.civil-editor>form{min-width:0}.civil-toolbar label{margin-bottom:0}.civil-list thead{position:sticky;top:0;z-index:1}.civil-file-search input{min-width:0}
@media(max-width:1050px){.civil-split:has(.civil-editor)>.civil-list{display:none}.civil-editor{scroll-margin-top:12px}.civil-list{scroll-margin-top:12px}.civil-linked-facts{max-height:260px}.civil-heading h1{font-size:1.5rem}}
@media(max-width:520px){.civil-source-preview iframe{height:460px}.civil-editor>header>.button{min-height:40px}.civil-workspace .civil-tabs button{min-width:0;flex-basis:100%;text-align:left}.civil-source-row .button{min-height:40px}.civil-editor .civil-save .button{white-space:normal}.civil-entry>div{flex:1}.docket-shell .matter-type-summary{overflow-wrap:anywhere}.civil-workspace .civil-toolbar>form>label{min-width:0;flex-basis:100%}}
.matter-mobile-destinations{display:none}
@media(max-width:1050px){
 #app .matter-banner .firm-case-navigation:has(>.matter-more)>.firm-navigation>.button:nth-child(n+3):not([data-chat-popup]){display:none}
 #app .matter-banner .firm-case-navigation:has(>.matter-more)>.firm-navigation{overflow:visible;gap:6px;padding-right:0;flex-wrap:wrap;min-width:0}
 #app .matter-banner .firm-case-navigation:has(>.matter-more)>.firm-navigation>[data-chat-popup]{display:inline-flex;white-space:normal;min-height:44px}
 .matter-more .matter-mobile-destinations{display:grid;gap:3px}.matter-more>div{width:min(270px,calc(100vw - 44px));max-height: min(60vh,420px);overflow:auto;box-sizing:border-box}.matter-more>div .button{display:block;width:100%;white-space:normal;text-align:left;min-height:44px;box-sizing:border-box;overflow-wrap:anywhere}.matter-more:has(.matter-mobile-destinations [aria-current=page])>summary{color:#174d7c;font-weight:650}
}
#app .civil-workspace .button{font-size:14px;min-height:40px}#app .civil-workspace .civil-list td .button{white-space:normal;font-size:14px}#app .civil-workspace .civil-editor fieldset{padding:0;border:0}
@media(max-width:1050px){#app .matter-banner .matter-more>div .button{font-size:14px;min-height:44px;padding:10px 12px;line-height:1.45}}
@media(min-width:761px) and (max-width:1050px){.civil-editor,.civil-list,.civil-source-preview{scroll-margin-top:84px}}
@media(max-width:520px){#app .matter-banner .firm-case-navigation:has(>.matter-more)>.firm-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}#app .matter-banner .firm-case-navigation:has(>.matter-more)>.firm-navigation>.button{justify-content:center;text-align:center;min-width:0;white-space:normal}}

.civil-file-results{list-style:none;padding:0;max-height:22rem;overflow:auto}.civil-file-results li{display:flex;gap:.75rem;align-items:center;justify-content:space-between;padding:.5rem 0;border-bottom:1px solid #dce5e9}.civil-file-results span{overflow-wrap:anywhere;min-width:0}.civil-file-results button{flex-shrink:0}

.crim-workspace{max-width:1200px;margin-inline:auto}.crim-workspace *{box-sizing:border-box;min-width:0}.crim-heading,.crim-editor header,.crim-preview header,.crim-toolbar,.crim-workspace footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.crim-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.crim-tabs [aria-pressed=true]{background:#163951;color:white}.crim-workspace .button{min-height:44px;white-space:normal;overflow-wrap:anywhere}.crim-workspace label{font-size:14px}.crim-workspace input,.crim-workspace select,.crim-workspace textarea{max-width:100%;font-size:16px}.crim-grid,.crim-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.crim-editor,.crim-overview>section,.crim-preview{border:1px solid #c8d3dd;background:#fff;padding:20px;border-radius:10px;margin:16px 0}.crim-editor{max-width:920px;margin-inline:auto}.crim-editor fieldset{border:0;padding:0;display:grid;gap:16px}.crim-editor label{display:grid;gap:6px}.crim-editor .check{display:flex;align-items:center;gap:8px}.crim-workspace details{border-top:1px solid #d8e0e7;padding:14px 0}.crim-workspace summary{cursor:pointer;min-height:44px;font-weight:600;display:list-item}.crim-checks{display:grid;gap:10px;max-height:260px;overflow:auto}.crim-source{border:1px solid #d8e0e7;padding:12px;margin-bottom:12px;display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);gap:10px}.crim-source .crim-warning{grid-column:1/-1;color:#842c20}.crim-toolbar form{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.crim-list table{width:100%;table-layout:fixed;border-collapse:collapse}.crim-list th,.crim-list td{text-align:left;vertical-align:top;border-bottom:1px solid #d8e0e7;padding:12px 8px;overflow-wrap:anywhere}.crim-list th:first-child{width:64px}.crim-list th:nth-child(2){width:48%}.crim-list small,.crim-overview small{display:block;color:#475569;font-size:14px;margin-top:5px}.crim-preview iframe{width:100%;height:72vh;border:1px solid #c8d3dd}.crim-preview video,.crim-preview audio{max-width:100%;width:100%}.crim-more li{margin-bottom:12px;overflow-wrap:anywhere}.crim-workspace footer{margin-top:18px}.crim-list input[type=checkbox]{min-width:22px;min-height:22px}.crim-overview p{overflow-wrap:anywhere}@media(max-width:650px){.crim-grid,.crim-overview,.crim-source{grid-template-columns:1fr}.crim-editor,.crim-preview,.crim-overview>section{padding:14px}.crim-list th:first-child{width:42px}.crim-list th:nth-child(2){width:40%}.crim-list th,.crim-list td{padding:10px 4px;font-size:14px}.crim-tabs .button{flex:1 1 30%}.crim-heading{align-items:start}.crim-toolbar>div{display:flex;flex-wrap:wrap;gap:8px}.crim-workspace{padding-inline:12px}}

/* Shared visual contract: readable content, restrained surfaces, clear controls. */
:root{--bc-action:#184e63;--bc-hover:#123c4d;--bc-ink:#172b36;--bc-muted:#52616b;--bc-page:#f4f6f8;--bc-selected:#e8f0f4;--bc-divider:#d6dee3;--bc-control:#71818c;--portal-radius:8px;accent-color:var(--bc-action)}
body{font-family:system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:16px;line-height:1.5;background:var(--bc-page);color:var(--bc-ink)}
.docket-shell{--desk-text:var(--bc-ink);--desk-faint:var(--bc-muted);--desk-border:var(--bc-divider);--docket-blue:var(--bc-action)}
body .button{min-height:40px;border-radius:6px;font-size:14px;font-weight:500;line-height:1.4;white-space:normal}
body .button.primary,.docket-shell .button.primary{background:var(--bc-action);border-color:var(--bc-action);color:#fff;box-shadow:none}
body .button.primary:hover,.docket-shell .button.primary:hover{background:var(--bc-hover);border-color:var(--bc-hover)}
body .button:disabled{opacity:.55;cursor:not-allowed}
body :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--bc-action);outline-offset:3px}
body :is(input,select,textarea){font:inherit;max-width:100%;box-sizing:border-box}
.docket-shell :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),select,textarea){border:1px solid var(--bc-control);border-radius:6px;color:var(--bc-ink);background:#fff;font-size:14px;min-height:40px}
.docket-shell :is(h1,h2,h3){line-height:1.3;overflow-wrap:anywhere}
.docket-shell h1{font-size:26px;font-weight:600}.docket-shell h2{font-size:20px;font-weight:600}.docket-shell h3{font-size:18px;font-weight:600}
.docket-shell :is(.desk-panel,.ref-widget,.adaptive-panel){border-color:var(--bc-divider);border-radius:8px;box-shadow:none}
.docket-shell :is(.muted,.file-muted,.drive-file small,.matter-file-meta){color:var(--bc-muted)}
.docket-shell .tag.good{color:#1d6949;background:#eaf5ee}.docket-shell .tag.bad{color:#b42318;background:#fef0ee}.docket-shell .tag.warn{color:#8a4b08;background:#fff4de}
.intake-workspace{margin-bottom:32px;min-width:0}.intake-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0 24px}
.intake-mode{display:grid;gap:8px;text-align:left;padding:20px;border:1px solid var(--bc-control);border-radius:8px;background:white;color:var(--bc-ink);font:inherit;cursor:pointer;min-width:0}
.intake-mode strong{font-size:18px;font-weight:600}.intake-mode span{font-size:14px;color:var(--bc-muted)}
.intake-mode[aria-pressed=true]{border:2px solid var(--bc-action);padding:19px;background:var(--bc-selected)}
#intake-batch-panel[hidden]{display:none}.intake-drop{display:flex;flex-direction:column;align-items:center;gap:12px;border:2px dashed var(--bc-control);border-radius:8px;padding:32px 16px;background:#fff;text-align:center}.intake-drop.is-dragging{background:var(--bc-selected);border-color:var(--bc-action)}
.intake-drop strong{font-size:20px}.intake-drop>span{color:var(--bc-muted);font-size:14px}.intake-drop label{position:relative;overflow:hidden;cursor:pointer;border:1px solid var(--bc-control);padding:10px 20px}.intake-drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.intake-drop label:focus-within{outline:3px solid var(--bc-action);outline-offset:3px}
.intake-consent{display:flex;align-items:flex-start;gap:10px;margin:16px 0;font-size:14px}.intake-consent input{width:18px;height:18px;flex-shrink:0;margin-top:2px}
.intake-defaults{margin:20px 0;padding:12px 0;border-block:1px solid var(--bc-divider)}.intake-defaults summary{min-height:40px;cursor:pointer;display:flex;align-items:center;font-weight:500}.intake-defaults[open] summary{margin-bottom:12px}
.intake-queue{list-style:none;margin:16px 0;padding:0;display:grid;gap:16px}.intake-queue>li{padding:20px;border:1px solid var(--bc-divider);border-radius:8px;background:white;min-width:0}.intake-row-heading{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.intake-row-heading>strong{flex:1;min-width:120px;overflow-wrap:anywhere}.intake-row-heading .button{margin-left:auto}
.intake-row-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:end}.intake-row-fields label{display:grid;gap:8px;font-size:14px;min-width:0}.intake-row-fields :is(input,select){width:100%;padding:10px}.intake-row-fields [data-matter-results]{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px}.intake-row-fields [data-matter-results]:empty{display:none}
.intake-status{font-size:14px;color:#8a4b08;background:#fff4de;padding:4px 8px;border-radius:4px}.intake-status[data-status=saved]{color:#1d6949;background:#eaf5ee}.intake-status[data-status=recognized]{color:var(--bc-action);background:var(--bc-selected)}.intake-status[data-status=failed],.intake-error{color:#b42318}.intake-error{font-size:14px;overflow-wrap:anywhere}.intake-team{font-size:14px;color:var(--bc-muted)}.intake-suggestions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.intake-analysis{margin-top:16px}.intake-analysis summary{cursor:pointer;min-height:40px}.intake-analysis p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.intake-batch-actions{display:flex;gap:12px;flex-wrap:wrap}.intake-workspace [data-intake-progress]{overflow-wrap:anywhere}
/* Text is the folder face; the complete folder remains a semantic button. */
.docket-shell .all-matter-folders{grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:24px;margin:24px 0}
.docket-shell .all-matter-folder{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;border:0;border-radius:8px;background:transparent;text-align:left;color:var(--bc-ink);font:inherit;min-width:0;box-shadow:none;isolation:isolate}
.all-matter-folder .folder-tab{display:block;align-self:flex-start;max-width:85%;min-width:45%;box-sizing:border-box;padding:8px 16px 12px;background:#dce8ee;border:1px solid #91a9b6;border-bottom:0;border-radius:8px 12px 0 0;font-size:14px;font-weight:500;overflow-wrap:anywhere;position:relative;z-index:-1;margin-bottom:-4px}
.all-matter-folder .folder-face{display:flex;flex:1;flex-direction:column;justify-content:space-between;gap:20px;min-height:136px;padding:20px;border:1px solid #91a9b6;border-radius:0 8px 8px 8px;background:#eef4f7;box-sizing:border-box}
.all-matter-folder .folder-face strong{font-size:18px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}.all-matter-folder .folder-face small{font-size:14px;color:var(--bc-muted);overflow-wrap:anywhere;white-space:normal;margin:0}
.all-matter-folder:hover .folder-face{background:#e2edf2;border-color:var(--bc-action)}
/* Keep common file actions above the list without stacking large headers. */
.matter-file-heading-actions{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap}
.docket-shell:has(.matter-files) .matter-banner{padding-block:12px}.docket-shell:has(.matter-files) .matter-banner-inner{padding-block:0}.docket-shell:has(.matter-files) .matter-title h1{font-size:22px;margin-block:4px}
.docket-shell:has(.matter-files) .matter-crumb{padding-block:4px;margin-bottom:4px}.docket-shell:has(.matter-files) .firm-navigation{margin-block:8px 0}
.docket-shell .matter-files .matter-file-heading{margin-bottom:12px;gap:16px}.docket-shell .matter-files .matter-file-heading h1{font-size:22px;margin:0}.docket-shell .matter-files .matter-file-heading p{margin:4px 0 0;font-size:14px}.docket-shell .matter-files .drive-crumb{padding:4px 0 8px;margin:0 0 12px}.docket-shell .matter-files .matter-file-toolbar{margin-bottom:16px;gap:12px}
.hg-content :is(.home-manager-list strong,.home-message-list strong){font-size:15px}.hg-content :is(.home-manager-list li span,.home-message-list small){font-size:14px;color:var(--bc-muted)}
.hg-card .home-calendar-layout{grid-template-columns:minmax(0,1fr);gap:12px}.hg-card .home-day-events{border-left:0;border-top:1px solid var(--bc-divider);padding:12px 0 0;display:block}.hg-card .home-event{max-width:none}.hg-card .home-day-events .home-event:nth-of-type(n+2){display:flex}.hg-card .home-month-grid button{min-height:36px;font-size:14px}
@media(max-width:760px){.intake-modes{gap:12px}.intake-mode{padding:16px}.intake-mode[aria-pressed=true]{padding:15px}.intake-row-fields{grid-template-columns:minmax(0,1fr)}.intake-queue>li{padding:16px}.intake-drop{padding:24px 12px}.intake-mode strong{font-size:16px}body .button{min-height:44px}.hg-card .home-month-grid button{min-height:40px}.matter-file-heading-actions{width:100%}}
@media(max-width:480px){.intake-modes{grid-template-columns:minmax(0,1fr)}.intake-mode{gap:4px}.intake-row-heading{gap:8px}.intake-row-heading>strong{flex-basis:100%}.intake-batch-actions>.button{width:100%}.docket-shell .all-matter-folders{gap:16px}.docket-shell .matter-files .matter-file-toolbar{gap:8px}}
@media(prefers-reduced-motion:reduce){.intake-workspace *,.all-matter-folder{transition:none!important}}
/* Mail intake: matter identity stays prominent; evidence is secondary. */
.intake-drop-compact{flex-direction:row;flex-wrap:wrap;justify-content:space-between;padding:14px 18px}.intake-drop-compact strong{font-size:16px}.intake-scope{font-size:13px;color:var(--bc-muted);line-height:1.6}.intake-selection{display:flex;gap:20px;align-items:center;margin-top:20px}.intake-selection label{display:flex;gap:8px;align-items:center}.intake-selection input,.intake-row-heading>input{width:18px;height:18px;flex:none}.intake-row-matter{display:flex;align-items:center;justify-content:space-between;gap:16px}.intake-row-matter>div{min-width:0;overflow-wrap:anywhere}.intake-row-tools{display:flex;gap:8px;flex-wrap:wrap}.intake-evidence{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.intake-evidence:empty{display:none}.intake-evidence small{font-size:11px;line-height:1.5;padding:2px 6px;border:1px solid #cce7d5;border-radius:3px;background:#eff8f1;color:#22673e;font-weight:500}.intake-dialog-shade{position:fixed;inset:0;background:#14233266;z-index:1200;display:flex;align-items:center;justify-content:center;padding:20px}.intake-dialog{background:#fff;border-radius:12px;box-shadow:0 16px 50px #14233233;width:600px;max-width:100%;max-height:88dvh;overflow:auto;padding:24px}.intake-dialog header,.intake-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.intake-dialog h3{margin:0}.intake-dialog-file{overflow-wrap:anywhere;color:var(--bc-muted);font-size:13px}.intake-search{display:flex;gap:8px}.intake-search input{flex:1;min-width:0;width:0;padding:10px;border:1px solid var(--bc-control);border-radius:6px}.intake-candidates{display:grid;gap:8px;margin:16px 0}.intake-candidate{font:inherit;text-align:left;padding:14px;border:1px solid var(--bc-divider);border-radius:6px;background:white;cursor:pointer;overflow-wrap:anywhere}.intake-candidate:hover,.intake-candidate:focus-visible{background:var(--bc-selected);border-color:var(--bc-action)}.intake-question{font-size:13px;color:#8a4b08}.intake-dialog footer{border-top:1px solid var(--bc-divider);padding-top:16px}.intake-dialog .button{min-height:44px}.intake-batch-actions{padding:12px 0;background:var(--bc-bg,#fff)}
@media(max-width:600px){.intake-row-matter{align-items:stretch;flex-direction:column}.intake-dialog-shade{padding:10px}.intake-dialog{padding:16px;max-height:94dvh}.intake-dialog footer{flex-wrap:wrap}.intake-dialog footer .button{flex:1}.intake-drop-compact{align-items:flex-start;flex-direction:column}.intake-row-heading>strong{flex-basis:60%;min-width:0}.intake-row-tools .button{flex:1}}

/* Home surfaces share the same hierarchy across the two portal roles. */
.gateway-client-shell .gateway-home,
.docket-shell .ref-dashboard { background: var(--bc-page); }

.gateway-client-shell .gateway-home .gateway-timeline :is(.gateway-panel,.desk-panel),
.docket-shell .hg-grid > .hg-card {
  background: white;
  border: 1px solid var(--bc-divider);
  border-radius: var(--portal-radius) !important;
  box-shadow: none;
}
.gateway-home .gateway-timeline :is(.gateway-panel,.desk-panel) {
  padding: clamp(14px, 2vw, 20px);
}
.gateway-client-shell .gateway-home .gateway-timeline { gap: 18px; }
.gateway-client-shell .gateway-home .desk-panel-head,
.docket-shell .hg-content header { border-bottom: 0; }
.gateway-client-shell .gateway-home .desk-panel-head h2,
.docket-shell .hg-content h2 {
  color: #19394d;
  font-size: 1rem;
  font-weight: 650;
}
.gateway-home .desk-panel-head h2::after,
.docket-shell .hg-content h2::after { display: none; }
.gateway-home .gateway-panel :is(.desk-task,.desk-docket-row),
.docket-shell .hg-content .home-manager-list li { border-block: 0; }
.gateway-home .gateway-panel .desk-task + .desk-task,
.gateway-home .gateway-panel .desk-docket-row + .desk-docket-row,
.docket-shell .hg-content .home-manager-list li + li { border-top: 1px solid var(--bc-divider); }
.gateway-client-shell .gateway-home .button.primary {
  background: var(--bc-action);
  border-color: var(--bc-action);
}

/* Workspace identity and section hierarchy */
@media screen {
  .docket-shell .firm-live-sidebar {
    background: linear-gradient(155deg, #edf4f3 0%, #f6f8f7 55%, #edf1f5 100%);
    border-inline-end: 1px solid #cedbdc;
  }
  .docket-shell .desk-nav-link.button[aria-current=page],
  .gateway-client-shell .gateway-client-nav .desk-nav-link.button[aria-current=page] {
    background: #174d55;
    color: white;
    box-shadow: inset 3px 0 #d5b57a !important;
  }
  .docket-shell .desk-nav-link.button[aria-current=page] svg { opacity: 1; }
  .docket-shell .docket-heading,
  .gateway-client-shell .gateway-home > h1 {
    background: linear-gradient(112deg, #163840, #234b56 68%, #2b565c);
    border-inline-start: 4px solid #c9a76e;
    border-radius: 10px;
    padding: clamp(14px, 2vw, 24px);
    color: #fff;
  }
  .docket-shell .docket-heading h1,
  .gateway-client-shell .gateway-home > h1,
  .docket-shell .matter-title h1 {
    font-family: Georgia, "Songti SC", serif;
    font-weight: 500;
    letter-spacing: -.025em;
  }
  .docket-shell .docket-heading h1 { color: white; }
  .docket-shell .docket-heading p { color: #e1eeec; }
  .docket-shell .docket-heading .button,
  .docket-shell .docket-heading .hg-toolbar button {
    background: #f7faf9;
    color: #21434b;
    border: 1px solid #b9cdce;
  }
  .docket-shell .docket-heading :is(button,a):focus-visible { outline-color: #e6c58b; }
  .docket-shell .hg-grid { background: #f2f5f5; }
  .docket-shell .hg-grid > .hg-card,
  .gateway-client-shell .gateway-home .gateway-timeline :is(.gateway-panel,.desk-panel) {
    --section-accent: #527977;
    --section-wash: #f0f7f5;
    background: linear-gradient(to bottom, var(--section-wash), #fff 4rem);
    border-color: #d2dddd;
    border-block-start: 3px solid var(--section-accent);
    box-shadow: 0 2px 7px rgb(25 55 59 / 7%);
  }
  .docket-shell .hg-grid > [data-hg-key=overdue] { --section-accent: #99523f; --section-wash: #fbf2ee; }
  .docket-shell .hg-grid > [data-hg-key=manager] { --section-accent: #916c35; --section-wash: #faf5ea; }
  .docket-shell .hg-grid > [data-hg-key=calendar] { --section-accent: #497197; --section-wash: #eff5fa; }
  .docket-shell .hg-grid > [data-hg-key=messages] { --section-accent: #71618c; --section-wash: #f5f2f9; }
  .docket-shell .hg-card .hg-content > section { background: transparent; }
  .docket-shell .firm-case-navigation > .firm-navigation > .button[aria-current=page] {
    color: #174d55;
    box-shadow: inset 0 -3px #24736d !important;
  }
  .gateway-client-shell .gateway-avatar {
    background: #204e52;
    color: white;
    box-shadow: 0 0 0 3px #e4eeea;
  }
  #app:has(.account-entry) {
    background: radial-gradient(ellipse at 18% 34%, #e8f1ee, transparent 52%), #f8f9f7;
  }
  .account-entry .account-entry-card.panel.login {
    border-block-start: 3px solid var(--entry-accent);
    box-shadow: 0 12px 34px rgb(29 60 61 / 9%);
  }
}


.matter-import-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.matter-import-dialog{width:min(96vw,1450px);max-width:96vw;max-height:90vh;overflow:auto;padding:20px;border:1px solid #b9c4d1;border-radius:12px;background:var(--panel,#fff);color:var(--text,#182636)}
.matter-import-dialog::backdrop{background:rgba(19,29,42,.42)}
.matter-import-controls{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:16px 0}
.matter-import-controls label{display:grid;gap:6px}.matter-import-table{overflow:auto;max-height:58vh}
.matter-import-table table{width:max-content;min-width:100%;border-collapse:collapse;font-size:13px}
.matter-import-table th,.matter-import-table td{padding:8px;border-bottom:1px solid #dce3eb;text-align:left;vertical-align:top}
.matter-import-table th{position:sticky;top:0;background:var(--panel,#fff);z-index:1}
.matter-import-table td input:not([type=checkbox]),.matter-import-table td textarea,.matter-import-table td select{width:155px;min-width:120px}
.matter-import-table td textarea{width:230px}.matter-import-table td:last-child{min-width:190px;max-width:260px}
.matter-import-table small{display:block;white-space:normal;overflow-wrap:anywhere;margin-top:4px}
.matter-import-title{padding:8px 16px;margin:0}
