:root {
  --ink: #172f3b;
  --muted: #4d6470;
  --line: #d4e0e3;
  --mist: #eef4f5;
  --canvas: #f4f7f8;
  --paper: #fff;
  --blue: #145877;
  --green: #26684d;
  --navy: #133c50;
  --amber: #855523;
  font: 15px/1.5 "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  accent-color: var(--blue);
}
* {box-sizing: border-box}
[hidden] {display: none !important}
body, h1, h2, h3, h4, p, figure, ul, ol {margin: 0}
body {min-height: 100vh}
input, select, textarea, button {font: inherit; color: inherit}
button, select, summary {cursor: pointer}
button {border: 0; background: none}
button:disabled {cursor: default; opacity: .54}
a {color: var(--blue); text-underline-offset: .18em}
a:hover {text-decoration-thickness: 2px}
button, input, select, textarea {border-radius: 4px}
:focus-visible {outline: 2px solid #146194; outline-offset: 3px}
h1, h2, h3, h4 {font-weight: 640; line-height: 1.24; text-wrap: pretty}
h1 {font-size: clamp(1.85rem,2.65vw,2.65rem); letter-spacing: -.055em}
h2 {font-size: 1.3rem; letter-spacing: -.025em}
h3 {font-size: 1.06rem; letter-spacing: -.012em}
h4 {font-size: .98rem; line-height: 1.4}
.skip {position: fixed; inset: -100px auto auto 1rem; z-index: 3; background: white; padding: .5rem .85rem}
.skip:focus {top: .35rem}
.masthead {background: var(--paper); border-bottom: 1px solid var(--line)}
.head-row, .brand, .session, .controls, .page-title, .section-top, .dialog-head, .dialog-actions, .line {display: flex; align-items: center; gap: .65rem}
.head-row {padding: 0 clamp(1rem,2.5vw,2.8rem); min-height: 61px; justify-content: space-between}
.brand {flex: none; gap: .85rem}
.brand-logo {display: block; width: 78px; height: auto}
.brand span {border-left: 1px solid var(--line); padding-left: .85rem; font-size: .93rem; font-weight: 620}
.session {font-size: .83rem; color: var(--muted); min-width: 0; gap: .85rem}
.account {display: flex; align-items: center; gap: .7rem; min-width: 0}
.settings-button {border-right: 1px solid var(--line); border-radius: 0; padding-right: 1rem}
.session-button {min-height: 36px; padding: .35rem .5rem; font-size: .85rem}
.session-button:hover, .text-button:hover {background: var(--mist)}
.app-layout {display: grid; grid-template-columns: clamp(175px,16vw,235px) minmax(0,1fr); min-height: calc(100vh - 61px)}
.app-rail {background: var(--navy); padding: 2rem .8rem}
.register-nav {position: sticky; top: 1rem; display: grid; gap: .35rem}
.register-nav a {display: flex; align-items: center; gap: .8rem; padding: .65rem .9rem; min-height: 44px; font-size: .94rem; color: #d8e7ea; font-weight: 520; text-decoration: none; text-align: left; border-radius: 4px}
.register-nav a:hover {background: #21495a; color: white}
.register-nav a[aria-current="page"] {background: #28586a; color: white; font-weight: 650; box-shadow: inset 3px 0 #8bc7aa}
.register-nav a:focus-visible {outline-color: #b4e2d7}
.register-nav .register-chat {background:#255f50;color:white;font-weight:650}
.register-family>summary {padding:.65rem .9rem;color:#dbece6;min-height:44px;cursor:pointer;font-weight:620}
.register-family[open] {background:#153b4b;border-radius:.3rem}
@media(max-width:800px) {
 .register-family>summary {display:flex;align-items:center;justify-content:center;min-height:48px;padding:.2rem;font-size:.84rem}
 .register-family>div {position:absolute;right:.5rem;min-width:13rem;background:#183c4b;padding:.4rem;box-shadow:0 .4rem .8rem #173d4b25}
 .register-nav .register-family>div>a {flex-direction:row;justify-content:start;min-height:44px;padding:.4rem .8rem}
}
.nav-icon {display: block; position: relative; width: 17px; height: 17px; color: #bad1d9; flex: none}
.register-nav a[aria-current="page"] .nav-icon {color: #b4e2d7}
.nav-icon::before,.nav-icon::after {content: ""; position: absolute; box-sizing: border-box}
.icon-home::before {inset: 1px; border: 1.5px solid; border-radius: 2px}
.icon-home::after {inset: 2px 6px 2px 2px; border-right: 1.5px solid; background: linear-gradient(currentColor,currentColor) left center/100% 1.5px no-repeat}
.icon-cases::before {inset: 4px 0 1px; border: 1.5px solid; border-radius: 2px}
.icon-cases::after {top: 2px; left: 1px; width: 8px; height: 3px; border: 1.5px solid; border-bottom: 0; border-radius: 2px 2px 0 0}
.icon-services::before {top: 1px; left: 6px; width: 6px; height: 6px; border: 1.5px solid; border-radius: 1px; box-shadow: -5px 10px 0 -1px currentColor, 5px 10px 0 -1px currentColor}
.icon-services::after {top: 8px; left: 3px; width: 11px; height: 4px; border: 1.5px solid; border-bottom: 0}
.icon-monitor::before {inset: 1px 0 4px; border: 1.5px solid; border-radius: 2px}
.icon-monitor::after {bottom: 1px; left: 5px; width: 8px; height: 4px; border-bottom: 1.5px solid; background: linear-gradient(currentColor,currentColor) center top/1.5px 100% no-repeat}
.icon-assistant::before {inset: 1px 0 4px; border: 1.5px solid; border-radius: 3px 3px 3px 0}
.icon-assistant::after {bottom: 1px; left: 2px; width: 5px; height: 5px; border-left: 1.5px solid; transform: skewY(-31deg); border-bottom: 1.5px solid}
#registre {width: 100%; max-width: 1410px; min-width: 0; margin-inline: auto; padding: clamp(1.5rem,3.2vw,3.5rem) clamp(1.25rem,3.7vw,4.45rem) 3.5rem}
.page-title {justify-content: space-between; flex-wrap: wrap; gap: .8rem; margin-bottom: clamp(1.2rem,2.3vw,2rem)}
.muted,.meta,.hint,.sort-order {color: var(--muted)}
.page-title p {margin-top: .24rem; font-size: .86rem}
.controls,.line,.dialog-actions {flex-wrap: wrap}
.primary,.secondary {display: inline-flex; align-items: center; justify-content: center; padding: .42rem .78rem; min-height: 38px; font-size: .88rem; font-weight: 600; border: 1px solid transparent; border-radius: 4px; text-decoration: none}
.primary {background: var(--navy); color: white}
.primary:hover:enabled, a.primary:hover {background: #0d3041}
.secondary {background: white; border-color: #bbc2c8}
.secondary:hover:enabled {background: var(--mist)}
#home-services {min-width: 0}
.chart-entry {display:flex;align-items:center;justify-content:space-between;gap:.7rem 1.2rem;min-width:0;margin:0 0 1.1rem;padding:.85rem 1rem;border:1px solid #bdd2ca;border-left:4px solid #287056;background:#eff6f2;color:#184b3c;text-decoration:none}
.chart-entry strong,.chart-entry small {display:block}
.chart-entry strong {font-size:1.13rem;font-weight:675;line-height:1.3}
.chart-entry small {font-size:.87rem;color:#3e5e56;margin-top:.12rem}
.chart-entry-action {flex:none;color:#174d3d;text-decoration:underline;text-underline-offset:.2em;font-size:.87rem;font-weight:650}
.chart-entry-action span {display:inline-block;margin-left:.2rem}
.chart-entry:hover {border-color:#579076;background:#e6f1ea}
@media(max-width:620px){.chart-entry{align-items:start;flex-direction:column;gap:.32rem;padding:.7rem .8rem}.chart-entry-action{min-height:1.4rem}}
#service-priorities {border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 5px; background: var(--paper); overflow: clip}
.service-priority-table {table-layout: fixed; font-size: .92rem}
.service-priority-table thead th {padding: .7rem .9rem; background: #eaf1f3; color: #354f5a; font-size: .85rem}
.service-priority-table thead th:nth-child(1) {width: 18%}
.service-priority-table thead th:nth-child(2) {width: 37%}
.service-priority-table thead th:nth-child(3) {width: 20%}
.service-priority-table thead th:nth-child(4) {width: 25%}
.service-priority-table tbody th,.service-priority-table tbody td {min-width: 0; padding: .95rem .9rem; overflow-wrap: anywhere}
.service-priority-table tr:last-child > * {border-bottom: 0}
.service-priority-table tbody tr:hover {background: #f8fbfb}
.service-priority-table th[scope="row"] {color: var(--navy); font-size: 1rem; font-weight: 650; line-height: 1.35}
.service-filter {display: block; margin-top: .24rem; color: var(--blue); font-size: .82rem; font-weight: 540; text-align: left}
.service-priority-table button {max-width: 100%; padding-inline: 0; text-align: left; overflow-wrap: anywhere}
.service-filter:hover,.service-priority-table .text-button:hover {text-decoration: underline; text-underline-offset: .16em}
.service-action {display: block; margin-bottom: .3rem; color: var(--ink); font-size: .97rem; line-height: 1.4; font-weight: 610}
.service-case {display: inline; font-size: .86rem; text-underline-offset: .17em}
.service-priority-label {margin-bottom: .25rem}
.service-owner {font-weight: 600}
.service-priority-table .meta {display: block; margin-top: .23rem; font-weight: 400}
.service-priority-table .service-due {display: block; margin-top: .32rem; color: var(--amber); font-weight: 600; font-size: .84rem; font-variant-numeric: tabular-nums}
.service-block {font-size: .88rem}
#home-priority-detail {margin-top: .65rem; border-bottom: 1px solid var(--line)}
#home-priority-detail:has(#priority-brief[hidden]) {display: none}
#home-priority-detail > summary {width: fit-content; padding: .55rem 0; color: var(--blue); font-weight: 590; font-size: .9rem}
#priority-brief {padding: 1rem 1.25rem 1.15rem; margin: .35rem 0 1rem; border-left: 3px solid var(--green); background: var(--paper); overflow-wrap: anywhere}
#home-decisions {margin-top: clamp(1.6rem,2.7vw,2.6rem)}
.brief-item {display: grid; grid-template-columns: minmax(0,1fr) minmax(13rem,25%); align-items: start; gap: .45rem clamp(1rem,2.9vw,2.8rem)}
.brief-item > * {grid-column: 1; min-width: 0}
.brief-context,.brief-dossier {font-size: .88rem; line-height: 1.45}
.brief-dossier {font-weight: 560; color: var(--muted)}
.brief-dossier .pill {margin-right: .25rem}
.brief-context {color: var(--muted); max-width: 85ch}
.brief-action {font-size: clamp(1.15rem,1.7vw,1.55rem); line-height: 1.25; letter-spacing: -.03em; max-width: 51ch}
.brief-facts {grid-column: 2; grid-row: 1 / span 4; display: grid; gap: .85rem; margin: .1rem 0 0; padding-left: clamp(1rem,1.7vw,1.75rem); border-left: 1px solid var(--line)}
.brief-facts dt {font-size: .81rem; color: var(--muted)}
.brief-facts > div:nth-child(2) dt {color: var(--amber)}
.brief-facts dd {font-size: .97rem; line-height: 1.4; font-weight: 620; margin: 0}
.brief-controls {display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; margin-top: .8rem}
.brief-controls .secondary {background: var(--navy); border-color: var(--navy); color: white}
.brief-controls .secondary:hover:enabled {background: #0d3041}
.brief-controls > :first-child {margin-inline-start: 0}
.action-details {margin-top: .35rem}
.action-details > summary {width: fit-content; color: var(--blue); font-size: .87rem; font-weight: 560}
#case-views {scroll-margin-block-start: 1rem}
.decisions-heading {display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .45rem 1rem; margin: 0 0 1rem}
.decisions-heading h2 {font-size: clamp(1.45rem,1.85vw,1.8rem); letter-spacing: -.04em}
.home-links {display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1rem}
.assistant-launch {display: inline-flex; gap: .5rem; align-items: center; border: 1px solid #a9c6ba; border-radius: 4px; background: #eaf3ee; padding: .38rem .7rem; color: #235741; font-size: .89rem; font-weight: 600; text-decoration: none}
.assistant-launch:hover {background: #dbece2}
.assistant-launch .nav-icon {color: currentColor; width: 15px; height: 15px}
.list-link {display: inline-flex; gap: .55rem; align-items: baseline; padding-block: .25rem; font-weight: 600; font-size: .91rem; text-decoration: none}
.list-link:hover {text-decoration: underline}
#decision-list {display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,17rem),1fr)); align-items: start; gap: 1rem}
.decision-group {min-width: 0; padding: 1rem 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow-wrap: anywhere}
.decision-group > header {display: flex; flex-wrap: wrap; gap: .2rem .6rem; justify-content: space-between; align-items: baseline}
.decision-count {font-size: .81rem; font-variant-numeric: tabular-nums; color: var(--muted)}
.decision-group h3 {font-size: 1.07rem; color: var(--navy); line-height: 1.35}
.decision-group ul,.decision-group ol {padding: 0; list-style: none}
.decision-group li,.decision-group > .decision-item {margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line)}
.decision-item {display: block; width: 100%; min-width: 0; text-align: left; padding: 0; color: var(--ink); text-decoration: none; overflow-wrap: anywhere}
.decision-name {display: block; font-size: .95rem; font-weight: 620; line-height: 1.4; color: var(--blue); text-underline-offset: .18em}
.decision-item:is(button,a):hover .decision-name,.decision-name:is(button,a):hover {text-decoration: underline}
.decision-meta,.decision-empty {display: block; margin-top: .3rem; font-size: .84rem; line-height: 1.45; color: var(--muted)}
.decision-empty {margin-top: .7rem}
.decision-group details {margin-top: .7rem; border-top: 1px solid var(--line); padding-top: .55rem}
.decision-group details > summary {color: var(--blue); font-size: .85rem; font-weight: 600}
.decision-group details > .decision-item {margin-top: .65rem}
.view-panel {min-width: 0; padding: clamp(1rem,2vw,1.75rem); border: 1px solid var(--line); border-radius: 6px; background: var(--paper)}
.chat-panel {max-width: 65rem; border-top: 3px solid var(--green)}
.chat-toolbar,.chat-compose-footer,.chat-actions,.chat-prompts {display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem}
.chat-toolbar {align-items: flex-end; justify-content: space-between}
.chat-toolbar .field {width: min(100%,29rem)}
.chat-intro {margin-top: .7rem; max-width: 72ch; font-size: .91rem; color: var(--muted)}
#chat-messages {min-width: 0; max-height: min(58vh,39rem); overflow: auto; overscroll-behavior-block: contain; scrollbar-gutter: stable; padding: .65rem .5rem .75rem 0; margin-top: 1.1rem; border-block: 1px solid var(--line); overflow-wrap: anywhere}
#chat-messages:empty {display: none}
.chat-message {max-width: 84ch; padding: .7rem .9rem; text-align: left; margin: .5rem 0}
.chat-user,.chat-question {width: fit-content; margin-inline-start: auto; background: #edf3f5; border-radius: 6px; border-right: 3px solid #b4cbd3}
.chat-assistant,.chat-answer {background: #f8fbf9; border-left: 3px solid var(--green); border-radius: 0 5px 5px 0}
.chat-body {white-space: pre-wrap; line-height: 1.5}
.chat-attribution {color: var(--navy); font-weight: 650; font-size: .86rem}
.chat-attribution + .chat-body {margin-top: .32rem}
.chat-source,.chat-case,.chat-cases a,.chat-citations a {overflow-wrap: anywhere}
.chat-evidence,.chat-citations,.chat-cases {margin-top: .55rem; font-size: .87rem}
.chat-evidence summary,.chat-citations summary {color: var(--blue); font-weight: 600}
.chat-message ul,.chat-message ol {padding-left: 1.25rem}
.chat-message blockquote {margin: .35rem 0; padding-left: .65rem; border-left: 2px solid #b9cbc2; color: var(--muted)}
.chat-actions {margin-top: .45rem}
.chat-expand-search {display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; margin-top: .7rem; padding-top: .6rem; border-top: 1px solid var(--line)}
.chat-prompts {margin-top: 1.25rem}
.chat-prompts button {border: 1px solid #c9d9dd; border-radius: 4px; background: var(--paper); color: var(--blue); font-size: .85rem; font-weight: 560; padding: .38rem .65rem; text-align: left}
.chat-prompts button:hover {background: var(--mist)}
#chat-form {margin-top: 1rem}
#chat-question {min-height: 5rem; max-width: 100%; line-height: 1.5}
.chat-compose-footer {justify-content: space-between; margin-top: .6rem}
.chat-meta {color: var(--muted); font-size: .82rem; line-height: 1.45}
.chat-coverage {margin-top: .7rem; padding: .6rem 0 .1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums}
.chat-search-counts strong {font-weight: 600; color: var(--ink)}
.chat-search-limit {margin-top: .24rem; color: var(--amber)}
.chat-search-details {margin-top: .3rem}
.chat-search-details > summary {color: var(--blue); font-weight: 560; width: fit-content; padding: .18rem 0}
.chat-search-stats {display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .12rem .8rem; width: fit-content; max-width: 100%; margin: .4rem 0}
.chat-search-stats > div {display: contents}
.chat-search-stats dd {margin: 0; text-align: right; font-weight: 600; color: var(--ink)}
.chat-search-step-title,.chat-proof-heading {font-size: .86rem; font-weight: 600; color: var(--ink); margin-top: .55rem}
.chat-search-step-title + ol {margin-top: .2rem}
.chat-proof-heading + .chat-citations {margin-top: .2rem}
#chat-status:not(:empty) {margin-top: .65rem; padding: .45rem .65rem; background: var(--mist); border-radius: 4px}
.case-views {display: flex; flex-wrap: wrap; gap: .45rem 1.55rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem}
.case-views button {display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 38px; padding: 0 0 .35rem; color: var(--muted); font-size: .92rem; font-weight: 540; border-radius: 0; border-bottom: 2px solid transparent}
.case-views button:hover {color: var(--ink)}
.case-views button[aria-pressed="true"] {color: var(--ink); border-color: var(--ink); font-weight: 650}
.case-views strong,.count {font-size: .78rem; font-weight: 570; font-variant-numeric: tabular-nums; color: #555d65; padding: .02rem .34rem; background: var(--mist); border-radius: 3px}
.filters {margin: .75rem 0 1.25rem}
.filter-fields {display: grid; grid-template-columns: minmax(12rem,1.6fr) minmax(8rem,1fr) minmax(8rem,1fr); gap: .78rem; max-width: 64rem}
.field {display: flex; flex-direction: column; min-width: 0; gap: .22rem; font-size: .82rem; font-weight: 600}
.field input,.field select,.field textarea {width: 100%; min-height: 38px; padding: .38rem .55rem; font-size: .9rem; font-weight: 400; border: 1px solid #aeb6bd; background: white}
.field input::placeholder {color: #727a80}
.field textarea {resize: vertical; min-height: 82px}
.text-button {padding: .38rem .45rem; color: var(--blue); font-size: .88rem; line-height: 1.3; font-weight: 580}
.filters > .text-button {margin-top: .4rem}
.notice, .issue-list {margin-bottom: .8rem; padding: .5rem .75rem; border-left: 2px solid #7d8c97; background: #f1f3f4; overflow-wrap: anywhere}
.notice.problem,.issue-list {background: #f9f3e8; border-color: #a87930; color: #684c1d}
.change-notice {display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem}
.change-notice p,.issue-list {font-size: .88rem}
.issue-list summary {font-weight: 600}
.issue-list ul {padding-left: 1.25rem; margin-top: .4rem}
.work-section,.secondary-section,#detail,#dossiers-title {scroll-margin-block-start: 1rem}
.columns,.list-panel,.detail {min-width: 0}
.section-top {justify-content: space-between}
.table-caption {gap: .4rem 1rem; flex-wrap: wrap; margin-bottom: .6rem}
.table-caption h2 {font-size: 1rem; letter-spacing: -.01em}
.count {margin-left: .25rem}
.sort-order {font-size: .8rem}
.table-scroll {overflow-x: auto; margin-top: .6rem}
table {width: 100%; border-collapse: collapse; font-size: .88rem}
th,td {text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: .55rem .62rem}
thead th {background: var(--mist); color: #50575f; font-weight: 600}
.case-table {table-layout: fixed; border-top: 1px solid var(--line)}
.case-table thead th {font-size: .82rem}
.case-table thead th:nth-child(1) {width: 31%}
.case-table thead th:nth-child(2) {width: 35%}
.case-table thead th:nth-child(3) {width: 19%}
.case-table thead th:nth-child(4) {width: 15%}
.case-row > * {padding: .72rem .65rem; overflow-wrap: anywhere}
.case-row th {font-weight: 400}
.case-row:hover > * {background-color: #f6f7f8}
.case-row.is-selected > * {background-color: #f1f5f7}
.case-row.is-selected > :first-child {box-shadow: inset 3px 0 0 #326482}
.case-choice {display: grid; gap: .16rem; width: 100%; text-align: left; background: transparent; padding: 0; color: inherit}
.case-title {font-weight: 640; font-size: .94rem; line-height: 1.4}
.case-choice:hover .case-title {color: var(--blue); text-decoration: underline; text-underline-offset: .16em}
.case-ref {font-size: .79rem; color: var(--muted); font-weight: 550; letter-spacing: .015em}
.case-metadata {display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; margin-top: .17rem}
.cell-value {display: block}
.cell-note,.meta,.hint {font-size: .83rem; line-height: 1.45; color: var(--muted)}
.cell-note {display: block; margin-top: .2rem}
.case-due {font-variant-numeric: tabular-nums}
.owner-controls {display: flex; align-items: baseline; flex-wrap: wrap; gap: .15rem .65rem; margin-top: .18rem}
.owner-controls button,.owner-suggestion button {min-height: 30px; padding: .18rem .3rem; color: var(--blue); font-size: .83rem; font-weight: 600; text-align: left; text-underline-offset: .17em}
.owner-controls button:hover,.owner-suggestion button:hover {text-decoration: underline; background: #e9eff2}
.owner-suggestion {margin: .24rem 0 0; font-size: .87rem; line-height: 1.42}
.owner-suggestion > summary {color: #775316; font-weight: 600; padding: .22rem 0}
.owner-suggestion[open] {border-left: 2px solid #ccb687; padding-left: .56rem}
.owner-suggestion blockquote {margin: .45rem 0; color: var(--muted)}
[data-owner-state="proposed"] {color: #775316; font-weight: 600}
[data-owner-state="assigned"] {color: #31563b; font-weight: 600}
.empty {padding: .8rem 0; color: var(--muted)}
.detail {overflow-wrap: anywhere}
.detail:empty {display: none}
.detail-head h2 {font-size: clamp(1.25rem,1.8vw,1.62rem); max-width: 64ch; margin: .28rem 0 .5rem}
.case-summary {max-width: 83ch; margin: .6rem 0 .35rem}
.register-brief {max-width:68ch; margin:.55rem 0; font-size:.96rem; line-height:1.5; font-weight:400; overflow-wrap:anywhere}
.register-mail {display:block; min-height:38px; padding:.2rem 0; text-align:left; text-decoration:underline; text-underline-offset:.17em}
#detail .dossier-cover .register-brief {color:#e6eff0}
#detail .dossier-cover .register-mail {color:#fff}
.detail-nav,.related-cases {display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .65rem}
.detail-nav {border-block: 1px solid var(--line); margin: .65rem 0; padding: .3rem 0}
.detail-nav a,.detail-nav button,.back-to-cases {display: inline-flex; color: var(--blue); align-items: center; min-height: 35px; font-size: .87rem; font-weight: 570; text-decoration: none; padding-inline: .3rem}
.detail-nav a:hover,.detail-nav button:hover,.back-to-cases:hover {text-decoration: underline}
.back-to-cases {display: flex; width: fit-content; margin-bottom: .4rem; padding-inline: 0}
.language-section,.detail-group {margin-top: 1rem}
.model-coverage {color: var(--muted); font-size: .84rem; margin-top: .2rem}
.finding-group,.related-cases,.fold,.model-monitor {border-top: 1px solid var(--line); padding-top: .55rem; margin-top: .65rem}
.finding-group h4,.related-cases h4 {font-size: .93rem}
.finding-list,.action-list,.source-list,.history {list-style: none; padding: 0}
.model-finding + .model-finding {margin-top: .6rem}
.finding-text,.finding-proof blockquote,.action-source p {max-width: 80ch; overflow-wrap: anywhere}
.finding-proof,.action-source {margin: .22rem 0; font-size: .87rem}
.finding-proof summary,.action-source summary,.fold summary {color: var(--blue); font-weight: 560}
.finding-proof blockquote {margin: .45rem 0; border-left: 2px solid var(--line); padding-left: .6rem; white-space: pre-line}
.fold > ul {padding-left: 1.1rem; margin-top: .3rem}
.detail-group {border-top: 1px solid var(--line); padding-top: .8rem}
.detail-group > .section-top {flex-wrap: wrap}
.action {margin: .75rem 0; padding-left: .75rem; border-left: 2px solid #bac1c6}
.action.confirmed {border-color: var(--green)}
.action.selected-status {background: var(--mist)}
.action h4,.action p,.action .line {margin-bottom: .22rem}
.action-buttons {display: flex; flex-wrap: wrap; gap: .2rem}
.pill {display: inline-block; font-size: .76rem; font-weight: 620; padding: .04rem .32rem; background: #eaedef; color: #46505a; border-radius: 2px}
.pill.attention {background: #f6ecdc; color: #72501c}
.pill.confirmed,.proof {background: #edf3ee; color: #31563b}
.proof {padding: .48rem .65rem; margin: .4rem 0}
.source-list li,.history li {padding: .4rem 0; border-bottom: 1px solid var(--line)}
.history li span {display: block}
.link-wrap {overflow-wrap: anywhere}
.secondary-section details:last-child {border-bottom: 0}
.section-heading {margin-bottom: .6rem}
#services-overview,#people-overview,#monitor {border-bottom: 1px solid var(--line)}
#services-overview > summary,#people-overview > summary,#monitor > summary {padding: .6rem .2rem; font-weight: 560}
#service-totals,#people-table,.monitor-body {padding: .35rem .2rem .85rem}
#worker-label {font-size: .83rem; font-weight: 400; color: var(--muted); margin-left: .35rem}
#monitor-data {display: flex; flex-wrap: wrap; gap: .65rem 1.8rem}
#monitor-data div {display: grid; font-size: .86rem}
#monitor-data div span {color: var(--muted)}
#triage-progress,#drive-progress,.model-monitor {margin-block: .65rem}
.model-monitor h3 {font-size: .92rem}
dialog {width: min(560px,94vw); max-height: 89dvh; padding: 0; border: 1px solid #b9c0c7; border-radius: 6px; color: var(--ink); background: var(--paper); box-shadow: 0 14px 54px #18202a24; overflow-y: auto}
dialog::backdrop {background: #20252b70}
#subject-dialog {max-width:30rem}
#action-owner-dialog {max-width:31rem}
.owner-summary {display:grid;gap:.2rem;background:#f1f6f3;border-left:3px solid #3c7b60;padding:.65rem .8rem}
.owner-summary:empty {display:none}
.owner-summary small {font-size:.8rem;color:#49616b}
.owner-summary strong {font-size:1.13rem}
.owner-summary p {font-size:.88rem;color:#35574b}
#action-owner-dialog select {border:1px solid #adbdbe;border-radius:4px;background:white;padding:.35rem .5rem}
#action-owner-dialog .dialog-actions {flex-wrap:wrap}
.subject-form {padding:1.4rem;display:grid;gap:.8rem}
.subject-form h2,.subject-form p {margin:0}
.subject-form h2 {font-size:1.35rem}
.subject-form label {display:grid;gap:.3rem;margin:.55rem 0}
.subject-form input,.subject-form select {width:100%;min-height:2.55rem}
.subject-form .subject-context {color:#426169;overflow-wrap:anywhere}
.subject-form [role=status] {font-size:.9rem}
#reader {width: min(710px,94vw)}
.reader-body,#entry,#ai-form {padding: 1.05rem 1.25rem}
.reader-body {overflow-wrap: anywhere}
.reader-body section {margin-top: .7rem; border-top: 1px solid var(--line); padding-top: .65rem}
.reader-body section p {white-space: pre-wrap; margin-top: .35rem}
.dialog-head {padding: .6rem .9rem .6rem 1.25rem; border-bottom: 1px solid var(--line); justify-content: space-between}
.dialog-head h2 {font-size: 1.12rem}
.close {font-size: 1.5rem; width: 36px; height: 36px; flex-shrink: 0}
.close:hover {background: var(--mist)}
#ai-form fieldset {border: 0; padding: 0; margin: 0; min-width: 0}
#ai-current,#form-problem {margin-bottom: .7rem}
#ai-remote,#fields {display: grid; gap: .6rem; margin-top: .65rem}
#ai-list {justify-self: start}
#ai-remote .check,#ai-state,#ai-error {margin: .6rem 0 0}
#fields > select {min-width: 0; width: 100%; background: white; padding: .45rem .6rem; border: 1px solid #aeb6bd}
.dialog-actions {justify-content: flex-end; margin-top: 1rem}
.check {display: flex; align-items: start; gap: .5rem; font-size: .89rem}
.check input {width: 17px; height: 17px; flex: none}
.access-page {display: grid; min-height: 100vh; min-height: 100svh; align-items: center; background: #f6f7f8}
.access-main {width: min(395px,calc(100% - 2rem)); margin: 2rem auto; padding: 0}
.access-card {background: white; border: 1px solid #d5d9dd; padding: clamp(1.4rem,4vw,2.2rem); border-radius: 6px}
.access-brand {display: block; width: 80px; height: auto; margin-bottom: 1.65rem}
.access-card h1 {font-size: 1.58rem; line-height: 1.2; margin-bottom: .6rem}
.access-card p {color: var(--muted); line-height: 1.5; font-size: .93rem}
.access-card form,.access-card > .primary {margin-top: 1.25rem}
.access-card .primary {width: 100%; min-height: 41px}
@media (max-width: 900px) {
  .app-layout {grid-template-columns: 162px minmax(0,1fr)}
  .app-rail {padding-inline: .5rem}
  .register-nav a {font-size: .87rem; gap: .55rem; padding-inline: .65rem}
  #registre {padding-inline: 1.2rem}
}
@media (max-width: 760px) {
  .service-priority-table,.service-priority-table tbody {display: block}
  .service-priority-table thead {position: absolute; overflow: hidden; width: 1px; height: 1px; clip-path: inset(50%)}
  .service-priority-table tbody tr {display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .55rem 1rem; padding: .85rem .9rem; border-bottom: 1px solid var(--line)}
  .service-priority-table tbody tr:last-child {border-bottom: 0}
  .service-priority-table tbody th,.service-priority-table tbody td {display: block; padding: 0; border: 0}
  .service-priority-table tbody th,.service-priority-table .service-work {grid-column: 1/-1}
  .service-priority-table tbody th {display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem .7rem}
  .service-priority-table th .service-filter {margin-top: 0}
  .service-priority-table td::before {display: block; content: attr(data-label); color: var(--muted); font-size: .76rem; font-weight: 560; margin-bottom: .12rem}
  .brief-item {grid-template-columns: 1fr; gap: .35rem}
  .brief-item > .brief-facts {grid-column: 1; grid-row: auto; display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: .3rem; padding: 0; border: 0}
  .brief-controls {margin-top: .4rem}
  .app-layout {display: block}
  .app-rail {position: sticky; top: 0; z-index: 2; padding: .25rem .55rem; border: 0}
  .register-nav {position: static; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .12rem}
  .register-nav a {min-width: 0; min-height: 40px; justify-content: center; padding: .35rem .25rem; font-size: .86rem; gap: .4rem}
  .register-nav a[aria-current="page"] {box-shadow: inset 0 -2px #8bc7aa}
  :root {scroll-padding-top: 4rem}
  #registre {padding: 1.05rem 1rem 2rem}
  .head-row {min-height: 48px}
  .brand-logo {width: 66px}
  .case-table {display: block; border-top: 0}
  .case-table thead {position: absolute; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap}
  .case-table tbody {display: block; border-top: 1px solid var(--line)}
  .case-table tr.case-row {display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); padding: .65rem .65rem .75rem; gap: .36rem .9rem; border-bottom: 1px solid var(--line)}
  .case-row.is-selected {background: #f1f5f7; box-shadow: inset 2px 0 #326482}
  .case-row:hover > *,.case-row.is-selected > * {background: transparent}
  .case-row.is-selected > :first-child {box-shadow: none}
  .case-table .case-row > * {display: block; width: auto; min-width: 0; border: 0; padding: 0; grid-column: 1/-1}
  .case-table .case-row > .case-owner,.case-table .case-row > .case-due {grid-column: auto}
  .case-table td::before {display: block; content: attr(data-label); font-size: .75rem; font-weight: 590; color: var(--muted)}
  .filter-fields {grid-template-columns: 1fr 1fr; gap: .45rem .65rem}
  .search-field {grid-column: 1/-1}
}
@media (max-width: 480px) {
  :root {scroll-padding-top:5rem}
  #priority-brief {padding: .75rem .8rem .9rem}
  .brief-action {font-size: 1.3rem}
  .brief-item > .brief-facts {margin-top: .4rem; gap: .45rem 1.25rem}
  .decisions-heading {margin-bottom: .65rem}
  .decision-group,.view-panel {padding: .82rem}
  #decision-list {grid-template-columns: minmax(0,1fr)}
  .head-row {padding-inline: .75rem; gap: .4rem}
  .brand {gap: .55rem}
  .brand span {font-size: .81rem; padding-left: .55rem}
  .session {gap: .45rem; justify-content: flex-end; flex-wrap: wrap; overflow-wrap: anywhere; font-size: .74rem; padding-block: .3rem}
  .account {flex-direction: column; align-items: flex-end; gap: 0}
  .settings-button {font-size: .82rem; padding: .2rem .48rem .2rem 0}
  .session-button {font-size: .76rem; min-height: 26px; padding: .1rem 0}
  .app-rail {padding-inline: .35rem}
  .register-nav a {flex-direction: column; gap: .25rem; padding: .36rem .06rem; min-height: 48px; font-size: .77rem; line-height: 1.25; text-align: center}
  #registre {padding-inline: .75rem}
  .chat-toolbar {align-items: stretch}
  .chat-toolbar .field {flex: 1 1 100%}
  .chat-toolbar #chat-clear {padding-block: .28rem; min-height: 32px}
  .chat-compose-footer {justify-content: flex-end}
  .chat-compose-footer .chat-meta {flex: 1 1 11rem}
  .chat-message {padding: .55rem .65rem}
  .home-links {gap: .35rem .7rem}
  .page-title {gap: .65rem; margin-bottom: 1rem}
  .case-views {gap: .2rem 1rem}
  .case-views button {font-size: .86rem; gap: .2rem}
  .table-caption {align-items: baseline}
  .sort-order {font-size: .74rem}
  .table-scroll th,.table-scroll td {padding: .38rem .4rem}
}
@media (prefers-reduced-motion: reduce) {*,*::after,*::before {scroll-behavior: auto !important}}

/* Travail et preuves */
.detail .work-action {
  margin: 0;
  padding: 1rem 0 1.15rem;
  border: 0;
  background: #fff;
  color: #143753;
}
.detail .work-action + .work-action {border-top: 1px solid #d6dfde}
.detail .work-heading {display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem}
.detail .work-heading h4 {flex: 1 1 23rem; margin: 0; max-width: 68ch; font-size: 1rem; color: #143753; line-height: 1.4}
.detail .work-state {display: inline-flex; align-items: center; gap: .4rem; font-size: .81rem; font-weight: 650; color: #546672}
.detail .work-state::before {content: ""; width: .42rem; height: .42rem; border: 1.5px solid currentColor; border-radius: 50%}
.detail .work-action.confirmed .work-state {color: #0b705c}
.detail .work-action.confirmed .work-state::before {background: currentColor}
.detail .work-context {margin: .15rem 0 0}
.detail .work-context:empty,.detail .work-links:empty {display: none}
.detail .work-caption {margin: .12rem 0 0; color: #546672; font-size: .82rem; line-height: 1.45; font-weight: 400}
.detail .work-assignment {display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,12.25rem),1fr)); gap: .65rem 1.7rem; max-width: 44rem; padding: .72rem .85rem; margin: .75rem 0; background: #f6f7f5; border-radius: 3px}
.detail .work-assignment > div {min-width: 0}
.detail .work-assignment dt {margin: 0 0 .12rem; color: #546672; font-size: .78rem; font-weight: 550}
.detail .work-assignment dd {margin: 0; font-size: .92rem; font-weight: 650; line-height: 1.5}
.detail .work-assignment time {white-space: nowrap; font-variant-numeric: tabular-nums}
.detail .work-owner {display: flex; flex-wrap: wrap; gap: .1rem .6rem; align-items: baseline}
.detail .work-owner .owner-controls {margin: 0; min-width: 0}
.detail .work-owner .owner-suggestion {flex-basis: 100%; font-weight: 400}
.detail .work-proof {margin: .32rem 0; max-width: 76ch; color: #143753; font-size: .89rem}
.detail .work-proof > summary {padding: .24rem 0; cursor: pointer; color: #143753; font-weight: 580; line-height: 1.5}
.detail .work-proof > summary:hover {text-decoration: underline; text-underline-offset: .18em}
.detail .work-proof[open] {padding-bottom: .3rem}
.detail .work-proof blockquote,.detail .work-attestation {margin: .45rem 0 .4rem; padding: .15rem .75rem; border-inline-start: 2px solid #83a89b; white-space: pre-line; line-height: 1.55; color: #243d48}
.detail .work-links,.detail .work-commands {display: flex; gap: .24rem .75rem; flex-wrap: wrap; align-items: center}
.detail .work-links {margin: .15rem 0}
.detail .work-links .text-button,.detail .work-links a,.detail .work-commands .text-button {min-height: 32px; display: inline-flex; align-items: center; padding: .18rem 0; color: #143753; font-size: .84rem; font-weight: 570}
.detail .work-links .work-read {color: #0b705c}
.detail .work-commands {margin-top: .66rem}
.detail .work-confirm,.detail .work-create {background: #fff; color: #0b705c; border-color: #94b5a9; min-height: 34px; padding: .32rem .7rem; font-size: .85rem}
.detail .work-confirm:hover,.detail .work-create:hover {background: #eaf2ef; border-color: #0b705c}
.detail .work-analysis .finding-list,.detail .work-sources {padding: 0; margin-block: .37rem; list-style: none}
.detail .work-source-browser {margin-top: .65rem; min-width: 0}
.detail .work-source-filters {padding: .1rem .75rem; border: 1px solid #d6dfdb; border-radius: 4px; background: #f6f8f6}
.detail .work-source-filters summary {width: fit-content; color: #143753; font-weight: 600; font-size: .91rem; padding: .42rem 0}
.detail .work-source-fields {display: grid; grid-template-columns: minmax(10rem,2fr) minmax(7rem,1fr); max-width: 42rem; gap: .55rem .85rem; padding: .17rem 0 .65rem}
.detail .work-source-bar {display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem .65rem; margin-top: .55rem}
.detail .work-source-count,.detail .work-source-empty {color: #546672; font-size: .87rem}
.detail .work-source-count {font-variant-numeric: tabular-nums}
.detail .work-source-bar button {color: #0b705c; padding-inline: 0}
.detail .work-source-empty {margin-block: .55rem; padding: .65rem 0; border-block: 1px solid #d6dfdb}
@media (max-width: 480px) {
  .detail .work-source-fields {grid-template-columns: minmax(0,1fr)}
}
.detail .work-analysis .work-finding {padding: .55rem 0 .7rem; margin: 0}
.detail .work-finding + .work-finding {border-top: 1px solid #d6dfde}
.detail .work-finding .finding-text {max-width: 75ch; margin: 0 0 .25rem; line-height: 1.55; color: #143753}
.detail .work-finding .work-create {margin-top: .35rem}
.detail .work-analysis .model-coverage {font-size: .82rem; color: #546672}
.detail .work-document {display: grid; align-items: center; grid-template-columns: minmax(0,1fr) auto; gap: .33rem 1rem; border-bottom: 1px solid #d6dfde; padding: .72rem 0}
.detail .work-document:last-child {border-bottom: 0}
.detail .work-document-title {font-weight: 610; font-size: .94rem; color: #143753; line-height: 1.4}
@media (max-width: 630px) {
  .detail .work-heading {display: grid; gap: .26rem}
  .detail .work-document {grid-template-columns: minmax(0,1fr)}
  .detail .work-owner {align-items: flex-start}
}

/* Fiche de direction */
#registre[data-page="detail"] {display:flex; flex-direction:column; justify-content:flex-start; padding-top:clamp(.8rem,2vw,1.8rem)}
#registre[data-page="detail"] .page-title {order:5; margin:1rem 0 0; padding-top:.65rem; border-top:1px solid #d6dfdc}
#registre[data-page="detail"] #filter-title {display:none}
#registre[data-page="detail"] #changes {order:6; margin-top:1rem}
#detail {--dossier-ink:#143753; --dossier-green:#0b705c; --dossier-line:#d1deda; padding:0; border:0; border-radius:0; background:transparent}
#detail .dossier-toolbar {display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.15rem 1rem; margin-bottom:.9rem}
#detail .back-to-cases {padding:0; gap:.55rem; color:var(--dossier-green)}
#detail .back-to-cases::before {content:"←"; font-size:1.12rem}
#detail .dossier-tools {display:flex; flex-wrap:wrap; align-items:center; gap:.2rem .75rem}
#detail .case-browse {display:flex; align-items:center; flex-wrap:wrap; gap:.15rem 1.1rem; min-width:0}
.case-pager,.source-pager {display:flex; align-items:center; gap:.28rem}
.case-position {font-size:.84rem; color:#4a636c; font-variant-numeric:tabular-nums; white-space:nowrap; margin-inline-end:.35rem}
#case-pager {border-inline-start:1px solid #cbd7d4; padding-inline-start:1rem}
#case-pager a,.source-pager button {display:inline-flex; align-items:center; justify-content:center; min-width:36px; height:36px; border:1px solid #aabeb7; border-radius:4px; color:#145c4b; background:white; font:500 1.55rem/1 "Segoe UI",sans-serif; text-decoration:none; padding:0}
#case-pager a[href]:hover,.source-pager button:enabled:hover {background:#e6f2ec; border-color:#458773}
#case-pager a[aria-disabled="true"],.source-pager button:disabled {color:#7b8d8b; opacity:.55; background:transparent; border-color:#c7d4cf; cursor:default}
#reader .source-pager {flex:none; justify-content:flex-end; border-top:1px solid #d7dfdc; padding:.4rem clamp(.8rem,2vw,1.8rem); background:#f8faf9}
@media (max-width:600px) {
  #detail .case-browse {flex:1 1 100%; justify-content:space-between; gap:.15rem .3rem}
  #case-pager {border:0; padding:0}
  #case-pager a,.source-pager button {min-width:40px; height:40px}
  #detail .dossier-tools {margin-inline-start:auto}
}
#detail .dossier-edit {color:var(--dossier-ink)}
#detail .dossier-ask {background:#fff; border:1px solid #a6bdb5; color:var(--dossier-green)}
#detail .dossier-ask:hover {background:#e7f2ed}
#detail .dossier-cover {display:grid; grid-template-columns:minmax(0,1fr) minmax(12.5rem,24%); align-items:center; gap:1.5rem; margin:0; padding:clamp(1.2rem,2.3vw,2.35rem); border:0; border-radius:8px 8px 0 0; background:#173d4e; color:#fff; box-shadow:inset 0 4px #78ba9d}
#detail .dossier-cover h1 {max-width:36ch; margin:0; color:#fff; font-size:clamp(1.6rem,2.9vw,2.85rem); letter-spacing:-.036em; line-height:1.12; font-weight:620}
#detail .dossier-classification {display:flex; align-items:center; flex-wrap:wrap; gap:.45rem .8rem; margin-bottom:.7rem}
#detail .dossier-classification:empty {display:none}
#detail .dossier-priority {display:inline-flex; align-items:center; gap:.44rem; padding:.21rem .55rem; background:#e1efea; color:#225342; border-radius:3px; font-size:.78rem; font-weight:650}
#detail .dossier-priority.high {background:#fae9c6; color:#704713}
#detail .dossier-priority::before {content:""; width:.45rem; height:.45rem; border:1.5px solid currentColor; border-radius:50%}
#detail .dossier-priority.high::before {background:currentColor; border-radius:1px; transform:rotate(45deg)}
#detail .dossier-reference {font:600 .88rem/1.4 Consolas,monospace; color:#deeee8}
#detail .dossier-identifiers {display:grid; align-content:center; gap:.65rem; border-left:1px solid #567480; padding-left:clamp(.9rem,2vw,1.8rem); margin:0}
#detail .dossier-identifiers dt {color:#c4d8dd; font-size:.81rem}
#detail .dossier-identifiers dd {margin:.03rem 0 0; color:white; font-size:1rem; font-weight:650}
#detail .detail-nav {display:flex; gap:.15rem 1rem; margin:0; padding:0 clamp(.75rem,2vw,2.1rem); border:1px solid var(--dossier-line); border-top:0; background:white; border-radius:0 0 6px 6px}
#detail .detail-nav a {border-bottom:3px solid transparent; color:#49606b; min-height:3.2rem; gap:.48rem; padding:.5rem .14rem .36rem; font-weight:580}
#detail .detail-nav a:hover {text-decoration:none; color:var(--dossier-green); background:#f5f9f7}
#detail .detail-nav a[aria-current] {color:var(--dossier-green); border-bottom-color:var(--dossier-green); font-weight:680}
#detail .dossier-count {display:inline-flex; align-items:center; justify-content:center; min-width:1.5em; padding:.03rem .32rem; font-size:.74rem; border-radius:4px; background:#edf1ef; color:#405964; font-variant-numeric:tabular-nums}
#detail .detail-nav a[aria-current] .dossier-count {background:#deefe7; color:#185641}
#detail .dossier-work {display:grid; grid-template-columns:minmax(0,1fr) minmax(13rem,26%); gap:clamp(.9rem,1.8vw,1.45rem); align-items:start; margin-top:1.2rem}
#detail .dossier-task,#detail .dossier-summary,#detail .dossier-records,#detail .work-analysis {padding:clamp(1rem,1.9vw,1.7rem); border:1px solid var(--dossier-line); border-radius:6px; background:#fff; min-width:0}
#detail .dossier-task {border-top:3px solid var(--dossier-green)}
#detail .dossier-task > .section-top {flex-wrap:wrap; gap:.15rem .75rem; border-bottom:1px solid var(--dossier-line); padding-bottom:.65rem}
#detail .dossier-task > .section-top h2,#detail .dossier-summary h3 {margin:0; font-size:1rem; font-weight:650; color:var(--dossier-ink)}
#detail .dossier-add {color:var(--dossier-green); min-height:32px; font-size:.86rem}
#detail .dossier-add::before {content:"+"; margin-right:.35rem; font-size:1.05rem}
#detail .dossier-task > .action-list {list-style:none; margin:0; padding:0}
#detail .dossier-task > .action-list .work-heading h4 {font-size:clamp(1.22rem,1.8vw,1.73rem); font-weight:630; line-height:1.24; letter-spacing:-.025em}
#detail .dossier-task > .action-list .work-heading {align-items:center}
#detail .dossier-task > .fold {margin:0}
#detail .dossier-task > .fold > summary {min-height:38px; padding:.4rem 0; color:var(--dossier-green)}
#detail .dossier-task > .meta {margin-top:1rem}
#detail .dossier-summary {background:#f3f8f5}
#detail .dossier-tally {margin:.6rem 0 0; color:var(--dossier-ink); font-variant-numeric:tabular-nums}
#detail .dossier-tally strong {font-size:2.35rem; line-height:1.12; font-weight:600; letter-spacing:-.04em}
#detail .dossier-tally span {color:#526974; font-size:1.15rem}
#detail .dossier-summary progress {width:100%; height:6px; display:block; appearance:none; border:0; border-radius:9px; overflow:hidden; background:#d5e2db; color:var(--dossier-green); margin:.7rem 0}
#detail .dossier-summary progress::-webkit-progress-bar {background:#d5e2db}
#detail .dossier-summary progress::-webkit-progress-value {background:var(--dossier-green)}
#detail .dossier-summary progress::-moz-progress-bar {background:var(--dossier-green)}
#detail .dossier-caption,#detail .dossier-unassigned {color:#455e63; font-size:.87rem; line-height:1.48}
#detail .dossier-unassigned {margin:.65rem 0 0; color:#78511f; font-weight:580}
#detail .dossier-check {margin-top:1.1rem; border-top:1px solid #cbdcd3; padding-top:1rem}
#detail .dossier-check h3 {margin-bottom:.32rem}
#detail .dossier-block {font-size:.93rem}
#detail .dossier-check a {display:inline-flex; align-items:center; min-height:34px; color:var(--dossier-green); font-size:.85rem; font-weight:580}
#detail .dossier-records,#detail .work-analysis {margin-top:1.2rem}
#detail .dossier-records h2 {margin:0 0 .75rem; color:var(--dossier-ink); font-size:1.42rem}
#detail .work-analysis > .detail-group:first-child {border:0; padding-top:0; margin-top:0}
#detail .work-analysis .detail-group > h3 {font-size:1.18rem; color:var(--dossier-ink)}
#detail .case-context > p {margin:.5rem 0; max-width:78ch}
#detail .dossier-journal > h3 {margin:1.45rem 0 .6rem}
#detail .dossier-journal .history {padding-left:1.4rem}
@media(max-width:850px) {
  #detail .dossier-work {grid-template-columns:minmax(0,1fr)}
  #detail .dossier-summary {max-width:none}
}
@media(max-width:600px) {
  #detail .dossier-cover {grid-template-columns:minmax(0,1fr); gap:.8rem}
  #detail .dossier-identifiers {grid-template-columns:repeat(2,minmax(0,1fr)); padding:.65rem 0 0; border:0; border-top:1px solid #567480}
  #detail .detail-nav {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:.2rem .45rem; gap:0 .45rem}
  #detail .detail-nav a {font-size:.84rem; min-height:40px; justify-content:center; text-align:center}
  #detail .dossier-toolbar {gap:.05rem .45rem}
  #detail .dossier-tools {gap:.1rem .3rem}
  #detail .dossier-edit,#detail .dossier-ask {font-size:.82rem; padding-inline:.4rem}
}

/* Répertoire des dossiers */
#suivi {
  --directory-ink: #143753;
  --directory-green: #0b705c;
  --directory-muted: #546672;
  --directory-line: #d8e0dd;
  --directory-wash: #f6f7f5;
  min-width: 0;
  color: var(--directory-ink);
}
#suivi .case-views {display: flex; align-items: stretch; gap: .15rem clamp(.65rem,2.6vw,2.5rem); margin: 0; border-bottom: 1px solid var(--directory-line)}
#suivi .case-views button {min-height: 42px; gap: .48rem; padding: .3rem .1rem .65rem; color: var(--directory-muted); border-bottom-width: 3px; font-size: .99rem}
#suivi .case-views button[aria-pressed="true"] {color: var(--directory-green); border-color: var(--directory-green)}
#suivi .case-views strong {background: #e9edeb; color: var(--directory-muted); padding: .06rem .38rem; font-size: .78rem; font-variant-numeric: tabular-nums; line-height: 1.3}
#suivi .case-views button[aria-pressed="true"] strong {color: #125f50; background: #deece7}
#suivi .filters {padding: 1rem 1.15rem; margin: 0 0 1.2rem; background: var(--directory-wash); border: 1px solid var(--directory-line); border-top: 0}
#suivi .filter-fields {max-width: none; grid-template-columns: minmax(13rem,1.6fr) minmax(9rem,1fr) minmax(9rem,1fr); gap: 1rem}
#suivi .field {font-size: .84rem; color: var(--directory-ink); gap: .35rem}
#suivi .field input,#suivi .field select {min-height: 39px; color: var(--directory-ink); border-color: #9eafad; border-radius: 3px; background-color: white}
.directory-search {display: block; position: relative}
.directory-search::before,.directory-search::after {content: ""; position: absolute; pointer-events: none; color: var(--directory-muted)}
.directory-search::before {top: calc(50% - 7px); left: .7rem; width: 10px; height: 10px; border: 1.5px solid; border-radius: 100%}
.directory-search::after {top: calc(50% + 5px); left: calc(.7rem + 9px); width: 6px; height: 0; border-bottom: 1.5px solid; transform: rotate(45deg); transform-origin: left center}
#suivi .directory-search input {padding-inline-start: 2.1rem}
#suivi .directory-search:has(#clear-query:not([hidden])) input {padding-inline-end: 2.6rem}
#suivi .directory-search input::-webkit-search-cancel-button {-webkit-appearance: none}
#suivi #clear-query {position: absolute; right: .15rem; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; color: var(--directory-muted); font-size: 1.35rem; font-weight: 450; line-height: 1; border-radius: 3px}
#suivi #clear-query:hover {background: #e9f1ec; color: var(--directory-green)}
.directory-sr {position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap}
#suivi .table-caption {align-items: baseline; margin: 0 0 .65rem; gap: .4rem 1rem}
#suivi .table-caption h2 {font-size: clamp(1.22rem,1.65vw,1.57rem); letter-spacing: -.036em; color: var(--directory-ink)}
#suivi .table-caption .count {font-size: .86rem; vertical-align: middle; padding: .12rem .4rem; background: #e8edeb; color: var(--directory-muted)}
#suivi .list-tools {display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .9rem}
#suivi .sort-order {color: var(--directory-muted)}
#suivi .list-tools button {padding: .18rem 0; color: var(--directory-green)}
#suivi .case-table {border-top: 2px solid var(--directory-ink); border-bottom: 1px solid var(--directory-line); background: white}
#suivi .case-table thead th {padding: .63rem .8rem; color: var(--directory-muted); background: #f0f3f1; border-color: var(--directory-line); font-size: .83rem; font-weight: 620}
#suivi .case-table thead th:nth-child(1) {width: 36%}
#suivi .case-table thead th:nth-child(2) {width: 31%}
#suivi .case-table thead th:nth-child(3) {width: 20%}
#suivi .case-table thead th:nth-child(4) {width: 13%}
#suivi .case-row > * {padding: .8rem; border-color: var(--directory-line); line-height: 1.4}
#suivi .case-row:hover > * {background: #f7faf8}
#suivi .case-row.is-selected > * {background: #f1f7f4}
#suivi .case-row.is-selected > :first-child {box-shadow: inset 3px 0 var(--directory-green)}
#suivi .case-choice {display: inline-grid; gap: .25rem; color: var(--directory-ink)}
#suivi .case-title {font-size: 1rem; font-weight: 660; line-height: 1.34}
#suivi .case-choice:hover .case-title {color: var(--directory-green)}
#suivi .case-metadata {margin: 0; gap: .13rem .5rem; align-items: baseline; color: var(--directory-muted); font-size: .82rem; font-weight: 460}
#suivi .case-ref {font-size: .78rem; letter-spacing: .025em; font-weight: 590; color: var(--directory-muted)}
#suivi .case-ref + .directory-service {border-left: 1px solid #b7c4bf; padding-left: .5rem}
.directory-priority {display: inline-flex; align-items: center; gap: .33rem; margin-top: .32rem; color: var(--directory-muted); font-size: .77rem; font-weight: 600}
.directory-priority::before {content: ""; width: .48rem; height: .48rem; box-sizing: border-box; border: 1.5px solid currentColor; border-radius: 50%}
.directory-priority[data-level="critical"] {color: #913d36}
.directory-priority[data-level="critical"]::before {background: currentColor; border: 0; border-radius: 0; transform: rotate(45deg); width: .46rem; height: .46rem}
.directory-priority[data-level="high"] {color: #87571e}
.directory-priority[data-level="high"]::before {border-radius: 1px}
#suivi .case-next .cell-value,#suivi .case-owner .cell-value,#suivi .case-due .cell-value {font-size: .92rem}
#suivi .case-owner .cell-value {font-weight: 600}
#suivi .case-owner [data-owner-state="assigned"] {color: var(--directory-ink)}
#suivi .case-due .cell-value {font-weight: 600; font-variant-numeric: tabular-nums}
#suivi .cell-note,#suivi .directory-empty-value .cell-value {color: var(--directory-muted); font-weight: 420}
#suivi .owner-controls {margin-top: .18rem}
#suivi .owner-controls button {min-height: 29px; padding: .13rem 0; color: var(--directory-green)}
#suivi .empty {padding: 1.3rem .8rem; color: var(--directory-muted); background: white; border-bottom: 1px solid var(--directory-line)}
#suivi .empty button {color: var(--directory-green)}
@media (min-width: 761px) and (max-width: 980px) {
  #suivi .case-row > *,#suivi .case-table thead th {padding-inline: .53rem}
  #suivi .filter-fields {grid-template-columns: minmax(9rem,1.4fr) minmax(6rem,1fr) minmax(7rem,1fr); gap: .55rem}
}
@media (max-width: 760px) {
  #suivi .filters {padding: .8rem .75rem; margin-bottom: 1rem}
  #suivi .filter-fields {grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .45rem .7rem}
  #suivi .case-table tr.case-row {padding: .85rem .75rem .9rem; gap: .52rem .75rem; border-bottom: 1px solid var(--directory-line); background: white}
  #suivi .case-table tr.case-row.is-selected {background: #f1f7f4; box-shadow: inset 3px 0 var(--directory-green)}
  #suivi .case-table .case-row > * {padding: 0; background: transparent; border: 0; box-shadow: none}
  #suivi .case-table .case-next {border-top: 1px solid var(--directory-line); padding-top: .45rem}
  #suivi .case-table tbody {border-top: 0}
  #suivi .case-table td::before {color: var(--directory-muted); font-size: .76rem; font-weight: 570; margin-bottom: .1rem}
  #suivi .case-views button {min-height: 39px; font-size: .9rem; padding-bottom: .45rem}
  #suivi .case-title {font-size: 1.06rem}
  #suivi .case-row th {position: relative}
  #suivi .case-metadata {margin-bottom: .03rem}
}
@media (max-width: 420px) {
  #suivi .case-views {display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 .7rem}
  #suivi .case-views button {justify-content: space-between; gap: .25rem; padding-inline: .3rem; font-size: .87rem}
  #suivi .case-views strong {padding-inline: .25rem}
  #suivi .list-tools {width: 100%; justify-content: space-between}
}

/* Lecteur de justificatif */
#reader {
  --reader-ink: #143753;
  --reader-green: #0b705c;
  --reader-muted: #546672;
  --reader-rule: #d7dfdc;
  width: min(850px,95vw);
  max-width: calc(100vw - 1.5rem);
  max-height: min(90dvh,930px);
  overflow: hidden;
  border: 1px solid #b8c6c3;
  border-top: 4px solid var(--reader-green);
  border-radius: 6px;
  background: white;
  color: var(--reader-ink);
}
#reader[open] {display: flex; flex-direction: column}
#reader-find:not([hidden]) {display: grid; flex: none; grid-template-columns: auto minmax(7rem,1fr) auto auto; align-items: center; gap: .45rem .8rem; padding: .55rem clamp(1rem,2.5vw,2rem); border-bottom: 1px solid var(--reader-rule); background: #f6f8f7}
#reader-find label {color: var(--reader-ink); font-size: .85rem; font-weight: 620}
#reader-find-input {min-width: 0; width: 100%; height: 2.25rem; padding: .3rem .55rem; border: 1px solid #a7b9bb; border-radius: 4px; background: #fff; color: var(--reader-ink); font: inherit}
#reader-find-count {min-width: 0; color: var(--reader-muted); font-size: .84rem; font-variant-numeric: tabular-nums}
#reader-find-count:empty {display: none}
#reader-find .reader-find-nav {display: flex; gap: .3rem; grid-column: -2/-1}
#reader-find .reader-find-nav button {min-width: 2.3rem; min-height: 2.25rem; padding: .1rem .4rem; border: 1px solid #9eafb1; border-radius: 4px; background: white; color: var(--reader-ink); font-size: 1.08rem; font-weight: 650; line-height: 1.3}
#reader-find .reader-find-nav button:disabled {opacity: .45}
#reader-find .reader-find-nav button:enabled:hover {background: #e7f0f7}
::highlight(ceac-reader-find) {background-color: #cdeaf8; color: #123e5c; text-decoration: underline; text-decoration-color: #22709b}
::highlight(ceac-reader-active) {background-color: #174c76; color: white; text-decoration: underline; text-decoration-color: white}
#reader .reader-find-mark {background: #cdeaf8; color: #123e5c; text-decoration: underline}
#reader .reader-find-mark.current {background: #174c76; color: white}
@media (max-width: 650px) {
  #reader-find:not([hidden]) {grid-template-columns: minmax(0,1fr) auto; gap: .22rem .4rem; padding: .4rem .9rem}
  #reader-find label {grid-column: 1; grid-row: 1}
  #reader-find-count {grid-column: 2; grid-row: 1; justify-self: end}
  #reader-find-input {grid-column: 1; grid-row: 2; font-size: 16px; height: 44px}
  #reader-find .reader-find-nav {grid-column: 2; grid-row: 2; justify-self: end}
  #reader-find .reader-find-nav button {min-width: 44px; min-height: 44px}
}
#reader .reader-head {flex: none; align-items: flex-start; justify-content: space-between; gap: .65rem 1rem; padding: 1rem clamp(1rem,2.5vw,2rem); border-bottom: 1px solid var(--reader-rule)}
#reader .reader-document {min-width: 0; flex: 1 1 18rem; overflow-wrap: anywhere}
#reader-meta {color: var(--reader-muted); line-height: 1.4; font-size: .84rem; font-weight: 550; margin-bottom: .3rem}
#reader-meta:empty,#reader-original:empty,#reader-state:empty,#reader-people:empty,#reader-sections:empty,#reader-location:empty {display: none}
#reader .reader-head h2 {font-size: clamp(1.13rem,1.65vw,1.62rem); line-height: 1.24; letter-spacing: -.032em}
#reader .reader-tools {display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; flex: 0 1 auto; gap: .35rem .85rem}
#reader-original a {color: var(--reader-green); font-size: .87rem; font-weight: 620}
#reader #close-reader {width: auto; min-width: 4.1rem; height: auto; min-height: 35px; padding: .29rem .64rem; font-weight: 600; font-size: .86rem; color: var(--reader-ink); border: 1px solid #b7c4c3; background: white}
#reader #close-reader:hover {background: #edf2ef}
#reader .reader-body {min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 1.1rem clamp(1rem,2.5vw,2rem) 1.6rem; text-align: left; overflow-wrap: anywhere}
#reader .reader-body:focus-visible {outline-offset: -3px}
#reader-state {margin: 0 0 .75rem; color: var(--reader-muted); font-size: .85rem; line-height: 1.45}
#reader-people {margin: 0 0 .95rem; padding: .55rem .8rem; border: 1px solid var(--reader-rule); border-radius: 4px; background: #f6f8f6; line-height: 1.45; font-size: .92rem}
#reader-people > div {display: grid; grid-template-columns: minmax(4.6rem,6.5rem) minmax(0,1fr); gap: .1rem .65rem}
#reader-people > div + div {margin-top: .24rem}
#reader-people dt {color: var(--reader-muted); font-size: .85rem; font-weight: 560}
#reader-people dd {margin: 0; color: var(--reader-ink); overflow-wrap: anywhere}
#reader #reader-citation {margin: 1rem 0; padding: .85rem 1rem .9rem; border: 0; border-left: 3px solid var(--reader-green); background: #f0f6f2}
#reader #reader-citation h3 {font-size: .94rem; color: var(--reader-green)}
#reader-location {color: var(--reader-muted); font-size: .83rem}
#reader-quote {max-width: 77ch; margin: .45rem 0 0; line-height: 1.53; white-space: pre-wrap; overflow-wrap: anywhere}
#reader #reader-content {margin: 1.2rem 0; border: 0; padding: 0}
#reader #reader-content-title {font-size: 1.15rem; letter-spacing: -.025em}
#reader #reader-message {margin: .55rem 0 0; max-width: 77ch; line-height: 1.62; white-space: pre-wrap; unicode-bidi: plaintext}
#reader #reader-message > .reader-text {margin:.75rem 0;font-size:1.04rem;line-height:1.65}
#reader .reader-signature {margin:.75rem 0}
#reader .reader-signature summary {width:fit-content;color:var(--reader-green);padding:.28rem 0;font-size:.9rem;font-weight:600}
#reader .reader-signature p {color:var(--reader-muted);margin:.3rem 0}
#reader .reader-raw-text {max-width:85ch;margin:.4rem 0 1rem;padding:.7rem .9rem;border:1px solid var(--reader-rule);background:#f6f8f7;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:.91rem}
#reader #reader-byline {margin-top: .23rem; font-size: .86rem; line-height: 1.45; color: var(--reader-muted)}
#reader .reader-addresses summary {width: fit-content; color: var(--reader-green); font-size: .86rem; font-weight: 560}
#reader .reader-addresses > span {display: block; max-width: 74ch; margin-top: .25rem}
#reader #reader-sections {margin-top: .9rem}
#reader #reader-sections .hint {max-width: 80ch}
#reader #reader-sections section {padding-top: .7rem; margin-top: .7rem; border-top: 1px solid var(--reader-rule)}
#reader #reader-sections section p {white-space: pre-wrap; line-height: 1.54}
#reader .reader-body > details {border-top: 1px solid var(--reader-rule); margin: .55rem 0 0}
#reader .reader-body > details > summary {padding: .6rem .12rem; color: var(--reader-ink); font-weight: 610; font-size: .95rem; text-underline-offset: .17em}
#reader .reader-body > details > summary:hover {text-decoration: underline}
#reader #reader-attachments {margin: 1rem 0 .6rem; border-top: 1px solid var(--reader-rule); padding-top: .85rem}
#reader-attachments-title {font-size: 1.07rem; margin: 0 0 .45rem}
#reader-attachment-list {padding: 0; margin: .1rem 0 .45rem; list-style: none}
#reader-attachment-list li,#reader-thread-items > * {padding: .5rem .75rem; margin: .24rem 0; border-left: 2px solid var(--reader-rule)}
#reader-attachment-list li {background: #f6f8f7}
#reader-attachment-list summary {color: var(--reader-ink); font-weight: 600; overflow-wrap: anywhere; padding: .2rem 0}
#reader-attachment-list details[open] > summary {margin-bottom: .4rem; color: var(--reader-green)}
#reader .reader-text {max-width: 77ch; white-space: pre-wrap; unicode-bidi: plaintext; line-height: 1.55}
#reader mark {color:#193e34; background:#ffedb4; border-radius:2px}
#reader .reader-letter-meta {font-size:.87rem; color:var(--reader-muted)}
#reader #reader-quote:empty {display:none}
#reader .reader-letter {padding: .55rem .75rem; border-left: 2px solid var(--reader-rule); margin: .35rem 0}
#reader .reader-letter-title {color: var(--reader-ink); font-size: .96rem; font-weight: 620}
#reader #reader-thread-items details > summary {color: var(--reader-ink); padding-block: .2rem; font-weight: 590}
#reader-thread-items p {max-width: 77ch; line-height: 1.5; white-space: pre-wrap}
@media (max-width: 550px) {
  #reader {width: calc(100vw - .8rem); max-width: calc(100vw - .8rem); max-height: 94dvh}
  #reader .reader-head {flex-wrap: wrap; padding: .75rem .9rem; gap: .5rem}
  #reader .reader-document {flex-basis: 100%}
  #reader .reader-tools {width: 100%; justify-content: space-between}
  #reader .reader-tools > #close-reader {margin-left: auto}
  #reader .reader-body {padding: .85rem .9rem 1rem; scrollbar-gutter: auto}
  #reader-people {padding: .45rem .6rem}
  #reader-people > div {grid-template-columns: minmax(0,4.45rem) minmax(0,1fr); gap: .4rem}
  #reader #reader-citation {padding: .65rem .75rem}
}

/* Le résultat présente d'abord la conclusion, puis l'écrit qui permet de la vérifier. */
.dispatch-check:disabled + .dispatch-panel:not([hidden]) {margin-block: .65rem; padding: .7rem .85rem; border-left: 3px solid #32778b; background: #eef5f7; color: #244856; line-height: 1.5}
.dispatch-result {--dispatch-accent: #60737b; min-width: 0; margin-block: .8rem .2rem; padding: .9rem 1rem .8rem; border: 1px solid #ccd7da; border-left: 3px solid var(--dispatch-accent); border-radius: 0 4px 4px 0; background: white; color: #172f3b; overflow-wrap: anywhere}
.dispatch-result[data-status="supported"] {--dispatch-accent: #126858}
.dispatch-result[data-status="review"],.dispatch-result[data-status="partial"] {--dispatch-accent: #885c1b}
.dispatch-result .dispatch-status {margin: 0; font-size: 1.08rem; font-weight: 650; color: var(--dispatch-accent)}
.dispatch-result .dispatch-message {margin: .3rem 0; max-width: 72ch; line-height: 1.55}
.dispatch-facts {display: flex; flex-wrap: wrap; gap: .55rem 1.75rem; margin: .7rem 0 0}
.dispatch-facts div {min-width: 0; max-width: 100%}
.dispatch-facts dt,.dispatch-coverage {color: #4d636c; font-size: .84rem}
.dispatch-facts dd {margin: .12rem 0 0; font-weight: 600}
.dispatch-evidence {margin: .85rem 0 0; padding: .7rem .9rem; border-left: 2px solid #a2b7b0; background: #f4f8f6}
.dispatch-evidence .dispatch-source-title {margin: 0; font-size: .88rem; font-weight: 650}
.dispatch-evidence blockquote {margin: .3rem 0 .45rem; max-width: 72ch; white-space: pre-wrap; line-height: 1.65; unicode-bidi: plaintext}
.dispatch-evidence a {display: inline-flex; align-items: center; min-height: 32px; font-weight: 600; color: #145877}
.dispatch-result .dispatch-coverage {margin: .7rem 0 0; font-variant-numeric: tabular-nums}
#reader .reader-document-page {min-width: 0; margin: .7rem 0; padding: .75rem clamp(.75rem,2vw,1.4rem) 1rem; border: 1px solid var(--reader-rule); border-radius: 3px; background: #fff}
#reader .reader-document-page > .reader-page-label {margin: 0; padding-bottom: .45rem; border-bottom: 1px solid #e2e8e6; font-size: .85rem; font-weight: 620; color: #48636d}
#reader .reader-document-page > .reader-text {margin: .7rem 0 0; max-width: 73ch; color: #172f3b; font-size: 1rem; line-height: 1.68}
@media (max-width: 480px) {
  .dispatch-result {padding: .7rem .7rem .65rem}
  .dispatch-facts {display: grid; gap: .45rem}
  .dispatch-evidence {padding: .6rem .65rem}
  .dispatch-evidence a {min-height: 40px}
  #reader .reader-document-page {padding: .58rem .62rem .8rem}
}

.icon-follow::before {inset:1px 3px; border:1.5px solid; border-radius:2px 2px 3px 3px}
.icon-follow::after {left:6px; bottom:2px; width:5px; height:5px; border-top:1.5px solid; border-left:1.5px solid; transform:rotate(45deg); background:var(--navy)}
.register-nav a[data-view="mes-suivis"] {position:relative}
#follow-badge {margin-left:auto; min-width:1.55em; padding:0 .36em; border-radius:1em; background:#d8f1e4; color:#134937; font-weight:700; text-align:center; font-variant-numeric:tabular-nums}
.follow-notice {display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.35rem 1rem; padding:.55rem .9rem; margin:0 0 1rem; background:#e7f1ec; border-inline-start:3px solid var(--green); color:#174631}
.follow-notice a {display:inline-flex; align-items:center; min-height:32px; font-weight:600; color:#174c39}
.follow-hub {display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.32fr); align-items:start; gap:1rem clamp(1rem,2.1vw,2.35rem); min-width:0}
.follow-hub #follow-alert-error,.follow-hub #follow-service-field {grid-column:1/-1}
.follow-hub #follow-service-field {width:100%; max-width:19rem; margin:0}
#registre[data-page="mes-suivis"] #new-case {display:none}
.follow-inbox,.follow-book {min-width:0; border-top:3px solid var(--green)}
.follow-book {border-color:var(--navy)}
.follow-hub h2 {padding:.85rem 0 .72rem; font-weight:650}
.follow-event-list,.follow-mission-list {list-style:none; margin:0; padding:0}
.follow-alert,.follow-mission {padding:.92rem 1rem; border-bottom:1px solid var(--line); background:white; overflow-wrap:anywhere}
.follow-alert {border-inline-start:3px solid #c7d3d4}
.follow-alert.unread {border-inline-start-color:#25735e; background:#f5faf7}
.follow-alert.unread[data-kind^="due"],.follow-alert.unread[data-kind^="overdue"] {border-inline-start-color:#98612a; background:#fcf8f0}
.follow-hub h3 {margin:.28rem 0; font-size:1.03rem; line-height:1.4}
.follow-hub h3 a {color:var(--navy); text-decoration:underline; text-underline-offset:.19em; text-decoration-color:#9bb4bb}
.follow-hub h3 a:hover {text-decoration-color:var(--navy)}
.follow-line,.follow-controls,.follow-facts {display:flex; flex-wrap:wrap; align-items:baseline; gap:.22rem 1rem}
.follow-line {justify-content:space-between}
.follow-context {font-size:.85rem; font-weight:650; color:#345764}
.follow-time {font-size:.8rem; color:var(--muted); font-variant-numeric:tabular-nums}
.follow-subject {font-size:.9rem}
.follow-controls:not(:empty) {margin-top:.46rem}
.follow-controls .text-button,.follow-mission-state .text-button {padding:.25rem 0; min-height:32px; color:var(--blue); font-size:.84rem}
.follow-mission {display:grid; grid-template-columns:minmax(0,1.35fr) minmax(9rem,1fr); gap:.55rem 1rem}
.follow-facts {font-size:.82rem; color:var(--muted); margin-top:.53rem}
.follow-facts strong {color:var(--ink); font-weight:600}
.follow-mission-state {display:grid; justify-items:start; align-content:start; gap:.12rem}
.follow-state {color:var(--green); font-size:.89rem}
.follow-state[data-state="review"],.follow-state[data-state="unavailable"] {color:var(--amber)}
.follow-state[data-state="pending"] {color:var(--muted)}
.dot-mission {grid-column:1/-1; padding-top:.34rem; border-top:1px solid var(--line)}
.dot-mission summary {display:list-item; color:var(--blue); width:fit-content; padding:.25rem 0; font-size:.85rem; font-weight:600}
.dot-mission .field {margin:.5rem 0}
.dot-mission textarea {width:100%; min-height:7rem; resize:vertical; font-size:.85rem; line-height:1.45; background:#f7faf9}
.dot-mission .follow-controls a {font-size:.83rem}
.dot-mission p:not(:empty) {margin-top:.35rem}
.follow-empty {padding:.9rem 1rem; background:white; color:var(--muted); border-bottom:1px solid var(--line)}
.follow-empty a {display:inline-flex; align-items:center; min-height:32px}
.detail .work-commands .follow-action {color:#154e3c; border-color:#a6bfb3; min-height:36px}
.detail .work-commands .follow-action[data-following="true"] {background:#eef6f1}
.my-follow-link {display:inline-flex; align-items:center; min-height:36px; font-size:.85rem; font-weight:600}
@media (max-width:1080px) {
  .follow-hub {grid-template-columns:minmax(0,1fr)}
}
@media (max-width:760px) {
  .register-nav {grid-template-columns:repeat(6,minmax(0,1fr))}
  .register-nav a {position:relative; flex-direction:column; gap:.25rem; text-align:center}
  #follow-badge {position:absolute; top:0; left:calc(50% + .3rem); padding:0 .27em; font-size:.66rem}
}
@media (max-width:480px) {
  .register-nav {grid-template-columns:repeat(3,minmax(0,1fr))}
  .register-nav a {flex-direction:row; min-height:38px; gap:.32rem; padding:.2rem; font-size:.79rem}
  #follow-badge {position:static; margin:0}
  :root {scroll-padding-top:6rem}
  .follow-mission {grid-template-columns:minmax(0,1fr)}
  .follow-controls .text-button,.follow-mission-state .text-button,.detail .work-commands .follow-action,.my-follow-link {min-height:44px}
  .follow-alert,.follow-mission {padding:.8rem}
}
