.acts-shell { max-width: 1400px; margin: 0 auto; }
.acts-shell h1, .acts-shell h2, .acts-shell h3, .acts-shell h4 { margin: 0 0 10px; }
.acts-shell p { margin: 0 0 12px; }
.acts-shell .breadcrumbs { color: #445264; margin-bottom: 14px; }
.acts-shell .acts-grid { display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: start; }
.acts-shell .directory-panel, .acts-shell .list-panel { background: #fff; border: 1px solid #d8dee8; border-radius: 8px; padding: 14px; }
.acts-shell .directory-panel h2 { margin-bottom: 12px; }
.acts-shell .dir-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.acts-shell .dir-card { display: block; background: #f9fbff; border: 1px solid #d3dfef; border-radius: 8px; padding: 12px; text-decoration: none; color: #1d2430; }
.acts-shell .dir-card h3 { margin: 0 0 6px; color: #0d4d93; }
.acts-shell .dir-card p { margin: 0; color: #4e5f75; }
.acts-shell .dir-card:hover { border-color: #a7bfdf; background: #f2f7ff; text-decoration: none; }
.acts-shell .dir-types, .acts-shell .dir-years { list-style: none; padding: 0; margin: 0; }
.acts-shell .dir-types > li { margin-bottom: 10px; }
.acts-shell .dir-years { margin-top: 8px; margin-left: 14px; border-left: 2px solid #e6ebf2; padding-left: 10px; }
.acts-shell .dir-types li.selected > a, .acts-shell .dir-years li.selected > a { font-weight: 700; color: #0b53a6; }
.acts-shell .count { color: #57687c; font-size: 12px; margin-left: 6px; }
.acts-shell .controls { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 14px; }
.acts-shell .controls label { display: flex; flex-direction: column; gap: 5px; }
.acts-shell .pagination { display: flex; align-items: center; gap: 8px; margin: 10px 0 14px; }
.acts-shell .page-status { color: #445264; margin-right: auto; font-size: 13px; }
.acts-shell input, .acts-shell button, .acts-shell select { font: inherit; padding: 6px 8px; border: 1px solid #c8d4e1; border-radius: 4px; background: #fff; }
.acts-shell button, .acts-shell .button { background: #1f5ca8; border-color: #1f5ca8; color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
.acts-shell .button.secondary { background: #fff; color: #1f5ca8; border-color: #1f5ca8; }
.acts-shell .button.disabled { opacity: 0.55; cursor: default; pointer-events: none; }
.acts-shell table { width: 100%; border-collapse: collapse; margin: 0; background: #fff; }
.acts-shell th, .acts-shell td { text-align: left; border-bottom: 1px solid #dde6ef; padding: 8px 10px; vertical-align: top; }
.acts-shell th { background: #f0f5fb; font-weight: 700; }
.acts-shell td.num { text-align: right; }
.acts-shell .meta { margin-bottom: 16px; }
.acts-shell .act-switcher { display: block; margin: 6px 0 14px; font-weight: 600; }
.acts-shell .act-switcher select { margin-left: 10px; max-width: 100%; }
.acts-shell .version-nav { background: #fff; border: 1px solid #d8dee8; border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; }
.acts-shell .version-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.acts-shell .version-pill { border: 1px solid #9eb4cf; border-radius: 999px; padding: 5px 12px; color: #0a4f97; text-decoration: none; background: #f4f8fc; }
.acts-shell .version-pill.active { background: #0a4f97; border-color: #0a4f97; color: #fff; }
.acts-shell .compare-panel, .acts-shell .reference-panel, .acts-shell .diff-panel { background: #fff; border: 1px solid #d8dee8; border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; }
.acts-shell .compare-controls { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin: 0; }
.acts-shell .compare-controls label { display: flex; flex-direction: column; gap: 5px; }
.acts-shell .ref-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.acts-shell .ref-badge.amendment { background: #d6f2df; color: #165d2e; }
.acts-shell .ref-badge.reference { background: #e8eef8; color: #275080; }
.acts-shell .diff-table th { width: 50%; }
.acts-shell .diff-table td { white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size: 13px; }
.acts-shell .diff-row-links { margin-top: 6px; font-family: "Segoe UI", "Noto Sans", Arial, sans-serif; font-size: 12px; opacity: 0; visibility: hidden; transition: opacity 120ms ease-in-out; }
.acts-shell .diff-table tr:hover .diff-row-links,
.acts-shell .diff-table tr:focus-within .diff-row-links { opacity: 1; visibility: visible; }
.acts-shell .diff-row-links a { color: #0b539b; }
.acts-shell .diff-add td:last-child { background: #e7f7e9; border-left: 3px solid #2a924a; }
.acts-shell .diff-remove td:first-child { background: #fdeaea; border-left: 3px solid #bf3030; }
.acts-shell .diff-equal td { background: #fbfcfe; color: #5c6c80; }
.acts-shell .notice { background: #fff8e6; border: 1px solid #f0d89d; color: #7b5b15; border-radius: 6px; padding: 10px; }
.acts-shell .act-rendered { background: #fff; border: 1px solid #d8dee8; border-radius: 8px; padding: 20px; }
.acts-shell .act-number, .acts-shell .act-date { text-align: center; color: #4f5967; font-size: 13px; }
.acts-shell .act-long-title { text-align: center; max-width: 980px; margin: 10px auto 18px; font-style: italic; }
.acts-shell .leg-container { margin: 14px 0; }
.acts-shell .leg-heading { border-top: 1px solid #ccd6e4; padding-top: 10px; margin-bottom: 8px; }
.acts-shell .leg-provision { display: grid; grid-template-columns: 68px 1fr; gap: 10px; margin: 8px 0; }
.acts-shell .leg-provision-number { color: #2d3a4a; font-weight: 700; text-align: right; }
.acts-shell .leg-provision-body { min-width: 0; }
.acts-shell .leg-provision.level-3,
.acts-shell .leg-provision.level-4,
.acts-shell .leg-provision.level-5,
.acts-shell .leg-provision.level-6,
.acts-shell .leg-provision.level-7,
.acts-shell .leg-provision.level-8,
.acts-shell .leg-provision.level-9 { grid-template-columns: 56px 1fr; margin-left: 18px; }
.acts-shell .leg-paragraph { margin: 0 0 8px; }
.acts-shell .leg-smallcaps { font-variant: small-caps; letter-spacing: 0.03em; }
.acts-shell .leg-uppercase { text-transform: uppercase; }
.acts-shell .leg-commentary-ref { color: #0a4f97; margin-left: 2px; }
.acts-shell .leg-list { margin: 6px 0 8px 24px; }
.acts-shell .leg-block { margin: 8px 0; padding-left: 10px; border-left: 2px solid #e1e8f2; }
.acts-shell .leg-annotations { margin: 8px 0; }
.acts-shell .leg-tabular-wrap { margin: 10px 0 14px; border: 1px solid #d6dee9; border-radius: 6px; overflow-x: auto; background: #fff; }
.acts-shell .leg-tabular { width: max-content; min-width: 100%; border-collapse: collapse; margin: 0; background: #fff; }
.acts-shell .leg-tabular th, .acts-shell .leg-tabular td { border: 1px solid #ccd6e4; padding: 6px 8px; vertical-align: top; white-space: normal; }
.acts-shell .leg-tabular th { background: #f3f7fc; font-weight: 700; }
.acts-shell code, .acts-shell pre { background: #eef3f8; border: 1px solid #dde6ef; border-radius: 4px; }
.acts-shell code { padding: 1px 4px; word-break: break-all; }
.acts-shell pre { padding: 12px; white-space: pre-wrap; word-break: break-word; }
.acts-shell a { color: #0c4a92; text-decoration: none; }
.acts-shell a:hover { text-decoration: underline; }

@media (max-width: 980px) {
    .acts-shell .acts-grid { grid-template-columns: 1fr; }
    .acts-shell .leg-provision { grid-template-columns: 58px 1fr; }
}
