:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#18343a;background:#f4f7f6;font-synthesis:none;--accent:#176656;--line:#dce5e1}*{box-sizing:border-box}body{margin:0}header{background:white;border-bottom:1px solid var(--line);padding:22px max(24px,calc((100vw - 1180px)/2));display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{font-size:32px;font-weight:800;display:flex;gap:10px;align-items:center;color:#18343a;text-decoration:none}.brand span{font-size:23px}.brand small{display:block;font-size:10px;letter-spacing:3px;margin-top:3px}nav{display:flex;gap:14px;flex-wrap:wrap}a{color:var(--accent)}main{max-width:1180px;margin:42px auto;padding:0 24px;min-height:65vh}h1{font-size:clamp(28px,4vw,42px);letter-spacing:-1px;margin:10px 0 16px}h2{font-size:23px}p{line-height:1.65}.eyebrow{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:2px;color:var(--accent)}.muted,small{color:#536c70}.grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.card{background:white;border:1px solid var(--line);border-radius:14px;padding:28px;margin:18px 0}.auth{max-width:530px;margin:auto}.price{font-size:38px;font-weight:800}.price small{font-size:16px;font-weight:400}form{display:grid;gap:15px}label{display:grid;gap:7px;font-size:14px;font-weight:600}input,select,textarea{font:inherit;padding:12px;border:1px solid #afc0ba;border-radius:7px;width:100%;color:#18343a;background:white}textarea{min-height:105px;resize:vertical}input[type=checkbox]{width:20px;height:20px;accent-color:var(--accent)}button,.button{font:inherit;border:0;border-radius:7px;background:var(--accent);padding:12px 18px;color:white;cursor:pointer;text-decoration:none;display:inline-block}button:disabled{opacity:.55;cursor:wait}.secondary{background:#e6eeea;color:#18343a}.danger{background:#9d3a35}.actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.bar{display:flex;justify-content:space-between;align-items:center;gap:20px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px}th,td{text-align:left;padding:14px 12px;border-bottom:1px solid var(--line);vertical-align:middle}th{background:#f2f6f4}.badge{display:inline-block;background:#e7f2eb;color:#176656;padding:5px 9px;border-radius:20px;font-size:12px}.empty{padding:25px;color:#536c70}.check-cell{text-align:center}.check-cell input{display:block;margin:auto}.message{padding:14px;border-radius:8px;background:#eaf3ed}.error{background:#fbeae7;color:#8e2929}#notice{position:fixed;bottom:20px;right:20px;max-width:500px;padding:15px 20px;border-radius:8px;background:#18343a;color:white;display:none;box-shadow:0 8px 24px #18343a33}.lead{max-width:760px}.catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:20px}.catalog .card{margin:0}footer{padding:26px;text-align:center;border-top:1px solid var(--line);font-size:12px;color:#536c70}input:focus,button:focus,a:focus,textarea:focus,select:focus{outline:3px solid #a6d2c3;outline-offset:2px}@media(max-width:720px){header{align-items:flex-start}.grid{grid-template-columns:1fr}.card{padding:20px}.bar{align-items:flex-start;flex-direction:column}nav{font-size:13px}main{margin-top:25px}}

