/* Estrutura do Consigna com a paleta própria do Sumular. */
@font-face{font-family:'Source Sans 3';src:url('/assets/fonts/source-sans-3.ttf') format('truetype');font-style:normal;font-weight:200 900;font-display:swap}
@layer consigna {
  :root{font-family:'Source Sans 3','Helvetica Neue',Arial,sans-serif;font-size:16px;--serif:'Source Sans 3','Helvetica Neue',Arial,sans-serif;--canvas:#f4f7f6;--muted:#697c7b;--line:#e1e8e5}
  body{min-width:320px}
  h1,h2,h3{font-family:inherit;line-height:1.25;font-weight:650;overflow-wrap:anywhere}
  .button{min-height:40px;border-radius:8px;padding:9px 16px;font-size:.875rem}
  .button.primary{border:1px solid var(--teal);box-shadow:none}
  .button.secondary{border-color:var(--line)}
  .icon-button{width:38px;height:38px;border-radius:7px}
  .text-button{justify-content:center;min-height:36px;border:1px solid var(--line);border-radius:7px;padding:7px 12px;background:#fff;font-size:.875rem}
  .text-button:hover{background:var(--teal-soft)}
  .eyebrow{font-size:.75rem;letter-spacing:.1em;font-weight:600;color:#788e85;text-transform:uppercase}
  .app-shell{display:block;min-height:100vh}
  .sidebar{position:fixed;inset:0 auto 0 0;z-index:30;width:264px;height:100dvh;padding:0;background:#142c32;color:#c3d1ce;overflow-y:auto;box-shadow:12px 0 30px #132b2c0a;transform:none}
  .brand-row{display:flex;align-items:center;min-height:82px;padding:0 20px;border-bottom:1px solid #ffffff14;flex-shrink:0}
  .brand{display:flex;align-items:center;gap:12px;padding:0;margin:0;text-align:left;min-width:0;flex:1}
  .brand-mark{width:42px;height:42px;border:1px solid #ffffff2e;border-radius:13px;background:linear-gradient(135deg,#2e816c,#1b4245);color:#d9f5e8}
  .brand-mark .icon{width:25px;height:25px}
  .brand strong{display:block;font-family:inherit;font-size:1.2rem;letter-spacing:normal;color:#fff;font-weight:650;margin:0}
  .brand small{display:block;margin-top:4px;color:#a5bcb5;font-size:.75rem}
  .main-navigation{display:flex;flex-direction:column;gap:5px;padding:25px 12px 16px;margin:0}
  .nav-item{gap:12px;min-height:44px;padding:11px 12px;margin:0;border-radius:7px;font-size:.9375rem;font-weight:500;line-height:1.4;color:#c3d1ce;border-left:2px solid transparent}
  .nav-item:hover,.nav-item.module-active{background:#ffffff0d;color:#fff}
  .nav-item.active{color:#fff;background:#25464a;border-left-color:#a4dcc6}
  .nav-count{margin-left:auto;background:#ffffff14;padding:1px 8px;border-radius:5px;font-size:.75rem}
  .module-chevron{margin-left:auto;width:14px!important;height:14px!important;transition:transform .15s}
  .module-toggle[aria-expanded=true] .module-chevron{transform:rotate(90deg)}
  .module-submenu{margin:2px 0 12px 18px;padding-left:12px;border-left:1px solid #ffffff24}
  .module-submenu .nav-item{padding:9px 10px;font-size:.875rem;min-height:40px;line-height:1.5}
  .sidebar-bottom{margin:auto 12px 12px;padding:14px 12px 12px;border:1px solid #ffffff14;border-radius:12px;color:#aebfb9;background:#ffffff08;flex-shrink:0}
  .product-signature{font-size:.75rem;line-height:1.4}
  .product-signature strong{display:block;color:#eef8f3;font-size:.8125rem}
  .system-meta{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #ffffff14;padding-top:10px;margin-top:12px;font-size:.6875rem;color:#9bb1aa}
  .system-meta>span{display:flex;align-items:center;gap:6px}
  .system-meta .icon{width:14px;height:14px}
  .workspace{min-height:100vh;margin-left:264px}
  .topbar{position:sticky;top:0;z-index:20;min-height:76px;justify-content:initial;gap:16px;padding:0 32px;border-bottom:1px solid #dee6e2e6;background:#ffffffed;backdrop-filter:blur(14px)}
  .topbar-title{display:flex;flex:1;flex-direction:column;gap:2px;padding:0;text-align:left;min-width:0}
  .topbar-title strong{font-size:1rem;font-weight:650}
  .topbar-title span{color:var(--muted);font-size:.8125rem}
  .topbar-actions{gap:15px}
  .topbar-actions .icon-button{width:36px;height:36px;border:1px solid var(--line);background:#fff;color:#718780}
  .local-badge{font-size:.75rem}
  .mobile-menu,.mobile-close{display:none}
  #main{width:min(1440px,calc(100% - 40px));margin:0 auto;padding:28px 0 40px;max-width:none}
  .workspace-footer{margin:0 20px;padding:17px 0 20px;font-size:.75rem}
  .demo-banner{padding:12px 20px;font-size:.875rem}
  .page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin:6px 0 24px}
  .page-heading h1,.library-heading h1{font-size:1.7rem;font-weight:650;letter-spacing:normal;margin:7px 0 8px}
  .page-heading p,.library-heading p{font-size:.9375rem;line-height:1.65;color:var(--muted);max-width:720px}
  .welcome-panel{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-bottom:24px;border:1px solid var(--line);border-radius:12px;padding:30px;background:radial-gradient(ellipse at 70% 0,#e8f3ed,transparent 70%),#fff}
  .welcome-panel h2{font-size:1.85rem;margin:12px 0;line-height:1.25}
  .welcome-panel p{font-size:.9375rem;color:var(--muted);max-width:580px;line-height:1.7}
  .welcome-icon{display:grid;place-items:center;flex-shrink:0;width:100px;height:110px;background:#f7fbf8;border:1px solid #d5e7db;border-radius:14px;margin-right:25px;box-shadow:10px 10px 0 #e0eee5}
  .welcome-icon .icon{width:43px;height:43px;color:var(--teal)}
  .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:20px 0 26px}
  .stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px;min-width:0}
  .stat>span{display:block;font-size:.875rem;color:var(--muted)}
  .stat strong{display:block;font-size:1.8rem;font-weight:650;margin-top:7px}
  .stat small{font-size:.75rem;color:#87978d}
  .panel{background:#fff;border:1px solid var(--line);border-radius:11px;padding:22px;margin-bottom:20px;min-width:0}
  .panel-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}
  .panel-heading h2,.panel h2{font-size:1.2rem}
  .subtle-label{display:inline;font-size:.8125rem;color:var(--muted);white-space:normal}
  .section-caption{font-size:.875rem;color:var(--muted);margin:5px 0 0}
  .section-tag{display:inline-block;margin-left:7px;color:#74887b;font-size:.8125rem}
  .source-alert{display:block;margin-top:8px;color:#8c6829;background:#fff7e7;border:1px solid #eee0bd;border-radius:5px;padding:5px 8px;font-size:.8125rem;line-height:1.55}
  .source-notices{margin:0 0 20px}
  .original-title{font-size:1rem;line-height:1.6;margin:13px 0;color:#42634f}
  .received-publication{margin-top:22px;padding:18px;border:1px solid var(--line);border-radius:8px}
  .received-publication h3{font-size:1rem;margin-bottom:9px}
  .received-publication p{font-size:1rem;color:var(--muted);line-height:1.75}
  .received-publication a{display:inline-block;margin-top:9px;font-size:.875rem}
  .received-publication .icon{width:14px;height:14px}
  .source-details{margin-top:16px;border:1px solid var(--line);border-radius:7px;padding:12px 14px}
  .source-details summary{cursor:pointer;font-size:.875rem;color:var(--teal)}
  .source-details pre{font:inherit;font-size:.875rem;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);max-height:320px;overflow:auto;margin-bottom:0}
  .source-details p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;margin-top:10px}
  .court-section{padding:0}
  .module-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:20px;margin-bottom:22px}
  .module-card{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin:0}
  .module-card h2{font-size:1.45rem}
  .module-card>p{color:var(--muted);font-size:.9375rem;line-height:1.65;max-width:650px;margin-bottom:3px}
  .module-card-icon{width:46px;height:46px;display:grid;place-items:center;background:var(--teal-soft);color:var(--teal);border-radius:12px}
  .module-card-icon .icon{width:26px;height:26px}
  .module-card-meta{display:flex;align-items:center;gap:10px;font-size:.8125rem;color:#7d8c83;flex-wrap:wrap}
  .pill{display:inline-flex;align-items:center;padding:4px 8px;background:#f0f4f2;color:#6b7c72;font-size:.75rem;border-radius:5px;white-space:nowrap}
  .actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:auto;padding-top:4px}
  .case-home-callout{display:flex;align-items:center;justify-content:space-between;gap:24px}
  .case-home-callout h2{margin:7px 0 10px}
  .case-home-callout p{font-size:.9375rem;color:var(--muted);line-height:1.65}
  .library-heading{margin:6px 0 24px;padding:0}
  .search-panel{border-radius:11px;padding:22px}
  .search-box{height:46px;background:#fff}
  .search-box input{font-size:1rem}
  .filter-row{gap:15px;margin-top:18px}
  .filter-field>span{font-size:.875rem}
  .filter-field select{padding:9px 30px 9px 11px;border-radius:7px;font-size:.9375rem}
  .clear-filters{font-size:.875rem;padding:9px 0}
  .results-toolbar{margin:20px 0 22px;scroll-margin-top:95px}
  .tabs{gap:24px}
  .tabs button{font-size:.875rem;padding:12px 0}
  .result-count{font-size:.8125rem}
  .empty-state{padding:38px 20px;border:0;background:transparent;border-radius:0}
  .empty-icon{width:45px;height:45px;border-radius:12px;margin-bottom:13px;border:0;background:var(--teal-soft);color:var(--teal)}
  .empty-icon .icon{width:23px;height:23px}
  .empty-state h2,.empty-state h3{font-size:1.2rem;font-weight:650;letter-spacing:normal;margin:7px 0 12px}
  .empty-state p{font-size:.9375rem;line-height:1.7;color:var(--muted);max-width:470px;margin:0 auto 20px}
  .library-heading~.empty-state{background:#fff;border:1px solid var(--line);border-radius:11px;padding:48px 20px}
  .library-note{margin-top:22px;padding:13px 16px;background:#eef4f0;border:1px solid #dfe9e2;border-radius:8px}
  .library-note p{font-size:.8125rem;line-height:1.65}
  .table-scroll{overflow-x:auto;max-width:100%;border:1px solid var(--line);border-radius:8px;background:#fff}
  .data-table{width:100%;border-collapse:collapse;text-align:left;min-width:660px;font-size:.875rem}
  .data-table th{background:#f7faf8;color:#75877c;font-weight:500;font-size:.8125rem;white-space:nowrap}
  .data-table th,.data-table td{padding:14px 15px;border-bottom:1px solid #edf2ee;vertical-align:middle}
  .data-table tr:last-child td{border-bottom:0}
  .data-table td:first-child{width:42%;min-width:220px}
  .data-table td{overflow-wrap:anywhere}
  .data-table td strong{font-weight:600;font-size:.875rem}
  .data-table td small{display:block;font-size:.8125rem;color:#86958a;margin-top:4px}
  .court-tag{padding:3px 7px;border-radius:5px;font-size:.75rem}
  .record-title{display:block;font-family:inherit;font-size:1rem;font-weight:600;letter-spacing:normal;text-align:left;padding:5px 0;color:var(--ink)}
  .record-title:hover{color:var(--teal);text-decoration:underline;text-underline-offset:3px}
  .table-excerpt{font-size:.8125rem;line-height:1.65;color:#7a8b80;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:430px}
  .table-actions{display:flex;align-items:center;gap:8px}
  .editorial-badge{font-size:.8125rem;white-space:nowrap}
  .pagination>span{font-size:.875rem}
  .reader-body{padding:28px 32px 35px}
  .reader h2{font-size:1.7rem;font-weight:650;letter-spacing:normal;margin:15px 0 9px}
  .reader-bar>span{font-size:.75rem}
  .reader-demo{font-size:.875rem}
  .reader-subtitle{font-size:1rem}
  .reader-actions .button{font-size:.875rem}
  .original-section>p{font-size:1.0625rem;font-family:inherit}
  .original-meta{font-size:.8125rem}
  .editorial-divider{font-size:.75rem}
  .editorial-section h3{font-size:1.0625rem}
  .source-section h3{font-size:1rem}
  .source-section p,.source-section a{font-size:.875rem}
  .pending-note strong{font-size:.9375rem}
  .pending-note p{font-size:.875rem}
  .about-body h2{font-size:1.6rem;font-weight:650;letter-spacing:normal}
  .about-row h3{font-size:1rem}
  .about-row p{font-size:.9375rem}
  .toast{left:auto;right:24px;transform:translateY(8px)}
  .toast.visible{transform:translateY(0)}
  .sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  @media(max-width:1150px){.filter-row{flex-wrap:wrap}.filter-field{flex:1 1 30%}.clear-filters{margin-left:auto}.data-table th,.data-table td{padding:12px}}
  @media(max-width:1000px){
    .workspace{margin-left:0}
    .sidebar{transform:translateX(-100%);transition:transform .2s}
    .sidebar.open{transform:translateX(0)}
    .mobile-menu,.mobile-close{display:inline-flex}
    .mobile-close{width:32px;height:36px;margin:0 0 0 auto;color:#e0eee5;align-self:auto}
    .mobile-close:hover{background:#ffffff18}
    .mobile-shade{position:fixed;inset:0;z-index:29;background:#142c3266}
    .topbar{padding:0 22px}
  }
  @media(max-width:600px){
    #main{width:calc(100% - 28px);padding:18px 0 28px}
    .topbar{min-height:65px;padding:0 15px;gap:10px}
    .topbar-title strong{font-size:.9375rem}
    .topbar-title span{font-size:.75rem}
    .topbar-actions{gap:8px}
    .topbar-actions .local-badge{display:none}
    .workspace-footer{margin:0 14px;font-size:.6875rem;gap:12px}
    .demo-banner{padding:12px 15px;flex-wrap:wrap;gap:5px;font-size:.8125rem}
    .page-heading{flex-direction:column;gap:16px;margin-bottom:20px}
    .page-heading h1,.library-heading h1{font-size:1.6rem}
    .page-heading>.button{align-self:start}
    .welcome-panel{padding:23px;gap:0}
    .welcome-panel h2{font-size:1.65rem}
    .welcome-icon{display:none}
    .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:24px}
    .stat{padding:14px}
    .stat>span{font-size:.8125rem}
    .stat strong{font-size:1.6rem}
    .stat small{font-size:.75rem}
    .panel{padding:17px}
    .panel-heading{align-items:flex-start}
    .panel-heading h2{font-size:1.15rem}
    .subtle-label{font-size:.75rem;text-align:right;max-width:120px}
    .module-grid{gap:15px}
    .module-card{padding:20px}
    .module-card h2{font-size:1.35rem}
    .module-card .actions{gap:8px;width:100%}
    .actions .button{padding:9px 12px;font-size:.875rem}
    .button{min-height:44px}
    .case-home-callout{align-items:flex-start;flex-direction:column;gap:18px}
    .search-panel{padding:17px}
    .filter-row{gap:13px 10px}
    .filter-field{flex:1 1 42%}
    .filter-field select{font-size:1rem;padding-left:10px;min-height:44px}
    .clear-filters{font-size:.875rem}
    .results-toolbar{gap:10px;scroll-margin-top:80px}
    .tabs{gap:18px}
    .tabs button{font-size:.875rem;padding-top:8px;min-height:44px}
    .empty-state{padding:30px 5px}
    .library-heading~.empty-state{padding:40px 18px}
    .data-table{min-width:0}
    .data-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
    .data-table,.data-table tbody,.data-table tr,.data-table td{display:block;width:100%}
    .data-table tr{padding:13px 16px;border-bottom:1px solid var(--line)}
    .data-table tr:last-child{border-bottom:0}
    .data-table td,.data-table td:first-child{width:100%;min-width:0;padding:8px 0;border:0}
    .data-table td::before{content:attr(data-label);font-size:.75rem;color:#85968a;display:block;margin-bottom:5px}
    .data-table td:first-child::before{display:none}
    .data-table .record-title{font-size:1.0625rem}
    .table-excerpt{font-size:.875rem;-webkit-line-clamp:3}
    .table-actions .text-button{min-height:44px}
    .table-actions .favorite{width:44px;height:44px;border:1px solid var(--line)}
    .reader{width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;border-radius:0;margin:0;border:0}
    .reader-body{padding:24px 22px 30px}
    .reader h2{font-size:1.6rem}
    .reader-actions .button{padding:9px 11px}
    .pagination{gap:10px}
    .pagination .button{font-size:.8125rem;padding:9px 10px}
    .pagination>span{font-size:.8125rem}
    .toast{right:16px;bottom:18px;font-size:.875rem}
  }
}
