/* LEGASIST | Sistema visual NOV 17 2026. Referencia: ABOGADOS.pdf.
   Capa de estilos final y transversal; no toca la logica de negocio. */
@font-face{font-family:'Plus Jakarta Sans';src:url('../fonts/PlusJakartaSans.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap}
html#legasist-site{--ls-navy:#102e59;--ls-blue:#15559f;--ls-blue-dark:#104b90;--ls-blue-soft:#eaf2fd;--ls-page:#f2f6fc;--ls-white:#fff;--ls-border:#cfdef0;--ls-muted:#536986;--ls-green:#118958;--ls-red:#c33342;--ls-amber:#b56b05;--ls-radius:14px;--ls-shadow:0 12px 32px rgba(18,59,108,.075);color-scheme:light}
html#legasist-site,html#legasist-site body,html#legasist-site button,html#legasist-site input,html#legasist-site select,html#legasist-site textarea{font-family:'Plus Jakarta Sans','Segoe UI',Arial,sans-serif!important}
html#legasist-site body{color:var(--ls-navy)}
html#legasist-site :where(button,input,select,textarea,a):focus-visible{outline:3px solid rgba(32,127,230,.55)!important;outline-offset:2px}
html#legasist-site :where(.law-btn,.dash-btn,button,.bill-actions a,.bill-actions button){transition:background-color .15s,border-color .15s,box-shadow .15s,transform .15s;letter-spacing:0!important}
html#legasist-site :where(.law-btn,.dash-btn,button):not(:disabled){cursor:pointer}
html#legasist-site :where(input,select,textarea){font-size:14px;max-width:100%;box-sizing:border-box}
html#legasist-site :where(.law-section-head h2,.plan-intro h2,.law-heading h1,.funnel-head h1,.case-header h1){letter-spacing:-.04em!important;line-height:1.17!important}
/* Landing / marketing */
body.ls-attorney-landing{background:white!important}
html#legasist-site .law-topbar{background:#155399!important;border:0!important;box-shadow:0 2px 4px rgba(4,32,70,.06)}
html#legasist-site .law-topbar .law-nav>a:not(.law-btn){color:#fff!important;font-size:12px;font-weight:700}
html#legasist-site .law-topbar .law-btn--primary{background:#1c62b2!important;color:white!important;border-color:#1c62b2!important}
html#legasist-site .law-topbar .law-btn--ghost{color:white!important;border-color:rgba(255,255,255,.45)!important;background:transparent!important}
html#legasist-site .law-brand__logo{max-height:45px;object-fit:contain}
html#legasist-site .law-hero{background:linear-gradient(120deg,#f2f6fc 10%,#f8fbff 72%)!important;padding:54px 0 52px!important}
html#legasist-site .law-hero__grid{grid-template-columns:minmax(0,1.16fr) minmax(360px,.84fr);gap:45px;align-items:center}
html#legasist-site .law-heading h1{max-width:710px;font-size:clamp(31px,3.7vw,51px)!important;color:var(--ls-navy)!important;font-weight:850!important;margin:17px 0 15px}
html#legasist-site .law-heading h1 span{color:#1559aa!important}
html#legasist-site .law-heading>p{font-size:16px;line-height:1.7;max-width:560px;color:var(--ls-muted)!important}
html#legasist-site .law-kicker{font-weight:850!important;text-transform:uppercase;letter-spacing:.055em;font-size:10px!important;color:#0d539e!important}
html#legasist-site .law-section{padding:66px 0!important}
html#legasist-site .law-section--soft{background:#f1f6fd!important}
html#legasist-site .law-section-head{max-width:780px}
html#legasist-site .law-section-head h2{color:var(--ls-navy)!important;font-size:clamp(27px,3vw,36px)!important;font-weight:850}
html#legasist-site .law-section-head p{font-size:14px}
html#legasist-site .law-card,html#legasist-site .plan-mini,html#legasist-site .guard-card,html#legasist-site .law-preview{border:1px solid var(--ls-border)!important;border-radius:16px!important;box-shadow:var(--ls-shadow)}
html#legasist-site .law-card{min-height:215px;padding:22px!important}
html#legasist-site .law-card h3{font-size:16px;font-weight:850}
html#legasist-site .law-card p{font-size:13px!important}
html#legasist-site .law-card__icon{background:#e9f2ff!important;color:#1559a8!important;width:42px;height:42px;border-radius:12px;margin-bottom:13px}
html#legasist-site .law-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}
html#legasist-site .ls-preview-list{display:grid;gap:9px;margin:14px 0 18px}
html#legasist-site .ls-preview-item{display:flex;gap:10px;align-items:center;min-height:52px;padding:11px 12px;border:1px solid #d6e2f0;border-radius:11px;background:#fff}
html#legasist-site .ls-preview-icon{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;color:#1454a0;background:#edf4fe;flex-shrink:0}
html#legasist-site .ls-preview-item b{font-size:12px;color:var(--ls-navy);display:block}.ls-preview-item small{font-size:10px;color:#657992;display:block;margin-top:2px}
html#legasist-site .ls-preview-status{margin-left:auto;border-radius:99px;padding:4px 8px;background:#edf4ff;font-size:10px;font-weight:800;color:#15559c}
html#legasist-site .ls-preview-status.warn{background:#fff5d8;color:#925e05}
html#legasist-site .ls-preview-status.success{background:#dcf7ed;color:#08734b}
html#legasist-site .ls-preview-query{display:flex;align-items:center;gap:8px;border:1px solid #d7e3f2;background:#f8fbff;padding:10px;border-radius:10px;font-size:11px;color:#8394ab}
html#legasist-site .ls-preview-query span{margin-left:auto;background:#155aa9;border-radius:6px;color:white;padding:7px 11px}
html#legasist-site .ls-preview-foot{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:11px}
html#legasist-site .ls-preview-foot b{border:1px solid #d7e3f2;border-radius:9px;background:#f4f8ff;font-size:10px;color:#155299;text-align:center;padding:8px 3px}
html#legasist-site .ls-archive{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
html#legasist-site .ls-archive h2{font-size:clamp(27px,2.8vw,38px);color:var(--ls-navy);letter-spacing:-.04em;line-height:1.18;margin:14px 0}
html#legasist-site .ls-archive p{color:var(--ls-muted);font-size:14px;line-height:1.65}
html#legasist-site .ls-archive-list{margin:24px 0;display:grid;gap:0;padding:0;list-style:none}
html#legasist-site .ls-archive-list li{font-size:13px;border-bottom:1px solid #d8e4f0;padding:12px 0;line-height:1.6;color:var(--ls-navy)}
html#legasist-site .ls-archive-list li::before{content:'✓';display:inline-grid;place-items:center;border-radius:50%;color:white;background:#15549d;font-weight:900;width:19px;height:19px;margin-right:10px}
html#legasist-site .ls-document-preview{background:white;border:1px solid #ccdef1;border-radius:16px;box-shadow:var(--ls-shadow);overflow:hidden}
html#legasist-site .ls-document-top{background:#155398;color:white;padding:22px;font-size:15px;font-weight:850}
html#legasist-site .ls-doc-tabs{display:flex;gap:19px;padding:13px 19px;border-bottom:1px solid var(--ls-border);color:#56728f;font-size:12px;font-weight:750}
html#legasist-site .ls-doc-tabs b{color:#15549a;border-bottom:2px solid #15549a;padding-bottom:8px}
html#legasist-site .ls-doc-item{padding:13px 18px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #e6eef8}
html#legasist-site .ls-doc-item span{border-radius:8px;background:#edf4ff;padding:9px;font-size:16px}
html#legasist-site .ls-doc-item b{font-size:12px;color:var(--ls-navy);display:block}.ls-doc-item small{display:block;font-size:10px;color:#7386a0;margin-top:3px}
html#legasist-site .ls-step-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
html#legasist-site .ls-step{padding:22px;border:1px solid var(--ls-border);border-radius:14px;background:white}
html#legasist-site .ls-step-index{display:inline-grid;place-items:center;background:#15549f;color:#fff;width:32px;height:32px;border-radius:50%;font-size:14px;font-weight:850}
html#legasist-site .ls-step h3{font-size:16px;color:var(--ls-navy);margin:18px 0 8px}.ls-step p{font-size:13px;color:var(--ls-muted);line-height:1.6}
html#legasist-site .plans-mini{grid-template-columns:repeat(3,minmax(0,1fr))!important;max-width:1060px;margin:0 auto}
html#legasist-site .plan-mini{padding:25px 23px!important;min-height:370px!important}
html#legasist-site .plan-mini--popular{transform:none;box-shadow:0 14px 35px rgba(13,70,138,.12);border:2px solid #1254a1!important}
html#legasist-site .plan-mini .law-btn{margin-top:auto}
html#legasist-site .plan-mini .plan-price{font-size:38px!important;color:#15559f!important}
html#legasist-site .plan-mini h3{font-size:18px;font-weight:850}
html#legasist-site .plan-flag{background:#15549f!important;left:50%!important;transform:translateX(-50%)}
html#legasist-site .ls-cta{background:#155197!important;border-radius:0!important;margin:0!important;padding:54px 20px!important;text-align:center;color:white!important;display:block!important}
html#legasist-site .ls-cta h2{font-size:31px!important;color:#fff}.ls-cta p{color:#dceaff!important;margin:10px 0 18px}
html#legasist-site .ls-cta .law-btn{display:inline-flex;margin:4px 6px;border:1px solid rgba(255,255,255,.7);background:white!important;color:#11519a!important}
html#legasist-site .ls-cta .law-btn--outline{background:transparent!important;color:white!important}
/* Registration */
html#legasist-site body.lawyer-register-premium{background:#f2f7fd!important}
html#legasist-site .lawyer-register-premium .funnel-head{background:#f2f7fd!important;border:0;padding:0!important}
html#legasist-site .lawyer-register-premium .funnel-head h1{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
html#legasist-site .lawyer-register-premium .funnel-main{padding:34px 12px 50px!important}
html#legasist-site .lawyer-register-premium .funnel-layout{display:block!important;max-width:760px!important;margin:0 auto}
html#legasist-site .lawyer-register-premium .form-panel{background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important}
html#legasist-site .lawyer-register-premium .register-banner{height:auto!important;min-height:126px!important;background:#17539b!important;border-radius:18px!important;margin-bottom:12px;padding:20px!important;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}
html#legasist-site .lawyer-register-premium .register-banner>span{font-size:27px!important;text-transform:none!important;letter-spacing:-.03em!important;font-weight:850!important}
html#legasist-site .lawyer-register-premium .register-banner::after{content:'Cree su cuenta y comience su periodo de prueba de 30 días';display:block;color:#dce9fb;font-size:12px;margin-top:7px}
html#legasist-site .lawyer-register-premium .form-section{background:white!important;border:1px solid var(--ls-border)!important;border-radius:15px!important;padding:22px!important;margin-bottom:14px!important;box-shadow:0 4px 14px rgba(23,63,112,.03)}
html#legasist-site .lawyer-register-premium .form-section__title h2{font-size:17px!important;color:#12529b!important}
html#legasist-site .lawyer-register-premium .form-section__title small{border-radius:40px;background:#f2f6fd;color:#536b87;padding:5px 10px}
html#legasist-site .lawyer-register-premium .profile-picker{grid-template-columns:1fr 1fr}
html#legasist-site .lawyer-register-premium .profile-choice{background:white!important;border:1px solid #d2e2f3!important;border-radius:12px!important;padding:16px!important}
html#legasist-site .lawyer-register-premium .profile-choice:has(input:checked){border-color:#1659a5!important;background:#f3f8ff!important;box-shadow:inset 0 0 0 1px #1659a5}
html#legasist-site .lawyer-register-premium .profile-choice strong{font-size:13px!important}
html#legasist-site .lawyer-register-premium .profile-choice p{font-size:11px!important}
html#legasist-site .lawyer-register-premium .field-group input,html#legasist-site .lawyer-register-premium .field-group select{min-height:43px!important;background:white!important;border-radius:9px!important;font-size:12px!important}
html#legasist-site .lawyer-register-premium .field-group label{font-size:11px!important}
html#legasist-site .lawyer-register-premium .declaration{background:#fff!important;color:var(--ls-navy)!important;border:1px solid #d1e0f2!important;margin:9px 0 12px;padding:17px!important;border-radius:11px!important}
html#legasist-site .lawyer-register-premium .declaration input{width:17px;height:17px;flex-shrink:0}
html#legasist-site .lawyer-register-premium .form-actions .law-btn{background:#15559f!important;color:#fff!important;min-height:45px!important;border-radius:9px!important}
html#legasist-site .ls-next-step{background:#e7f6ee;border:1px solid #bae3cd;border-radius:11px;padding:14px 17px;color:#076345;font-size:12px;line-height:1.6;margin-top:15px}
html#legasist-site [data-law-register-form] .ls-invalid{border:2px solid #cf3345!important;background:#fff8f8!important}
html#legasist-site [data-law-register-form] .ls-invalid-label{color:#b42335!important}
html#legasist-site [data-law-register-form] .validation-error.visible{display:block!important}
/* Plans screen */
html#legasist-site body.ls-plan-selection{background:#f1f6fd!important}
html#legasist-site .ls-plan-selection .funnel-head{background:transparent!important;border:0!important;padding:15px 0 0!important}
html#legasist-site .ls-plan-selection .funnel-head h1{font-size:31px!important}
html#legasist-site .ls-plan-selection .stepper{background:transparent!important;border:0!important}
html#legasist-site .ls-plan-selection .stepper__inner{min-height:74px!important}
html#legasist-site .ls-plan-selection .plans-wrap{padding:10px 0 45px!important}
html#legasist-site .ls-plan-selection .plan-intro{margin:0 auto 15px!important}
html#legasist-site .ls-plan-selection .plan-intro h2{display:none}
html#legasist-site .ls-plan-selection .plans-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;max-width:1050px;margin:0 auto}
html#legasist-site .ls-plan-selection .choose-plan{min-height:510px!important;padding:21px!important;border-radius:15px!important;border:1px solid #d0e0f2!important;background:white!important;box-shadow:var(--ls-shadow)}
html#legasist-site .ls-plan-selection .choose-plan.selected{border:2px solid #1555a0!important;transform:none!important}
html#legasist-site .ls-plan-selection .choose-plan.corporate{background:white!important}
html#legasist-site .ls-plan-selection .choose-plan .plan-name{font-size:18px;font-weight:850;color:#132f59}
html#legasist-site .ls-plan-selection .choose-plan .plan-price{font-size:35px!important;color:#14559e!important;letter-spacing:-.04em;font-weight:900}
html#legasist-site .ls-plan-selection .choose-plan .plan-price span{font-size:11px;color:#556d8a}
html#legasist-site .ls-plan-selection .choose-plan .plan-caption{font-size:12px!important;line-height:1.55;min-height:38px}
html#legasist-site .ls-plan-selection .choose-plan .law-list{gap:11px}
html#legasist-site .ls-plan-selection .choose-plan .law-list li{font-size:11px!important}
html#legasist-site .ls-plan-selection .choose-plan .law-btn{font-size:12px;border-radius:9px;min-height:42px}
html#legasist-site .ls-plan-selection .choose-plan .popular-pill{background:#148757!important;top:-12px!important;color:white!important}
html#legasist-site .ls-plan-selection .ls-plan-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 8px}
html#legasist-site .ls-plan-selection .ls-plan-metric{padding:8px 5px;text-align:center;background:#f1f6fd;border:1px solid #d7e5f3;border-radius:9px}
html#legasist-site .ls-plan-selection .ls-plan-metric strong{display:block;font-size:13px;color:#14549a}.ls-plan-metric small{display:block;color:#667c96;font-size:10px}
html#legasist-site .ls-plan-selection .trial-banner{max-width:1000px;background:#e8f8f1!important;color:#096841!important;font-size:12px!important;border-color:#b7e4cc!important;padding:12px 16px!important}
html#legasist-site .ls-plan-selection .ls-plan-secondary{display:block;color:#566b85;font-size:11px;line-height:1.45;border-top:1px solid #dde9f4;margin-top:12px;padding-top:12px}
html#legasist-site .ls-plan-selection .plan-selected-summary{font-size:11px;text-align:center;color:#536986}
/* Dashboard / workspace */
html#legasist-site body.dashboard-body{--dash-primary:#14549d;--dash-primary-dark:#103c77;--dash-surface:#fff;--dash-soft:#eef5ff;--dash-line:#d1e0f0;--dash-text:#162e51;--dash-muted:#566d88;background:var(--ls-page)!important;color:var(--ls-navy)!important}
html#legasist-site body.dashboard-body .dash-layout>.dash-sidebar{background:#155298!important;background-image:none!important}
html#legasist-site body.dashboard-body .dash-sidebar .dash-brand{padding:16px 18px!important;min-height:58px}
html#legasist-site body.dashboard-body .dash-sidebar .dash-menu{padding:12px 10px!important}
html#legasist-site body.dashboard-body .dash-sidebar .dash-menu>a{font-weight:700!important;font-size:12px!important;min-height:39px!important;border-radius:10px!important;color:#eff6ff!important;margin-bottom:3px!important;padding:9px 13px!important}
html#legasist-site body.dashboard-body .dash-sidebar .dash-menu>a.active,html#legasist-site body.dashboard-body .dash-sidebar .dash-menu>a:hover{background:#3576b8!important;color:#fff!important}
html#legasist-site body.dashboard-body .dash-sidebar .dash-menu>a b{background:#fff!important;color:#14549d!important;border-radius:99px!important;font-weight:850!important}
html#legasist-site body.dashboard-body .dash-sidebar .ls-sidebar-group-label{font-size:9px;color:#a6c7eb;letter-spacing:.1em;font-weight:800;padding:16px 16px 8px}
html#legasist-site body.dashboard-body .dash-sidebar .sidebar-foot{margin-top:auto}
html#legasist-site body.dashboard-body .dash-main{background:#f2f6fc!important;padding:22px 24px 40px!important;min-width:0}
html#legasist-site body.dashboard-body .dash-topbar{margin-bottom:16px!important;display:flex;flex-wrap:wrap;gap:15px;align-items:center}
html#legasist-site body.dashboard-body .dash-topbar h1{color:#112e59!important;letter-spacing:-.035em!important;font-weight:850!important;font-size:clamp(22px,2.2vw,31px)!important}
html#legasist-site body.dashboard-body .dash-topbar p{color:#5a6f8b!important;font-size:12px!important}
html#legasist-site .ls-shellbar{height:45px;background:#155298;color:#fff;border-radius:10px;padding:0 11px 0 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-7px 0 16px;box-shadow:0 4px 12px rgba(19,63,109,.10)}
html#legasist-site .ls-shellbar .ls-shellbar-title{font-size:11px;font-weight:750;color:#eef6ff}
html#legasist-site .ls-shellbar .ls-shellbar-actions{margin-left:auto;display:flex;align-items:center;gap:8px}
html#legasist-site .ls-shellbar .ls-shellbar-actions>a{color:white;text-decoration:none;font-size:11px;font-weight:700}
html#legasist-site .ls-shellbar .ls-plan-indicator{font-size:10px;background:#326eb0;border:1px solid rgba(255,255,255,.2);color:white;border-radius:100px;padding:6px 12px}
html#legasist-site .ls-shellbar details{position:relative}
html#legasist-site .ls-shellbar details>summary{list-style:none;cursor:pointer;background:#2865ab;border:1px solid #7198c8;color:white;border-radius:9px;padding:7px 12px;font-size:11px;font-weight:800}
html#legasist-site .ls-shellbar details>summary::-webkit-details-marker{display:none}
html#legasist-site .ls-shellbar .ls-account-items{position:absolute;right:0;top:calc(100% + 6px);background:white;border:1px solid #c7d8ec;border-radius:12px;padding:8px;min-width:174px;box-shadow:0 16px 34px rgba(15,46,88,.18);z-index:1000}
html#legasist-site .ls-shellbar .ls-account-items a{display:block;text-decoration:none;color:#1a3960;padding:11px 13px;border-radius:7px;font-size:12px;font-weight:700}
html#legasist-site .ls-shellbar .ls-account-items a:hover{background:#edf4ff}
html#legasist-site body.dashboard-body .dash-topbar .top-actions .plan-status{display:none!important}
html#legasist-site body.dashboard-body :where(.panel,.panelx,.v-panel,.case-shell,.scan-card,.bill-card,.security-card,.content-card,.insight-card,.create-card,.table-panel){border-color:#d2e1f0;box-shadow:0 5px 20px rgba(24,72,115,.04)}
html#legasist-site body.dashboard-body :where(.case-header,.agenda-hero,.scan-hero,.security-hero,.person-hero-v2){background:linear-gradient(110deg,#15549d,#104c90)!important;color:white!important;border:0!important;border-radius:17px!important;box-shadow:0 12px 30px rgba(14,64,126,.12)}
html#legasist-site body.dashboard-body :where(.case-header,.agenda-hero,.scan-hero,.security-hero,.person-hero-v2) :is(h1,h2,h3){color:#fff!important}
html#legasist-site body.dashboard-body :where(.case-header,.agenda-hero,.scan-hero,.security-hero,.person-hero-v2) :is(p,small){color:#dceaff!important}
html#legasist-site body.dashboard-body .case-header :where(input,select,textarea),html#legasist-site body.dashboard-body .person-hero-v2 :where(input,select,textarea){color:#17365e!important}
html#legasist-site body.dashboard-body :where(.dash-btn.primary,button.primary,.bill-actions a.primary,.bill-actions button.primary){background:#15569f!important;color:white!important;border-color:#15569f!important}
html#legasist-site body.dashboard-body :where(.dash-btn.primary,button.primary):hover{background:#104580!important}
html#legasist-site body.dashboard-body :where(.case-create-submit,.action-save-expediente,.note-save,.scan-save,.save-event,.button-save){background:#11895a!important;border-color:#11895a!important;color:white!important}
html#legasist-site body.dashboard-body :where(button.danger,.danger,.button-delete){color:#a42635!important;border-color:#e8b5bd!important}
html#legasist-site body.dashboard-body :where(.kpi-grid,.dashboard-stats,.summary-stats) > :where(div,article){border-radius:13px!important}
html#legasist-site body.dashboard-body :where(.case-table,.history-list){font-size:12px}
html#legasist-site body.dashboard-body :where(.case-table th,.history-row.head){background:#eaf2fc!important;color:#1b508d!important;font-weight:850}
html#legasist-site body.dashboard-body .case-table tr:hover{background:#f3f8ff}
html#legasist-site body.dashboard-body .case-table .status-pill{font-size:10px}
html#legasist-site body.dashboard-body .case-form-category{border:1px solid #d5e1ef!important;border-radius:14px!important;background:#fff!important;padding:18px!important;margin-bottom:14px!important}
html#legasist-site body.dashboard-body .case-category-grid{gap:12px!important}
html#legasist-site body.dashboard-body .create-head{margin-bottom:13px}
html#legasist-site body.dashboard-body .create-head h2{font-size:25px;color:#102f5b}
html#legasist-site body.dashboard-body #nuevo.create-card{background:transparent!important;box-shadow:none!important;border:0!important;padding:0!important}
html#legasist-site body.dashboard-body .case-form-category label{font-size:11px!important;font-weight:800}
html#legasist-site body.dashboard-body :where(.case-form-category input,.case-form-category select,.case-form-category textarea){background:#fff!important;border:1px solid #cbdced!important;border-radius:9px!important;min-height:39px}
html#legasist-site body.dashboard-body #nuevo .form-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;align-items:start}
html#legasist-site body.dashboard-body #nuevo .case-form-category{grid-column:span 2}
html#legasist-site body.dashboard-body #nuevo .case-form-category:first-of-type{grid-column:1}
html#legasist-site body.dashboard-body #nuevo .case-form-category:nth-of-type(2){grid-column:2}
html#legasist-site body.dashboard-body #nuevo .form-grid>:not(.case-form-category){grid-column:span 2}
html#legasist-site body.dashboard-body #nuevo .fee-add-scheduled{background:#fff!important;color:#15549a!important;border:1px solid #8db4e4!important}
html#legasist-site body.dashboard-body #nuevo .fee-planned-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 43px!important}
html#legasist-site body.dashboard-body .scan-hero h1{font-size:clamp(25px,3vw,36px)!important}
html#legasist-site body.dashboard-body .scan-grid{gap:13px!important}
html#legasist-site body.dashboard-body .agenda-hero h1{font-size:clamp(25px,3vw,36px)!important}
html#legasist-site body.dashboard-body .billing-title h1{font-size:28px!important;color:#113361!important}
html#legasist-site body.billing-page .billing-grid{grid-template-columns:minmax(0,1.55fr) minmax(270px,.7fr);gap:14px}
html#legasist-site body.billing-page .billing-main{padding:22px!important}
html#legasist-site body.billing-page .bill-card{border-radius:14px;padding:20px}
html#legasist-site body.billing-page .hero-box{border-radius:10px}
/* New capture and recording color semantics */
html#legasist-site body.dashboard-body :where([data-record],[data-voice-record],.btn-record,.note-record){background:#c63243!important;color:#fff!important;border-color:#c63243!important}
html#legasist-site body.dashboard-body :where([data-voice-pause],.btn-pause){background:#f1ba3b!important;color:#3f3218!important;border-color:#edb02c!important}
html#legasist-site body.dashboard-body :where([data-voice-stop],.btn-stop){background:#15549d!important;color:white!important;border-color:#15549d!important}
/* Dark mode contrast: consistent, no white-on-white / black-on-blue */
html#legasist-site[data-theme='royal-dark']{color-scheme:dark;--ls-page:#0b1e34;--ls-navy:#f1f7ff;--ls-border:#375271;--ls-muted:#bed0e7;--ls-white:#142b48}
html#legasist-site[data-theme='royal-dark'] body.dashboard-body{--dash-surface:#172b43;--dash-soft:#172f4b;--dash-line:#38516d;--dash-text:#f3f7fe;--dash-muted:#bed0e7;background:#0b1e34!important}
html#legasist-site[data-theme='royal-dark'] body.dashboard-body .dash-main{background:#0b1e34!important;color:#f2f7ff}
html#legasist-site[data-theme='royal-dark'] body.dashboard-body :where(.dash-topbar h1,.billing-title h1,.case-category-title,.create-head h2){color:#f4f8ff!important}
html#legasist-site[data-theme='royal-dark'] body.dashboard-body :where(.bill-card,.scan-card,.panel,.panelx,.v-panel,.case-form-category,.create-card,.table-panel,.content-card,.security-card){background:#182f4c!important;border-color:#38516d!important;color:#f4f7ff!important}
html#legasist-site[data-theme='royal-dark'] body.dashboard-body :where(input,textarea,select){background:#142941!important;color:white!important;border-color:#4a6481!important}
html#legasist-site[data-theme='royal-dark'] body.dashboard-body :where(.case-table th,.history-row.head){background:#234363!important;color:white!important}
html#legasist-site[data-theme='royal-dark'] body.dashboard-body #nuevo .case-form-category{background:#152d49!important}
html#legasist-site[data-theme='royal-dark'] body.dashboard-body #nuevo :where(input,select,textarea){background:#102741!important;color:white!important}
html#legasist-site[data-theme='royal-dark'] body.ls-attorney-landing,html#legasist-site[data-theme='royal-dark'] body.flow-lawyer{background:#0b1e34!important;color:white!important}
html#legasist-site[data-theme='royal-dark'] body.flow-lawyer :where(.law-card,.plan-mini,.choose-plan,.ls-document-preview,.ls-step,.form-section,.profile-choice){background:#182f4c!important;color:white!important;border-color:#3d5877!important}
html#legasist-site[data-theme='royal-dark'] body.flow-lawyer :where(.law-heading h1,.law-section-head h2,.law-card h3,.choose-plan .plan-name,.ls-step h3,.ls-archive h2,.form-section__title h2){color:#f4f8ff!important}
html#legasist-site[data-theme='royal-dark'] body.flow-lawyer :where(.law-hero,.law-section--soft,.funnel-head){background:#102944!important}
html#legasist-site[data-theme='royal-dark'] body.flow-lawyer :where(.law-card p,.law-section-head p,.ls-step p,.ls-archive p){color:#bed0e7!important}
/* Small screens */
@media(max-width:1120px){html#legasist-site .law-grid-4{grid-template-columns:repeat(2,1fr)!important}html#legasist-site .law-hero__grid{grid-template-columns:1fr!important}html#legasist-site .ls-archive{grid-template-columns:1fr;gap:20px}html#legasist-site .ls-plan-selection .plans-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){html#legasist-site .law-grid-4,html#legasist-site .plans-mini,html#legasist-site .law-grid-3,html#legasist-site .ls-step-grid,html#legasist-site .ls-plan-selection .plans-grid{grid-template-columns:1fr!important}html#legasist-site .ls-plan-selection .choose-plan{min-height:0!important}html#legasist-site .law-hero{padding:35px 0!important}html#legasist-site .law-section{padding:45px 0!important}html#legasist-site .law-heading h1{font-size:32px!important}html#legasist-site body.dashboard-body .dash-main{padding:13px 12px 35px!important}html#legasist-site .ls-shellbar{margin:0 0 12px;padding:0 8px}html#legasist-site .ls-shellbar .ls-shellbar-title{display:none}html#legasist-site body.dashboard-body #nuevo .form-grid{display:block!important}html#legasist-site body.dashboard-body #nuevo .case-form-category{grid-column:auto!important}html#legasist-site .lawyer-register-premium .profile-picker,html#legasist-site .lawyer-register-premium .fields-grid{grid-template-columns:1fr!important}html#legasist-site .lawyer-register-premium .form-actions{flex-direction:column!important;align-items:stretch!important}html#legasist-site .lawyer-register-premium .form-section{padding:16px!important}html#legasist-site body.billing-page .billing-grid{grid-template-columns:1fr!important}}

/* Expedientes / crear separate views (PDF p.19) */
html#legasist-site body.case-create-mode .table-panel,html#legasist-site body.case-create-mode .filters,html#legasist-site body.case-create-mode :where(.case-kpis,.kpi-grid),html#legasist-site body.case-create-mode .trash-toolbar{display:none!important}
html#legasist-site body.case-create-mode .create-card{display:block!important}
html#legasist-site body.case-create-mode .dash-topbar .top-title h1{font-size:0!important}
html#legasist-site body.case-create-mode .dash-topbar .top-title h1::after{content:'Crear expediente';font-size:29px;color:#112f57}
html#legasist-site body.case-create-mode .dash-topbar .top-actions{display:none!important}
html#legasist-site body.case-create-mode .create-head .close-x{display:inline-grid!important;place-items:center;text-decoration:none;min-height:39px;min-width:39px;color:#c1293f!important;background:white!important;border:1px solid #ecb9c5!important;font-size:22px;border-radius:9px}

html#legasist-site .ls-email-notice{background:#eaf6fc;border:1px solid #a8d1e9;color:#12416c;padding:15px 17px;border-radius:11px;font-size:12px;line-height:1.6;margin-bottom:15px}html#legasist-site .ls-email-notice a{color:#104b94;font-weight:850;text-decoration:underline}

/* Logo claro para las cabeceras azules; logo original se preserva en superficies blancas. */
html#legasist-site .law-topbar .law-brand__logo,html#legasist-site .ls-shellbar .brand-logo-img,html#legasist-site body.dashboard-body .dash-sidebar .brand-logo-img{filter:brightness(0) invert(1)!important}
html#legasist-site .law-topbar .account-nav-menu{position:relative;min-width:113px}
html#legasist-site .law-topbar .account-nav-menu>summary{list-style:none;cursor:pointer;border:1px solid #7099c7;border-radius:8px;padding:9px 12px;color:#fff!important;font-weight:800;font-size:12px}
html#legasist-site .law-topbar .account-nav-menu .account-nav-options{position:absolute;z-index:50;right:0;top:calc(100% + 8px);background:#fff;min-width:176px;box-shadow:0 15px 28px #123d702a;border:1px solid #c9dcee;border-radius:10px;padding:7px}
html#legasist-site .law-topbar .account-nav-options a{display:block;padding:9px 11px;color:#163967!important;text-decoration:none!important;font-size:12px;font-weight:700;border-radius:7px}
html#legasist-site .law-topbar .account-nav-options a:hover{background:#edf4ff}
html#legasist-site body.login-role-abogado{background:#fff!important}
html#legasist-site body.login-role-abogado .topbar{background:#15539c!important}
html#legasist-site body.login-role-abogado .topbar .nav-links>a{color:#fff!important}
html#legasist-site body.login-role-abogado .topbar .brand-logo-img{filter:brightness(0) invert(1)!important}
html#legasist-site body.login-role-abogado .lawyer-login-card{border-radius:17px!important;overflow:hidden;box-shadow:0 12px 30px #1a487318!important;border:1px solid #d7e4f2!important}
html#legasist-site body.login-role-abogado .lawyer-login-message-panel{background:linear-gradient(135deg,#104990,#236eb5)!important;color:#fff!important}
html#legasist-site body.login-role-abogado .lawyer-access-message>*{color:#fff!important}
html#legasist-site body.login-role-abogado .lawyer-login-form-panel{background:#fff!important}
html#legasist-site body.login-role-abogado .lawyer-login-form-panel h2{color:#12509a!important}
html#legasist-site body.login-role-abogado .login-form input{border-color:#c5d9ec!important;background:#fff!important;color:#12365d!important}
