:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #16232d;
  background: #f3f6f5;
  --ink: #16232d;
  --muted: #475b65;
  --border: #dbe4e3;
  --surface: #fff;
  --accent: #145650;
  --accent-dark: #0e413c;
  --accent-wash: #e8f3f0;
  --error: #942f31;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
a { color: var(--accent); text-underline-offset: .2em; }
button, input, select { font: inherit; }
button, label.upload { cursor: pointer; }
:focus-visible { outline: 3px solid #147b70; outline-offset: 3px; }
.skip { position: absolute; top: -4rem; z-index: 3; padding: .7rem; background: #fff; }
.skip:focus { top: .5rem; left: .5rem; }
.shell { width: min(1260px, calc(100% - 3.5rem)); margin: 0 auto; }
.header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--ink); font-size: 1.3rem; font-weight: 700; }
.brand img { max-width: 138px; height: 34px; object-fit: contain; object-position: left center; }
.brand span { border-left: 1px solid var(--border); padding-left: 1rem; }
.account { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; font-size: .89rem; }
.quiet { background: transparent; border: 1px solid var(--border); border-radius: 7px; padding: .45rem .65rem; color: var(--ink); }
.quiet:hover { background: var(--accent-wash); }
main { padding: 2.1rem 0 3.5rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 4.7vw, 3rem); line-height: 1.12; letter-spacing: -.035em; }
h2 { font-size: 1.48rem; line-height: 1.25; letter-spacing: -.02em; }
p { line-height: 1.55; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.5rem; }
.page-heading p, .sign-in p, .review p, #meta-article { color: var(--muted); margin-top: .4rem; }
.primary { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; background: var(--accent); color: #fff; border: 1px solid transparent; border-radius: 8px; padding: .6rem .95rem; font-weight: 650; text-decoration: none; text-align: center; }
.primary:hover { background: var(--accent-dark); }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upload:focus-within { outline: 3px solid #147b70; outline-offset: 3px; }
.upload:has(input:disabled) { opacity: .65; cursor: wait; }
.sign-in { width: min(620px, 100%); margin: clamp(2rem, 12vh, 8rem) auto 2rem; padding: clamp(1.6rem, 6vw, 3rem); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.sign-in .primary { margin-top: 1.3rem; }
.status:not(:empty) { padding: .75rem 1rem; margin-bottom: 1rem; background: var(--accent-wash); border-radius: 8px; color: var(--accent-dark); }
.status[data-error="true"]:not(:empty) { background: #fff0ef; color: var(--error); }
.revision { display: flex; align-items: center; padding: 1rem; gap: 1rem 1.5rem; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.revision label, .tree label { display: block; color: var(--muted); font-size: .84rem; font-weight: 650; margin: 0 0 .35rem; }
select, input[type="search"] { width: 100%; min-height: 42px; color: var(--ink); background: #fff; border: 1px solid #acbebb; border-radius: 7px; padding: .5rem .65rem; }
.revision select { min-width: 195px; }
.source { display: grid; gap: .12rem; min-width: 0; overflow-wrap: anywhere; }
.source span { color: var(--muted); font-size: .85rem; }
.view-switch { border-bottom: 1px solid var(--border); display: flex; gap: .85rem; margin: 1.15rem 0 1rem; }
.view-switch button { border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); padding: .6rem .2rem; font-weight: 650; }
.view-switch button[aria-pressed="true"] { border-bottom-color: var(--accent); color: var(--accent-dark); }
.split { display: grid; grid-template-columns: minmax(215px, .8fr) minmax(0, 2.3fr); align-items: start; gap: 1rem; }
.panel { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); min-width: 0; overflow: hidden; }
.tree, .detail-heading, .review, .empty { padding: 1rem; }
#liste { list-style: none; margin: .75rem 0 0; padding: .15rem; max-height: 44vh; overflow: auto; }
#liste button { width: 100%; min-height: 40px; text-align: left; padding: .45rem .6rem; background: transparent; border: 0; border-radius: 6px; color: var(--ink); }
#liste button:hover, #liste button[aria-current="true"] { background: var(--accent-wash); color: var(--accent-dark); }
#liste button[aria-current="true"] { font-weight: 650; }
#aucun { margin-top: .4rem; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.detail .table-scroll:focus-visible { outline-offset: -3px; }
.review .table-scroll { margin-top: .85rem; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .92rem; min-width: 480px; }
th { background: #edf3f2; color: #233f43; font-weight: 700; }
th, td { padding: .66rem .85rem; vertical-align: top; border-bottom: 1px solid var(--border); }
tbody tr:last-of-type td { border-bottom: 0; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }
td:last-child { color: var(--muted); }
.severity-error { color: var(--error); font-weight: 650; }
@media (max-width: 720px) {
  .shell { width: calc(100% - 1.5rem); }
  .header-inner, .page-heading { align-items: flex-start; flex-direction: column; }
  .header-inner { padding: .75rem 0; }
  main { padding-top: 1.4rem; }
  .split { grid-template-columns: minmax(0, 1fr); }
  #liste { max-height: 11rem; }
}