[hidden]{display:none!important}.upload-heading h2{margin:14px 0 8px}.upload-zone{padding:24px;border:2px dashed #b9d1c7;border-radius:12px;background:#f8fbf9;gap:16px}.upload-zone input{max-width:100%;background:white}.upload-zone small{font-weight:400;overflow-wrap:anywhere}#upload-progress{width:100%;height:18px;accent-color:var(--accent)}#upload-status:empty{display:none}#upload-status[role=alert]{padding:14px;border-radius:8px;background:#fbeae7;color:#8e2929}.upload-card .actions{justify-content:flex-start}

.codes-group>summary{font-size:17px}.codes-group>summary .library-count{margin-left:14px;font-size:13px;font-weight:400}.codes-group .library-toolbar{padding:24px 0;justify-content:space-between}.direct-source-table{min-width:1020px;table-layout:fixed}.direct-source-table th:nth-child(1){width:27%}.direct-source-table th:nth-child(2){width:12%}.direct-source-table th:nth-child(3){width:16%}.direct-source-table th:nth-child(4){width:16%}.direct-source-table th:nth-child(5){width:13%}.direct-source-table th:nth-child(6){width:16%}.direct-source-table td{vertical-align:top;padding:22px 12px}.direct-source-table .source-period,.direct-source-table .source-time{min-width:0;font-size:14px;padding:10px;width:100%}.direct-source-table .save-schedule{margin-top:10px;padding:9px 14px;font-size:13px}.direct-source-table .next-check{line-height:1.6;margin-top:10px;font-size:11px}.row-actions{display:flex;flex-direction:column;gap:10px;align-items:flex-start}.row-actions button{font-size:13px;padding:10px 12px}.sort-heading{background:transparent;color:inherit;border-radius:0;font:inherit;font-weight:700;padding:0;text-align:left;line-height:1.5;display:inline}.sort-heading:hover{color:var(--accent);text-decoration:underline}.sort-heading span{white-space:nowrap;color:#536c70}.codes-group .library-caption{margin-top:14px;border-radius:8px}.history-toolbar{margin:24px 0}.direct-source-table .source-title{font-size:14px}.direct-source-table .badge{font-size:11px}@media(max-width:720px){.codes-group .library-toolbar{gap:16px}.codes-group>summary .library-count{display:inline-block;margin-left:10px}.direct-source-table{min-width:980px}}

.document-dialog{width:min(1250px,96vw);height:94vh;max-height:94vh;border:1px solid var(--line);border-radius:14px;padding:20px;color:#18343a}.document-dialog::backdrop{background:#18343ab3}.reader-heading,.reader-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.reader-heading{justify-content:space-between}.reader-heading h2{margin:0 0 15px}.reader-controls label{min-width:100px}.reader-controls label:first-child{flex:1}.reader-page{max-width:90px}.reader-paper{overflow:auto;background:#edf1ef;max-height:64vh;padding:12px;text-align:center}.reader-paper canvas{background:white;max-width:none}.reader-text{white-space:pre-wrap;text-align:left;line-height:1.7;background:white;padding:24px;font-family:inherit}.reader-status{margin:12px 0}.reader-text mark{background:#fff09e;color:#18343a}.source-error{color:#92302c;font-size:12px}.source-period{min-width:140px}.library-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.library-toolbar input{max-width:400px}.source-table td:first-child{min-width:230px}.source-table .actions{gap:6px}.source-table button{padding:8px 12px}details>summary{cursor:pointer;font-weight:600}

.nav-tile{display:flex;align-items:center;justify-content:center;min-height:60px;min-width:150px;padding:14px 18px;border:1px solid #b9d1c7;border-radius:10px;background:#eef5f1;text-decoration:none;font-weight:700}.nav-tile:hover{background:#dcece4}.next-check{display:block;margin-top:8px;max-width:190px}.source-time{min-width:140px}.source-table label+label{margin-top:10px}@media(max-width:720px){header{flex-wrap:wrap}nav{width:100%}.nav-tile{flex:1;min-width:125px}}

.library-panel{padding:0;overflow:hidden}.library-panel .library-toolbar{padding:24px;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}.library-search{flex:1;max-width:420px}.library-tools{display:flex;gap:18px;align-items:center}.library-count{color:#536c70;font-size:14px;white-space:nowrap}.library-panel .table-wrap{padding:0 12px}.source-table{table-layout:fixed}.source-table th{font-size:12px;font-weight:700;padding:18px 12px}.source-table th:nth-child(1){width:34%}.source-table th:nth-child(2){width:13%}.source-table th:nth-child(3){width:15%}.source-table th:nth-child(4){width:25%}.source-table th:nth-child(5){width:13%}.source-table td{padding:22px 12px;vertical-align:top}.source-table td:first-child{min-width:0}.source-title{display:block;line-height:1.5;font-size:15px;margin-bottom:10px}.source-link{display:block;font-size:12px;margin-top:10px;text-underline-offset:3px}.source-table .badge{max-width:100%;font-size:11px}.status-error{color:#92302c;background:#fbeae7}.source-date{font-variant-numeric:tabular-nums;line-height:1.7}.schedule-summary{display:block;font-size:14px}.source-table .next-check{font-size:12px;line-height:1.6;margin:6px 0 12px;max-width:none}.source-table button{min-height:38px}.source-table tbody tr:last-child td{border-bottom:0}.library-caption{border-top:1px solid var(--line);padding:16px 24px;margin:0;color:#536c70;font-size:12px;background:#fafcfb}.schedule-dialog{width:min(640px,calc(100vw - 32px));max-height:90vh;overflow:auto;border:1px solid var(--line);border-radius:16px;padding:28px;color:#18343a}.schedule-dialog::backdrop{background:#18343a99}.schedule-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.schedule-heading h2{margin:8px 0 0;line-height:1.4}.schedule-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px}.schedule-next{margin:0}.schedule-footer{display:flex;gap:12px;margin-top:4px}.schedule-manual{border-top:1px solid var(--line);margin-top:28px;padding-top:24px;display:flex;align-items:center;gap:20px;justify-content:space-between}.schedule-manual p{margin-bottom:0;font-size:13px;color:#536c70}.schedule-manual button{flex-shrink:0}#catalog-sync{margin-bottom:12px}
@media(max-width:900px){.source-table th:nth-child(1){width:30%}.source-table th:nth-child(4){width:27%}.source-table th:nth-child(5){width:15%}.source-table th,.source-table td{padding-left:8px;padding-right:8px}.source-table{font-size:13px}}
@media(max-width:720px){.library-panel .library-toolbar{padding:20px}.library-search{max-width:none;flex-basis:100%}.library-tools{width:100%;justify-content:space-between}.library-panel .table-wrap{padding:0 20px}.source-table,.source-table tbody,.source-table tr{display:block;width:100%}.source-table thead{display:none}.source-table tr{padding:20px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:20px 14px}.source-table tr:last-child{border:0}.source-table td{display:block;border:0;padding:0;min-width:0}.source-table td:first-child{grid-column:1/-1}.source-table td:not(:first-child)::before{content:attr(data-label);display:block;font-size:11px;color:#536c70;font-weight:600;margin-bottom:8px}.source-title{font-size:16px}.source-table td:nth-child(4){grid-column:1}.library-caption{padding:16px 20px}.schedule-dialog{padding:20px}.schedule-fields{grid-template-columns:1fr}.schedule-heading{gap:12px}.schedule-manual{align-items:flex-start;flex-direction:column}}

.admin-home{min-height:65vh;display:flex;flex-direction:column;justify-content:center;gap:30px}.home-heading{text-align:center}.home-heading p{color:#536c70}.home-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.home-tile{padding:36px 28px;min-height:190px;display:flex;flex-direction:column;justify-content:center;text-align:center;gap:18px;border:1px solid #b9d1c7;border-radius:16px;background:white;text-decoration:none;box-shadow:0 4px 14px #18343a08}.home-tile:hover{background:#eef5f1;border-color:#176656}.home-tile strong{font-size:23px}.home-tile span{font-size:15px;color:#536c70;line-height:1.6}.accordion-tools{padding:18px 24px;display:flex;gap:12px;border-bottom:1px solid var(--line)}.accordion-tools button{font-size:13px;padding:9px 14px}.code-list{padding:0 24px}.code-entry{border-bottom:1px solid var(--line)}.code-entry:last-child{border-bottom:0}.code-entry[hidden]{display:none}.code-entry>summary{padding:22px 0;display:grid;grid-template-columns:20px minmax(180px,1fr) 180px 140px;gap:16px;align-items:center;list-style:none}.code-entry>summary::-webkit-details-marker{display:none}.code-entry>summary::before{content:'▸';color:var(--accent);font-size:19px}.code-entry[open]>summary::before{content:'▾'}.code-name{font-size:15px;line-height:1.6}.code-entry .badge{justify-self:start;font-size:11px;font-weight:400}.code-entry .schedule-summary{font-size:13px;text-align:right;white-space:nowrap}.code-body{padding:0 0 24px 36px}.code-info{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:24px;padding:18px 0;border-top:1px solid var(--line)}.code-info small{display:block;margin-bottom:8px}.code-info strong{font-size:14px;font-weight:500}.code-info a{font-size:13px}.code-edit{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap;padding:18px;border-radius:10px;background:#f4f7f6}.code-edit label{width:165px}.code-edit button{min-height:43px;font-size:14px}.code-entry .next-check{max-width:none;margin-top:14px}.code-edit input,.code-edit select{font-size:14px}.code-entry>summary:focus-visible{outline:3px solid #a6d2c3;outline-offset:3px;border-radius:6px}@media(max-width:900px){.code-entry>summary{grid-template-columns:18px 1fr 150px;gap:12px}.code-entry .schedule-summary{grid-column:2;text-align:left}.home-tiles{gap:14px}.home-tile{padding:24px 18px}.home-tile strong{font-size:20px}}@media(max-width:720px){.home-tiles{grid-template-columns:1fr}.admin-home{min-height:0}.home-tile{min-height:140px}.code-list{padding:0 20px}.accordion-tools{padding:16px 20px}.code-entry>summary{grid-template-columns:16px 1fr}.code-entry .badge,.code-entry .schedule-summary{grid-column:2}.code-body{padding-left:0}.code-info{grid-template-columns:1fr;gap:18px}.code-edit{padding:16px;gap:16px}.code-edit label{width:100%}.code-edit button{flex:1}.home-heading h1{font-size:28px}}

.schedule-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.schedule-actions button{white-space:nowrap}.library-toolbar:has(.schedule-actions){justify-content:space-between;gap:20px;margin-bottom:22px}.library-toolbar:has(.schedule-actions)>span{flex:1;min-width:240px}.direct-source-table td:first-child>small{display:block;margin-top:10px;font-size:11px;line-height:1.5;color:#536c70}

.icon-action{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:10px!important;margin:2px;vertical-align:middle}.icon-action svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.download-light{display:inline-block;width:20px;height:20px;border:2px solid #18343a;border-radius:50%;vertical-align:middle}.light-green{background:#218451}.light-amber{background:#efb92d}.light-red{background:#cb3535}.download-light:focus-visible,.icon-action:focus-visible{outline:3px solid #006f83;outline-offset:4px}

.document-dialog[open]{display:flex;flex-direction:column;overflow:hidden}.reader-heading{flex:none;margin-bottom:14px}.reader-heading h2{margin:0}.reader-controls{flex:none;align-items:flex-end}.reader-controls label:first-child{flex:none}.reader-search-controls label:first-child{flex:1;min-width:220px}.reader-controls button,.reader-controls input,.reader-controls select{height:42px;margin:0}.reader-controls label{min-width:0}.reader-page-controls{margin-bottom:20px}.reader-pages{height:42px;display:flex;align-items:center}.reader-paper{position:relative;flex:1;min-height:0;max-height:none;scroll-behavior:auto;overflow-anchor:none;padding:16px}.reader-pdf-page{margin:0 auto 24px;background:white;border:1px solid #dce5e1}.reader-pdf-page canvas{display:block;margin:auto}.reader-text{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.reader-status{flex:none;margin:12px 0}.reader-search-controls button{white-space:nowrap}@media(max-width:600px){.document-dialog{padding:12px}.reader-heading h2{font-size:18px}.reader-search-controls label:first-child{flex-basis:100%;min-width:0}.reader-controls{gap:8px}.reader-controls button{padding:8px 10px;font-size:13px}.reader-paper{padding:8px}.reader-text{padding:14px}}


.legal-badge{display:block;background:#fff6d8;color:#64501a;border-radius:6px;padding:6px 8px;margin:8px 0;font-size:12px}.legal-evidence{white-space:pre-wrap;overflow-wrap:anywhere;max-height:420px;overflow:auto;background:#f2f6f4;padding:16px}.legal-confirm{display:flex;align-items:flex-start;gap:10px;font-weight:400}.legal-confirm input{flex:none;width:20px;height:20px}.legal-confirm input:checked{accent-color:var(--accent)}#legal-table{min-width:1100px}#legal-table td{vertical-align:top}#legal-table td:nth-child(1){width:22%}#legal-table td:nth-child(3){width:35%}#legal-table ul{padding-left:18px;line-height:1.6}#legal-review-form select[multiple]{min-height:180px}.home-tiles{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
#legal-review-panel{min-width:0;overflow-wrap:anywhere}#legal-review-panel .card,#legal-review-form,#legal-review-form>*{min-width:0;max-width:100%}#legal-review-form select{min-width:0;max-width:100%}#legal-review-panel .table-wrap{max-width:100%}

.brand{gap:14px}.brand .brand-icon{width:44px;height:44px;flex:none}.brand strong{font-size:21px;line-height:1.2}.brand small{font-size:12px;font-weight:400;letter-spacing:0;margin-top:5px}.home-link{margin-right:24px}.logout-button{background:#f5e5e3;color:#8d3833}.legal-counter{color:#18343a;text-align:left;display:grid;gap:18px;cursor:pointer}.legal-counter strong{font-size:23px}.legal-counter span{font-size:15px;line-height:1.65}.legal-counter[aria-pressed=true]{border-color:#176656;background:#edf6f1;box-shadow:0 0 0 2px #176656}.legal-counter:hover{background:#f1f7f4}.legal-reasons summary{font-size:13px;margin-top:12px;cursor:pointer}#legal-list>summary{font-weight:700;margin-bottom:22px;cursor:pointer}#legal-list .library-toolbar{flex-wrap:wrap;align-items:flex-end}#legal-list .library-toolbar label{flex:1;min-width:200px;max-width:420px}@media(max-width:600px){header{gap:14px;flex-wrap:wrap}.brand strong{font-size:18px}.brand .brand-icon{width:36px;height:36px}.home-link{margin-right:12px}.legal-counter strong{font-size:20px}}
#verification-panel{max-width:1180px;margin:24px auto 0;padding:0 24px}#verification-panel[hidden]{display:none}.verification-monitor>summary{font-weight:700;cursor:pointer}.verification-monitor label{max-width:440px;margin:16px 0}.verification-monitor table{min-width:760px}.verification-monitor td{vertical-align:top}.verification-monitor td details{margin-top:10px}

#control-list>summary{font-weight:700;margin-bottom:22px;cursor:pointer}
#control-list .library-toolbar{flex-wrap:wrap;align-items:center}

#jurisprudence-group .library-toolbar,#content-search-form .library-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,.8fr) minmax(220px,1fr) auto auto;align-items:end;gap:14px}#jurisprudence-group .library-toolbar label,#content-search-form .library-toolbar label{min-width:0;max-width:none}#jurisprudence-group .library-toolbar select,#content-search-form .library-toolbar select{max-width:100%}#jurisprudence-group .library-toolbar button,#content-search-form .library-toolbar button{min-height:43px;margin:0}#jurisprudence-group small,#content-results small,#dgsi-progress-table small{display:block;margin-top:8px}@media(max-width:1100px){#jurisprudence-group .library-toolbar,#content-search-form .library-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){#jurisprudence-group .library-toolbar,#content-search-form .library-toolbar{grid-template-columns:minmax(0,1fr)}}
:root .group-states{display:inline-flex;gap:14px;margin-inline:18px;vertical-align:middle;flex-wrap:wrap}.group-state{display:inline-flex;align-items:center;gap:6px;font-size:.85rem;font-weight:600}.group-state .download-light{width:15px;height:15px;border-width:1px}.group-state:focus-visible{outline:2px solid #006f83;outline-offset:4px}@media(max-width:600px){:root .group-states{margin-inline:8px;gap:8px}}
