:root {
  --page: #f5f3f8;
  --paper: #ffffff;
  --ink: #241b2d;
  --muted: #756d7e;
  --violet: #633b89;
  --violet-dark: #44255f;
  --lavender: #f0e9f7;
  --line: #e9e4ed;
  --green: #1c7458;
  --amber: #9a6415;
  --red: #a83e57;
  --shadow: 0 12px 38px rgba(48, 29, 68, .055);
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 15px/1.5 Inter, "Avenir Next", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid #bca2d7; outline-offset: 2px; }
a { color: var(--violet); text-underline-offset: 3px; }
.app-shell { min-height: 100vh; }
.muted { color: var(--muted); }
.eyebrow, .page-kicker, .section-kicker, .nav-caption { color: var(--violet); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

/* Login */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); background: #faf9fc; }
.login-story { position: relative; overflow: hidden; background: linear-gradient(138deg, #352143 0%, #573476 57%, #7653a0 100%); color: white; }
.login-story::before, .login-story::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; pointer-events: none; }
.login-story::before { width: 690px; height: 690px; right: -350px; top: -260px; box-shadow: 0 0 0 90px rgba(255,255,255,.035), 0 0 0 180px rgba(255,255,255,.025); }
.login-story::after { width: 260px; height: 260px; left: -120px; bottom: -120px; }
.login-story-inner { position: relative; z-index: 1; min-height: 100vh; padding: 48px clamp(34px, 6vw, 100px); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; }
.login-brand { width: 158px; padding: 12px; background: rgba(255,255,255,.96); border-radius: 22px; box-shadow: 0 18px 45px rgba(24, 12, 40, .16); }
.login-brand img { display: block; width: 100%; height: auto; }
.story-copy { max-width: 600px; margin: auto 0; }
.story-kicker, .story-foot { font-size: 11px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; color: #e0d2ec; }
.story-copy h2 { margin: 22px 0 18px; font-size: clamp(42px, 5vw, 72px); line-height: 1.04; letter-spacing: -.045em; font-weight: 760; }
.story-copy h2 em { color: #d9c3f0; font-style: normal; }
.story-copy p { max-width: 450px; margin: 0; font-size: 19px; color: #eee5f5; }
.login-entry { display: grid; place-items: center; padding: 32px; }
.login-card { width: min(430px, 100%); display: grid; gap: 17px; padding: 42px; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 28px 75px rgba(35, 21, 54, .085); }
.login-card h1 { margin: -2px 0 0; font-size: clamp(29px, 3vw, 38px); line-height: 1.15; letter-spacing: -.035em; }
.login-card > p.muted { margin: -4px 0 10px; }
.login-card label, .dialog label { display: grid; gap: 7px; color: #3d3148; font-size: 13px; font-weight: 700; }
.login-card input, .dialog input, .dialog select, .dialog textarea { width: 100%; min-width: 0; border: 1px solid #ded6e6; border-radius: 12px; padding: 12px 14px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 450; }
.login-card input { min-height: 49px; }
.login-card .primary { margin-top: 8px; display: flex; justify-content: space-between; align-items: center; }
.login-note { margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }

/* Main frame */
.layout { min-height: 100vh; display: grid; grid-template-columns: 254px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 28px 14px 18px; background: #fff; border-right: 1px solid var(--line); }
.brand { padding: 0 15px 28px; }
.brand img { display: block; width: 142px; max-width: 100%; height: auto; }
.brand span { display: block; margin-top: 8px; color: #8e7f9c; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.nav-caption { margin: 0 13px 12px; color: #9a8fa4; font-size: 10px; letter-spacing: .11em; }
.nav { display: grid; gap: 4px; }
.nav button { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 9px 13px; text-align: left; color: #544b5c; background: transparent; border-radius: 12px; font-size: 13px; font-weight: 610; line-height: 1.35; transition: background .15s, color .15s, transform .15s; }
.nav button:hover { background: #f5f0f8; color: var(--violet-dark); transform: translateX(2px); }
.nav button.active { background: var(--violet-dark); color: #fff; box-shadow: 0 8px 17px rgba(80, 42, 117, .17); }
.nav-icon { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 auto; font-size: 17px; font-weight: 500; line-height: 1; }
.nav-label { min-width: 0; }
.side-user { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 17px 11px 2px; border-top: 1px solid var(--line); }
.avatar { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; color: var(--violet); background: var(--lavender); font-size: 15px; font-weight: 800; }
.user-meta { min-width: 0; flex: 1; display: grid; }
.user-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.user-meta span { color: var(--muted); font-size: 11px; }
.side-user button { width: 28px; height: 28px; border-radius: 8px; color: var(--violet); background: #f7f3fa; font-size: 18px; }
.content { width: 100%; min-width: 0; max-width: 1700px; padding: 34px clamp(24px, 3vw, 48px) 60px; }
.topbar { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-heading { min-width: 0; }
.topbar h1 { margin: 3px 0 2px; font-size: clamp(27px, 2.5vw, 35px); line-height: 1.15; letter-spacing: -.035em; font-weight: 760; }
.topbar p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.search { width: min(330px, 32vw); min-height: 43px; flex: 0 0 auto; padding: 10px 14px 10px 39px; border: 1px solid var(--line); border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' fill='none' stroke='%23756d7e' stroke-width='1.6'%3E%3Ccircle cx='7.5' cy='7.5' r='5.4'/%3E%3Cpath d='m11.5 11.5 4 4'/%3E%3C/svg%3E") 13px 50% no-repeat; color: var(--ink); outline: none; }
.search:focus { border-color: #ae91c8; box-shadow: 0 0 0 3px rgba(133, 92, 174, .12); }
.mobile-logo, .mobile-nav { display: none; }

/* Shared components */
.grid { display: grid; gap: 16px; }
.grid > *, .split > * { min-width: 0; }
.card { min-width: 0; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.card h2 { margin: 0 0 13px; font-size: 18px; line-height: 1.25; letter-spacing: -.015em; }
.card h3 { margin: 0; font-size: 15px; }
.card p { overflow-wrap: anywhere; }
.primary, .secondary, .danger { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 9px 14px; border-radius: 10px; font-size: 13px; font-weight: 750; line-height: 1.3; text-align: center; transition: background .15s, transform .15s, box-shadow .15s; }
.primary { color: white; background: var(--violet); box-shadow: 0 6px 14px rgba(86, 48, 125, .12); }
.primary:hover { background: var(--violet-dark); transform: translateY(-1px); }
.secondary { color: var(--violet-dark); background: var(--lavender); }
.secondary:hover { background: #e5d8f0; }
.danger { color: var(--red); background: #fff0f3; }
.badge { display: inline-flex; align-items: center; width: max-content; max-width: 100%; min-height: 25px; padding: 3px 9px; border-radius: 999px; color: #665470; background: #f1edf3; font-size: 11px; font-weight: 750; line-height: 1.25; white-space: normal; }
.badge.green { color: var(--green); background: #e7f5ef; }
.badge.amber { color: var(--amber); background: #fff3df; }
.badge.red { color: var(--red); background: #fff0f2; }
.notice { margin-bottom: 16px; padding: 12px 15px; border: 1px solid #f0dcbb; border-radius: 12px; color: #755222; background: #fff9ee; font-size: 13px; }
.form-error, .notice.error { margin: 0; color: var(--red); font-size: 13px; }
.empty { padding: 36px 20px; border: 1px dashed #dcd2e5; border-radius: 12px; color: var(--muted); text-align: center; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.toolbar .search { width: auto; min-width: 190px; flex: 1 1 180px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* Overview */
.hero { position: relative; min-height: 252px; overflow: hidden; display: flex; align-items: stretch; justify-content: space-between; gap: 24px; padding: 30px 34px; border-radius: 22px; color: white; background: linear-gradient(114deg, #342044, #563578 62%, #7453a0); box-shadow: 0 20px 40px rgba(69, 38, 95, .14); }
.hero::before { content: ""; position: absolute; width: 500px; height: 500px; right: -150px; top: -265px; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.035), 0 0 0 130px rgba(255,255,255,.025); }
.hero::after { content: ""; position: absolute; width: 270px; height: 270px; left: 41%; bottom: -245px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; }
.hero-copy, .hero-stat { position: relative; z-index: 1; }
.hero-copy { max-width: 600px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; color: #e6d9f0; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #d6b1fa; box-shadow: 0 0 0 4px rgba(215, 177, 250, .15); }
.hero h2 { margin: 15px 0 10px; font-size: clamp(29px, 3vw, 44px); line-height: 1.08; letter-spacing: -.045em; font-weight: 760; }
.hero h2 em { color: #e3d0f4; font-style: normal; }
.hero p { max-width: 430px; margin: 0 0 18px; color: #e8def0; font-size: 14px; }
.hero button { display: inline-flex; align-items: center; gap: 18px; padding: 10px 14px; border-radius: 9px; color: var(--violet-dark); background: white; font-size: 12px; font-weight: 800; }
.hero button:hover { background: #f1e9f7; }
.hero-stat { width: 210px; min-width: 178px; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; padding: 20px 22px; border: 1px solid rgba(255,255,255,.2); border-radius: 17px; background: rgba(255,255,255,.095); backdrop-filter: blur(5px); }
.hero-stat span { color: #eee5f5; font-size: 12px; }
.hero-stat strong { font-size: clamp(65px, 6vw, 92px); line-height: .9; letter-spacing: -.07em; }
.hero-stat small { color: #e8def0; font-size: 11px; }
.metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.metric { position: relative; min-height: 133px; display: flex; flex-direction: column; justify-content: space-between; padding: 19px 23px 17px; }
.metric::before { content: ""; position: absolute; top: 20px; right: 22px; width: 30px; height: 4px; border-radius: 4px; background: #d6bfe9; }
.metric span { max-width: calc(100% - 36px); color: var(--muted); font-size: 12px; font-weight: 650; }
.metric b { font-size: 38px; line-height: 1; letter-spacing: -.055em; }
.metric small { color: var(--muted); font-size: 11px; }
.two-col { grid-template-columns: minmax(0, 1.4fr) minmax(300px, .95fr); margin-top: 16px; align-items: stretch; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-heading h2 { margin: 3px 0 0; }
.section-kicker { color: #a28bb5; font-size: 10px; }
.section-index { color: #aa9eaf; font-size: 10px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.journey-card, .readiness-card { min-height: 204px; }
.workflow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; width: 100%; min-width: 0; }
.stage { min-width: 0; min-height: 65px; display: grid; place-items: center; padding: 9px 5px; border-radius: 10px; color: #513e60; background: #f5f0f8; font-size: 11px; font-weight: 680; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.stage.done { color: var(--green); background: #e9f5ef; }
.stage.current { color: var(--violet-dark); background: #e9dff1; }
.journey-card > p { margin: 15px 0 0; font-size: 12px; }
.readiness { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.readiness > div { min-width: 0; padding: 10px 12px; border: 1px solid #f0eaf3; border-radius: 10px; background: #fbf9fc; }
.readiness b { display: block; font-size: 12px; font-weight: 750; overflow-wrap: anywhere; }
.readiness small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; }
.list { display: grid; }
.row { min-width: 0; display: grid; grid-template-columns: minmax(88px, .8fr) minmax(95px, 1fr) minmax(88px, auto) minmax(82px, auto) auto; align-items: center; gap: 9px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.row:last-child { border-bottom: 0; }
.row b { color: #30203e; font-size: 13px; font-weight: 760; overflow-wrap: anywhere; }
.row span:not(.badge) { min-width: 0; overflow-wrap: anywhere; }
.row > button { justify-self: end; padding: 5px 0; color: var(--violet); background: transparent; font-size: 12px; font-weight: 750; white-space: nowrap; }
.row > button:hover { color: var(--violet-dark); }
.b2b-card > p { margin: 0 0 19px; font-size: 13px; }
.b2b-card > strong { display: inline-flex; padding: 9px 11px; border-radius: 9px; color: var(--violet-dark); background: var(--lavender); font-size: 12px; }

/* Records and forms */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 350px; align-items: start; gap: 16px; }
.table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.table th { padding: 9px 8px 11px; color: #92879b; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-align: left; text-transform: uppercase; }
.table td { padding: 13px 8px; border-top: 1px solid var(--line); color: #463b50; font-size: 12px; vertical-align: top; overflow-wrap: anywhere; }
.table td b { color: var(--ink); font-size: 13px; }
.table td small { color: var(--muted); font-size: 11px; }
.table tr[data-open-order], .table tr:has(button) { cursor: pointer; }
.table tbody tr:hover { background: #fbf8fd; }
.table .badge { font-size: 10px; }
.table td .secondary { min-height: 32px; padding: 6px 9px; font-size: 11px; }
.drawer { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: thin; }
.detail-head { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.detail-head > div { min-width: 0; }
.detail-head h2 { margin: 4px 0 0; font-size: 23px; overflow-wrap: anywhere; }
.detail-head .badge { flex: 0 0 auto; }
.detail-list { display: grid; margin: 17px 0 0; }
.detail-list > div { min-width: 0; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.detail-list label { display: block; margin-bottom: 3px; color: var(--muted); font-size: 11px; font-weight: 600; }
.drawer .actions { gap: 7px; margin-top: 20px; }
.drawer .actions button { flex: 1 1 auto; }
.dialog { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: rgba(26, 16, 36, .53); backdrop-filter: blur(4px); }
.dialog form { width: min(510px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; display: grid; gap: 14px; padding: 27px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 35px 100px rgba(21, 12, 32, .25); }
.dialog h2 { margin: 0 0 3px; font-size: 22px; line-height: 1.2; }
.dialog textarea { min-height: 82px; resize: vertical; }
.dialog .actions { justify-content: flex-end; margin-top: 6px; }
.health-row { display: flex; align-items: center; gap: 10px; }
.health-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--green); }
.health-dot.bad { background: var(--red); }

@media (max-width: 1240px) {
  .content { padding: 28px 26px 48px; }
  .two-col { grid-template-columns: minmax(0, 1fr) minmax(280px, .85fr); }
  .row { grid-template-columns: minmax(80px, .8fr) minmax(90px, 1fr) auto auto; }
  .row > span.muted { display: none; }
}

@media (max-width: 1050px) {
  .layout { grid-template-columns: 215px minmax(0, 1fr); }
  .sidebar { padding-left: 10px; padding-right: 10px; }
  .nav button { font-size: 12px; gap: 8px; }
  .two-col { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .drawer { position: static; max-height: none; }
  .workflow { grid-template-columns: repeat(7, minmax(86px, 1fr)); overflow-x: auto; }
}

@media (max-width: 800px) {
  .layout { display: block; }
  .sidebar { display: none; }
  .content { padding: 24px 22px 90px; }
  .mobile-logo { display: block; width: 53px; height: 53px; object-fit: contain; flex: 0 0 auto; }
  .mobile-nav { position: fixed; z-index: 4; left: 0; right: 0; bottom: 0; display: flex; align-items: stretch; gap: 4px; overflow-x: auto; padding: 7px max(12px, env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 -8px 22px rgba(40, 22, 55, .04); scrollbar-width: none; }
  .mobile-nav button { min-width: 86px; flex: 0 0 auto; display: grid; justify-items: center; align-content: center; gap: 3px; padding: 5px 7px; border-radius: 10px; color: var(--muted); background: transparent; line-height: 1.15; }
  .mobile-nav button.active { color: var(--violet-dark); background: var(--lavender); }
  .mobile-nav button > span { font-size: 17px; }
  .mobile-nav button > small { font-size: 10px; font-weight: 650; white-space: nowrap; }
  .login-page { grid-template-columns: 1fr; }
  .login-story-inner { min-height: 310px; }
  .login-entry { padding: 26px; }
}

@media (max-width: 620px) {
  .content { padding: 17px 15px 92px; }
  .topbar { align-items: flex-start; gap: 9px; margin-bottom: 19px; }
  .topbar h1 { font-size: 26px; }
  .topbar p { font-size: 12px; }
  .page-kicker { font-size: 9px; }
  .mobile-logo { width: 40px; height: 40px; }
  .topbar > .search { width: 42px; min-width: 42px; flex: 0 0 42px; padding: 10px; color: transparent; background-position: center; }
  .topbar > .search::placeholder { color: transparent; }
  .topbar > .search:focus { width: min(145px, 42vw); flex-basis: min(145px, 42vw); padding-left: 34px; color: var(--ink); }
  .topbar > .search:focus::placeholder { color: var(--muted); }
  .hero { min-height: 0; flex-direction: column; padding: 25px; gap: 18px; }
  .hero h2 { font-size: 33px; }
  .hero p { font-size: 13px; }
  .hero-stat { width: 100%; min-height: 98px; flex-direction: row; align-items: center; gap: 8px; padding: 15px 17px; }
  .hero-stat strong { order: -1; font-size: 55px; }
  .hero-stat small { display: none; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { min-height: 145px; gap: 8px; padding: 17px; }
  .metric b { font-size: 32px; }
  .metric:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .card { padding: 19px; }
  .readiness { grid-template-columns: 1fr 1fr; }
  .workflow { grid-template-columns: repeat(7, 91px); }
  .row { grid-template-columns: minmax(78px, .8fr) minmax(94px, 1fr) auto; gap: 7px; }
  .row > .badge, .row > span.muted { display: none; }
  .table th:nth-child(3), .table td:nth-child(3), .table th:nth-child(4), .table td:nth-child(4) { display: none; }
  .dialog { padding: 10px; }
  .dialog form { max-height: calc(100vh - 20px); padding: 20px; }
  .login-story-inner { min-height: 260px; padding: 24px; }
  .login-brand { width: 88px; padding: 7px; border-radius: 13px; }
  .story-copy { margin: 12px 0 0; }
  .story-copy h2 { margin: 6px 0; font-size: 32px; }
  .story-copy p { font-size: 13px; }
  .story-kicker, .story-foot { font-size: 9px; }
  .login-entry { padding: 0 14px 24px; }
  .login-card { margin-top: -18px; padding: 27px 23px; gap: 14px; border-radius: 22px; }
}

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

.intake-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.intake-heading h3 { margin:0; }
.intake-item { display:grid; gap:12px; border:1px solid var(--line); border-radius:14px; padding:14px; margin-top:12px; }
.intake-item textarea { min-height:60px; }
.intake-item [data-signed-fields], .intake-item [data-courier-sent], .intake-item [data-courier-response] { display:grid; gap:12px; }
.intake-item [hidden], .dialog [hidden] { display:none !important; }
#new-order-form { width:min(620px,100%); }

#new-order-form section {display:grid;gap:12px} .customer-step {border:1px solid var(--line);border-radius:12px;padding:14px;margin:12px 0;overflow-wrap:anywhere} .customer-step summary {cursor:pointer;font-weight:700} .customer-step summary small {display:block;color:var(--muted);font-weight:400;margin:5px 0} .customer-step button {margin-top:8px} .journey-contact {margin-top:20px} .next-step {padding:16px;border-radius:14px;background:#eee7f8;margin:18px 0} .next-step p {margin-bottom:0} .contract-preview {background:white;border-radius:20px;padding:28px;width:min(850px,100%);max-height:90vh;overflow:auto;overflow-wrap:anywhere} .contract-preview h1{font-size:24px} .contract-preview p{white-space:pre-wrap}

@media (min-width:1200px) { .split {grid-template-columns:minmax(280px,.85fr) minmax(400px,1.15fr)} }

.client-card {padding:18px 0;border-bottom:1px solid var(--line)} .client-card .actions{margin-top:12px;flex-wrap:wrap}

.client-results{max-height:260px;overflow:auto;border:1px solid var(--line,#ddd);padding:12px;border-radius:10px}.client-results button{display:block;width:100%;text-align:left;margin:6px 0;white-space:normal}.intake-file{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0}.intake-file span{overflow-wrap:anywhere;min-width:0}.intake-file button{flex-shrink:0}

.order-detail{max-width:980px;margin:18px auto}.order-detail .drawer{position:static;max-height:none;overflow:visible}.order-detail .next-step button{margin-top:14px}.order-detail .customer-step{scroll-margin-top:20px}

.task-count{margin-left:auto;background:#eee5f8;color:#56337d;border-radius:20px;padding:2px 8px;font-weight:700}.work-clients{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}.work-client{display:flex;flex-direction:column;gap:10px;align-items:flex-start;text-align:left;background:#faf7fe;color:var(--text,#30283b);border:1px solid #dfd5eb;border-radius:16px;padding:20px;overflow-wrap:anywhere}.work-client b{font-size:20px}.work-client span{font-weight:400}.work-client strong{color:#644087}.work-detail{max-width:980px;margin:20px auto}.work-task{border:1px solid #e2d9ec;border-radius:14px;padding:20px;margin:18px 0}.work-task button{margin:8px 8px 8px 0}.work-item{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid #eee}.work-item span{color:var(--muted)}.required-mark{color:#b52236;font-weight:800}.work-task details{margin-top:14px}.nav-label{white-space:normal}

.contact-window{display:grid;grid-template-columns:1fr 1fr;gap:16px}input[type=checkbox]{width:22px;height:22px;display:inline-block;margin:8px;vertical-align:middle}.dialog input[type=file]{white-space:normal;max-width:100%}

.dialog label[hidden]{display:none}

.table-scroll{overflow-x:auto}.b2b-finance{margin-top:22px}.b2b-finance summary{cursor:pointer}.metric b{overflow-wrap:anywhere}

.closed-report{max-width:1050px;margin:auto}.report-timeline{padding-left:26px}.report-timeline li{padding:12px 0 12px 12px;border-bottom:1px solid #e8e1ee}.report-event{padding:12px 0;border-bottom:1px solid #e8e1ee}.closed-report .metric b{font-size:24px}
.batch-lines-metrics .metric b { font-size:clamp(1.15rem,2.5vw,1.5rem); line-height:1.25; overflow-wrap:anywhere; }
