:root {
  --ink: #132337;
  --ink-soft: #546274;
  --muted: #8994a4;
  --line: #e5e9ef;
  --canvas: #f4f6f8;
  --surface: #ffffff;
  --navy: #0b1524;
  --blue: #2463d4;
  --blue-soft: #e9f0ff;
  --amber: #d58a13;
  --amber-soft: #fff4dc;
  --green: #2e9b73;
  --green-soft: #e7f7f0;
  --shadow: 0 16px 38px rgba(25, 44, 70, 0.06);
  font-family: "DM Sans", system-ui, -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; background: var(--canvas); }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.access-screen[hidden], .commercial-screen[hidden], .legal-screen[hidden], .app-shell[hidden], #client-payment-link[hidden], #client-verification-link[hidden], #verification-email-link[hidden], #verification-simulate[hidden] { display: none !important; }
.access-screen { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at top right, #1d4c8d 0%, #0b1524 46%, #070e18 100%); }
.access-card { width: min(100%, 430px); padding: 34px; border: 1px solid rgba(180, 209, 255, .2); border-radius: 18px; color: #fff; background: rgba(16, 35, 62, .9); box-shadow: 0 28px 90px rgba(3, 11, 22, .35); }
.access-logo { display: block; width: 180px; height: auto; margin: 0 auto 28px; }
.client-access-identity { display: flex; align-items: center; justify-content: center; gap: 10px; margin: -10px 0 22px; color: #fff; font-size: 15px; }
.client-access-identity img { width: 42px; height: 42px; object-fit: contain; border-radius: 7px; background: #fff; }
.access-card .eyebrow { color: #8ab7ff; }
.access-card h1 { margin-bottom: 10px; font-size: 30px; }
.access-intro { margin-bottom: 24px; color: #b9cae2; font-size: 14px; line-height: 1.55; }
.access-secondary-link { display: block; margin-top: 12px; color: #a9c8ff; font-size: 12px; text-align: center; text-decoration: none; }
.access-secondary-link:hover { color: #fff; text-decoration: underline; }
.access-form { display: grid; gap: 14px; }
.access-form .field > span { color: #dbe8fa; }
.access-form .field input, .access-form .field textarea, .access-form .field select { border-color: rgba(180, 209, 255, .28); color: #fff; background: rgba(255,255,255,.08); }
.access-form .field input::placeholder, .access-form .field textarea::placeholder { color: #9eb0c9; }
.access-form .primary-button { width: 100%; margin-top: 5px; }
.access-feedback { margin: 4px 0 0; color: #a8bddb; font-size: 12px; line-height: 1.5; }
.access-feedback.is-error { color: #ffb4b4; }
.build-meta { color: #aab4c3; font-size: 9px; letter-spacing: .03em; }
.legal-screen { min-height: 100vh; color: var(--ink); background: #f4f6f8; }
.legal-shell { width: min(100%, 980px); margin: 0 auto; padding: 24px 30px 42px; }
.legal-header { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid #dfe6ef; }
.legal-header > a:first-child { display: block; width: 142px; }
.legal-header > a:first-child img { display: block; width: 100%; height: auto; }
.legal-header > div { display: grid; gap: 3px; flex: 1; }
.legal-header strong { color: var(--ink); font-family: Manrope, sans-serif; font-size: 20px; letter-spacing: -.04em; }
.legal-header strong span { color: var(--blue); }
.legal-header small { color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.legal-header .secondary-button { text-decoration: none; }
.legal-content { padding: 54px 0 0; }
.legal-content > h1 { max-width: 740px; margin-bottom: 14px; font-size: clamp(29px, 5vw, 48px); }
.legal-lead { max-width: 780px; margin-bottom: 22px; color: var(--ink-soft); font-size: 14px; line-height: 1.65; }
.legal-alert { display: grid; gap: 5px; margin-bottom: 30px; padding: 14px 16px; border: 1px solid #e9d6a8; border-radius: 9px; color: #6e511b; background: #fff9eb; font-size: 12px; line-height: 1.5; }
.legal-alert strong { color: #5e4517; }
.legal-section { margin-top: 24px; padding: 22px 24px 17px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: var(--shadow); }
.legal-section h2 { margin-bottom: 13px; color: var(--ink); font-size: 19px; }
.legal-section p { margin-bottom: 10px; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section a { color: var(--blue); font-weight: 800; }
.legal-contact { border-color: #cbdcff; background: #f7faff; }
.verification-card { text-align: center; }
.verification-mark { width: 48px; height: 48px; display: grid; place-items: center; margin: -8px auto 18px; border: 1px solid rgba(118, 208, 167, .45); border-radius: 50%; color: #8ce0b8; background: rgba(46, 155, 115, .16); font-family: Manrope, sans-serif; font-size: 24px; font-weight: 800; }
.verification-email-box { display: grid; gap: 5px; margin: 18px 0 14px; padding: 12px 13px; border: 1px solid rgba(180, 209, 255, .23); border-radius: 9px; text-align: left; background: rgba(255,255,255,.06); }
.verification-email-box span { color: #9eb0c9; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.verification-email-box strong { overflow-wrap: anywhere; color: #fff; font-size: 13px; }
.verification-email-link { width: 100%; margin-top: 4px; text-decoration: none; }
.verification-simulate { width: 100%; margin-top: 5px; color: #dceaff; background: rgba(138, 183, 255, .16); }
.verification-simulate:hover { color: #fff; background: rgba(138, 183, 255, .25); }
.signup-card { width: min(100%, 720px); }
.signup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.signup-full-field { grid-column: 1 / -1; }
.signup-info-note { margin: 13px 0 0; padding: 10px 12px; border-left: 2px solid #d9a548; color: #b9cae2; background: rgba(217, 165, 72, .08); font-size: 11px; line-height: 1.45; }
.signup-grid .field input[type="file"] { height: auto; min-height: 42px; padding: 10px 12px; }
.signup-grid .field small { color: #9fb2ce; font-size: 11px; line-height: 1.35; }
.signup-progress { display: flex; align-items: center; gap: 10px; margin: 21px 0 19px; padding: 10px; border: 1px solid rgba(217, 165, 72, .28); border-radius: 10px; background: rgba(7, 18, 32, .38); }
.signup-progress-step { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; padding: 8px 9px; border: 1px solid transparent; border-radius: 8px; color: #9fb2ce; }
.signup-progress-step > span { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border: 1px solid rgba(180, 209, 255, .28); border-radius: 50%; color: #b9cae2; font-size: 12px; font-weight: 800; }
.signup-progress-step > div { display: grid; gap: 2px; min-width: 0; }
.signup-progress-step strong { color: #b9cae2; font-size: 11px; line-height: 1.2; }
.signup-progress-step small { color: #7890b2; font-size: 10px; line-height: 1.2; }
.signup-progress-step.is-active { border-color: rgba(217, 165, 72, .48); background: rgba(217, 165, 72, .1); }
.signup-progress-step.is-active > span, .signup-progress-step.is-complete > span { border-color: #d9a548; color: #172a46; background: #d9a548; }
.signup-progress-step.is-active strong, .signup-progress-step.is-complete strong { color: #fff1c9; }
.signup-progress-line { width: 30px; height: 1px; flex: 0 0 30px; background: rgba(217, 165, 72, .42); }
.signup-step-panel { display: grid; gap: 0; }
.signup-step-panel[hidden] { display: none !important; }
.signup-step-heading { display: grid; gap: 5px; margin-bottom: 15px; }
.signup-step-heading .eyebrow { margin: 0; }
.signup-step-heading h2 { margin: 0; color: #fff; font-size: 20px; line-height: 1.15; }
.signup-step-heading p:last-child { margin: 0; color: #b9cae2; font-size: 12px; line-height: 1.45; }
.signup-step-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.signup-step-actions .primary-button, .signup-step-actions .secondary-button { min-height: 46px; }
.signup-final-actions { justify-content: space-between; }
.signup-final-actions .primary-button { min-width: 190px; }
.signup-plan-note { display: grid; gap: 4px; padding: 12px 13px; border: 1px solid rgba(138, 183, 255, .25); border-radius: 9px; color: #e4efff; background: rgba(93, 139, 216, .13); font-size: 12px; line-height: 1.45; }
.signup-plan-note span { color: #b9cae2; font-size: 11px; }
.commercial-screen { min-height: 100vh; color: #eef5ff; background: radial-gradient(circle at 80% 0%, #1d4c8d 0%, #0b1524 44%, #070e18 100%); }
.commercial-shell { width: min(100%, 1220px); margin: 0 auto; padding: 24px 34px 22px; }
.commercial-header { display: flex; align-items: center; gap: 13px; padding-bottom: 30px; border-bottom: 1px solid rgba(180, 209, 255, .16); }
.commercial-header > img { width: 138px; height: auto; }
.commercial-header > div:not(.commercial-header-actions) { display: grid; gap: 4px; flex: 1; }
.commercial-header strong { font-family: Manrope, sans-serif; font-size: 20px; letter-spacing: -.04em; }
.commercial-header strong span { color: #8ab7ff; }
.commercial-header small { color: #91a0b6; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.commercial-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 15px; }
.commercial-header-actions a { color: #c9dcff; font-size: 12px; font-weight: 800; text-decoration: none; }
.commercial-header-actions a:hover { color: #fff; }
.commercial-content { padding: 70px 0 36px; }
.commercial-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); align-items: center; gap: 70px; }
.commercial-hero .eyebrow { color: #8ab7ff; }
.commercial-hero h1 { max-width: 700px; margin-bottom: 20px; color: #fff; font-size: clamp(34px, 5vw, 64px); line-height: 1.02; }
.commercial-lead { max-width: 620px; margin-bottom: 28px; color: #b9cae2; font-size: 17px; line-height: 1.6; }
.commercial-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; }
.commercial-actions .primary-button { text-decoration: none; }
.commercial-actions > span { color: #9eb5d6; font-size: 12px; font-weight: 700; }
.commercial-plan-card { display: grid; gap: 11px; padding: 25px; border: 1px solid rgba(180, 209, 255, .24); border-radius: 16px; background: linear-gradient(145deg, rgba(31, 69, 120, .82), rgba(15, 35, 63, .94)); box-shadow: 0 24px 60px rgba(3, 11, 22, .3); }
.commercial-plan-card .eyebrow { margin-bottom: 0; }
.commercial-plan-card > strong { color: #fff; font-family: Manrope, sans-serif; font-size: 27px; letter-spacing: -.04em; }
.commercial-price { color: #8ab7ff; font-family: Manrope, sans-serif; font-size: 32px; font-weight: 800; letter-spacing: -.05em; }
.commercial-price small { color: #b9cae2; font-family: "DM Sans", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.commercial-plan-card ul { display: grid; gap: 10px; margin: 4px 0 9px; padding: 0; color: #d9e8ff; font-size: 12px; list-style: none; }
.commercial-plan-card li::before { content: "✓"; margin-right: 8px; color: #76d0a7; font-weight: 900; }
.commercial-plan-card .secondary-button { color: #dceaff; background: rgba(138, 183, 255, .16); text-align: center; text-decoration: none; }
.commercial-plan-card .secondary-button:hover { background: rgba(138, 183, 255, .25); }
.commercial-demo { max-width: 1080px; margin: 82px auto 0; }
.commercial-demo .commercial-section-heading { margin-bottom: 27px; }
.commercial-demo-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 20px; align-items: stretch; }
.commercial-demo-player { min-width: 0; padding: 10px; border: 1px solid rgba(180, 209, 255, .2); border-radius: 15px; background: rgba(7, 17, 30, .68); box-shadow: 0 24px 60px rgba(3, 11, 22, .28); }
.demo-player-bar { display: flex; align-items: center; gap: 9px; min-height: 29px; padding: 0 8px 8px; color: #8299b9; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.demo-player-dots { display: inline-flex; gap: 4px; }
.demo-player-dots i { width: 6px; height: 6px; display: block; border-radius: 50%; background: #6b7d99; }
.demo-player-live { margin-left: auto; color: #77d5a8; font-size: 8px; font-weight: 900; }
.demo-window { display: grid; grid-template-columns: 145px minmax(0, 1fr); min-height: 285px; overflow: hidden; border: 1px solid #294a74; border-radius: 10px; background: #fff; }
.demo-window-sidebar { display: grid; align-content: start; gap: 8px; padding: 18px 12px; color: #aebbd0; background: #0b1524; }
.demo-window-brand { color: #fff; font-family: Manrope, sans-serif; font-size: 16px; font-weight: 800; letter-spacing: -.04em; }
.demo-window-brand span { color: #8ab7ff; }
.demo-window-sidebar small { margin: 0 0 11px; color: #73839b; font-size: 7px; letter-spacing: .12em; }
.demo-window-nav { padding: 8px 7px; border-radius: 6px; font-size: 10px; }
.demo-window-nav.is-active { color: #fff; background: #1e3f70; }
.demo-window-content { min-width: 0; padding: 19px 18px; background: #fbfcfe; }
.demo-window-topline { display: flex; align-items: flex-end; justify-content: space-between; gap: 11px; padding-bottom: 13px; border-bottom: 1px solid #e8edf3; }
.demo-window-topline > div { display: grid; gap: 5px; }
.demo-window-topline span { color: #2463d4; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.demo-window-topline strong { color: #132337; font-family: Manrope, sans-serif; font-size: 18px; letter-spacing: -.04em; }
.demo-window-topline b { padding: 5px 7px; border-radius: 999px; color: #327653; background: #e7f7f0; font-size: 8px; white-space: nowrap; }
.demo-window-controls { display: grid; grid-template-columns: .72fr .72fr 1.35fr auto; gap: 7px; margin-top: 16px; }
.demo-window-input { display: grid; gap: 4px; min-width: 0; padding: 8px 9px; border: 1px solid #d9dfe8; border-radius: 6px; background: #fff; }
.demo-window-input small { color: #8994a4; font-size: 8px; }
.demo-window-input strong { overflow: hidden; color: #546274; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.demo-window-wide strong { color: #2463d4; }
.demo-window-controls button { min-height: 39px; padding: 0 9px; border: 0; border-radius: 6px; color: #fff; background: #2463d4; font-size: 9px; font-weight: 800; white-space: nowrap; }
.demo-window-result { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 12px; border: 1px solid #dce4ef; border-radius: 8px; background: #fff; transition: border-color .25s, background .25s; }
.demo-result-badge { flex: 0 0 auto; padding: 5px 6px; border-radius: 5px; color: #806020; background: #fff4dc; font-size: 8px; font-weight: 900; }
.demo-window-result strong { color: #132337; font-size: 12px; }
.demo-window-result p { margin: 5px 0 0; color: #8994a4; font-size: 10px; line-height: 1.4; }
.demo-window-agenda { display: grid; gap: 5px; margin-top: 12px; padding: 11px 12px; border-left: 3px solid #8ab7ff; border-radius: 0 7px 7px 0; background: #f1f6ff; }
.demo-window-agenda span { color: #2463d4; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.demo-window-agenda strong { color: #132337; font-size: 11px; }
.demo-window-agenda small { color: #546274; font-size: 9px; }
.demo-player-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px 0; }
.demo-player-controls .primary-button { min-height: 34px; padding: 0 11px; font-size: 10px; }
.demo-player-controls > span { color: #9eb5d6; font-size: 10px; font-weight: 800; }
.commercial-demo-steps { display: grid; align-content: center; gap: 7px; }
.commercial-demo-step { display: flex; align-items: flex-start; gap: 11px; width: 100%; padding: 12px 11px; border: 1px solid rgba(180, 209, 255, .13); border-radius: 9px; color: #9eb5d6; background: rgba(16, 35, 62, .42); text-align: left; transition: .2s ease; }
.commercial-demo-step:hover, .commercial-demo-step.is-active { border-color: rgba(138, 183, 255, .5); color: #fff; background: rgba(31, 69, 120, .58); }
.commercial-demo-step > span { min-width: 20px; color: #8ab7ff; font-family: Manrope, sans-serif; font-size: 11px; font-weight: 900; }
.commercial-demo-step > div { display: grid; gap: 4px; }
.commercial-demo-step strong { color: inherit; font-size: 12px; }
.commercial-demo-step small { color: #8299b9; font-size: 10px; line-height: 1.4; }
.commercial-demo-step.is-active small { color: #b9cae2; }
.commercial-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 80px; }
.commercial-benefits article { padding: 17px; border-top: 1px solid rgba(180, 209, 255, .28); }
.commercial-benefits strong { color: #fff; font-size: 13px; }
.commercial-benefits p { margin: 8px 0 0; color: #9eb5d6; font-size: 12px; line-height: 1.55; }
.commercial-faq { max-width: 920px; margin: 76px auto 0; }
.commercial-section-heading { margin-bottom: 18px; text-align: center; }
.commercial-section-heading h2 { margin-bottom: 8px; color: #fff; font-size: 27px; }
.commercial-section-heading > p:last-child { margin: 0; color: #9eb5d6; font-size: 12px; }
.commercial-faq-list { display: grid; gap: 8px; }
.commercial-faq details { padding: 0 15px; border: 1px solid rgba(180, 209, 255, .17); border-radius: 9px; background: rgba(16, 35, 62, .55); }
.commercial-faq summary { cursor: pointer; padding: 14px 0; color: #e7f0ff; font-size: 13px; font-weight: 800; list-style-position: inside; }
.commercial-faq details p { max-width: 800px; margin: -2px 0 15px 20px; color: #a9bddb; font-size: 12px; line-height: 1.6; }
.commercial-contact { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin: 52px auto 0; padding: 22px 24px; border: 1px solid rgba(180, 209, 255, .2); border-radius: 12px; background: rgba(16, 35, 62, .72); }
.commercial-contact h2 { margin-bottom: 7px; color: #fff; font-size: 22px; }
.commercial-contact p:last-child { margin: 0; color: #9eb5d6; font-size: 12px; }
.commercial-contact .secondary-button { color: #dceaff; background: rgba(138, 183, 255, .16); text-decoration: none; white-space: nowrap; }
.commercial-contact .secondary-button:hover { background: rgba(138, 183, 255, .25); }
.commercial-legal { max-width: 820px; margin: 48px auto 0; color: #8299b9; font-size: 11px; line-height: 1.55; text-align: center; }
.commercial-footer { display: flex; justify-content: space-between; gap: 14px; padding-top: 18px; border-top: 1px solid rgba(180, 209, 255, .16); color: #8299b9; font-size: 11px; }
.commercial-footer a { color: #bcd4fa; font-weight: 800; text-decoration: none; }
.commercial-footer a:hover { color: #fff; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  width: 246px;
  flex: 0 0 246px;
  min-height: 100vh;
  background: var(--navy);
  color: #f6f9fc;
  padding: 30px 18px 22px;
  display: flex;
  flex-direction: column;
}
.brand-lockup { display: block; padding: 0 12px 42px; }
.brand-ecosystem-logo { display: block; width: min(100%, 190px); height: auto; margin: 0 auto 14px; }
.brand-mark { width: 32px; height: 32px; display: flex; align-items: flex-end; gap: 3px; padding: 4px 5px; border: 1px solid rgba(139, 182, 255, .35); border-radius: 9px; background: linear-gradient(145deg, #255cad, #142d51); }
.brand-mark span { width: 5px; border-radius: 3px 3px 1px 1px; background: #8ab7ff; }
.brand-mark span:nth-child(1) { height: 10px; opacity: .66; }
.brand-mark span:nth-child(2) { height: 16px; }
.brand-mark span:nth-child(3) { height: 22px; background: #f4c36d; }
.brand-product-name, .brand-subtitle { margin: 0; font-family: Manrope, sans-serif; line-height: 1; text-align: center; }
.brand-product-name { color: #f6f9fc; font-size: 21px; font-weight: 800; letter-spacing: -.035em; }
.brand-product-name span { color: #8ab7ff; }
.brand-subtitle { color: #91a0b6; font-size: 10px; font-weight: 600; margin-top: 7px; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-section-label { padding: 0 12px 11px; color: #73839b; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.sidebar-nav { display: grid; gap: 5px; }
.nav-item { width: 100%; border: 0; color: #aebbd0; background: transparent; border-radius: 9px; padding: 12px; display: flex; align-items: center; gap: 12px; text-align: left; font-size: 14px; font-weight: 600; transition: .2s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.is-active { color: #fff; background: #1e3f70; box-shadow: inset 3px 0 #84b3ff; }
.nav-icon { width: 17px; color: #7eaaf2; font-size: 16px; text-align: center; }
.sidebar-note { margin: auto 6px 20px; padding: 13px; border: 1px solid rgba(144, 173, 216, .18); border-radius: 11px; background: rgba(28, 52, 85, .5); display: flex; gap: 10px; }
.note-icon { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #6f9fe9; border-radius: 50%; color: #9ec3ff; font-size: 12px; font-weight: 700; }
.sidebar-note p { margin: 0 0 3px; color: #e0e9f8; font-size: 12px; font-weight: 700; }
.sidebar-note span { display: block; color: #8d9db6; font-size: 11px; line-height: 1.45; }
.sidebar-footer { padding: 0 10px; display: flex; align-items: center; gap: 8px; color: #7f90a8; font-size: 11px; }
.connection-dot, .source-dot, .mini-dot { width: 7px; height: 7px; border-radius: 50%; background: #5fc89b; box-shadow: 0 0 0 4px rgba(95, 200, 155, .12); }

.main-content { width: min(100%, 1500px); margin: 0 auto; padding: 37px 48px 24px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; }
.eyebrow { margin: 0 0 6px; color: var(--blue); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, sans-serif; letter-spacing: -.035em; }
h1 { margin-bottom: 0; font-size: clamp(26px, 2.3vw, 36px); line-height: 1.1; }
h2 { margin-bottom: 0; font-size: 19px; line-height: 1.2; }
h3 { margin-bottom: 8px; font-size: 18px; }
.topbar-meta { display: flex; align-items: center; gap: 10px; padding-top: 8px; }
.client-office-badge { max-width: 220px; display: inline-flex; align-items: center; gap: 7px; overflow: hidden; padding: 6px 10px; border: 1px solid #dbe4f4; border-radius: 999px; color: #46638d; background: #f5f8fd; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.client-office-badge img { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; object-fit: contain; background: #fff; }
.client-office-badge span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.homologation-badge { padding: 6px 9px; border: 1px solid #ead7a6; border-radius: 999px; color: #86631f; background: #fff8e7; font-size: 10px; font-weight: 800; white-space: nowrap; }
.access-user-badge { max-width: 150px; overflow: hidden; padding: 6px 9px; border: 1px solid #dbe4f4; border-radius: 999px; color: #5b6c82; background: #fff; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.logout-button { height: 30px; padding: 0 9px; border: 1px solid #e3e7ed; border-radius: 7px; color: #6a7789; background: #fff; font-size: 10px; font-weight: 800; }
.logout-button:hover { color: var(--blue); border-color: #b8cff4; background: #f4f8ff; }
.client-only { display: none; }
.client-mode .admin-only { display: none !important; }
.client-mode .client-only { display: flex; }
.client-finance-card { grid-template-columns: minmax(0, 1fr); gap: 15px; margin-bottom: 18px; padding: 18px 20px; border: 1px solid #d8e3f7; border-radius: 12px; background: linear-gradient(125deg, #f7faff, #fff); box-shadow: var(--shadow); }
.client-mode .client-finance-card { display: grid; }
.client-mode .client-module-panel { display: none !important; }
.client-mode .client-module-panel.is-open { display: block !important; }
.client-mode .client-finance-card.client-module-panel.is-open { display: grid !important; }
.client-mode .legal-notice.client-module-panel.is-open { display: grid !important; }
.client-mode .metrics-grid.client-module-panel.is-open { display: grid !important; }
.main-content > .module-view-hidden { display: none !important; }
.main-content.module-focus > .module-view-active { display: block !important; }
.main-content.module-focus > .metrics-grid.module-view-active { display: grid !important; }
.main-content.module-focus > .legal-notice.module-view-active { display: grid !important; }
.client-finance-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.client-finance-heading > div { min-width: 0; }
.client-finance-heading .eyebrow { margin-bottom: 4px; }
.client-finance-heading strong { color: var(--ink); font-family: Manrope, sans-serif; font-size: 17px; letter-spacing: -.03em; }
.client-finance-heading > strong { color: var(--blue); font-size: 19px; white-space: nowrap; }
.client-finance-dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.client-finance-dates > div { display: grid; gap: 5px; padding: 11px 12px; border: 1px solid #e1e8f3; border-radius: 8px; background: rgba(255,255,255,.82); }
.client-finance-dates span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.client-finance-dates strong { overflow-wrap: anywhere; color: var(--ink-soft); font-size: 12px; line-height: 1.35; }
.client-settings-panel { margin-bottom: 18px; padding: 22px 24px 18px; }
.client-mode .client-settings-panel { display: block; }
.client-settings-form { display: grid; gap: 18px; }
.client-settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.client-settings-additions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.client-settings-block { padding: 14px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fbfcfd; }
.client-settings-block-heading { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.client-settings-block-heading > div { display: grid; gap: 4px; }
.client-settings-block-heading strong { font-size: 13px; }
.client-settings-block-heading small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.client-settings-readonly-list { display: grid; gap: 6px; max-height: 220px; overflow: auto; }
.client-settings-readonly-item { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid #e2e8f0; border-radius: 7px; background: #fff; }
.client-settings-readonly-item > span:not(.avatar):not(.court-label) { min-width: 0; flex: 1; display: grid; gap: 2px; }
.client-settings-readonly-item strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.client-settings-readonly-item small { color: var(--muted); font-size: 10px; }
.client-settings-readonly-item em { color: var(--green); font-size: 9px; font-style: normal; font-weight: 800; white-space: nowrap; }
.client-settings-add-row { display: grid; grid-template-columns: minmax(0, 1fr) .65fr .45fr auto; gap: 7px; margin-top: 9px; }
.client-settings-court-add-row, .client-settings-state-add-row { grid-template-columns: minmax(0, 1fr) auto; }
.client-settings-add-row input, .client-settings-add-row select { min-width: 0; height: 38px; padding: 0 10px; border: 1px solid #d9dfe8; border-radius: 7px; color: var(--ink); background: #fff; font-size: 11px; }
.client-settings-add-row .secondary-button { min-height: 38px; padding: 0 10px; font-size: 10px; white-space: nowrap; }
.client-settings-price { display: grid; grid-template-columns: 1fr auto; gap: 4px 15px; align-items: center; padding: 13px; border: 1px solid #b8cff4; border-radius: 9px; background: #f3f7ff; }
.client-settings-price span { color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.client-settings-price strong { color: var(--blue); font-family: Manrope, sans-serif; font-size: 18px; }
.client-settings-price small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; line-height: 1.4; }
.client-settings-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.client-settings-feedback { color: var(--green); font-size: 11px; line-height: 1.4; }
.client-settings-feedback.is-error { color: #a54e4e; }
.client-settings-contract { padding: 12px 13px; border: 1px dashed #cdd8e8; border-radius: 8px; color: var(--ink-soft); background: #f8faff; font-size: 11px; line-height: 1.5; }
.client-settings-contract summary { cursor: pointer; color: var(--blue); font-weight: 800; }
.client-settings-contract-copy { margin-top: 8px; }
.client-settings-contract-copy p { margin: 0 0 6px; }
.client-settings-contract-empty { display: grid; gap: 4px; }
.client-settings-contract-empty strong { color: var(--ink); }
.client-settings-logo-preview { display: grid; gap: 7px; align-content: start; }
.client-settings-logo-preview > span { color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.client-settings-logo-preview > div { height: 42px; display: flex; align-items: center; gap: 8px; padding: 6px 9px; border: 1px dashed #d9e1eb; border-radius: 7px; background: #fff; }
.client-settings-logo-preview img { max-width: 130px; height: 30px; object-fit: contain; }
.client-settings-logo-preview strong { color: var(--muted); font-size: 10px; }
.client-settings-empty { padding: 11px; border: 1px dashed #d9e1eb; border-radius: 7px; color: var(--muted); font-size: 10px; text-align: center; }
.client-email-preview-panel { margin-bottom: 18px; padding: 22px 24px 18px; }
.client-mode .client-email-preview-panel { display: block; }
.email-template-sender { padding: 6px 9px; border: 1px solid #cfe4d9; border-radius: 999px; color: #327653; background: var(--green-soft); font-size: 10px; font-weight: 800; white-space: nowrap; }
.email-template-card { max-width: 760px; margin: 0 auto; border: 1px solid #dce4ef; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 15px 35px rgba(25, 44, 70, .08); }
.email-template-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; color: #eef5ff; background: linear-gradient(125deg, #0b1524, #173a68); }
.email-template-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.email-template-brand img { width: 108px; height: auto; }
.email-template-brand > div { min-width: 0; display: grid; gap: 4px; }
.email-template-brand strong { color: #fff; font-family: Manrope, sans-serif; font-size: 19px; letter-spacing: -.035em; }
.email-template-brand strong span { color: #8ab7ff; }
.email-template-brand small { color: #b9cae2; font-size: 10px; }
.email-template-date { display: grid; gap: 4px; justify-items: end; white-space: nowrap; }
.email-template-date span { color: #9eb5d6; font-size: 10px; }
.email-template-date strong { color: #fff; font-size: 12px; }
.email-template-recipient { display: grid; gap: 4px; padding: 14px 20px; border-bottom: 1px solid #edf1f5; }
.email-template-recipient span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.email-template-recipient strong { overflow-wrap: anywhere; color: var(--ink); font-size: 13px; }
.email-template-recipient small { color: var(--ink-soft); font-size: 11px; }
.email-template-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 13px 20px; background: #f7f9fc; }
.email-template-summary > div { display: grid; gap: 4px; padding: 9px 10px; border: 1px solid #e2e8f0; border-radius: 7px; background: #fff; }
.email-template-summary span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.email-template-summary strong { overflow-wrap: anywhere; color: var(--blue); font-family: Manrope, sans-serif; font-size: 15px; }
.email-template-section { padding: 17px 20px 0; }
.email-template-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.email-template-section-heading strong { color: var(--ink); font-size: 13px; }
.email-template-section-heading span { color: var(--muted); font-size: 10px; }
.email-template-publications, .email-template-deadlines { display: grid; gap: 7px; }
.email-template-publication { padding: 10px 11px; border-left: 3px solid #8ab7ff; border-radius: 0 7px 7px 0; background: #f7faff; }
.email-template-publication > div { display: grid; gap: 4px; }
.email-template-publication strong { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.email-template-publication span, .email-template-publication p { color: var(--ink-soft); font-size: 10px; line-height: 1.45; }
.email-template-publication span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.email-template-publication p { margin: 7px 0 0; }
.email-template-deadline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border: 1px solid #e2e8f0; border-radius: 7px; background: #fbfcfd; }
.email-template-deadline strong { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.email-template-deadline span { color: var(--ink-soft); font-size: 10px; text-align: right; }
.email-template-empty { padding: 12px; border: 1px dashed #d9e1eb; border-radius: 7px; color: var(--muted); background: #fbfcfd; font-size: 10px; line-height: 1.45; }
.email-template-renewal { display: grid; gap: 4px; margin: 17px 20px 0; padding: 11px 12px; border: 1px solid #f0dfb5; border-radius: 7px; color: #806020; background: #fff9eb; font-size: 10px; line-height: 1.45; }
.email-template-renewal strong { color: #6e511b; font-size: 11px; }
.email-template-footer { margin-top: 18px; padding: 13px 20px; border-top: 1px solid #edf1f5; color: #8994a4; font-size: 9px; line-height: 1.5; }
.client-support-panel { margin-bottom: 18px; padding: 22px 24px 18px; }
.client-mode .client-support-panel { display: block; }
.client-support-panel .panel-intro a { color: var(--blue); font-weight: 800; }
.client-support-form { display: grid; gap: 18px; }
.client-support-description { grid-column: 1 / -1; }
.client-support-description textarea { width: 100%; min-height: 118px; padding: 11px 12px; border: 1px solid #d9dfe8; border-radius: 8px; outline: 0; resize: vertical; color: var(--ink); background: #fff; font: inherit; font-size: 13px; line-height: 1.45; }
.client-support-description textarea:focus { border-color: #8ab7ff; box-shadow: 0 0 0 3px rgba(36,99,212,.1); }
.support-note { display: grid; gap: 4px; margin-top: 16px; padding: 11px 13px; border-left: 3px solid #8ab7ff; border-radius: 0 8px 8px 0; color: var(--ink-soft); background: #f5f8ff; font-size: 10px; line-height: 1.5; }
.support-note strong { color: var(--ink); font-size: 11px; }
.date-stamp { color: var(--ink-soft); font-size: 13px; }
.source-badge, .panel-status, .soon-badge, .count-badge { border-radius: 999px; white-space: nowrap; }
.source-badge { padding: 7px 11px; color: #356044; background: var(--green-soft); font-size: 12px; font-weight: 700; }
.source-dot { display: inline-block; margin-right: 6px; width: 6px; height: 6px; box-shadow: none; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card { min-height: 126px; padding: 19px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.metric-primary { border-color: #cbdcff; background: linear-gradient(135deg, #fff, #f4f7ff); }
.metric-topline { display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.metric-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; color: #4a79d4; background: var(--blue-soft); font-size: 15px; }
.metric-icon.amber { color: var(--amber); background: var(--amber-soft); }
.metric-icon.blue { color: var(--blue); background: var(--blue-soft); }
.metric-icon.green { color: var(--green); background: var(--green-soft); }
.metric-value { margin: 13px 0 2px; color: var(--ink); font-family: Manrope, sans-serif; font-size: 28px; line-height: 1; font-weight: 800; letter-spacing: -.05em; }
.metric-value span { margin-left: 2px; color: #8e9aae; font-size: 18px; font-weight: 600; }
.metric-time { font-size: 21px; letter-spacing: -.04em; }
.metric-caption { margin: 0; color: var(--muted); font-size: 11px; }

.panel-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.query-card { margin-bottom: 18px; padding: 22px 24px 18px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.panel-heading.compact { margin-bottom: 14px; }
.panel-status { padding: 6px 10px; color: #326b52; background: var(--green-soft); font-size: 11px; font-weight: 700; }
.status-pulse { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #40b27f; }
.query-form { display: grid; grid-template-columns: 1fr 1fr 1.4fr auto; gap: 12px; align-items: end; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span { color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.field input, .field select, .field textarea, .result-search { border: 1px solid #d9dfe8; border-radius: 8px; outline: 0; color: var(--ink); background: #fff; transition: border .2s, box-shadow .2s; }
.field input, .field select { width: 100%; height: 42px; padding: 0 12px; font-size: 13px; }
.field textarea { width: 100%; min-height: 82px; padding: 10px 12px; resize: vertical; font: inherit; font-size: 13px; line-height: 1.4; }
.field input::placeholder { color: #a2aab7; }
.field input::placeholder, .field textarea::placeholder { color: #a2aab7; }
.field input:focus, .field select:focus, .field textarea:focus, .result-search:focus-within { border-color: #71a1f0; box-shadow: 0 0 0 3px rgba(67, 121, 214, .13); }
.primary-button, .secondary-button, .text-button { border: 0; border-radius: 8px; font-weight: 700; transition: transform .2s, background .2s, box-shadow .2s; }
.primary-button { min-height: 42px; padding: 0 18px; color: #fff; background: var(--blue); box-shadow: 0 7px 16px rgba(36, 99, 212, .22); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.primary-button:hover { transform: translateY(-1px); background: #1d55bd; box-shadow: 0 9px 20px rgba(36, 99, 212, .3); }
.primary-button:disabled { cursor: wait; opacity: .7; transform: none; }
.button-icon { font-size: 18px; line-height: 1; }
.query-date-hint { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.query-date-hint strong { color: var(--ink-soft); }
.query-lawyer-picker { margin: 17px 0 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); }
.query-lawyer-picker legend { padding: 0; color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.query-picker-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 7px; }
.query-picker-hint { color: var(--muted); font-size: 11px; }
.query-picker-actions { display: flex; gap: 8px; }
.query-picker-button { padding: 5px 8px; border: 0; border-radius: 6px; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-weight: 800; }
.query-picker-button:hover { background: #dce8ff; }
.query-lawyers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.query-lawyer-option { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px 10px; border: 1px solid #e0e6ef; border-radius: 8px; color: var(--ink-soft); background: #fbfcfd; cursor: pointer; }
.query-lawyer-option:has(input:checked) { border-color: #a9c6f5; color: var(--ink); background: #f1f6ff; }
.query-lawyer-option input { width: 14px; height: 14px; flex: 0 0 14px; accent-color: var(--blue); }
.query-lawyer-option-copy { min-width: 0; }
.query-lawyer-option-name { display: block; overflow-wrap: anywhere; font-size: 11px; font-weight: 800; line-height: 1.25; }
.query-lawyer-option-oab { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.query-lawyer-summary { margin-top: 8px; color: var(--muted); font-size: 10px; }
.query-helper { display: flex; align-items: center; gap: 8px; margin-top: 15px; color: var(--muted); font-size: 11px; }
.helper-check { color: var(--green); font-weight: 900; }
.helper-divider { width: 1px; height: 14px; background: var(--line); margin: 0 4px; }
.query-helper a { color: var(--blue); text-decoration: none; font-weight: 700; }
.query-helper a:hover { text-decoration: underline; }
.reminder-strip { display: flex; align-items: center; gap: 13px; min-height: 68px; margin: -10px 0 13px; padding: 12px 16px; border: 1px solid #d7e3f7; border-radius: 11px; background: linear-gradient(105deg, #edf4ff, #f9fbff); }
.reminder-strip.is-empty { border-color: #e2e7ee; background: #fafbfc; }
.reminder-icon { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; border-radius: 9px; color: #2b67ca; background: #dce9ff; font-size: 17px; }
.reminder-strip.is-empty .reminder-icon { color: #77869a; background: #edf1f5; }
.next-deadline-content { min-width: 0; display: grid; gap: 2px; flex: 1; }
.next-deadline-content strong { overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.next-deadline-content > span:last-child { overflow: hidden; color: var(--ink-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.reminder-kicker { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.reminder-action { padding: 8px 10px; border-radius: 7px; color: var(--blue); background: #dfeaff; font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.reminder-action:hover { background: #cfe0ff; }
.legal-notice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.legal-notice > div { display: grid; gap: 3px; padding: 11px 13px; border: 1px solid #e1e7ef; border-radius: 9px; background: rgba(255,255,255,.72); }
.legal-notice strong { color: var(--ink); font-size: 11px; }
.legal-notice span { color: var(--ink-soft); font-size: 11px; line-height: 1.45; }
.info-module { display: block; padding: 22px 24px 18px; border: 1px solid #d8e3f7; border-radius: 12px; background: linear-gradient(125deg, #f7faff, #fff); box-shadow: var(--shadow); }
.info-module-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 7px; }
.info-module-heading h2 { margin: 0; color: var(--ink); font-size: 21px; }
.info-module-intro { max-width: 760px; margin: 0 0 18px; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.info-module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.info-module-card { display: grid; align-content: start; gap: 6px; min-height: 124px; padding: 14px; border: 1px solid #e1e8f3; border-radius: 9px; background: rgba(255,255,255,.8); }
.info-module-card strong { color: var(--ink); font-size: 13px; }
.info-module-card p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.info-module-card a { color: var(--blue); font-weight: 700; text-decoration: none; }
.info-module-card a:hover { text-decoration: underline; }
.info-module-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 17px; padding-top: 12px; border-top: 1px solid #e6ebf3; color: var(--muted); font-size: 11px; }

.tenant-panel { margin-bottom: 18px; padding: 22px 24px 18px; }
.tenant-form { display: grid; gap: 17px; }
.tenant-account-bar { display: flex; align-items: end; gap: 10px; padding-bottom: 3px; }
.tenant-account-bar .field { flex: 1; }
.tenant-account-bar .secondary-button { min-height: 42px; white-space: nowrap; }
.tenant-config-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.tenant-logo-field input[type="file"] { height: auto; min-height: 42px; padding: 10px 12px; }
.tenant-logo-field small, .tenant-lawyers-row small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.tenant-preview-card { min-height: 132px; grid-column: 1 / -1; display: flex; align-items: center; gap: 17px; padding: 14px 16px; border: 1px solid #dbe4f4; border-radius: 10px; background: linear-gradient(120deg, #0b1524 0%, #112a4b 55%, #173a68 100%); }
.tenant-preview-fixed { width: 185px; display: grid; justify-items: start; gap: 7px; color: #f8fbff; }
.tenant-preview-fixed img { display: block; width: 150px; height: auto; }
.tenant-preview-fixed strong { color: #fff; font-family: Manrope, sans-serif; font-size: 16px; letter-spacing: -.03em; }
.tenant-preview-fixed strong::first-letter { color: #fff; }
.tenant-preview-divider { width: 1px; height: 80px; background: rgba(219, 232, 255, .24); }
.tenant-preview-client { min-width: 0; display: flex; align-items: center; gap: 12px; color: #fff; }
.tenant-preview-client > div:last-child { display: grid; gap: 5px; }
.tenant-preview-client strong { overflow-wrap: anywhere; font-size: 14px; }
.tenant-preview-client span { color: #a9c2e6; font-size: 11px; }
.tenant-preview-client a { color: #d5e4ff; font-size: 11px; font-weight: 800; text-decoration: none; }
.tenant-preview-client a:hover { text-decoration: underline; }
.tenant-logo-preview-wrap { width: 78px; height: 62px; display: grid; place-items: center; flex: 0 0 78px; overflow: hidden; border: 1px dashed rgba(219, 232, 255, .45); border-radius: 8px; color: #a9c2e6; background: rgba(255,255,255,.06); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.tenant-logo-preview { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.tenant-courts-fieldset { margin: 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); }
.tenant-courts-fieldset legend { padding: 0; color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.tenant-field-help { margin: 6px 0 11px; color: var(--muted); font-size: 11px; }
.tenant-court-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.tenant-court-group { display: grid; gap: 6px; }
.tenant-court-group-wide { grid-column: 1 / -1; }
.tenant-court-group > strong { color: var(--ink); font-size: 11px; }
.tenant-court-group-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.tenant-court-option { display: flex; align-items: flex-start; gap: 8px; padding: 8px 9px; border: 1px solid #e2e7ef; border-radius: 7px; color: var(--ink-soft); background: #fbfcfd; cursor: pointer; }
.tenant-court-option:has(input:checked) { border-color: #b6cdf4; background: #f3f7ff; }
.tenant-court-option input { width: 14px; height: 14px; margin-top: 1px; accent-color: var(--blue); }
.tenant-court-option span { display: grid; gap: 2px; min-width: 0; }
.tenant-court-option b { color: var(--ink); font-size: 11px; }
.tenant-court-option small { color: var(--muted); font-size: 10px; line-height: 1.3; }
.tenant-court-summary { margin-top: 8px; color: var(--muted); font-size: 10px; }
.billing-fieldset { margin: 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); }
.billing-fieldset legend { padding: 0; color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.billing-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; margin-top: 10px; align-items: stretch; }
.billing-plan-card { display: grid; gap: 7px; padding: 13px 14px; border: 1px solid #d8e3f7; border-radius: 9px; background: linear-gradient(135deg, #f1f6ff, #fbfdff); }
.billing-plan-card > div { display: grid; gap: 5px; }
.billing-kicker { color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.billing-plan-card strong { color: var(--ink); font-family: Manrope, sans-serif; font-size: 22px; letter-spacing: -.04em; }
.billing-plan-card strong small { color: var(--muted); font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0; }
.billing-plan-card p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.45; }
.billing-status { width: fit-content; padding: 4px 7px; border-radius: 999px; color: #86631f; background: #fff3d3; font-size: 10px; font-weight: 800; }
.billing-help { color: var(--muted); font-size: 10px; line-height: 1.35; }
.billing-branches { display: grid; align-content: start; gap: 8px; padding: 2px 0; color: var(--ink-soft); font-size: 11px; }
.billing-branches > span { color: var(--ink); font-weight: 800; }
.billing-branches label { display: flex; align-items: center; gap: 7px; }
.billing-branches input { width: 14px; height: 14px; accent-color: var(--blue); }
.billing-reminder-toggle { display: grid; align-content: start; gap: 8px; padding: 2px 0; color: var(--ink-soft); font-size: 11px; }
.billing-reminder-toggle > span { color: var(--ink); font-weight: 800; }
.billing-reminder-toggle label { display: flex; align-items: center; gap: 7px; }
.billing-reminder-toggle input { width: 14px; height: 14px; accent-color: var(--blue); }
.tenant-billing-summary { margin-top: 8px; color: var(--muted); font-size: 10px; }
.contracting-offices-panel { margin-bottom: 18px; padding: 22px 24px 18px; }
.contracting-offices-list { display: grid; gap: 9px; }
.contracting-office-card { display: grid; grid-template-columns: minmax(230px, 1.1fr) minmax(240px, 1fr) auto; align-items: center; gap: 14px; padding: 12px 13px; border: 1px solid #e2e7ef; border-radius: 9px; background: #fbfcfd; }
.contracting-office-card.is-active { border-color: #b8cff4; background: #f3f7ff; }
.contracting-office-identity { min-width: 0; display: flex; align-items: center; gap: 10px; }
.contracting-office-identity > div:last-child { min-width: 0; display: grid; gap: 4px; }
.contracting-office-identity strong { overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.contracting-office-identity span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.contracting-office-logo { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; overflow: hidden; border: 1px solid #dce4ef; border-radius: 9px; background: #fff; }
.contracting-office-logo img { width: 100%; height: 100%; object-fit: contain; }
.contracting-office-placeholder { color: var(--blue) !important; font-family: Manrope, sans-serif; font-size: 12px !important; font-weight: 800; text-align: center; }
.contracting-office-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.contracting-office-facts span { padding: 5px 7px; border-radius: 999px; color: var(--ink-soft); background: #eef2f8; font-size: 10px; font-weight: 700; }
.contracting-office-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.contracting-office-status { color: #86631f; font-size: 10px; font-weight: 800; white-space: nowrap; }
.contracting-office-status.is-active { color: var(--green); }
.contracting-office-status.is-past_due { color: #b47717; }
.contracting-office-status.is-suspended, .contracting-office-status.is-cancelled { color: #ae5050; }
.contracting-office-empty { padding: 18px 14px; border: 1px dashed #d9e1eb; border-radius: 8px; color: var(--muted); background: #fbfcfd; font-size: 11px; line-height: 1.5; text-align: center; }
.billing-source-fixed { color: var(--green) !important; font-weight: 800; }
.billing-source-fixed input { accent-color: var(--green); }
.billing-reports-panel { margin-bottom: 18px; padding: 22px 24px 18px; }
.billing-report-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 9px; margin: 15px 0 20px; }
.billing-report-metrics > div { display: grid; gap: 5px; padding: 11px 12px; border: 1px solid #e2e8f1; border-radius: 8px; background: #fbfcfd; }
.billing-report-metrics span { color: var(--muted); font-size: 10px; font-weight: 800; line-height: 1.25; }
.billing-report-metrics strong { color: var(--ink); font-family: Manrope, sans-serif; font-size: 22px; line-height: 1; }
.billing-report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.billing-report-column { min-width: 0; }
.billing-report-column h3 { margin-bottom: 9px; font-size: 14px; }
.billing-report-list { display: grid; gap: 7px; }
.billing-report-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 11px; border: 1px solid #e2e7ef; border-radius: 8px; color: var(--ink); background: #fbfcfd; text-align: left; }
.billing-report-row:hover { border-color: #b8cff4; background: #f3f7ff; }
.billing-report-row-open { min-width: 0; flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; }
.billing-report-row-open:hover { color: var(--blue); }
.billing-report-row-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.billing-report-row-actions .text-button { min-height: 28px; padding: 0 8px; border: 1px solid #dec174; border-radius: 6px; color: #765718; background: #fffaf0; font-size: 10px; }
.billing-report-row-actions .text-button:hover { border-color: #b88a2d; background: #fff0c9; }
.billing-report-actions { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid #ead9ab; border-radius: 8px; color: #745f2d; background: #fffaf0; font-size: 11px; }
.billing-report-actions-note { color: #927b48; }
.billing-report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.billing-report-toolbar strong { color: var(--ink); font-size: 13px; }
.billing-account-card { display: grid; align-content: center; gap: 5px; padding: 13px; border: 1px solid #e4d5ae; border-radius: 9px; background: linear-gradient(135deg, #fffaf0, #fff); }
.tenant-account-data { margin: 16px 0; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; }
.tenant-account-data legend { padding: 0 7px; color: var(--ink); font-size: 12px; font-weight: 800; }
.tenant-data-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.billing-account-card strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.billing-account-card small { color: var(--muted); font-size: 10px; }
.payment-history-card { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.payment-history-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.payment-history-heading strong { font-size: 12px; }
.payment-history-heading span { color: var(--muted); font-size: 10px; }
.payment-history-list { display: grid; gap: 6px; }
.payment-history-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid #e7ebf1; border-radius: 7px; background: #fbfcfd; }
.payment-history-row span { display: grid; gap: 2px; }
.payment-history-row strong { font-size: 11px; }
.payment-history-row small, .payment-history-empty { color: var(--muted); font-size: 10px; }
.payment-history-empty { padding: 9px 10px; border: 1px dashed #d9e1eb; border-radius: 7px; text-align: center; }
.billing-received-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.billing-received-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 1px solid #e7ebf1; border-radius: 7px; background: #fbfcfd; }
.billing-received-row span { display: grid; gap: 3px; }
.billing-received-row strong { color: var(--ink); font-size: 11px; }
.billing-received-row small { color: var(--muted); font-size: 10px; }
.contracting-office-actions .text-button { min-height: 30px; padding: 0 9px; border: 1px solid #dec174; border-radius: 6px; color: #765718; background: #fffaf0; font-size: 10px; }
.contracting-office-actions .text-button:hover { border-color: #b88a2d; background: #fff0c9; }
.billing-report-row-main, .billing-report-row-side { min-width: 0; display: grid; gap: 4px; }
.billing-report-row-main { flex: 1; }
.billing-report-row-main strong, .billing-report-row-side strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.billing-report-row-main small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.billing-report-row-side { flex: 0 0 auto; justify-items: end; }
.billing-report-row-side > strong { color: var(--ink-soft); }
.billing-report-tag { padding: 4px 6px; border-radius: 999px; color: #89631c; background: var(--amber-soft); font-size: 9px; font-weight: 800; white-space: nowrap; }
.billing-report-tag.is-paid, .billing-report-tag.is-trial, .billing-report-tag.is-current { color: #357255; background: var(--green-soft); }
.billing-report-tag.is-blocked, .billing-report-tag.is-cancelled { color: #a54e4e; background: #fff0f0; }
.billing-report-empty { padding: 16px 12px; border: 1px dashed #d9e1eb; border-radius: 8px; color: var(--muted); background: #fbfcfd; font-size: 10px; line-height: 1.45; text-align: center; }
.tenant-lawyers-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0 0; border-top: 1px solid var(--line); }
.tenant-lawyers-row > div { display: grid; gap: 3px; }
.tenant-lawyers-row > div > span { color: var(--ink-soft); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.tenant-lawyers-row strong { color: var(--ink); font-size: 13px; }
.secondary-button { min-height: 36px; padding: 0 12px; color: var(--blue); background: var(--blue-soft); font-size: 11px; }
.secondary-button:hover { background: #dce8ff; }
.tenant-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 2px; }
.tenant-config-status { display: inline-flex; align-items: center; gap: 8px; color: #4c6a8f; font-size: 11px; }
.tenant-config-status .mini-dot { width: 6px; height: 6px; box-shadow: none; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr); gap: 18px; margin-bottom: 18px; }
.team-panel, .routine-panel { padding: 22px 24px; }
.text-button { padding: 7px 10px; color: var(--blue); background: var(--blue-soft); font-size: 12px; }
.text-button:hover { background: #dce8ff; }
.panel-intro { margin: -3px 0 17px; color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.lawyer-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.lawyer-card { min-height: 76px; display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid #e4e8ef; border-radius: 9px; background: #fbfcfd; }
.lawyer-card.is-empty { border-style: dashed; background: transparent; }
.avatar { width: 33px; height: 33px; flex: 0 0 33px; display: grid; place-items: center; border-radius: 9px; color: #3768c6; background: #e6efff; font-family: Manrope, sans-serif; font-size: 13px; font-weight: 800; }
.avatar.empty { color: #a2acbb; background: #eef1f5; font-size: 17px; font-weight: 500; }
.lawyer-copy { min-width: 0; flex: 1; }
.lawyer-name { margin: 0 0 4px; overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.lawyer-oab { margin: 0; color: var(--muted); font-size: 11px; }
.lawyer-actions { display: flex; gap: 3px; }
.icon-button { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; color: #8b97a8; background: transparent; font-size: 14px; }
.icon-button:hover { color: var(--blue); background: var(--blue-soft); }
.icon-button.delete:hover { color: #b64a4a; background: #fff0f0; }

.soon-badge { padding: 6px 9px; color: #8a621e; background: var(--amber-soft); font-size: 11px; font-weight: 800; }
.routine-visual { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 10px; background: #f7f9fc; }
.routine-ring { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; border: 5px solid #dce8ff; border-top-color: var(--blue); border-right-color: var(--blue); border-radius: 50%; color: var(--blue); font-family: Manrope, sans-serif; font-size: 13px; font-weight: 800; transform: rotate(-22deg); }
.routine-ring span { transform: rotate(22deg); }
.routine-visual strong { display: block; margin-bottom: 4px; font-size: 13px; }
.routine-visual p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.routine-steps { display: grid; gap: 8px; margin: 16px 0 15px; }
.routine-step { display: flex; align-items: center; gap: 10px; }
.routine-step span { width: 24px; color: #8ea3c3; font-family: Manrope, sans-serif; font-size: 10px; font-weight: 800; }
.routine-step p { margin: 0; color: var(--ink-soft); font-size: 12px; }
.routine-footer { display: flex; align-items: center; gap: 8px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.mini-dot { display: inline-block; width: 6px; height: 6px; box-shadow: none; }

.deadlines-panel { margin-bottom: 18px; padding: 22px 24px 18px; }
.deadline-layout { display: grid; grid-template-columns: 1fr; gap: 22px; }
.deadline-panel-actions { display: flex; align-items: center; gap: 9px; }
.deadline-form { display: grid; gap: 11px; }
.deadline-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.deadline-linked-publication { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 11px; border: 1px dashed #cdd8e8; border-radius: 8px; color: var(--ink-soft); background: #f8faff; }
.deadline-linked-publication > div { min-width: 0; display: grid; gap: 4px; }
.deadline-linked-publication span { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.deadline-linked-publication strong { overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.deadline-linked-publication.is-linked { border-style: solid; border-color: #b8cff4; background: #f1f6ff; }
.deadline-linked-publication.is-linked strong { color: var(--ink); font-weight: 800; }
.deadline-linked-publication .icon-button { flex: 0 0 26px; }
.deadline-email-option { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.deadline-email-option input { width: 14px; height: 14px; accent-color: var(--blue); }
.deadline-email-help { margin: -3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.deadline-email-help strong { color: var(--ink-soft); overflow-wrap: anywhere; }
.deadline-form .field input, .deadline-form .field select { height: 38px; }
.deadline-submit { justify-self: start; min-height: 38px; margin-top: 2px; font-size: 11px; }
.deadline-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.deadline-form-actions .secondary-button { min-height: 38px; }
.deadline-list-wrap { min-width: 0; }
.deadline-list { display: grid; gap: 8px; }
.deadline-item { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 10px 11px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fbfcfd; }
.deadline-date { display: grid; gap: 3px; }
.deadline-date strong { color: var(--blue); font-size: 11px; }
.deadline-date span { color: var(--muted); font-size: 10px; }
.deadline-copy { min-width: 0; display: grid; gap: 3px; }
.deadline-copy > strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.deadline-copy > span, .deadline-copy > small { overflow: hidden; color: var(--ink-soft); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.deadline-copy > small { color: var(--muted); }
.deadline-item.is-completed { border-color: #dce9e3; background: #f6fbf8; }
.deadline-item.is-completed .deadline-date strong { color: var(--green); }
.deadline-item.is-completed .deadline-copy > strong { color: #507263; }
.deadline-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.deadline-reschedule { min-height: 28px; padding: 0 8px; border: 0; border-radius: 6px; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-weight: 800; white-space: nowrap; }
.deadline-reschedule:hover { background: #dce8ff; }
.deadline-complete { min-height: 28px; padding: 0 8px; border: 0; border-radius: 6px; color: #327653; background: var(--green-soft); font-size: 10px; font-weight: 800; white-space: nowrap; }
.deadline-complete:hover { background: #dcefe4; }
.deadline-empty { padding: 22px 14px; border: 1px dashed #d9e1eb; border-radius: 8px; color: var(--muted); background: #fbfcfd; font-size: 11px; line-height: 1.5; text-align: center; }
.deadline-note { margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.schedule-publication-button { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 6px 8px; border: 0; border-radius: 6px; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-weight: 800; }
.schedule-publication-button:hover { background: #dce8ff; }

.results-panel { position: relative; overflow: visible; }
.results-heading { align-items: center; padding: 22px 24px 16px; margin-bottom: 0; }
.results-tools { display: flex; align-items: center; gap: 9px; }
.email-summary { height: 36px; padding: 0 10px; border: 1px solid #cbdcff; border-radius: 7px; color: var(--blue); background: var(--blue-soft); font-size: 11px; font-weight: 800; white-space: nowrap; }
.email-summary:hover:not(:disabled) { background: #dce8ff; }
.email-summary:disabled { cursor: not-allowed; opacity: .45; }
.email-summary-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.instance-badge { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.instance-first { color: #315b8f; background: #eaf2ff; }
.instance-second { color: #806020; background: #fff4d8; }
.result-search { width: 194px; display: flex; align-items: center; padding: 0 10px; }
.result-search span { color: #8b97a8; font-size: 18px; }
.result-search input { width: 100%; height: 100%; border: 0; outline: 0; padding: 0 0 0 7px; color: var(--ink); font-size: 12px; }
.count-badge { padding: 7px 9px; color: #607087; background: #eef1f5; font-size: 11px; font-weight: 700; }
.filters-bar { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr auto; gap: 9px; align-items: end; padding: 0 24px 16px; }
.filter-field { display: grid; gap: 6px; min-width: 0; }
.filter-field > span { color: #8793a4; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.filter-field select, .filter-field input { width: 100%; height: 36px; padding: 0 10px; border: 1px solid #dce2e9; border-radius: 7px; outline: 0; color: var(--ink-soft); background: #fbfcfd; font-size: 11px; }
.filter-field select:focus, .filter-field input:focus { border-color: #71a1f0; box-shadow: 0 0 0 3px rgba(67, 121, 214, .1); }
.filter-multi-picker { position: relative; width: 100%; }
.filter-multi-picker summary { height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border: 1px solid #dce2e9; border-radius: 7px; outline: 0; color: var(--ink-soft); background: #fbfcfd; font-size: 11px; cursor: pointer; list-style: none; }
.filter-multi-picker summary::-webkit-details-marker { display: none; }
.filter-multi-picker summary::after { content: "⌄"; color: #8b97a8; font-size: 14px; }
.filter-multi-picker[open] summary { border-color: #71a1f0; box-shadow: 0 0 0 3px rgba(67, 121, 214, .1); }
.filter-multi-options { position: absolute; top: calc(100% + 5px); left: 0; z-index: 5; width: min(290px, 70vw); max-height: 230px; overflow-y: auto; padding: 7px; border: 1px solid #dce2e9; border-radius: 9px; background: #fff; box-shadow: 0 15px 30px rgba(25, 44, 70, .14); }
.filter-multi-option { display: flex; align-items: center; gap: 8px; padding: 8px 7px; border-radius: 6px; color: var(--ink-soft); font-size: 11px; cursor: pointer; }
.filter-multi-option:hover { background: #f3f6fb; }
.filter-multi-option input { width: 14px; height: 14px; flex: 0 0 14px; accent-color: var(--blue); }
.filter-multi-all { margin-bottom: 4px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); font-weight: 800; }
.clear-filters { height: 36px; padding: 0 10px; border: 0; border-radius: 7px; color: var(--blue); background: var(--blue-soft); font-size: 11px; font-weight: 800; white-space: nowrap; }
.clear-filters:hover { background: #dce8ff; }
.email-toolbar { display: flex; align-items: end; gap: 12px; padding: 0 24px 16px; }
.email-recipient { display: grid; gap: 6px; width: min(300px, 100%); }
.email-recipient span { color: #8793a4; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.email-recipient input { width: 100%; height: 36px; padding: 0 10px; border: 1px solid #dce2e9; border-radius: 7px; outline: 0; color: var(--ink-soft); background: #fbfcfd; font-size: 11px; }
.email-recipient input:focus { border-color: #71a1f0; box-shadow: 0 0 0 3px rgba(67, 121, 214, .1); }
.email-help { padding-bottom: 9px; color: var(--muted); font-size: 10px; }
.results-area { min-height: 180px; border-top: 1px solid var(--line); }
.query-audit { margin: 15px 24px 0; padding: 12px 13px; border: 1px solid #e1e7ef; border-radius: 8px; background: #fbfcfe; }
.query-audit-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); font-size: 11px; font-weight: 800; }
.query-audit-list { display: grid; gap: 6px; margin-top: 9px; }
.query-audit-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink-soft); font-size: 11px; }
.query-audit-row strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.query-audit-row span { color: #327653; font-size: 10px; font-weight: 800; white-space: nowrap; }
.query-audit-row.is-error span { color: #a04444; }
.empty-state { min-height: 220px; display: grid; place-content: center; justify-items: center; padding: 34px; text-align: center; }
.empty-icon { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 12px; border: 1px solid #cbdcff; border-radius: 12px; color: var(--blue); background: var(--blue-soft); font-size: 24px; transform: rotate(-7deg); }
.empty-state h3 { margin-bottom: 5px; }
.empty-state p { max-width: 400px; margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.results-table-wrap { overflow-x: auto; }
.results-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.results-table th { padding: 12px 14px; color: #8793a4; background: #fafbfc; font-size: 10px; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.results-table td { max-width: 310px; padding: 14px; border-top: 1px solid #eef1f4; color: var(--ink-soft); vertical-align: top; }
.results-table tr:hover td { background: #fcfdff; }
.process-link { color: var(--blue); font-weight: 700; text-decoration: none; }
.process-link:hover { text-decoration: underline; }
.result-main { color: var(--ink); font-weight: 700; }
.result-sub { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.publication-details { margin-top: 7px; }
.publication-details summary { width: fit-content; cursor: pointer; color: var(--blue); font-size: 11px; font-weight: 800; }
.publication-details summary:hover { text-decoration: underline; }
.publication-full-text { max-height: 330px; overflow: auto; margin-top: 9px; padding: 11px 12px; border-left: 2px solid #cbdcff; color: #53647b; background: #f8fafc; font-size: 11px; line-height: 1.55; white-space: pre-wrap; }
.court-label { display: inline-block; padding: 4px 7px; border-radius: 5px; color: #4268a7; background: var(--blue-soft); font-size: 10px; font-weight: 800; }
.result-type { color: #795f2d; font-size: 11px; font-weight: 700; }
.read-status { display: inline-block; padding: 4px 7px; border-radius: 5px; color: #91651b; background: var(--amber-soft); font-size: 10px; font-weight: 800; }
.read-status.is-read { color: #327653; background: var(--green-soft); }
.read-button { margin-top: 8px; padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 11px; font-weight: 800; }
.read-button:hover { text-decoration: underline; }
.email-link { display: inline-block; margin-top: 6px; color: var(--blue); font-size: 11px; font-weight: 800; text-decoration: none; }
.email-link:hover { text-decoration: underline; }
.error-banner { margin: 18px 24px; padding: 12px 14px; border: 1px solid #f0c6c6; border-radius: 8px; color: #8f3e3e; background: #fff5f5; font-size: 12px; line-height: 1.5; }
.warning-banner { margin: 15px 24px 0; padding: 10px 12px; border-radius: 7px; color: #806020; background: #fff8e8; font-size: 11px; }
.page-footer { display: flex; justify-content: space-between; gap: 16px; padding: 18px 2px 4px; color: #98a1ae; font-size: 10px; }
.page-footer-contact { color: var(--blue); font-weight: 800; text-decoration: none; white-space: nowrap; }
.page-footer-contact:hover { text-decoration: underline; }

.lawyer-dialog { width: min(92vw, 500px); padding: 0; border: 0; border-radius: 14px; color: var(--ink); background: var(--surface); box-shadow: 0 24px 80px rgba(9, 23, 43, .28); }
.lawyer-dialog::backdrop { background: rgba(7, 17, 30, .55); backdrop-filter: blur(3px); }
.lawyer-dialog form { padding: 25px; }
.deadline-dialog { width: min(92vw, 650px); max-height: 90vh; padding: 0; border: 1px solid rgba(217, 165, 72, .45); border-radius: 16px; color: var(--ink); background: var(--surface); box-shadow: 0 28px 90px rgba(9, 23, 43, .34); }
.deadline-dialog::backdrop { background: rgba(7, 17, 30, .66); backdrop-filter: blur(4px); }
.deadline-dialog form { display: grid; gap: 13px; max-height: 90vh; overflow: auto; padding: 26px; }
.deadline-dialog .dialog-heading { margin-bottom: 0; }
.deadline-dialog .dialog-heading h2 { margin: 0; color: var(--ink); font-size: 22px; }
.deadline-dialog-intro { margin: -4px 0 2px; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.deadline-dialog .deadline-linked-publication { margin-top: 2px; }
.deadline-dialog .deadline-form-actions { margin-top: 2px; }
.dialog-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.close-button { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; color: #8994a4; background: #f1f3f6; font-size: 21px; line-height: 1; }
.close-button:hover { color: var(--ink); background: #e7ebf1; }
.dialog-row { display: grid; grid-template-columns: 1fr .65fr; gap: 12px; margin-top: 14px; }
.dialog-note { display: flex; align-items: flex-start; gap: 7px; margin: 17px 0 22px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.dialog-note span { width: 16px; height: 16px; flex: 0 0 16px; display: grid; place-items: center; border: 1px solid #b7c9e9; border-radius: 50%; color: var(--blue); font-size: 10px; font-weight: 800; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 17px; border-top: 1px solid var(--line); }
.secondary-button { min-height: 42px; padding: 0 16px; color: var(--ink-soft); background: #eef1f5; }
.secondary-button:hover { background: #e3e8ef; }

.toast-region { position: fixed; right: 24px; bottom: 24px; z-index: 10; display: grid; gap: 8px; }
.toast { max-width: 360px; padding: 12px 15px; border: 1px solid #cbdcff; border-radius: 9px; color: #234579; background: #f4f8ff; box-shadow: 0 10px 28px rgba(30, 67, 120, .16); font-size: 12px; animation: toast-in .25s ease both; }
.toast.is-error { border-color: #f0c6c6; color: #8f3e3e; background: #fff5f5; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Direção visual v1.4: sóbria, editorial e com acentos dourados da marca. */
:root {
  --canvas: #eef2f6;
  --surface: #ffffff;
  --line: #dde4ed;
  --blue: #215fcf;
  --blue-soft: #edf3ff;
  --navy: #081424;
  --gold: #d9a548;
  --gold-soft: #fff8e8;
  --shadow: 0 18px 45px rgba(20, 42, 72, .075);
}

body { background: linear-gradient(145deg, #f4f7fa 0%, var(--canvas) 58%, #e9eef4 100%); }
.access-screen { background: radial-gradient(circle at 15% 0%, rgba(46, 100, 190, .62), transparent 34%), radial-gradient(circle at 100% 100%, rgba(217, 165, 72, .16), transparent 33%), #07111f; }
.access-card { border-color: rgba(217, 165, 72, .34); background: linear-gradient(155deg, rgba(18, 43, 76, .96), rgba(7, 19, 34, .97)); box-shadow: 0 28px 90px rgba(3, 11, 22, .48), 0 0 0 1px rgba(255,255,255,.03); }
.access-card .eyebrow { color: #e4b65d; }
.access-card h1 { letter-spacing: -.045em; }
.access-secondary-link { color: #c9dcff; }
.build-meta { color: #9eabc0; }

.commercial-screen { background: radial-gradient(circle at 90% -5%, rgba(60, 119, 219, .52), transparent 30%), radial-gradient(circle at 4% 52%, rgba(217, 165, 72, .12), transparent 25%), linear-gradient(135deg, #07111f 0%, #0b1829 48%, #091321 100%); }
.commercial-shell { width: min(100%, 1280px); padding-top: 28px; }
.commercial-header { padding-bottom: 24px; border-bottom-color: rgba(217, 165, 72, .25); }
.commercial-header > img { width: 148px; }
.commercial-header strong span, .commercial-hero .eyebrow { color: #e4b65d; }
.commercial-content { padding-top: 78px; }
.commercial-hero { gap: 74px; }
.commercial-hero h1 { max-width: 720px; font-size: clamp(39px, 5.6vw, 70px); letter-spacing: -.06em; }
.commercial-lead { max-width: 650px; color: #c3d1e5; }
.commercial-actions .primary-button { background: linear-gradient(135deg, #2d74e5, #1e50aa); box-shadow: 0 10px 24px rgba(25, 86, 183, .28); }
.commercial-actions .primary-button:hover { background: linear-gradient(135deg, #3d83ef, #245fc2); }
.commercial-trust-line { display: flex; align-items: flex-start; gap: 8px; max-width: 610px; margin: 19px 0 0; color: #8fa4c1; font-size: 12px; line-height: 1.5; }
.commercial-trust-line { justify-content: center; max-width: 720px; margin-right: auto; margin-left: auto; text-align: center; }
.commercial-trust-line span { flex: 0 0 auto; color: #7bd0a8; font-weight: 900; }
.commercial-plan-card { position: relative; padding: 28px; border-color: rgba(217, 165, 72, .46); background: linear-gradient(155deg, rgba(30, 63, 111, .94), rgba(11, 27, 48, .98)); box-shadow: 0 28px 70px rgba(3, 11, 22, .4); }
.commercial-plan-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: 16px 16px 0 0; background: linear-gradient(90deg, #d9a548, #f3d28d, transparent); }
.commercial-plan-card .eyebrow { color: #e4b65d; }
.commercial-price { color: #f0c979; }
.commercial-plan-note { margin: 0; padding-top: 10px; border-top: 1px solid rgba(217, 165, 72, .2); color: #a9bad1; font-size: 11px; line-height: 1.45; }
.commercial-plan-card .secondary-button { min-height: 44px; border: 1px solid rgba(244, 210, 142, .35); color: #fff2cf; background: linear-gradient(135deg, rgba(217, 165, 72, .24), rgba(36, 99, 212, .28)); font-size: 12px; font-weight: 800; }
.commercial-plan-card .secondary-button:hover { color: #fff; border-color: rgba(244, 210, 142, .7); background: linear-gradient(135deg, rgba(217, 165, 72, .34), rgba(36, 99, 212, .38)); }
.commercial-plan-cta { min-height: 46px; border: 1px solid rgba(255, 255, 255, .18); background: linear-gradient(135deg, #367ff0, #1d55b4); font-size: 13px; letter-spacing: -.01em; }
.commercial-plan-cta:hover { background: linear-gradient(135deg, #4b8cf4, #2869cf); }
.commercial-screen a.primary-button, .commercial-screen a.secondary-button { text-decoration: none; }
.commercial-screen .commercial-actions .primary-button, .commercial-screen .commercial-plan-cta, .commercial-screen .demo-player-controls .primary-button { color: #172a46; border-color: rgba(255, 231, 173, .72); background: linear-gradient(135deg, #f4d28b, #c99332); box-shadow: 0 10px 24px rgba(171, 116, 25, .24); }
.commercial-screen .commercial-actions .primary-button, .commercial-screen .commercial-plan-cta, .commercial-screen .demo-player-controls .primary-button { border: 0; }
.commercial-screen .commercial-actions .primary-button:hover, .commercial-screen .commercial-plan-cta:hover, .commercial-screen .demo-player-controls .primary-button:hover { color: #10213a; background: linear-gradient(135deg, #ffe4a7, #d9a548); box-shadow: 0 12px 28px rgba(196, 143, 45, .32); }
.commercial-hero-visual { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .4fr); align-items: center; gap: 18px; margin-top: 48px; padding: 12px; overflow: hidden; border: 1px solid rgba(217, 165, 72, .28); border-radius: 18px; background: linear-gradient(120deg, rgba(11, 28, 50, .86), rgba(15, 42, 76, .58)); box-shadow: 0 24px 58px rgba(3, 11, 22, .28); }
.commercial-hero-visual::after { content: ""; position: absolute; top: -100px; right: 18%; width: 250px; height: 250px; border-radius: 50%; background: rgba(217, 165, 72, .1); filter: blur(44px); pointer-events: none; }
.commercial-hero-visual img { position: relative; z-index: 1; display: block; width: 100%; border-radius: 12px; }
.commercial-hero-visual-caption { position: relative; z-index: 1; display: grid; gap: 8px; padding: 14px 18px 14px 4px; }
.commercial-hero-visual-caption .eyebrow { margin: 0; color: #e4b65d; font-size: 9px; }
.commercial-hero-visual-caption strong { max-width: 240px; color: #fff; font-family: Manrope, sans-serif; font-size: 22px; line-height: 1.08; letter-spacing: -.04em; }
.commercial-hero-visual-caption span { max-width: 250px; color: #c1d0e5; font-size: 12px; line-height: 1.5; }
.commercial-difference { margin-top: 74px; padding: 54px 48px 43px; border: 1px solid rgba(217, 165, 72, .28); border-radius: 18px; background: linear-gradient(135deg, rgba(18, 43, 76, .9), rgba(8, 21, 37, .88)); box-shadow: 0 24px 58px rgba(3, 11, 22, .2); }
.commercial-difference .commercial-section-heading { max-width: 780px; margin: 0 auto; }
.commercial-difference .commercial-section-heading .eyebrow { color: #e4b65d; }
.commercial-difference .commercial-section-heading h2 { max-width: 680px; margin-right: auto; margin-left: auto; }
.commercial-difference .commercial-section-heading > p:last-child { max-width: 700px; margin-right: auto; margin-left: auto; color: #c1d0e5; }
.commercial-difference-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.commercial-difference-grid article { display: grid; gap: 7px; min-height: 136px; padding: 19px; border: 1px solid rgba(180, 209, 255, .17); border-radius: 11px; background: rgba(7, 18, 32, .36); }
.commercial-difference-number { color: #e4b65d; font-family: Manrope, sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.commercial-difference-grid strong { color: #fff; font-family: Manrope, sans-serif; font-size: 20px; letter-spacing: -.04em; }
.commercial-difference-grid p { margin: 0; color: #b9cae2; font-size: 12px; line-height: 1.5; }
.commercial-difference-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 25px 0 0; color: #f4d28e; font-size: 12px; font-weight: 800; text-align: center; }
.commercial-difference-note span { color: #78d4a8; font-size: 15px; }
.commercial-flow-strip { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 10px; margin: 52px 0 0; padding: 13px; border: 1px solid rgba(217, 165, 72, .25); border-radius: 12px; background: rgba(11, 27, 47, .62); }
.commercial-flow-intro, .commercial-flow-step { min-width: 0; padding: 13px 14px; border-radius: 8px; }
.commercial-flow-intro { display: grid; gap: 4px; align-content: center; background: linear-gradient(135deg, rgba(217, 165, 72, .16), rgba(36, 99, 212, .08)); }
.commercial-flow-intro .eyebrow { margin-bottom: 0; color: #e4b65d; font-size: 9px; }
.commercial-flow-intro strong { color: #fff; font-family: Manrope, sans-serif; font-size: 15px; letter-spacing: -.03em; }
.commercial-flow-intro span { color: #a9bad1; font-size: 11px; line-height: 1.4; }
.commercial-flow-step { display: grid; gap: 4px; border-left: 1px solid rgba(180, 209, 255, .15); }
.commercial-flow-step b { color: #e4b65d; font-family: Manrope, sans-serif; font-size: 10px; }
.commercial-flow-step span { color: #fff; font-size: 12px; font-weight: 800; }
.commercial-flow-step small { color: #c1d0e5; font-size: 10px; line-height: 1.5; }
.commercial-demo { margin-top: 94px; }
.commercial-section-heading h2 { letter-spacing: -.05em; }
.commercial-demo-disclaimer { max-width: 680px; margin: 13px auto 0; padding: 8px 12px; border: 1px solid rgba(217, 165, 72, .18); border-radius: 7px; color: #a9bad1 !important; background: rgba(217, 165, 72, .07); font-size: 11px !important; line-height: 1.5; text-align: center; }
.commercial-demo .commercial-section-heading .eyebrow { max-width: 760px; margin-right: auto; margin-left: auto; text-align: center; }
.commercial-demo-player { padding: 12px; border-color: rgba(217, 165, 72, .3); background: rgba(4, 12, 23, .76); box-shadow: 0 28px 70px rgba(3, 11, 22, .36); }
.demo-player-live { color: #e4b65d; }
.demo-window { border-color: #385d8b; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.demo-window-result.is-animating { animation: demo-result-in .55s ease both; }
.demo-window-agenda { border-left-color: #d9a548; background: #fff9eb; }
.demo-window-agenda span { color: #a5721b; }
.demo-agenda-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: #6b7788; font-size: 9px; font-weight: 700; }
.demo-agenda-meta span { color: #6b7788; font-size: 9px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.demo-agenda-save { justify-self: start; min-height: 28px; margin-top: 3px; padding: 0 10px; border: 1px solid #d7a84f; border-radius: 6px; color: #815d1d; background: #fff; font-size: 10px; font-weight: 900; }
.demo-agenda-save:hover { color: #5e4517; background: #fff3d5; }
.demo-agenda-save:focus-visible { outline: 3px solid rgba(36, 99, 212, .25); outline-offset: 2px; }
.demo-player-controls .primary-button { background: linear-gradient(135deg, #2d74e5, #1e50aa); }
.commercial-demo-step { border-color: rgba(180, 209, 255, .17); background: rgba(17, 35, 61, .48); }
.commercial-demo-step:hover, .commercial-demo-step.is-active { border-color: rgba(217, 165, 72, .58); background: rgba(39, 68, 111, .68); }
.commercial-demo-step > span { color: #e4b65d; }
.commercial-benefits { gap: 14px; margin-top: 88px; }
.commercial-benefits article { min-height: 135px; padding: 19px; border: 1px solid rgba(180, 209, 255, .17); border-top-color: rgba(217, 165, 72, .52); border-radius: 10px; background: rgba(17, 35, 61, .4); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.commercial-benefits article:hover { transform: translateY(-3px); border-color: rgba(217, 165, 72, .55); background: rgba(25, 50, 84, .62); }
.commercial-faq { margin-top: 88px; }
.commercial-faq details { border-color: rgba(180, 209, 255, .21); background: rgba(17, 35, 61, .5); }
.commercial-faq details[open] { border-color: rgba(217, 165, 72, .46); background: rgba(22, 44, 75, .68); }
.commercial-faq summary { padding: 16px 0; }
.commercial-contact { border-color: rgba(217, 165, 72, .35); background: linear-gradient(135deg, rgba(24, 50, 86, .78), rgba(11, 27, 47, .82)); }
.commercial-contact .secondary-button { border: 1px solid rgba(217, 165, 72, .3); color: #f4d28e; background: rgba(217, 165, 72, .1); }
.commercial-contact .secondary-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: 8px; font-size: 13px; font-weight: 900; }
.commercial-contact .secondary-button:hover { background: rgba(217, 165, 72, .18); }
.commercial-legal { color: #8fa4c1; }
.commercial-footer { border-top-color: rgba(217, 165, 72, .25); }
.commercial-footer a:hover { color: #f4d28e; }

.panel-card, .metric-card { border-color: #dce4ee; box-shadow: 0 15px 35px rgba(25, 44, 70, .055); }
.metric-primary { border-color: #c4d7f6; background: linear-gradient(135deg, #fff, #f2f6ff); }
.query-card { border-top: 3px solid #c7a25b; }
.nav-item.is-active { background: linear-gradient(90deg, #1f457b, #17365f); box-shadow: inset 3px 0 #e0ad51, 0 8px 18px rgba(4, 15, 30, .18); }
.brand-product-name span, .brand-mark span:nth-child(3) { color: #e4b65d; }

@keyframes demo-result-in { from { opacity: .35; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 720px) {
  .commercial-flow-strip { grid-template-columns: 1fr; margin-top: 34px; padding: 9px; }
  .commercial-flow-step { border-top: 1px solid rgba(180, 209, 255, .15); border-left: 0; }
  .commercial-demo-disclaimer { text-align: left; }
}

@media (max-width: 1100px) {
  .sidebar { width: 216px; flex-basis: 216px; }
  .main-content { padding: 30px 28px 22px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .access-screen { padding: 16px; }
  .access-card { padding: 26px 21px; }
  .access-logo { width: 155px; margin-bottom: 23px; }
  .legal-shell { padding: 16px 16px 30px; }
  .legal-header { align-items: flex-start; flex-wrap: wrap; }
  .legal-header > a:first-child { width: 116px; }
  .legal-header .secondary-button { width: 100%; text-align: center; }
  .legal-content { padding-top: 34px; }
  .legal-section { padding: 18px 16px 14px; }
  .signup-grid { grid-template-columns: 1fr; }
  .commercial-shell { padding: 18px 16px; }
  .commercial-header { align-items: flex-start; flex-wrap: wrap; padding-bottom: 22px; }
  .commercial-header > img { width: 112px; }
  .commercial-header-actions { width: 100%; justify-content: flex-start; padding-left: 125px; }
  .commercial-content { padding: 42px 0 25px; }
  .commercial-hero { grid-template-columns: 1fr; gap: 30px; }
  .commercial-hero h1 { font-size: clamp(35px, 11vw, 52px); }
  .commercial-lead { font-size: 15px; }
  .commercial-hero-visual { grid-template-columns: 1fr; margin-top: 34px; padding: 8px; }
  .commercial-hero-visual-caption { padding: 10px 12px 14px; }
  .commercial-hero-visual-caption strong { max-width: none; font-size: 20px; }
  .commercial-hero-visual-caption span { max-width: none; }
  .commercial-difference { margin-top: 48px; padding: 32px 18px 27px; }
  .commercial-difference-grid { grid-template-columns: 1fr; margin-top: 22px; }
  .commercial-difference-grid article { min-height: 0; }
  .commercial-benefits { grid-template-columns: 1fr; margin-top: 48px; }
  .commercial-demo { margin-top: 56px; }
  .commercial-demo-layout { grid-template-columns: 1fr; }
  .demo-window { grid-template-columns: 1fr; }
  .demo-window-sidebar { display: none; }
  .demo-window-controls { grid-template-columns: 1fr 1fr; }
  .demo-window-wide, .demo-window-controls button { grid-column: 1 / -1; }
  .commercial-contact { align-items: flex-start; flex-direction: column; margin-top: 38px; padding: 18px; }
  .commercial-contact .secondary-button { width: 100%; text-align: center; }
  .commercial-legal { margin-top: 33px; }
  .commercial-footer { display: grid; }
  .app-shell { display: block; }
  .sidebar { width: 100%; min-height: auto; padding: 16px 18px; }
  .brand-lockup { padding: 0 2px 16px; }
  .sidebar-section-label, .sidebar-note, .sidebar-footer { display: none; }
  .sidebar-nav { display: flex; gap: 4px; }
  .nav-item { flex: 1; justify-content: center; padding: 9px; }
  .main-content { padding: 24px 16px 18px; }
  .topbar { display: block; margin-bottom: 21px; }
  .topbar-meta { justify-content: space-between; padding-top: 14px; flex-wrap: wrap; }
  .client-office-badge { max-width: 100%; order: 3; }
  .homologation-badge { order: 2; }
  .access-user-badge { order: 4; max-width: 130px; }
  .logout-button { order: 5; }
  .metrics-grid { gap: 9px; }
  .metric-card { min-height: 112px; padding: 14px; }
  .metric-value { margin-top: 11px; font-size: 24px; }
  .metric-caption { font-size: 10px; }
  .query-card, .team-panel, .routine-panel { padding: 18px 16px; }
  .tenant-panel { padding: 18px 16px; }
  .tenant-config-grid, .tenant-court-options, .tenant-court-group-list { grid-template-columns: 1fr; }
  .billing-grid, .tenant-data-grid, .legal-notice, .deadline-layout, .billing-report-grid { grid-template-columns: 1fr; }
  .info-module-grid { grid-template-columns: 1fr 1fr; }
  .info-module-footer { align-items: flex-start; flex-direction: column; }
  .billing-report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-finance-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .client-finance-heading > strong { white-space: normal; }
  .client-finance-dates { grid-template-columns: 1fr; }
  .client-settings-grid, .client-settings-additions { grid-template-columns: 1fr; }
  .client-settings-add-row { grid-template-columns: 1fr 1fr; }
  .client-settings-add-row .secondary-button { grid-column: 1 / -1; }
  .client-settings-court-add-row, .client-settings-state-add-row { grid-template-columns: 1fr; }
  .client-settings-court-add-row .secondary-button, .client-settings-state-add-row .secondary-button { grid-column: auto; }
  .client-settings-price { grid-template-columns: 1fr; }
  .client-settings-price strong { justify-self: start; }
  .client-settings-actions { align-items: stretch; flex-direction: column-reverse; }
  .client-settings-actions .primary-button { width: 100%; }
  .email-template-header { align-items: flex-start; flex-direction: column; }
  .email-template-date { justify-items: start; }
  .email-template-summary { grid-template-columns: 1fr; }
  .email-template-section, .email-template-recipient { padding-left: 15px; padding-right: 15px; }
  .email-template-footer { padding-left: 15px; padding-right: 15px; }
  .email-template-deadline { align-items: flex-start; flex-direction: column; gap: 5px; }
  .email-template-deadline span { text-align: left; }
  .tenant-account-bar { align-items: stretch; flex-direction: column; }
  .tenant-account-bar .secondary-button { width: 100%; }
  .tenant-preview-card { grid-column: auto; align-items: flex-start; flex-direction: column; }
  .tenant-preview-fixed { width: 100%; }
  .tenant-preview-divider { width: 100%; height: 1px; }
  .tenant-lawyers-row, .tenant-form-actions { align-items: stretch; flex-direction: column; }
  .tenant-form-actions .primary-button, .tenant-lawyers-row .secondary-button { width: 100%; }
  .contracting-office-card { grid-template-columns: 1fr; align-items: stretch; }
  .contracting-office-actions { justify-content: space-between; }
  .query-form { grid-template-columns: 1fr; }
  .query-lawyers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .query-helper { flex-wrap: wrap; }
  .helper-divider { display: none; }
  .lawyer-list { grid-template-columns: 1fr; }
  .results-heading { display: block; padding: 18px 16px 14px; }
  .results-tools { margin-top: 14px; }
  .email-summary { flex: 0 0 auto; }
  .result-search { flex: 1; width: auto; }
  .filters-bar { grid-template-columns: 1fr 1fr; padding: 0 16px 14px; }
  .clear-filters { width: 100%; }
  .email-toolbar { display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 0 16px 14px; }
  .email-recipient { width: auto; }
  .email-help { grid-column: 1 / -1; grid-row: 2; padding: 0; }
  .page-footer { display: block; line-height: 1.6; }
  .page-footer span { display: block; }
  .page-footer span + span { margin-top: 5px; }
  .page-footer-contact { display: block; margin-top: 5px; white-space: normal; }
  .reminder-strip { align-items: flex-start; flex-wrap: wrap; margin-top: 0; }
  .next-deadline-content { flex-basis: calc(100% - 50px); }
  .reminder-action { margin-left: 48px; }
  .deadlines-panel { padding: 18px 16px; }
  .deadline-submit { width: 100%; }
  .deadline-panel-actions { align-items: stretch; flex-wrap: wrap; }
  .deadline-panel-actions .secondary-button { flex: 1 1 100%; }
}
@media (max-width: 620px) {
  .query-picker-heading { align-items: flex-start; flex-direction: column; }
  .query-lawyers { grid-template-columns: 1fr; }
  .email-toolbar { grid-template-columns: 1fr; }
  .email-summary { width: 100%; }
  .deadline-form-row { grid-template-columns: 1fr; }
  .deadline-item { grid-template-columns: 1fr auto; }
  .deadline-date { grid-column: 1 / -1; grid-template-columns: auto auto; align-items: baseline; gap: 8px; }
  .deadline-linked-publication strong { white-space: normal; }
  .billing-report-metrics { grid-template-columns: 1fr 1fr; }
  .billing-report-row { align-items: flex-start; flex-direction: column; }
  .billing-report-row-open { width: 100%; align-items: flex-start; flex-direction: column; }
  .billing-report-row-actions { width: 100%; justify-content: flex-end; }
  .billing-report-actions { align-items: flex-start; flex-direction: column; }
  .billing-report-toolbar { align-items: stretch; flex-direction: column; }
  .billing-report-toolbar .secondary-button { width: 100%; }
  .billing-report-row-side { width: 100%; justify-items: start; }
}

/* Identidade compartilhada com o comercial: navy, dourado e controles mais nobres. */
.primary-button, .secondary-button { text-decoration: none; }
.app-shell .primary-button, .access-screen .primary-button { color: #172a46; border: 0; background: linear-gradient(135deg, #f4d28b, #c99332); box-shadow: 0 9px 20px rgba(171, 116, 25, .18); }
.app-shell .primary-button:hover, .access-screen .primary-button:hover { color: #10213a; background: linear-gradient(135deg, #ffe4a7, #d9a548); box-shadow: 0 12px 25px rgba(196, 143, 45, .28); }
.app-shell .secondary-button, .access-screen .secondary-button { border: 1px solid #e3c37f; color: #7a5a20; background: #fff8e8; }
.app-shell .secondary-button:hover, .access-screen .secondary-button:hover { color: #604615; border-color: #d9a548; background: #fff1cc; }
.app-shell #download-agenda { border: 0; color: #172a46; background: linear-gradient(135deg, #f4d28b, #c99332); box-shadow: 0 8px 18px rgba(171, 116, 25, .2); }
.app-shell #download-agenda { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.app-shell #download-agenda:hover { color: #10213a; background: linear-gradient(135deg, #ffe4a7, #d9a548); box-shadow: 0 10px 22px rgba(196, 143, 45, .28); }
.app-shell #download-agenda:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.app-shell .sidebar { background: linear-gradient(180deg, #081424 0%, #0b1a2d 100%); }
.app-shell .nav-item.is-active { color: #fff; background: linear-gradient(90deg, #1d3e70, #142e52); box-shadow: inset 3px 0 #e4b65d, 0 8px 18px rgba(4, 15, 30, .18); }
.app-shell .nav-item:hover { background: rgba(217, 165, 72, .1); }
.app-shell .nav-icon { color: #e4b65d; }
.app-shell .topbar { padding-bottom: 17px; border-bottom: 1px solid rgba(217, 165, 72, .22); }
.app-shell .topbar .eyebrow { color: #b37b1f; }
.app-shell .panel-card, .app-shell .metric-card { border-color: #d8e1ed; }
.app-shell .query-card, .app-shell .deadlines-panel, .app-shell .tenant-panel, .app-shell .client-settings-panel, .app-shell .client-support-panel { border-top: 3px solid #d9a548; }
.app-shell .panel-status, .app-shell .source-badge { border: 1px solid rgba(67, 150, 111, .18); }
.app-shell .field input:focus, .app-shell .field select:focus, .app-shell .result-search:focus-within, .app-shell textarea:focus { border-color: #d3a34e; box-shadow: 0 0 0 3px rgba(217, 165, 72, .14); }
.app-shell .read-button, .app-shell .email-link, .app-shell .page-footer-contact { color: #9a6a17; }
.app-shell .read-button:hover, .app-shell .email-link:hover, .app-shell .page-footer-contact:hover { color: #6d4b12; }
.app-shell .reminder-strip { border-color: rgba(217, 165, 72, .34); background: linear-gradient(115deg, #fffaf0, #f5f8ff); }
.app-shell .reminder-icon { color: #8c6219; border-color: #d9a548; background: #fff2c9; }
.app-shell .legal-notice { border-color: #e4c989; background: linear-gradient(120deg, #fffaf0, #f8fbff); }
.app-shell .legal-notice strong { color: #7a571b; }
.app-shell .toast { border-color: #e3c37f; color: #6f5019; background: #fff9eb; }
.access-screen .secondary-button { color: #f4d28e; border-color: rgba(217, 165, 72, .42); background: rgba(217, 165, 72, .1); }
.access-screen .secondary-button:hover { color: #fff2cf; border-color: rgba(244, 210, 142, .72); background: rgba(217, 165, 72, .2); }
.legal-screen { background: linear-gradient(145deg, #f4f7fa 0%, #edf1f5 58%, #e8edf3 100%); }
.legal-header { border-bottom-color: rgba(217, 165, 72, .35); }
.legal-header strong span { color: #b37b1f; }
.legal-header .secondary-button { color: #7a5a20; border-color: #e3c37f; background: #fff8e8; }
.legal-section { border-top: 2px solid rgba(217, 165, 72, .45); }
.signup-grid .signup-courts-fieldset, .signup-grid .signup-subsection-heading { grid-column: 1 / -1; }
.signup-courts-fieldset { margin: 5px 0 2px; padding: 16px 0 0; border: 0; border-top: 1px solid rgba(217, 165, 72, .34); }
.signup-courts-fieldset legend { padding: 0; color: #f4d28e; font-size: 13px; font-weight: 800; }
.signup-field-help { margin: 7px 0 13px; color: #b9cae2; font-size: 11px; line-height: 1.45; }
.signup-court-options { display: grid; gap: 14px; }
.signup-court-group { display: grid; gap: 7px; }
.signup-court-group > strong { color: #dbe8fa; font-size: 11px; }
.signup-court-group-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.signup-court-option { display: flex; align-items: flex-start; gap: 8px; min-width: 0; min-height: 57px; padding: 9px 10px; border: 1px solid rgba(180, 209, 255, .2); border-radius: 8px; color: #c9dcff; background: rgba(255, 255, 255, .045); cursor: pointer; }
.signup-court-option:has(input:checked) { border-color: rgba(217, 165, 72, .7); background: rgba(217, 165, 72, .12); }
.signup-court-option input { width: 16px; height: 16px; flex: 0 0 16px; margin: 2px 0 0; accent-color: #d9a548; }
.signup-court-option span { display: grid; gap: 3px; min-width: 0; }
.signup-court-option b { color: #fff; font-size: 11px; }
.signup-court-option small { color: #a9bdd9; font-size: 9px; line-height: 1.35; }
.signup-court-summary { margin: 9px 0 0; color: #e4b65d; font-size: 10px; line-height: 1.4; }
.signup-subsection-heading { display: flex; align-items: baseline; gap: 10px; margin-top: 5px; padding-top: 16px; border-top: 1px solid rgba(217, 165, 72, .34); }
.signup-subsection-heading strong { color: #f4d28e; font-size: 13px; }
.signup-subsection-heading span { color: #9fb2ce; font-size: 10px; }
.signup-plan-note { border-color: rgba(217, 165, 72, .42); background: rgba(217, 165, 72, .1); }
.signup-contract { margin-top: 16px; padding: 15px; border: 1px solid rgba(217, 165, 72, .4); border-radius: 11px; background: rgba(7, 18, 32, .36); }
.signup-contract details > summary { cursor: pointer; color: #f4d28e; font-size: 14px; font-weight: 800; }
.signup-contract-body { max-height: 280px; overflow: auto; margin-top: 13px; padding: 13px 14px; border: 1px solid rgba(180, 209, 255, .16); border-radius: 8px; background: rgba(255, 255, 255, .045); }
.signup-contract-body p { margin: 0 0 9px; color: #c4d2e6; font-size: 11px; line-height: 1.55; }
.signup-contract-body p:last-child { margin-bottom: 0; }
.signup-contract-body strong { color: #fff1c9; }
.signup-contract-accept { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; padding: 16px 17px; border: 1px solid rgba(217, 165, 72, .58); border-radius: 10px; color: #fff3d0; background: linear-gradient(135deg, rgba(217, 165, 72, .18), rgba(36, 99, 212, .12)); font-size: 13px; font-weight: 700; line-height: 1.5; cursor: pointer; }
.signup-contract-accept input { width: 22px; height: 22px; flex: 0 0 22px; margin: 1px 0 0; accent-color: #d9a548; }
.signup-contract-accept:has(input:checked) { border-color: #f0c974; background: linear-gradient(135deg, rgba(217, 165, 72, .28), rgba(36, 99, 212, .16)); }
@media (max-width: 720px) {
  .signup-progress { align-items: stretch; flex-direction: column; gap: 6px; }
  .signup-progress-line { width: 1px; height: 8px; flex-basis: 8px; margin-left: 23px; }
  .signup-step-heading h2 { font-size: 18px; }
  .signup-court-group-list { grid-template-columns: 1fr; }
  .signup-subsection-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .signup-contract-accept { padding: 14px; font-size: 12px; }
  .signup-final-actions { align-items: stretch; flex-direction: column-reverse; }
  .signup-final-actions .primary-button { min-width: 0; }
}
