:root {
  color-scheme: light;
  font-family: Inter, 'Segoe UI', system-ui, sans-serif;
  --surface: #fff;
  --canvas: #f8f7fb;
  --ink: #211931;
  --muted: #6d647b;
  --line: #ebe7f0;
  --violet: #6841d9;
  --violet-dark: #5730c7;
  --violet-soft: #eee8ff;
  --mint: #e6f6ee;
  --green: #1b7554;
  --amber-soft: #fff1d9;
  --amber: #8c510c;
}

*, *::before, *::after { box-sizing: border-box; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: inherit; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 2px solid #8b69eb; outline-offset: 3px; }
[hidden], .symbols { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

.layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100dvh; min-height: 430px; padding: 28px 17px 16px; background: var(--surface); border-right: 1px solid var(--line); }
.brand { display: inline-flex; gap: 10px; align-items: center; align-self: flex-start; margin: 0 0 53px 11px; text-decoration: none; font-size: 1.49rem; font-weight: 750; letter-spacing: -.065em; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; background: linear-gradient(150deg,#8962f0,#6437db); color: #fff; border-radius: 10px; box-shadow: 0 3px 8px #6f43dd36, inset 0 1px #ffffff44; }
.brand-mark .icon { width: 22px; height: 22px; stroke-width: 1.9; }
.brand-dot { color: var(--violet); }
.nav-label { margin: 0 0 10px 12px; color: #766c86; font-size: .75rem; font-weight: 700; letter-spacing: .085em; text-transform: uppercase; }
.navigation { display: grid; gap: 3px; }
.navigation a, .navigation button { display: flex; gap: 11px; align-items: center; width: 100%; min-height: 43px; padding: 8px 11px; border: 1px solid transparent; border-radius: 8px; color: #625971; background: transparent; text-align: left; text-decoration: none; font-size: .9rem; font-weight: 600; }
.navigation a:hover, .navigation button:hover { background: #f7f4fe; color: var(--violet-dark); }
.navigation [aria-current='page'] { background: #f0ebff; color: #6137cb; border-color: #eae1ff; }
.navigation .icon { width: 17px; height: 17px; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid var(--line); padding-top: 13px; }
.profile { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 6px; border: 0; border-radius: 8px; background: transparent; text-align: left; }
.profile:hover { background: #f7f4fe; }
.avatar { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 auto; border-radius: 50%; background: #ede3ff; color: #6635b6; font-size: .75rem; font-weight: 750; }
.profile-text { display: grid; min-width: 0; gap: 2px; }
.profile-text strong, .profile-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-text strong { font-size: .83rem; }
.profile-text small { color: var(--muted); font-size: .75rem; }
.profile-more { width: 16px; margin-left: auto; color: #766d84; }

.topbar { height: 65px; padding: 0 clamp(24px, 3.2vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #eeeaf3; background: #fbfafd; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .875rem; }
.breadcrumbs .icon { width: 13px; height: 13px; color: #9e94af; }
.breadcrumbs strong { color: var(--ink); font-weight: 650; }
.mode-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid #e9e2f3; border-radius: 100px; background: #fff; color: #695b7d; font-size: .78rem; font-weight: 650; white-space: nowrap; }
.mode-chip:hover { border-color: #cebaff; color: var(--violet-dark); }
.mode-chip .icon { width: 13px; height: 13px; color: #7954ce; }
.workspace-session-actions { display: flex; align-items: center; gap: 8px; }
.workspace-session-actions > .button { min-height: 30px; padding: 5px 8px; font-size: .76rem; white-space: nowrap; }
.main { width: min(100%, 1392px); margin: 0 auto; padding: 29px clamp(24px, 3.2vw, 48px) 44px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.page-heading h1 { margin: 0 0 4px; font-size: clamp(2rem, 3.2vw, 2.65rem); line-height: 1.12; letter-spacing: -.056em; font-weight: 760; }
.page-heading p, .section-heading p { color: var(--muted); margin: 7px 0 0; line-height: 1.5; }
.heading-actions { display: flex; gap: 9px; align-items: center; padding-bottom: 2px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; width: fit-content; min-height: 40px; padding: 8px 13px; border: 1px solid transparent; border-radius: 8px; font-weight: 680; font-size: .875rem; line-height: 1.2; white-space: nowrap; text-decoration: none; }
.button .icon { width: 16px; height: 16px; }
.button.primary { background: var(--violet); border-color: #623acf; color: white; box-shadow: 0 2px 4px #5631bf36, inset 0 1px #ffffff26; }
.button.primary:hover { background: var(--violet-dark); }
.button.secondary { border-color: #e5dfed; background: var(--surface); }
.button.secondary:hover { border-color: #c8b6f1; background: #fdfbff; color: var(--violet-dark); }
.button.danger { border-color: #f0d6de; background: #fff; color: #a62d4e; }
.button.danger:hover { background: #fff1f4; }

.deadline-card { position: relative; isolation: isolate; overflow: hidden; min-height: 206px; padding: 24px 29px 25px; border-radius: 14px; color: white; background: linear-gradient(108deg,#261846 4%,#2e1c56 48%,#4d2c88 100%); box-shadow: 0 3px 8px #2e1a4b17, inset 0 1px #ffffff11; }
.deadline-content { position: relative; z-index: 1; width: fit-content; max-width: 75%; }
.deadline-label { display: flex; align-items: center; gap: 8px; color: #d9c6ff; font-size: .75rem; font-weight: 720; letter-spacing: .095em; text-transform: uppercase; }
.deadline-label .icon { width: 16px; height: 16px; }
.deadline-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 15px; margin-top: 8px; }
.deadline-heading h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.29rem); line-height: 1.13; font-weight: 740; letter-spacing: -.049em; }
.days { padding: 5px 9px; border: 1px solid #b185ff46; border-radius: 6px; background: #a574ef27; color: #f0e3ff; font-weight: 680; font-size: .79rem; white-space: nowrap; }
.email-route { display: flex; align-items: center; gap: 12px; margin-top: 21px; }
.email-address { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 12px; border: 1px solid #e6d4ff2c; border-radius: 8px; background: #dac1ff13; }
.email-address .icon { width: 17px; height: 17px; color: #d8bdff; }
.email-address div { display: grid; min-width: 0; gap: 2px; }
.email-address span { color: #d5c6e9; font-size: .75rem; line-height: 1.15; }
.email-address strong { overflow-wrap: anywhere; color: #fbf8ff; font-size: .875rem; line-height: 1.22; font-weight: 650; }
.route-icon { width: 16px; height: 16px; color: #c7abea; }
.deadline-edit { position: absolute; z-index: 2; right: 13px; top: 13px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #e9d8ff36; border-radius: 8px; color: #f3e7ff; background: #1f103843; }
.deadline-edit:hover { background: #ad7cff45; }
.deadline-art { position: absolute; z-index: 0; inset: 0 0 0 auto; width: min(48%, 480px); overflow: hidden; pointer-events: none; }
.art-glow { position: absolute; width: 108%; height: 160%; top: -26%; right: -22%; background: radial-gradient(ellipse, #a570ff55, #854fd321 42%, transparent 71%); }
.orbit { position: absolute; width: 85%; height: 69%; top: 19%; right: 4%; border: 1px solid #caa5ff44; border-radius: 50%; transform: rotate(-23deg); }
.orbit-two { width: 106%; height: 91%; top: 3%; right: -8%; border-color: #caa5ff30; }
.orbit-three { width: 127%; height: 121%; top: -10%; right: -18%; border-color: #caa5ff20; }
.envelope { position: absolute; display: block; width: 112px; height: 76px; border-radius: 11px; overflow: hidden; transform-origin: center; }
.envelope span { position: absolute; inset: -43px 6px auto; height: 96px; transform: rotate(45deg) skew(-5deg,-5deg); border-radius: 15px; }
.envelope-back { top: 44px; right: 40%; transform: rotate(-21deg); border: 1px solid #e1c4ff8c; background: linear-gradient(145deg,#ba91fe60,#a26ce047); box-shadow: 0 10px 20px #1d0b433b; }
.envelope-back span { border: 1.5px solid #e0c6ff82; background: #b995f822; }
.envelope-front { top: 74px; right: 30%; transform: rotate(15deg); border: 1px solid #edd8ff; background: linear-gradient(145deg,#d8b9ff,#9b70ee); box-shadow: 0 18px 26px #1a083b66; }
.envelope-front span { border: 1.5px solid #f6ebffb8; background: linear-gradient(160deg,#f2e1ff,#c198ff 63%,#b185f3); box-shadow: 4px 5px 12px #5a2d9b29; }
.art-check { position: absolute; top: 126px; right: 27%; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #d0b1ff; border-radius: 50%; color: #fff; background: linear-gradient(145deg,#9e72fc,#6a37ce); box-shadow: 0 5px 13px #26124a6b, inset 0 1px #fff4; transform: rotate(-8deg); }
.art-check .icon { width: 19px; height: 19px; stroke-width: 2.1; }
.art-dot { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #d4b5ff; box-shadow: 0 0 9px #dfc3ffb3; }
.art-dot-one { top: 56%; right: 79%; }.art-dot-two { top: 79%; right: 61%; opacity: .55; }.art-dot-three { top: 20%; right: 18%; opacity: .7; }
.star { position: absolute; width: 15px; height: 15px; background: #d8b8ff; clip-path: polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%); }
.star-one { top: 18%; right: 30%; }.star-two { top: 59%; right: 15%; width: 10px; height: 10px; }.star-three { top: 33%; right: 72%; width: 9px; height: 9px; opacity: .7; }

.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-top: 16px; }
@media (min-width: 851px) { .metrics.cleanup-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); } }
.metric { position: relative; display: flex; align-items: flex-start; gap: 11px; width: 100%; min-height: 91px; padding: 15px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); text-align: left; box-shadow: 0 1px 2px #39265907; }
.metric:hover { border-color: #ccbbf1; box-shadow: 0 3px 12px #52309213; }
.metric-icon { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 auto; border-radius: 8px; background: var(--violet-soft); color: #6940cb; }
.metric-icon .icon { width: 17px; height: 17px; }
.tone-closed { color: var(--green); background: var(--mint); }
.tone-moved { color: #6140bc; background: #eee8ff; }
.tone-approval { color: var(--amber); background: var(--amber-soft); }
.metric-copy { display: grid; gap: 4px; padding-top: 1px; }
.metric-copy strong { color: var(--ink); font-size: 1.65rem; line-height: 1; letter-spacing: -.056em; }
.metric-copy span { color: var(--muted); font-size: .875rem; font-weight: 610; }

.queue { margin-top: 27px; }
.queue.is-primary { margin-top: 0; }
.queue.is-primary .section-heading { display: none; }
.section-heading { margin-bottom: 13px; }
.section-heading h2 { margin: 0; font-size: 1.31rem; font-weight: 740; line-height: 1.2; letter-spacing: -.031em; }
.section-heading p { margin-top: 4px; font-size: .875rem; }
.table-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 1px 3px #39265908; overflow: hidden; }
.table-toolbar { display: flex; align-items: center; gap: 12px 15px; justify-content: space-between; padding: 10px 13px; }
.tabs, .table-controls { display: flex; align-items: center; gap: 5px; }
.tabs { min-width: 0; overflow-x: auto; scrollbar-width: thin; padding: 2px; }
.tab { display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 8px; border: 1px solid transparent; border-radius: 7px; color: var(--muted); background: transparent; white-space: nowrap; font-size: .825rem; font-weight: 650; }
.tab:hover { color: var(--violet-dark); background: #f8f5ff; }
.tab[aria-pressed='true'] { border-color: #e8dfff; background: #f0eaff; color: #6137c4; }
.tab-count { display: inline-grid; place-items: center; min-width: 18px; height: 17px; padding: 0 4px; border-radius: 4px; background: #f1eef5; color: #6b607b; font-size: .75rem; line-height: 1; }
.tab[aria-pressed='true'] .tab-count { background: #e4d8ff; color: #5933ba; }
.table-controls { gap: 8px; }
.search-box, .type-filter { position: relative; display: flex; align-items: center; gap: 7px; min-height: 35px; border: 1px solid #e8e3ef; border-radius: 7px; color: #766b86; background: white; }
.search-box { width: 166px; padding: 0 8px; }
.search-box:focus-within, .type-filter:focus-within { border-color: #9b78ed; }
.search-box .icon, .type-filter .icon { width: 15px; height: 15px; }
.search-box input { width: 100%; min-width: 0; padding: 7px 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .825rem; }
.search-box input::placeholder { color: #786e87; }
.type-filter > .icon { position: absolute; left: 8px; pointer-events: none; }
.type-filter .filter-chevron { left: auto; right: 6px; width: 14px; }
.type-filter select { width: 82px; max-width: 145px; min-height: 33px; appearance: none; padding: 6px 21px 6px 27px; border: 0; border-radius: 7px; outline: 0; background: transparent; color: var(--ink); font-size: .825rem; font-weight: 620; cursor: pointer; }
.type-filter:has(select:not([data-default='true'])) select { width: 143px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 633px; border-collapse: collapse; text-align: left; }
.has-company-actions { min-width: 810px; }
.queue-request-hint { margin: 0; padding: 7px 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; line-height: 1.4; }
.queue-request-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 15px 9px 17px; border-top: 1px solid #eadfff; background: #f7f2ff; color: #563592; font-size: .9rem; font-weight: 680; }
.queue-request-toolbar .button { min-height: 36px; }
.queue-company-action { width: min(37%, 340px); }
.queue-company-action small { display: block; margin-top: 3px; color: var(--muted); }
.queue-case-link { color: var(--violet-dark); font-weight: 650; }
.queue-selected, .queue-selected:hover { background: #f9f5ff; }
th, td { padding: 10px 12px; border-top: 1px solid var(--line); }
th:first-child, td:first-child { padding-left: 17px; }
th:last-child, td:last-child { padding-right: 15px; }
th { background: #faf9fc; color: #6c627d; font-size: .78rem; font-weight: 680; white-space: nowrap; }
td { font-size: .875rem; }
tbody tr:hover { background: #fcfaff; }
.account-button { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 0; border: 0; border-radius: 4px; background: transparent; text-align: left; }
.account-button:hover strong { color: var(--violet-dark); }
.service-icon { display: grid; place-items: center; flex: 0 0 auto; width: 33px; height: 33px; border-radius: 8px; font-weight: 800; font-size: .94rem; letter-spacing: -.04em; background: #eee7fa; color: #6542a0; }
.service-icon-spotify { background: #def6e8; color: #14884b; }
.service-icon-groupon { background: #e8f6db; color: #38751d; }
.service-icon-chase { background: #e4effe; color: #1765ac; }
.service-icon-dropbox { background: #e4edff; color: #1964dc; }
.service-icon-meetup { background: #fce5ee; color: #c6255a; }
.service-icon-apple { background: #edeaf0; color: #37313f; }
.service-icon-figma { background: #f5e7ff; color: #843bb3; }
.service-icon-etsy { background: #ffead9; color: #b4511d; }
.service-icon-strava { background: #ffe8dc; color: #bd471c; }
.service-icon-github { background: #eeedf2; color: #403650; }
.service-icon-pinterest { background: #fce7ec; color: #b42a49; }
.service-icon-one-password { background: #e4efff; color: #245cba; }
.service-icon .icon { width: 18px; height: 18px; }
.account-name { display: grid; gap: 2px; }
.account-name strong { font-weight: 700; overflow-wrap: anywhere; }
.account-name small, .updated { color: var(--muted); }
.account-name small { font-size: .75rem; overflow-wrap: anywhere; }
.workstream { display: flex; align-items: center; gap: 6px; color: #5d536e; font-weight: 550; white-space: nowrap; }
.workstream .icon { width: 14px; height: 14px; color: #8a74b0; }
.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 23px; padding: 3px 7px; border-radius: 6px; font-size: .78rem; font-weight: 680; line-height: 1.2; white-space: nowrap; }
.badge .icon { width: 13px; height: 13px; }
.tone-todo, .tone-ready { background: #f0edf5; color: #645775; }
.updated { white-space: nowrap; font-size: .825rem; }
.row-action, .icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #776c88; }
.row-action:hover, .icon-button:hover:not(:disabled) { border-color: #e8defb; background: #f5efff; color: var(--violet-dark); }
.row-action .icon, .icon-button .icon { width: 16px; height: 16px; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px 8px 17px; min-height: 47px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.pagination { display: flex; align-items: center; gap: 5px; }
.pagination .icon-button { width: 28px; height: 28px; border-color: var(--line); }
.empty-row { padding: 31px 16px !important; color: var(--muted); text-align: center; }

.record-banner { display: flex; align-items: flex-start; gap: 12px; padding: 17px; border: 1px solid #e6dcf9; border-radius: 11px; background: #f2ecfe; }
.record-banner h2 { margin: 0; font-size: 1rem; }
.record-banner p { margin: 4px 0 0; color: #615473; line-height: 1.45; }
.record-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 15px; }
.record-group { min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: white; }
.record-group h2 { display: flex; align-items: center; gap: 9px; margin: 0; padding: 13px; border-bottom: 1px solid var(--line); font-size: 1rem; }
.record-group .record-count { margin-left: auto; color: var(--muted); }
.record-group ul { list-style: none; padding: 0; margin: 0; }
.record-item { padding: 11px 13px; overflow-wrap: anywhere; }
.record-item + .record-item { border-top: 1px solid var(--line); }
.record-item > button { padding: 0; border: 0; border-radius: 3px; background: transparent; text-align: left; font-weight: 700; }
.record-item > button:hover { color: var(--violet-dark); }
.record-item p { margin: 4px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.45; }

dialog { width: min(515px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid #e8dff3; border-radius: 15px; box-shadow: 0 24px 80px #1e10344d; color: var(--ink); }
dialog::backdrop { background: #21163378; backdrop-filter: blur(2px); }
.dialog-header { display: flex; justify-content: space-between; gap: 12px; padding: 20px 21px 0; }
.dialog-header h2 { margin: 0; font-size: 1.42rem; letter-spacing: -.037em; }
.dialog-header p, .dialog-note, .approval-note { margin: 5px 0 0; color: var(--muted); line-height: 1.45; font-size: .875rem; }
.dialog-header .icon-button { flex: 0 0 auto; }
.dialog-body { display: grid; gap: 12px; padding: 16px 21px 19px; }
.dialog-actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px; padding: 13px 21px; border-top: 1px solid var(--line); background: #fbfafd; }
.dialog-actions .push-start { margin-right: auto; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; align-content: start; gap: 5px; min-width: 0; font-size: .875rem; font-weight: 650; }
.request-choices { min-width: 0; margin: 0; padding: 0; border: 0; }
.request-choices legend { padding: 0; font-size: .875rem; font-weight: 680; }
.request-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.request-choice:has(input[value="closure_and_erasure"]) { grid-column: 1 / -1; }
.request-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 40px;
  padding: 6px 8px;
  border: 1px solid #e6dfef;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: .875rem;
  line-height: 1.25;
  cursor: pointer;
}
.request-choice input { width: 16px; height: 16px; margin: 0; accent-color: var(--violet); cursor: inherit; }
.request-choice-copy { min-width: 0; overflow-wrap: anywhere; }
.request-choice-title { font-weight: 640; }
.request-choice:hover { border-color: #c8b6f1; background: #fcf9ff; }
.request-choice:has(input:checked) { border-color: #916ee4; background: #f1ebff; color: var(--violet-dark); }
.request-choice:has(input:focus-visible) { outline: 2px solid var(--violet); outline-offset: 2px; }
.request-choice:has(input:focus-visible) input { outline: 0; }
.request-choice:has(input:disabled) { border-color: var(--line); background: #f6f4f8; color: var(--muted); cursor: default; }
.request-choices--compact { max-width: 29rem; }
.request-choices--detailed legend { margin-bottom: 7px; }
.request-choices--detailed .dialog-note { margin: 0 0 8px; }
.request-choices--detailed .request-choice { min-height: 48px; gap: 9px; padding: 10px; }
.request-choice-clear {
  display: block;
  min-height: 36px;
  margin-top: 2px;
  padding: 4px 5px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--violet-dark);
  font-size: .875rem;
  font-weight: 630;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.request-choice-clear:hover { background: #eee6ff; }
@media (max-width: 470px) {
  .request-choices--detailed .request-choice-grid { grid-template-columns: 1fr; }
  #dialog-form:has(.request-choices--detailed) .dialog-actions { position: sticky; z-index: 1; bottom: 0; }
}
.field input, .field select, .field textarea { min-width: 0; width: 100%; min-height: 38px; padding: 8px 9px; border: 1px solid #e2daed; border-radius: 7px; background: #fff; color: var(--ink); font-size: .9rem; font-weight: 450; }
.field textarea { min-height: 61px; resize: vertical; }
.field select { appearance: none; padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23776a8a' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.7'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 7px center; }
.approval-note { padding: 9px 10px; color: #704610; background: #fff4df; border: 1px solid #f5e2bf; border-radius: 7px; }
.approval-note.approved { color: #23644d; background: #edf8f1; border-color: #cfeadd; }
.form-error { margin: 0; color: #9e2546; font-size: .875rem; }
.toast { position: fixed; z-index: 6; right: 18px; bottom: 17px; width: max-content; max-width: calc(100vw - 36px); padding: 11px 15px; border: 1px solid #654c8b; border-radius: 9px; color: white; background: #30204b; box-shadow: 0 8px 28px #20123c30; font-size: .9rem; }

@media (max-width: 1170px) {
  .layout { grid-template-columns: 198px minmax(0,1fr); }
  .tab { padding-inline: 5px; }
  .search-box { width: 145px; }
  .table-toolbar { gap: 8px; }
}

@media (max-width: 1000px) {
  .layout { grid-template-columns: 66px minmax(0,1fr); }
  .sidebar { padding: 16px 8px 11px; }
  .brand { margin: 0 auto 35px; }
  .brand > span:last-child, .nav-label, .navigation span, .profile-text, .profile-more { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .navigation a, .navigation button, .profile { justify-content: center; }
  .navigation .icon { width: 19px; height: 19px; }
}

@media (max-width: 760px) {
  .topbar { height: auto; min-height: 53px; padding: 6px 16px; flex-wrap: wrap; gap: 6px 12px; }
  .breadcrumbs { min-width: 0; gap: 6px; }
  .workspace-session-actions { min-width: 0; margin-inline-start: auto; flex-wrap: wrap; }
  .main { padding: 21px 16px 32px; }
  .page-heading { flex-wrap: wrap; margin-bottom: 16px; }
  .page-heading > div { min-width: 0; max-width: 100%; }
  .heading-actions { flex-wrap: wrap; }
  .deadline-card { padding: 18px; }
  .deadline-content { max-width: 89%; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .metric { min-height: 70px; padding: 10px; }
  .metric-copy strong { font-size: 1.45rem; }
  .table-toolbar { align-items: flex-start; flex-direction: column; }
  .tabs { max-width: 100%; }
  .table-controls { width: 100%; }
  .search-box { flex: 1; }
}

@media (max-width: 550px) {
  .layout { display: block; }
  .sidebar { position: sticky; z-index: 4; flex-direction: row; align-items: center; justify-content: space-between; height: 55px; min-height: 0; padding: 0 11px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { margin: 0; }
  .brand-mark { width: 33px; height: 33px; }
  .navigation { display: flex; }
  .navigation a, .navigation button { width: 40px; min-height: 38px; padding: 6px; }
  .sidebar-bottom { display: none; }
  .topbar { min-height: 42px; }
  .main { padding-top: 16px; }
  .page-heading p { font-size: .95rem; }
  .deadline-card { min-height: 0; padding: 16px 13px; }
  .deadline-content { max-width: 100%; }
  .deadline-art { width: 45%; opacity: .4; }
  .envelope { transform: scale(.66) rotate(10deg); right: 3%; }
  .envelope-back { right: 19%; }
  .art-check { display: none; }
  .deadline-edit { right: 8px; top: 8px; }
  .email-route { flex-wrap: wrap; gap: 5px; margin-top: 13px; }
  .email-address { padding: 6px; gap: 5px; }
  .email-address .icon, .route-icon { width: 12px; }
  .email-address strong { font-size: .78rem; }
  .record-groups { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
}

.site-front {
  --front-paper: #fbf9f6;
  --front-ink: #241a35;
  min-height: 100vh;
  color: var(--front-ink);
  background: var(--front-paper);
}
.front-container { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.front-header { border-bottom: 1px solid #e9e3eb; background: #fdfbf9; }
.front-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; min-height: 73px; }
.front-brand { margin: 0; align-self: center; justify-self: start; }
.front-brand > span:last-child { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
.front-brand .brand-mark { width: 36px; height: 36px; }
.front-links, .front-nav-actions { display: flex; align-items: center; gap: 26px; }
.front-nav-actions { justify-self: end; gap: 15px; }
.front-links a, .front-workspace-link, .front-footer-links a { border-radius: 4px; color: #635771; font-size: .9rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.front-links a:hover, .front-workspace-link:hover, .front-footer-links a:hover { color: var(--violet-dark); text-decoration: underline; text-underline-offset: 4px; }
.front-button { min-height: 48px; padding: 10px 16px; border-radius: 8px; font-size: .925rem; }
.front-nav-signup { min-height: 38px; padding: 8px 15px; }
.front-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .98fr); align-items: center; gap: clamp(28px, 5vw, 68px); padding-top: clamp(37px, 6vw, 83px); padding-bottom: clamp(37px, 6vw, 73px); }
.front-copy { padding-bottom: 4px; }
.front-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 13px; color: #6843af; font-size: .77rem; font-weight: 750; letter-spacing: .115em; text-transform: uppercase; }
.front-eyebrow span { width: 15px; height: 1.5px; background: #9b73df; }
.front-copy h1 { margin: 0; font-size: clamp(2.3rem, 4.2vw, 3.7rem); font-weight: 740; letter-spacing: -.071em; line-height: 1.02; text-wrap: balance; }
.front-copy h1 em { display: block; color: #6a41c5; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.08em; }
.front-intro { max-width: 47ch; margin: 22px 0 0; color: #60546e; font-size: clamp(1rem, 1.45vw, 1.15rem); line-height: 1.62; }
.front-hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }

.front-art { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 414px; padding: 43px 46px 68px; overflow: hidden; border: 1px solid #ddcdf8; border-radius: 22px; background: radial-gradient(ellipse at 82% 15%, #f1e7ff 0, transparent 51%), linear-gradient(150deg, #e3d4fa 4%, #eadefb 53%, #cfb5f3 100%); box-shadow: 0 19px 38px #45256b0e, inset 0 1px #ffffffc9; }
.front-art-decoration { position: absolute; z-index: -1; inset: 0; overflow: hidden; }
.front-halo { position: absolute; right: -4%; bottom: -18%; width: 108%; height: 92%; transform: rotate(-36deg); border: 1px solid #fff9; border-radius: 50%; }
.front-halo-two { right: -13%; bottom: -24%; width: 128%; height: 113%; border-color: #fff7; }
.front-halo-three { right: -20%; bottom: -29%; width: 148%; height: 132%; border-color: #fff7; }
.front-star { position: absolute; width: 17px; height: 17px; background: #fff; clip-path: polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); }
.front-star-one { top: 18%; right: 16%; }
.front-star-two { bottom: 16%; left: 11%; width: 12px; height: 12px; }
.front-envelope { position: absolute; z-index: -1; top: 12%; left: -3%; display: grid; place-items: center; width: 140px; height: 105px; transform: rotate(-23deg); border: 1px solid #f6eaff; border-radius: 16px; color: #fff9; background: linear-gradient(125deg,#b590f0ba,#d8c5f6be); box-shadow: 0 14px 40px #724ab930; }
.front-envelope .icon { width: 70px; height: 70px; stroke-width: 1; }
.example-card { position: relative; width: min(100%, 354px); padding: 18px 18px 9px; transform: rotate(-4.5deg); border: 1px solid #e3d6f1; border-radius: 14px; background: #fffcff; box-shadow: 0 16px 37px #4c28692c, 0 2px 4px #4c28691c; }
.example-header { display: flex; align-items: center; gap: 10px; }
.example-header strong { font-size: 1.08rem; letter-spacing: -.025em; }
.example-header p { margin: 3px 0 0; color: #766983; font-size: .79rem; }
.example-file, .example-outcome-icon { display: grid; flex: 0 0 auto; place-items: center; border-radius: 8px; }
.example-file { width: 40px; height: 40px; color: #6941c4; background: #eee5fd; }
.example-file .icon { width: 19px; height: 19px; }
.example-progress { margin-top: 16px; padding: 9px 10px 10px; border: 1px solid #eee6f8; border-radius: 8px; background: #f8f4ff; }
.example-progress > div:first-child { display: flex; justify-content: space-between; gap: 4px; color: #5a476f; font-size: .78rem; }
.example-progress > div:first-child > span { color: #6844b3; font-weight: 700; }
.example-track { height: 5px; margin-top: 6px; overflow: hidden; border-radius: 100px; background: #e9e0f5; }
.example-track span { display: block; width: 75%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#9c6eed,#6c46cb); }
.example-outcomes { list-style: none; margin: 9px 0 0; padding: 0; }
.example-outcomes li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; min-height: 39px; color: #514663; font-size: .84rem; font-weight: 650; }
.example-outcomes li + li { border-top: 1px solid #f0eaf4; }
.example-outcomes li strong { color: var(--front-ink); }
.example-outcome-icon { width: 25px; height: 25px; border-radius: 6px; }
.example-outcome-icon .icon { width: 15px; height: 15px; }
.example-export { position: absolute; right: 8%; bottom: 13px; display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; transform: rotate(6deg); border: 1px solid #e2cffb; border-radius: 10px; color: #231536; background: #f9f4ff; box-shadow: 0 9px 23px #4a1c792d; }
.example-export > span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 7px; color: white; background: #7549d1; }
.example-export .icon { width: 16px; height: 16px; }
.example-export strong, .example-export small { display: block; }
.example-export strong { font-size: .82rem; }
.example-export small { margin-top: 2px; color: #6e5a83; font-size: .75rem; }

.front-steps { padding: 24px 0 33px; border-top: 1px solid #e8dfea; scroll-margin-top: 20px; }
.front-steps h2, .front-price-card h2 { margin: 0; font-size: clamp(1.55rem, 2.45vw, 2.02rem); font-weight: 740; letter-spacing: -.048em; line-height: 1.15; }
.front-step-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(16px, 3vw, 39px); margin-top: 19px; }
.front-step-grid article { display: flex; align-items: flex-start; gap: 10px; }
.front-step-icon, .signup-plan-icon { display: grid; flex: 0 0 auto; place-items: center; width: 39px; height: 39px; border: 1px solid #e9dcf6; border-radius: 8px; color: #6b44bc; background: #f0e7fc; }
.front-step-icon .icon { width: 18px; height: 18px; }
.front-step-grid h3 { margin: 0; font-size: .99rem; letter-spacing: -.025em; }
.front-step-grid p, .front-price-card p { margin: 4px 0 0; color: #665b73; font-size: .91rem; line-height: 1.48; }
.front-price-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 24px; margin: 12px 0 47px; padding: clamp(20px, 3.4vw, 38px); scroll-margin-top: 24px; border: 1px solid #e7d9f7; border-radius: 15px; background: #f1e9fc; }
.front-price-card p { max-width: 58ch; margin-top: 7px; }
.front-plan-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.front-plan { display: grid; grid-template-rows: auto 1fr auto; justify-items: start; gap: 9px; min-width: 0; padding: 16px; border: 1px solid #e7d9f7; border-radius: 10px; background: #fdfbff; }
.front-plan h3, .front-plan p { margin: 0; }
.front-plan h3 { font-size: 1.04rem; }
.front-plan .button { margin-top: 3px; }
.price-line { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.price-line strong { font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 740; line-height: 1; letter-spacing: -.065em; }
.price-line span { color: #665773; font-size: .8rem; }
.front-footer { padding: 17px 0; border-top: 1px solid #e9e1eb; background: #fdfbf9; }
.front-footer .front-container { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.front-footer-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px 20px; }
.front-footer .front-brand { font-size: 1.1rem; }
.front-footer .brand-mark { width: 26px; height: 26px; border-radius: 7px; }
.front-footer .brand-mark .icon { width: 16px; height: 16px; }
.privacy-page { max-width: 720px; padding-block: clamp(35px, 7vw, 78px); line-height: 1.65; }
.privacy-page h1 { margin: 0 0 15px; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; letter-spacing: -.05em; }
.privacy-page h2 { margin: 30px 0 8px; font-size: 1.25rem; line-height: 1.3; }
.privacy-page p, .privacy-page ul { margin: 0 0 14px; }
.privacy-page ul { padding-inline-start: 1.25rem; }
.privacy-page li + li { margin-top: 9px; }
.privacy-page a:not(.brand) { color: var(--violet-dark); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

.signup-view { min-height: calc(100vh - 135px); padding: clamp(27px, 6.2vw, 85px) 0; }
.signup-panel { display: grid; grid-template-columns: .85fr 1.15fr; width: min(100%, 900px); margin: 0 auto; overflow: hidden; border: 1px solid #e6dcec; border-radius: 17px; background: #fff; box-shadow: 0 13px 35px #341e5a12; }
.signup-price { min-width: 0; padding: clamp(22px, 4.2vw, 46px); color: white; background: radial-gradient(ellipse at 105% 95%, #7449a7 0, transparent 69%), linear-gradient(140deg,#2f1c4d,#43256f); }
.signup-plan-icon { margin-bottom: 28px; border-color: #dac4ff6a; color: #f0dcff; background: #ad87e746; }
.signup-price h2 { margin: 0 0 12px; font-size: 1.34rem; letter-spacing: -.03em; }
.signup-price .price-line strong { font-size: clamp(2.3rem, 5.7vw, 4.1rem); }
.signup-price .price-line span { color: #e5d7f3; }
.signup-cleanup-price { max-width: 34ch; margin: 12px 0 0; color: #f2eafa; font-size: .875rem; line-height: 1.45; }
.signup-includes { display: grid; gap: 13px; list-style: none; margin: 24px 0 0; padding: 19px 0 0; border-top: 1px solid #f2e8ff37; }
.signup-includes li { display: flex; align-items: flex-start; gap: 8px; color: #f2eafa; font-size: .875rem; line-height: 1.45; }
.signup-includes .icon { width: 16px; height: 16px; color: #ddc4ff; }
.signup-details { padding: clamp(23px, 4.2vw, 44px); }
.signup-details h1 { margin: 0; font-size: clamp(1.78rem, 3.1vw, 2.65rem); line-height: 1.12; letter-spacing: -.056em; }
.signup-details #signup-intro p { margin: 7px 0 0; color: var(--muted); font-size: .96rem; line-height: 1.5; }
.signup-options, .retirement-fields { display: grid; min-inline-size: 0; border: 0; padding: 0; }
.retirement-fields { gap: 13px; margin: 0; }
.signup-options { gap: 7px; margin: 18px 0 0; }
.signup-options legend { padding: 0; margin-bottom: 7px; font-size: .86rem; font-weight: 690; }
.signup-choice { display: flex; align-items: flex-start; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.signup-choice:has(input:checked) { border-color: #a584e6; background: #f5eefc; }
.signup-choice:focus-within { outline: 2px solid var(--violet); outline-offset: 2px; }
.signup-choice input { margin: 3px 0 0; accent-color: #6847bf; }
.signup-choice strong, .signup-choice small { display: block; }
.signup-choice small { margin-top: 3px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.signup-form { display: grid; gap: 13px; margin-top: 21px; }
.signup-form .field input { min-height: 43px; padding: 8px 10px; }
.signup-form .field input::placeholder { color: #7d7187; }
.signup-form .signup-submit { width: 100%; margin-top: 3px; }
.signup-storage { margin: 0; color: #6d647b; font-size: .8rem; line-height: 1.4; }
.signup-existing { margin-top: 20px; }
.customer-access, .customer-access form { display: grid; justify-items: start; gap: 12px; }
.customer-access { margin-top: 20px; }
.customer-access form, .customer-access form > .field { width: 100%; }
.customer-access .field input { min-height: 43px; }
.customer-code-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.customer-identity { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-top: 18px; }
.customer-identity p { margin: 0; color: var(--muted); font-size: .87rem; overflow-wrap: anywhere; }
.closure-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.closure-toolbar strong { display: block; color: var(--ink); }
.discovery-source { display: grid; gap: 9px; justify-items: start; }
.discovery-source + .discovery-source { margin-top: 5px; padding-top: 14px; border-top: 1px solid var(--line); }
.discovery-source p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.discovery-source input[type="file"] { max-width: 100%; }
.discovery-export-guide { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); }
.discovery-export-guide summary { padding: 10px 12px; border-radius: inherit; cursor: pointer; font-weight: 650; }
.discovery-export-steps { display: grid; gap: 8px; padding: 0 12px 12px; font-size: .9rem; line-height: 1.5; }
.discovery-export-steps h3 { margin: 4px 0 0; font-size: 1rem; }
.discovery-export-steps ol { display: grid; gap: 6px; margin: 0; padding-inline-start: 1.4em; color: var(--muted); }
.discovery-export-steps a { color: var(--violet-dark); }
.closure-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.closure-cases { display: grid; gap: 10px; margin-top: 12px; }
.closure-case { padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: white; overflow-wrap: anywhere; }
.closure-case-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 12px; }
.closure-case h3 { margin: 0; font-size: 1.05rem; }
.closure-case p, .closure-case small { display: block; margin: 5px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.closure-case details { margin-top: 9px; padding: 8px 10px; border-radius: 7px; background: #f8f5fd; color: #514168; font-size: .86rem; }
.closure-case summary { cursor: pointer; font-weight: 650; }
.closure-case .reply-text { white-space: pre-wrap; }
.closure-confirmations { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 10px 0 0; font-size: .84rem; }
.closure-confirmations div { display: grid; gap: 2px; }
.closure-confirmations dt { font-weight: 660; }
.closure-confirmations dd { margin: 0; color: var(--muted); }
.closure-record { margin-top: 20px; }
.closure-record h2 { margin: 0; font-size: 1.2rem; }
.queue-review-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.queue-review-item { display: grid; gap: 7px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.queue-review-item p { margin: 3px 0 0; font-size: .875rem; }
.queue-review-item small { color: var(--muted); }

@media (max-width: 1090px) {
  .has-company-actions { display: block; min-width: 0; }
  .has-company-actions thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .has-company-actions tbody { display: block; }
  .has-company-actions tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
  .has-company-actions td { min-width: 0; padding: 0; border: 0; }
  .has-company-actions td:first-child { grid-area: 1 / 1; }
  .has-company-actions .queue-edit { grid-area: 1 / 2; justify-self: end; }
  .has-company-actions .queue-workstream { grid-area: 2 / 1; }
  .has-company-actions .queue-status { grid-area: 2 / 2; justify-self: end; }
  .has-company-actions .queue-company-action { grid-column: 1 / -1; width: 100%; }
  .has-company-actions .updated { grid-column: 1 / -1; }
  .has-company-actions td.empty-row { grid-area: 1 / 1 / auto / -1; }
}
.checkout-note { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.checkout-tag { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin: 0; padding: 5px 8px; border-radius: 6px; color: #644b84; background: #f2eafd; font-size: .81rem; font-weight: 680; }
.checkout-tag-paid { margin-top: 13px; color: #246548; background: #e5f6ee; }
.checkout-tag .icon { width: 15px; height: 15px; }

@media (max-width: 850px) {
  .front-container { width: calc(100% - 48px); }
  .front-hero { gap: 24px; }
  .front-art { min-height: 355px; padding: 34px 29px 68px; }
  .example-export { right: 5%; }
}
@media (max-width: 650px) {
  .front-container { width: calc(100% - 32px); }
  .front-nav { min-height: 62px; grid-template-columns: 1fr auto; gap: 8px; }
  .front-links { display: none; }
  .front-nav-actions { gap: 9px; }
  .front-hero { grid-template-columns: 1fr; gap: 25px; }
  .front-copy h1 { font-size: clamp(2.5rem, 8.6vw, 3.6rem); }
  .front-intro { margin-top: 15px; }
  .front-art { min-height: 324px; padding: 27px 32px 68px; }
  .example-card { padding: 14px 13px 7px; }
  .example-export { right: 7%; }
  .front-step-grid { grid-template-columns: 1fr; }
  .front-price-card { grid-template-columns: 1fr; gap: 12px; }
  .front-plan-grid { grid-template-columns: 1fr; }
  .signup-panel { grid-template-columns: 1fr; }
  .signup-price { padding: 18px 22px; }
  .signup-plan-icon, .signup-includes { display: none; }
  .signup-price h2 { margin-bottom: 7px; font-size: 1.11rem; }
}
