:root {
  --ink: #201c31;
  --ink-2: #4f4a61;
  --muted: #817c91;
  --line: #e8e5ed;
  --canvas: #f7f6f8;
  --paper: #fff;
  --sidebar: #18142d;
  --sidebar-2: #241f3d;
  --purple: #6955d8;
  --purple-dark: #5541c2;
  --purple-soft: #efecff;
  --orange: #d9783c;
  --orange-soft: #fff1e8;
  --green: #33856f;
  --green-soft: #e9f6f1;
  --blue: #3d79ad;
  --blue-soft: #eaf3fb;
  --red: #b45151;
  --red-soft: #faecec;
  --shadow: 0 12px 34px rgba(32, 28, 49, .055);
  --radius: 14px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); }
button, input, select { font: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 244px; background: var(--sidebar); color: #fff; padding: 27px 18px 18px; display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; gap: 11px; align-items: center; padding: 0 9px 26px; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #876ee8, #5f47d0); box-shadow: 0 7px 18px rgba(105, 85, 216, .32); }
.brand-mark svg { width: 24px; height: 24px; stroke-width: 1.7; }
.brand strong, .brand span { display: block; }
.brand strong { font-family: Georgia, serif; font-size: 18px; letter-spacing: -.2px; }
.brand span { margin-top: 2px; font-size: 9px; color: #aaa3c2; letter-spacing: 1.3px; text-transform: uppercase; }
.main-nav { display: grid; gap: 6px; }
.nav-item { width: 100%; height: 45px; border: 0; border-radius: 9px; background: transparent; color: #a9a3bd; display: flex; gap: 12px; align-items: center; padding: 0 12px; font-size: 13px; font-weight: 550; text-align: left; transition: .18s ease; }
.nav-item svg { width: 18px; height: 18px; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-item.active { color: #fff; background: var(--sidebar-2); box-shadow: inset 3px 0 0 #8973ee; }
.nav-count { margin-left: auto; min-width: 23px; padding: 3px 6px; color: #d9d4ed; background: #39324e; border-radius: 10px; font-size: 10px; text-align: center; }
.status-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: #d68b52; box-shadow: 0 0 0 3px rgba(214,139,82,.13); }
.status-dot.online { background: #63bd9e; box-shadow: 0 0 0 3px rgba(99,189,158,.13); }
.sidebar-bottom { margin-top: auto; }
.integration-mini { margin-bottom: 14px; border: 1px solid #352f4b; border-radius: 11px; padding: 13px; background: #1e1a34; }
.mini-head { display: flex; align-items: center; gap: 8px; color: #ddd9ea; font-size: 11px; font-weight: 650; }
.legalone-symbol { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #ee752f; color: #fff; font: 700 10px/1 Georgia, serif; }
.integration-mini p { margin: 7px 0 10px 34px; color: #88819f; font-size: 10px; }
.integration-mini button { border: 0; padding: 0; background: transparent; color: #a999ff; font-size: 10px; }
.integration-mini button span { margin-left: 4px; }
.profile { display: grid; grid-template-columns: 34px 1fr auto; gap: 9px; align-items: center; padding: 14px 5px 3px; border-top: 1px solid #302a45; }
.profile strong, .profile span { display: block; }
.profile strong { font-size: 11px; font-weight: 650; }
.profile span { margin-top: 3px; color: #827c98; font-size: 9px; }
.profile button { color: #756f8a; border: 0; background: transparent; letter-spacing: 1px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; font-size: 11px; font-weight: 750; color: #fff; }
.avatar-marcus { width: 34px; height: 34px; background: #5b4aa7; color: #e8e3ff; }
.avatar.leticia { background: #7663ce; }.avatar.lorrane { background: #d18553; }.avatar.alexandre { background: #3e7697; }.avatar.marina { background: #4e967e; }.avatar.muted { background: #aaa6b2; }

.main-content { margin-left: 244px; min-height: 100vh; }
.topbar { min-height: 85px; padding: 17px 35px; display: flex; align-items: center; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.85); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 12; }
.topbar-copy { margin-right: auto; }
.eyebrow { display: block; margin-bottom: 5px; color: #9893a5; font-size: 8px; font-weight: 750; letter-spacing: 1.25px; }
.topbar h1 { margin: 0; font-family: Georgia, serif; font-size: 21px; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.icon-button { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: #615c70; background: #fff; }
.icon-button svg { width: 18px; height: 18px; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); border: 1px solid #fff; }
.button { min-height: 38px; padding: 0 14px; border-radius: 9px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; font-weight: 650; transition: .18s ease; }
.button svg { width: 16px; height: 16px; }
.button-primary { color: #fff; background: var(--purple); box-shadow: 0 6px 15px rgba(105,85,216,.17); }
.button-primary:hover { background: var(--purple-dark); transform: translateY(-1px); }
.button-ghost { color: #554f64; background: #fff; border-color: var(--line); }
.button-ghost:hover { border-color: #cfc9d8; background: #fbfafc; }
.button-secondary { color: var(--purple); background: var(--purple-soft); border-color: #ddd6ff; }
.button-secondary:hover { background: #e6e0ff; }
.mobile-menu { display: none; border: 0; background: transparent; margin-right: 9px; }

.view { display: none; padding: 30px 35px 45px; max-width: 1540px; margin: 0 auto; }
.view.active { display: block; animation: fadeIn .24s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.welcome-row h2, .section-heading h2 { margin: 0 0 7px; font-family: Georgia, serif; font-size: 25px; font-weight: 600; letter-spacing: -.35px; }
.welcome-row p, .section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.round-chip { min-width: 94px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: right; }
.round-chip span, .round-chip strong { display: block; }
.round-chip span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .7px; }
.round-chip strong { margin-top: 2px; font-family: Georgia, serif; font-size: 18px; }

.metrics-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; gap: 13px; margin-bottom: 15px; }
.metric-card { position: relative; min-height: 125px; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); display: flex; align-items: flex-start; gap: 13px; overflow: hidden; }
.metric-main { background: linear-gradient(135deg, #fff 45%, #faf8ff); }
.metric-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 9px; flex: 0 0 auto; }
.metric-icon svg { width: 17px; height: 17px; }.metric-icon.purple { color: var(--purple); background: var(--purple-soft); }.metric-icon.orange { color: var(--orange); background: var(--orange-soft); }.metric-icon.blue { color: var(--blue); background: var(--blue-soft); }.metric-icon.green { color: var(--green); background: var(--green-soft); }
.metric-card span, .metric-card strong, .metric-card small { display: block; }
.metric-card > div > span { margin: 1px 0 5px; color: #6e687b; font-size: 9px; font-weight: 650; text-transform: uppercase; letter-spacing: .45px; }
.metric-card strong { font-family: Georgia, serif; font-size: 27px; line-height: 1; }
.metric-card small { margin-top: 8px; color: #918b9d; font-size: 9px; }.metric-card small b { color: #5d566b; }
.metric-trend { position: absolute; right: 15px; bottom: 17px; color: #aaa5b3; font-size: 8px; }.metric-trend span { display: inline!important; margin-right: 3px!important; padding: 3px 5px; color: var(--green)!important; background: var(--green-soft); border-radius: 8px; font-size: 8px!important; }
.text-button { position: absolute; right: 16px; bottom: 15px; border: 0; background: transparent; color: var(--orange); font-size: 9px; font-weight: 650; }
.mini-progress { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: #eef1f3; }.mini-progress span { width: 78%; height: 100%; background: var(--blue); }
.quality-badge { position: absolute; right: 13px; bottom: 14px; padding: 4px 8px; border-radius: 10px; color: var(--green)!important; background: var(--green-soft); font-size: 8px!important; font-weight: 700; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr); gap: 15px; margin-bottom: 15px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.panel-header { min-height: 62px; padding: 17px 20px 13px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.panel-header h3 { margin: 0 0 5px; font-size: 13px; font-weight: 700; }.panel-header p { margin: 0; color: var(--muted); font-size: 9px; }
.legend { display: flex; gap: 15px; padding-top: 2px; color: #8a8496; font-size: 8px; }.legend span { display: flex; align-items: center; gap: 5px; }.legend i { width: 8px; height: 8px; border-radius: 2px; }.legend-target { border: 1px dashed #aaa2bb; }.legend-current { background: var(--purple); }
.lawyer-bars { padding: 3px 20px 16px; display: grid; gap: 15px; }
.lawyer-bar { display: grid; grid-template-columns: 140px 1fr 59px; gap: 12px; align-items: center; }
.lawyer-identity { display: grid; grid-template-columns: 31px 1fr; column-gap: 8px; align-items: center; }.lawyer-identity .avatar { width: 31px; height: 31px; font-size: 9px; grid-row: 1 / span 2; }.lawyer-identity strong { display: block; font-size: 10px; }.lawyer-identity small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.bar-track { position: relative; height: 8px; border-radius: 5px; background: #f0eef3; }.bar-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #826de6, #6550d2); transition: width .5s ease; }.bar-target { position: absolute; top: -4px; bottom: -4px; width: 1px; border-left: 1px dashed #797285; }.bar-label { text-align: right; }.bar-label strong { display: block; font-family: Georgia, serif; font-size: 14px; }.bar-label span { color: var(--muted); font-size: 8px; }
.panel-footer-note { min-height: 39px; padding: 10px 20px; display: flex; gap: 8px; align-items: center; background: #faf9fc; border-top: 1px solid #f0eef3; border-radius: 0 0 var(--radius) var(--radius); color: #797385; font-size: 8px; }.panel-footer-note svg { width: 13px; height: 13px; color: var(--purple); }.panel-footer-note b { color: #554f63; }
.attention-count { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--orange); background: var(--orange-soft); font-size: 9px; font-weight: 750; }
.attention-list { padding: 0 17px; }.attention-item { position: relative; display: grid; grid-template-columns: 31px 1fr auto; gap: 9px; align-items: center; padding: 11px 3px; border-top: 1px solid #f0eef3; }.attention-icon { width: 31px; height: 31px; border-radius: 8px; display: grid; place-items: center; color: var(--orange); background: var(--orange-soft); }.attention-icon svg { width: 15px; height: 15px; }.attention-item strong, .attention-item span { display: block; }.attention-item strong { margin-bottom: 3px; font-size: 9px; }.attention-item span { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 8px; }.attention-item button { border: 0; padding: 5px; background: transparent; color: var(--purple); font-size: 9px; font-weight: 650; }
.panel-link { width: calc(100% - 34px); margin: 4px 17px 13px; padding: 10px 0 0; border: 0; border-top: 1px solid #f0eef3; background: transparent; color: var(--purple); font-size: 9px; font-weight: 650; text-align: left; }.panel-link span { float: right; }.panel-link.inline { width: auto; margin: 0; padding: 0; border: 0; }.panel-link.inline span { float: none; margin-left: 4px; }
.deadlines-panel { margin-bottom: 20px; }.compact-table { padding: 0 20px 10px; }.compact-row { display: grid; grid-template-columns: 70px minmax(190px, 1.25fr) minmax(150px, 1fr) 70px 95px; gap: 12px; align-items: center; min-height: 49px; border-top: 1px solid #f0eef3; font-size: 9px; }.compact-row .date-box { display: grid; grid-template-columns: 23px 1fr; gap: 7px; align-items: center; }.date-day { width: 23px; height: 27px; display: grid; place-items: center; border: 1px solid #e2dfea; border-radius: 6px; color: var(--purple); font-family: Georgia, serif; font-size: 12px; }.date-box span { color: var(--muted); font-size: 8px; }.compact-case strong, .compact-case span { display: block; }.compact-case strong { margin-bottom: 3px; }.compact-case span, .compact-task { color: var(--muted); }.points-chip { justify-self: start; padding: 4px 7px; border-radius: 8px; color: #625d6d; background: #f3f1f5; font-weight: 700; }.assignee-mini { display: flex; align-items: center; gap: 6px; }.assignee-mini .avatar { width: 24px; height: 24px; font-size: 7px; }.assignee-mini span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { min-height: 115px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); text-align: left; }.empty-state-icon { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: var(--purple); background: var(--purple-soft); }.empty-state-icon svg { width: 18px; }.empty-state strong, .empty-state span { display: block; }.empty-state strong { margin-bottom: 5px; color: var(--ink); font-size: 10px; }.empty-state span { font-size: 9px; }.table-empty { min-height: 220px; }

.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }.section-heading h2 span { color: var(--purple); font-family: inherit; font-size: 14px; }.section-actions { display: flex; gap: 9px; }.file-button { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; display: inline-flex; align-items: center; gap: 8px; color: #554f64; font-size: 11px; font-weight: 650; cursor: pointer; }.file-button input { display: none; }.file-button svg { width: 16px; }
.filter-bar { min-height: 58px; padding: 10px 12px; margin-bottom: 12px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }.search-field { position: relative; width: min(350px, 42%); }.search-field svg { position: absolute; left: 11px; top: 10px; width: 15px; height: 15px; color: #9a94a3; }.search-field input { width: 100%; height: 36px; padding: 0 12px 0 35px; border: 1px solid var(--line); border-radius: 8px; outline: none; color: var(--ink); background: #fcfbfd; font-size: 10px; }.search-field input:focus { border-color: #aaa0dd; box-shadow: 0 0 0 3px var(--purple-soft); }.filter-bar select { height: 36px; padding: 0 30px 0 11px; border: 1px solid var(--line); border-radius: 8px; color: #625c6f; background: #fff; outline: none; font-size: 10px; }.filter-summary { margin-left: auto; padding: 0 8px; color: var(--muted); font-size: 10px; }.filter-summary strong { color: var(--ink); }
.table-panel { overflow: hidden; }.data-table-wrap { overflow-x: auto; }.data-table { width: 100%; border-collapse: collapse; min-width: 900px; }.data-table th { height: 42px; padding: 0 12px; color: #8e889a; background: #faf9fb; border-bottom: 1px solid var(--line); font-size: 8px; font-weight: 750; letter-spacing: .45px; text-align: left; text-transform: uppercase; }.data-table th:first-child, .data-table td:first-child { width: 38px; text-align: center; }.data-table td { height: 63px; padding: 9px 12px; border-bottom: 1px solid #efedf2; font-size: 9px; vertical-align: middle; }.data-table tr:last-child td { border-bottom: 0; }.data-table tbody tr:hover { background: #fcfbfd; }.data-table input[type=checkbox] { accent-color: var(--purple); }.table-date strong, .table-date span, .table-case strong, .table-case span, .table-task strong, .table-task span { display: block; }.table-date strong { margin-bottom: 3px; font-size: 10px; }.table-date span, .table-case span, .table-task span { margin-top: 3px; color: var(--muted); font-size: 8px; }.table-case strong { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.table-task strong { max-width: 210px; }.point-value { font-family: Georgia, serif; font-size: 13px; }.status-pill { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 12px; font-size: 8px; font-weight: 700; }.status-pill.ready { color: var(--blue); background: var(--blue-soft); }.status-pill.warning { color: var(--orange); background: var(--orange-soft); }.status-pill.assigned { color: var(--green); background: var(--green-soft); }.status-pill.neutral { color: #777181; background: #f0eef2; }.assignee-select { max-width: 128px; height: 31px; padding: 0 23px 0 8px; border: 1px solid var(--line); border-radius: 7px; color: #625c6f; background: #fff; font-size: 9px; }.row-action { width: 28px; height: 28px; border: 0; border-radius: 6px; color: #827b8e; background: transparent; }.row-action:hover { background: #f3f1f5; }.table-footer { min-height: 55px; padding: 9px 15px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 15px; }.team-card { padding: 20px; }.team-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }.team-card-top .avatar { width: 42px; height: 42px; }.team-card-top strong, .team-card-top span { display: block; }.team-card-top strong { font-size: 12px; }.team-card-top span { margin-top: 4px; color: var(--muted); font-size: 9px; }.availability { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: #4fae8b; box-shadow: 0 0 0 4px var(--green-soft); }.team-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.team-fields label { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .4px; }.team-fields input { width: 100%; height: 37px; margin-top: 6px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fcfbfd; font-size: 11px; font-weight: 650; }.team-target { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }.team-target strong { color: var(--ink); }.blocked-team { padding-bottom: 5px; }.restriction-row { min-height: 65px; margin: 0 20px; display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; border-top: 1px solid var(--line); }.restriction-row strong, .restriction-row span { display: block; }.restriction-row strong { font-size: 10px; }.restriction-row div span { margin-top: 3px; color: var(--muted); font-size: 8px; }

.rules-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }.priority-panel ol { list-style: none; counter-reset: priority; margin: 0; padding: 0 20px 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 15px; }.priority-panel li { counter-increment: priority; min-height: 36px; display: flex; align-items: center; gap: 9px; color: #5d5769; border-bottom: 1px solid #f0eef3; font-size: 9px; }.priority-panel li::before { content: counter(priority); width: 21px; height: 21px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 6px; color: var(--purple); background: var(--purple-soft); font-size: 8px; font-weight: 750; }.lock-card { position: relative; margin: 0 20px 10px; padding: 12px; display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; border: 1px solid #f0dacc; border-radius: 10px; background: #fffbf8; }.lock-card strong, .lock-card span { display: block; }.lock-card strong { font-size: 10px; }.lock-card span { margin-top: 3px; color: var(--orange); font-size: 8px; font-weight: 650; }.lock-card p { margin: 5px 0 0; color: var(--muted); font-size: 8px; }.lock-badge { align-self: start; padding: 4px 7px; border-radius: 8px; background: var(--orange-soft); }.lock-card.historical { border-color: var(--line); background: #fbfafc; }.lock-card.historical span { color: var(--muted); }.lock-card.historical .lock-badge { color: var(--muted); background: #efedf1; }
.score-panel { padding-bottom: 16px; }.search-field.compact { width: 230px; }.score-grid { padding: 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; max-height: 430px; overflow-y: auto; }.score-item { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #f0eef3; font-size: 9px; }.score-item span { color: #554f63; }.score-item strong { min-width: 30px; padding: 4px 6px; border-radius: 7px; color: var(--purple); background: var(--purple-soft); font-family: Georgia, serif; font-size: 11px; text-align: center; }
.rules-team-link { margin: 0 20px 20px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #faf9fc; }
.rules-team-link p { margin: 0 0 13px; color: var(--muted); font-size: 9px; line-height: 1.55; }

.connection-badge { padding: 7px 11px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #ead9c8; border-radius: 14px; color: var(--orange); background: var(--orange-soft); font-size: 9px; font-weight: 700; }.connection-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }.connection-badge.online { color: var(--green); border-color: #cbe8de; background: var(--green-soft); }
.integration-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 15px; margin-bottom: 15px; }.integration-hero { padding: 27px; text-align: center; background: radial-gradient(circle at 50% 0, #f3efff, #fff 52%); }.integration-logos { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 22px; }.app-logo { width: 90px; height: 90px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 22px rgba(39,31,68,.07); display: grid; place-items: center; align-content: center; gap: 7px; }.app-logo b { font-family: Georgia, serif; font-size: 12px; }.legalone-symbol.large { width: 39px; height: 39px; border-radius: 9px; font-size: 13px; }.brand-mark.small { width: 39px; height: 39px; }.brand-mark.small svg { width: 23px; }.connection-line { display: flex; gap: 5px; }.connection-line i { width: 5px; height: 5px; border-radius: 50%; background: #a89bea; }.connection-line i:nth-child(2) { opacity: .65; }.connection-line i:nth-child(3) { opacity: .35; }.integration-hero h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 19px; }.integration-hero > p { max-width: 430px; margin: 0 auto; color: var(--muted); font-size: 10px; line-height: 1.6; }.sync-flow { margin-top: 24px; padding-top: 19px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }.sync-flow div { position: relative; }.sync-flow div:not(:last-child)::after { content: ''; position: absolute; top: 11px; right: -16%; width: 32%; border-top: 1px dashed #cfc9df; }.sync-flow span { width: 22px; height: 22px; margin: 0 auto 7px; display: grid; place-items: center; border-radius: 50%; color: var(--purple); background: var(--purple-soft); font-size: 8px; font-weight: 750; }.sync-flow strong, .sync-flow small { display: block; }.sync-flow strong { font-size: 9px; }.sync-flow small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.config-panel form { padding: 0 20px 20px; }.config-panel label { display: block; margin: 11px 0; color: #696273; font-size: 9px; font-weight: 650; }.config-panel input { width: 100%; height: 39px; margin-top: 6px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #fcfbfd; color: var(--ink); font-size: 10px; outline: none; }.config-panel input:focus { border-color: #aaa0dd; box-shadow: 0 0 0 3px var(--purple-soft); }.config-panel input:disabled { color: #a39dab; background: #f5f3f6; }.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.secure-note { padding: 10px; border: 1px solid #dceae5; border-radius: 8px; display: flex; gap: 8px; align-items: center; color: #5d756d; background: #f4faf7; font-size: 8px; line-height: 1.45; }.secure-note svg { width: 16px; flex: 0 0 auto; color: var(--green); }.secure-note code { color: var(--green); font-weight: 700; }.form-actions { margin-top: 16px; display: flex; justify-content: flex-end; gap: 9px; }.requirements-panel { min-height: 82px; padding: 15px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }.requirements-panel > div { display: flex; gap: 10px; align-items: center; }.requirement-icon { width: 31px; height: 31px; border-radius: 8px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); }.requirement-icon svg { width: 15px; }.requirements-panel strong, .requirements-panel span { display: block; }.requirements-panel strong { font-size: 9px; }.requirements-panel span { margin-top: 4px; color: var(--muted); font-size: 8px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(20,16,38,.63); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: .2s ease; }.modal-backdrop.open { opacity: 1; visibility: visible; }.modal { position: relative; width: min(510px, 100%); max-height: 90vh; overflow-y: auto; padding: 29px; border-radius: 17px; background: #fff; box-shadow: 0 24px 65px rgba(18,14,34,.27); transform: translateY(10px) scale(.985); transition: .2s ease; }.modal-backdrop.open .modal { transform: none; }.modal-close { position: absolute; top: 14px; right: 16px; width: 30px; height: 30px; border: 0; border-radius: 7px; color: var(--muted); background: #f5f3f6; font-size: 20px; line-height: 1; }.modal-eyebrow { color: var(--purple); font-size: 8px; font-weight: 800; letter-spacing: 1px; }.modal h2 { margin: 7px 0; font-family: Georgia, serif; font-size: 23px; }.modal-subtitle { margin: 0 0 18px; color: var(--muted); font-size: 10px; line-height: 1.5; }.case-summary { padding: 13px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 10px; background: #faf9fb; }.case-summary strong, .case-summary span { display: block; }.case-summary strong { font-size: 10px; }.case-summary span { margin-top: 5px; color: var(--muted); font-size: 8px; }.decision-options { display: grid; gap: 8px; }.decision-option { padding: 12px; border: 1px solid var(--line); border-radius: 10px; display: grid; grid-template-columns: 19px 1fr; gap: 9px; cursor: pointer; transition: .15s ease; }.decision-option:has(input:checked) { border-color: #9182dd; background: #faf8ff; box-shadow: 0 0 0 2px var(--purple-soft); }.decision-option input { margin: 2px 0 0; accent-color: var(--purple); }.decision-option strong, .decision-option span { display: block; }.decision-option strong { font-size: 10px; }.decision-option span { margin-top: 3px; color: var(--muted); font-size: 8px; }.modal-actions { margin-top: 21px; padding-top: 15px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }.success-mark { width: 52px; height: 52px; margin: 0 auto 13px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--green); box-shadow: 0 9px 23px rgba(51,133,111,.23); }.success-mark svg { width: 26px; height: 26px; stroke-width: 2.3; }.result-modal { width: min(780px, 100%); text-align: center; }.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 0 13px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }.result-stats div { padding: 13px; }.result-stats div:not(:last-child) { border-right: 1px solid var(--line); }.result-stats strong, .result-stats span { display: block; }.result-stats strong { font-family: Georgia, serif; font-size: 19px; }.result-stats span { margin-top: 4px; color: var(--muted); font-size: 8px; text-transform: uppercase; }.result-lawyers { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; text-align: left; }.result-lawyer { padding: 9px 11px; border-radius: 8px; background: #f7f6f8; display: flex; justify-content: space-between; font-size: 9px; }.result-lawyer span { color: var(--muted); }.result-lawyer strong { color: var(--purple); }
.chat-preview-section { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); text-align: left; }
#publishReviewList { max-height: 340px; overflow-y: auto; padding-right: 4px; }
.chat-preview-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.chat-preview-title strong, .chat-preview-title span { display: block; }
.chat-preview-title strong { font-size: 11px; }
.chat-preview-title span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.chat-message-previews { display: grid; gap: 8px; }
.chat-message-card { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #faf9fc; }
.chat-message-head { padding: 9px 11px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.chat-message-head strong, .chat-message-head span { display: block; }
.chat-message-head strong { font-size: 9px; }
.chat-message-head span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.chat-message-head button { border: 0; color: var(--purple); background: transparent; font-size: 8px; font-weight: 700; }
.chat-message-card pre { margin: 0; padding: 11px; overflow-x: auto; color: #3d3849; background: #fff; font: 8px/1.55 Consolas, "Courier New", monospace; white-space: pre; }
.chat-security-note { margin: 9px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.team-fields label:last-child { grid-column: 1 / -1; }.team-balance-total { margin-top: 12px; padding: 9px 10px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; color: var(--purple); background: var(--purple-soft); font-size: 9px; }.decision-option { grid-template-columns: 19px minmax(0, 1fr) auto; align-items: center; }.decision-copy { cursor: pointer; }.decision-score { min-width: 76px; color: var(--muted); font-size: 7px; font-weight: 750; letter-spacing: .35px; text-transform: uppercase; }.decision-score input { display: block; width: 76px; height: 32px; margin: 5px 0 0; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fff; font-size: 10px; font-weight: 700; outline: none; }.decision-score input:focus { border-color: #9182dd; box-shadow: 0 0 0 2px var(--purple-soft); }
.team-readonly-balance { width: 100%; height: 37px; margin-top: 6px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; color: var(--ink); background: #f1eff4; font-size: 11px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.team-manager { margin-bottom: 15px; }
.add-lawyer-form { padding: 0 20px 20px; display: grid; grid-template-columns: 1.6fr 1fr .7fr 1.35fr auto; gap: 10px; align-items: end; }
.add-lawyer-form > label:not(.team-check), .temporary-lock-form label { color: var(--muted); font-size: 8px; font-weight: 650; text-transform: uppercase; letter-spacing: .4px; }
.add-lawyer-form input:not([type=checkbox]), .temporary-lock-form input { width: 100%; height: 37px; margin-top: 6px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fcfbfd; font-size: 10px; outline: none; }
.add-lawyer-form input:focus, .temporary-lock-form input:focus { border-color: #aaa0dd; box-shadow: 0 0 0 3px var(--purple-soft); }
.team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team-card { min-width: 0; }
.team-check { display: flex; align-items: center; gap: 7px; color: #5f596c; font-size: 9px; cursor: pointer; }
.team-check input { accent-color: var(--purple); }
.team-auto { margin: -5px 0 15px; padding: 9px 10px; border-radius: 8px; background: #faf9fc; }
.availability.off { background: #aaa6b2; box-shadow: 0 0 0 4px #f0eef2; }
.remove-lawyer { padding: 4px 0 4px 5px; border: 0; color: var(--red); background: transparent; font-size: 8px; font-weight: 700; }
.temporary-locks { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
.temporary-lock-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.temporary-lock-title strong { font-size: 9px; }
.temporary-lock-title span { color: var(--muted); font-size: 8px; }
.temporary-lock-list { display: grid; gap: 6px; }
.temporary-lock { min-height: 42px; padding: 8px 9px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #f0dacc; border-radius: 8px; background: #fffbf8; }
.temporary-lock strong, .temporary-lock span { display: block; }
.temporary-lock strong { color: var(--orange); font-size: 9px; }
.temporary-lock span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.temporary-lock button { border: 0; color: var(--red); background: transparent; font-size: 8px; font-weight: 700; }
.no-locks { margin: 0; padding: 9px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: 8px; text-align: center; }
.temporary-lock-form { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.temporary-lock-form .lock-reason, .temporary-lock-form button { grid-column: 1 / -1; }
.temporary-lock-form .button { min-height: 34px; }
.toast-region { position: fixed; z-index: 80; right: 20px; bottom: 20px; display: grid; gap: 8px; }.toast { min-width: 280px; max-width: 390px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--purple); border-radius: 9px; background: #fff; box-shadow: 0 15px 35px rgba(30,24,46,.16); animation: toastIn .22s ease; font-size: 10px; }.toast.success { border-left-color: var(--green); }.toast.warning { border-left-color: var(--orange); }.toast strong, .toast span { display: block; }.toast strong { margin-bottom: 3px; }.toast span { color: var(--muted); line-height: 1.4; }@keyframes toastIn { from { opacity: 0; transform: translateX(12px); } }

.backend-offline-banner { margin: 0 35px 16px; padding: 11px 16px; border: 1px solid #e6c9c9; border-radius: 10px; color: var(--red); background: var(--red-soft); font-size: 10px; font-weight: 650; }
.pending-round-banner { margin: 16px 35px 0; padding: 12px 15px; border: 1px solid #d9d1ff; border-radius: 11px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--purple); background: var(--purple-soft); }
.pending-round-banner[hidden] { display: none; }
.pending-round-banner strong, .pending-round-banner span { display: block; }
.pending-round-banner strong { font-size: 10px; }
.pending-round-banner span { margin-top: 3px; color: #746c91; font-size: 8px; }
.round-closing-section { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); text-align: left; }
.round-balance-preview { display: grid; gap: 6px; }
.round-balance-row { padding: 9px 10px; display: grid; grid-template-columns: minmax(110px, 1.2fr) repeat(4, minmax(72px, .8fr)) minmax(105px, 1fr); gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #faf9fc; font-size: 8px; }
.round-balance-row strong { font-size: 9px; }
.round-balance-row span { color: var(--muted); }
.round-balance-row b { color: var(--purple); text-align: right; }
.button:disabled, button:disabled, input:disabled { cursor: not-allowed; opacity: .58; }

@media (max-width: 1180px) {
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .score-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: .24s ease; box-shadow: 15px 0 30px rgba(20,16,38,.2); }.sidebar.open { transform: none; }
  .main-content { margin-left: 0; }.mobile-menu { display: grid; place-items: center; }.topbar { padding: 14px 20px; }.view { padding: 24px 20px 40px; }
  .dashboard-grid, .integration-layout, .rules-layout, .team-grid { grid-template-columns: 1fr; }.requirements-panel { grid-template-columns: 1fr; }.compact-row { grid-template-columns: 65px 1fr 80px; }.compact-task, .compact-row > .points-chip { display: none; }
  .add-lawyer-form { grid-template-columns: 1fr 1fr; }.add-lawyer-form .team-check, .add-lawyer-form .button { grid-column: 1 / -1; }
  .round-balance-row { grid-template-columns: 1fr 1fr 1fr; }.round-balance-row strong, .round-balance-row b { grid-column: span 3; text-align: left; }
}
@media (max-width: 620px) {
  .topbar-copy .eyebrow, #syncButton, .topbar h1 { display: none; }.topbar { min-height: 66px; }.topbar-actions { margin-left: auto; }.view { padding: 20px 14px 35px; }
  .welcome-row, .section-heading { align-items: flex-start; }.welcome-row h2, .section-heading h2 { font-size: 21px; }.round-chip { display: none; }
  .metrics-grid, .team-grid { grid-template-columns: 1fr; }.metric-card { min-height: 110px; }.lawyer-bar { grid-template-columns: 120px 1fr; }.bar-label { display: none; }
  .attention-panel { min-width: 0; }.section-heading { flex-direction: column; }.section-actions { width: 100%; }.section-actions > * { flex: 1; }.filter-bar { flex-wrap: wrap; }.search-field { width: 100%; }.filter-bar select { flex: 1; }.filter-summary { display: none; }.score-grid { grid-template-columns: 1fr; }.priority-panel ol { grid-template-columns: 1fr; }
  .requirements-panel { padding: 15px; }.form-row { grid-template-columns: 1fr; }.modal { padding: 24px 18px; }.result-lawyers { grid-template-columns: 1fr; }.compact-row { grid-template-columns: 60px 1fr; }.assignee-mini { display: none; }
  .add-lawyer-form { grid-template-columns: 1fr; }.add-lawyer-form > * { grid-column: 1 !important; }
  .pending-round-banner { margin: 12px 14px 0; align-items: flex-start; flex-direction: column; }.pending-round-banner .button { width: 100%; }
}
