/* Réponse CCTP — the consultation screen (articles | document | réponse) and its dialogs.
   Values are the design's (Consultation.dc.html); tokens and shared components come from style.css. */

/* ---------------------------------------------------------------------------------------------------------
   Frame: header, tabs, body
   --------------------------------------------------------------------------------------------------------- */
.c-app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-width: 0; background: #FFFFFF; color: var(--text); }
.c-boot { display: flex; flex-direction: column; gap: 16px; padding: 28px 24px; }
.c-state { margin: 12vh auto 0; max-width: 460px; padding: 0 24px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.c-state h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }

.c-head { flex: 0 0 64px; height: 64px; padding: 0 24px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.c-back {
  flex: 0 0 36px; height: 36px; border-radius: var(--r-control); border: 1px solid var(--control-line); display: flex;
  align-items: center; justify-content: center; color: var(--text); text-decoration: none;
}
.c-back:hover { background: var(--field); color: var(--text); }
.c-title-block { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.c-crumbs { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-crumbs a { color: inherit; text-decoration: none; }
.c-crumbs a:hover { color: var(--text); text-decoration: underline; }
.c-title-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.c-title { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.c-pill {
  flex: 0 0 auto; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--control-line); background: #FFFFFF;
  font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px;
}
.c-pill:hover { background: var(--side); }
.c-progress { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); white-space: nowrap; }
.c-progress .progress { width: 140px; }
.c-progress strong { color: var(--text); }
.c-head .btn-primary { padding: 0 18px; }
.c-unsaved {
  flex: 0 0 auto; height: 30px; padding: 0 10px; border-radius: 999px; border: 0; background: var(--warn-bg); color: var(--warn);
  font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px;
}
.c-unsaved b { margin-left: 4px; text-decoration: underline; }

.c-tabsbar { flex: 0 0 auto; display: flex; align-items: center; gap: 28px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.c-doc-toggle { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.c-doc-toggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.c-body { flex: 1; min-height: 0; display: flex; }
.c-empty { padding: 14px 10px; font-size: 13.5px; color: var(--muted); }

/* ---------------------------------------------------------------------------------------------------------
   Articles: nav | article | document
   --------------------------------------------------------------------------------------------------------- */
.c-articles, .c-cols { flex: 1; display: flex; min-width: 0; min-height: 0; }
.c-nav { flex: 0 0 296px; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--side); border-right: 1px solid var(--line); transition: flex-basis .18s ease; }
.c-nav-bar { display: flex; align-items: center; gap: 8px; }
.c-nav-bar .search-field { flex: 1; min-width: 0; }
.c-nav-bar .icon-btn { flex: 0 0 34px; }
.c-nav-add { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 12px 16px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; font-size: 14px; font-weight: 600; color: var(--link); }
.c-nav-add:hover { background: #EEF2F4; color: var(--link-hover); }
.c-nav-rail { display: none; flex-direction: column; align-items: center; gap: 14px; padding: 14px 0; }
.c-rail-code { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 13px; font-weight: 600; color: var(--sel-text); white-space: nowrap; }
.c-nav.collapsed { flex-basis: 56px; }
.c-nav.collapsed > :not(.c-nav-rail) { display: none; }
.c-nav.collapsed .c-nav-rail { display: flex; }
.c-nav-top { padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 10px; }
.c-nav .seg > button { font-size: 13px; padding: 0 8px; }
.c-nav .seg .n { color: var(--muted); font-weight: 500; }
.c-nav-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 12px 12px; }
.c-group { padding: 14px 10px 6px; font-size: 13px; font-weight: 600; color: var(--text-2); display: flex; }
.c-group .n { font-weight: 500; }
.c-row {
  width: 100%; display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; margin-bottom: 2px; border: 0; border-radius: var(--r-control);
  text-align: left; background: transparent; color: var(--text); transition: background-color .12s ease;
}
.c-row:hover { background: #EEF2F4; }
.c-row[aria-current="true"] { background: var(--sel-bg); color: var(--sel-text); }
.c-row .ring { margin-top: 2px; }
.c-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.c-row-line { display: flex; gap: 8px; min-width: 0; }
.c-row-code { flex: 0 0 auto; font-weight: 600; font-size: 14px; }
.c-row-short { min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-row-prod { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-row[aria-current="true"] .c-row-prod { color: var(--sel-text); }
.c-del { width: 100%; display: flex; gap: 10px; padding: 6px 10px; border: 0; border-radius: var(--r-control); background: transparent; color: var(--muted); font-size: 13.5px; text-align: left; }
.c-del:hover { background: #EEF2F4; }
.c-del .ring { margin-top: 1px; }
.c-del-text { display: flex; flex-direction: column; min-width: 0; }
.c-del-code { font-weight: 600; text-decoration: line-through; }
.c-del-why { font-size: 12.5px; }
.c-nav-foot { padding: 12px 16px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; font-size: 13.5px; color: var(--text-2); }
.c-nav-foot b { color: var(--link); font-weight: 600; }
.c-nav-foot:hover b { text-decoration: underline; }

.c-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.c-article { --art-pt: 22px; flex: 1; min-height: 0; overflow-y: auto; padding: var(--art-pt) 32px 24px; display: flex; flex-direction: column; gap: 20px; }
.c-art-head { display: flex; flex-direction: column; gap: 8px; }
.c-art-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.c-done { font-size: 13px; font-weight: 600; color: var(--ok); }
.c-pos { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.c-art-title { font-size: 23px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }

/* Context line: where the article is, the reference the CCTP cites */
.c-article > * { min-width: 0; }
.c-context { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; font-size: 14px; }
.c-context .k { font-size: 13px; color: var(--muted); }
.c-ctx-ref { border-radius: 6px; transition: background-color .15s ease, box-shadow .15s ease; }
.c-ctx-ref.hot { background: #E9EDF0; box-shadow: 0 0 0 4px #E9EDF0; }
.c-ctx-doc { margin-left: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.c-ctx-refgrp { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.c-ctx-link, .c-ctx-miss a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.c-ctx-link:hover, .c-ctx-miss a:hover { text-decoration: underline; }
.c-ctx-miss, .c-ctx-load { font-size: 13.5px; color: var(--muted); }
.c-ctx-load { display: inline-flex; align-items: center; gap: 6px; }
.spin { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.c-menu { position: relative; display: inline-flex; }
.c-menu-pop { position: absolute; top: calc(100% + 4px); left: 0; z-index: 20; min-width: 200px; padding: 4px; display: flex; flex-direction: column; border-radius: 10px; background: #FFFFFF; border: 1px solid var(--card-line); box-shadow: 0 8px 24px rgba(15, 20, 25, 0.16); }
.c-menu-pop button { height: 36px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; text-align: left; font-size: 14px; white-space: nowrap; }
.c-menu-pop button:hover, .c-menu-pop button:focus-visible { background: var(--field); }
.c-menu-pop .danger { color: var(--bad); }
.c-doc-none { padding: 28px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.c-hidden { margin: 0 0 8px; font-size: 13.5px; color: var(--text-2); }

/* The comparison table: what the client asks, then each proposal */
.c-cmp-wrap { display: block; min-width: 0; }
.c-cmp-empty { margin-bottom: 10px; padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--dash); font-size: 14px; color: var(--text-2); }
.c-cmp-empty b { color: var(--text); font-weight: 600; }
.c-cmp { min-width: 0; max-width: 100%; border: 1px solid var(--line); border-radius: var(--r-card); overflow-x: auto; overflow-y: hidden; background: #FFFFFF; }
.c-cmp-table { border-collapse: separate; border-spacing: 0; table-layout: fixed; width: 100%; min-width: var(--cmp-w, 0); font-size: 13.5px; }
.c-cmp-table th, .c-cmp-table td { padding: 10px 12px; text-align: left; vertical-align: top; font-weight: 400; border-bottom: 1px solid var(--line-2); background: #FFFFFF; }
.c-cmp-table tbody tr:last-child > * { border-bottom: 0; }
.dim { color: var(--muted); }

/* the first two columns stay in view when the products scroll */
.c-cmp-k, .c-cmp-req { position: sticky; z-index: 2; }
.c-cmp-k { left: 0; }
.c-cmp-req { left: var(--k-w, 104px); }
.c-cmp.scrolled .c-cmp-req { box-shadow: 8px 0 8px -6px rgba(15, 20, 25, 0.18); }

.c-cmp-table thead th { background: var(--side); border-bottom: 1px solid var(--line); }
.c-cmp-table .c-cmp-h { vertical-align: bottom; font-size: 13px; font-weight: 600; color: var(--text); }
.c-cmp-h .sub { display: block; margin-top: 1px; font-size: 11.5px; font-weight: 400; color: var(--muted); }

/* a product's head: photo, name, tag, answer, then (second header row) the two actions */
.c-cmp-table thead .c-cmp-prod { padding: 12px 12px 4px; border-bottom: 0; }
.c-cmp-table thead .c-cmp-acts { padding: 6px 12px 12px; border-bottom: 1px solid var(--line); background: var(--side); }
.c-cmp-table thead .c-cmp-prod.is-sel, .c-cmp-table thead .c-cmp-acts.is-sel { background: #EAF2FF; }
.c-cmp-prod.is-sel { box-shadow: inset 0 3px 0 var(--accent); }
.c-ph { position: relative; display: flex; flex-direction: column; gap: 2px; }
.c-ph-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.c-ph-x {
  position: absolute; top: -6px; right: -8px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
}
.c-ph-x:hover { background: var(--line); color: var(--text); }
.c-ph-name { min-height: 36px; display: flex; align-items: flex-end; font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.c-ph-name > span { overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.c-ph-ref { font-size: 12.5px; color: var(--muted); }
.c-cmp-btn { width: 100%; height: 32px; padding: 0 8px; font-size: 13px; }
.c-tag { padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--field); color: var(--text-2); }
.c-tag.rec { background: var(--sel-bg); color: var(--sel-text); }

/* « Ajouter un produit »: a dashed column at the end */
.c-cmp-add { vertical-align: top; background: #FFFFFF; }
.c-cmp-addbtn {
  width: 100%; min-height: 150px; padding: 8px; border: 1.5px dashed var(--dash); border-radius: 10px; background: transparent; color: var(--link); font-weight: 600;
  font-size: 13.5px; display: flex; align-items: center; justify-content: center; text-align: center; transition: background-color .15s ease, border-color .15s ease;
}
.c-cmp-addbtn:hover { background: var(--sel-card); border-color: var(--sel-line); }
.c-cmp-gap { background: #FFFFFF; }

/* the names strip: sticks to the top of the article once the head of the table has scrolled away */
.c-article { scroll-padding-top: 46px; }
.c-cmp-stick { position: sticky; top: calc(-1 * var(--art-pt)); height: 0; z-index: 6; }
.c-strip {
  display: none; position: absolute; left: 0; right: 0; top: 0; height: 40px; overflow: hidden; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--r-card) var(--r-card) 0 0;
  box-shadow: 0 8px 10px -8px rgba(15, 20, 25, 0.28);
}
.c-strip.on { display: block; }
.c-strip-k { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; padding: 0 12px 0 10px; display: flex; align-items: center; background: #FFFFFF; font-size: 12.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.c-strip-cols { display: flex; will-change: transform; }
.c-strip-c { flex: 0 0 auto; height: 38px; padding: 0 12px; display: flex; align-items: center; gap: 8px; background: #FFFFFF; font-size: 13px; font-weight: 600; white-space: nowrap; }
.c-strip-c .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.c-strip-c .c-tick { flex: 0 0 auto; color: var(--accent); font-weight: 700; }
.c-strip-c.is-sel { background: #EAF2FF; box-shadow: inset 0 3px 0 var(--accent); }

/* a criterion */
.c-cmp-row > * { transition: background-color .15s ease; }
.c-cmp-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.c-cmp-row .badge-unit { transition: transform .15s ease, box-shadow .15s ease; }
.c-cmp-row.hot > * { background-image: linear-gradient(rgba(21, 25, 29, 0.055), rgba(21, 25, 29, 0.055)); }
.c-cmp-row.hot .badge-unit { transform: scale(1.12); box-shadow: 0 0 0 3px rgba(21, 25, 29, 0.14); }
.c-cmp-k { padding: 10px 4px 10px 10px; font-size: 12px; font-weight: 500; color: var(--text-2); }
.c-cmp-k .kk { display: flex; align-items: flex-start; gap: 5px; }
.c-cmp-k .badge-unit { flex-basis: 22px; width: 22px; height: 22px; font-size: 9px; }
.c-cmp-k .nm { padding-top: 2px; overflow-wrap: anywhere; line-height: 1.2; }
.c-cmp-req .v { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--text); overflow: hidden; overflow-wrap: anywhere; }
.c-cmp-req .q { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-cell { display: flex; align-items: flex-start; gap: 7px; }
.c-cell .val { min-width: 0; padding-top: 1px; line-height: 1.3; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.c-dot { flex: 0 0 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.c-cmp-cell.is-sel { background: var(--sel-cell); }
.c-cmp-none { padding: 18px 14px; color: var(--muted); }

/* Accessories: what it takes to fit each product as the CCTP asks */
.c-cmp-table .c-acc-head > * { padding-top: 10px; padding-bottom: 10px; background: var(--side); border-top: 1px solid var(--line); }
.c-acc-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.c-cmp.scrolled .c-acc-title { box-shadow: 8px 0 8px -6px rgba(15, 20, 25, 0.18); }
.c-acc-ico { flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--dark); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; }
.c-acc-hint { font-size: 12.5px; color: var(--muted); }
.c-acc-k { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.c-acc-req .q { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.c-cmp-table .c-acc-cell { padding: 10px 6px; }
.c-cmp-table .c-acc-cell.is-sel { background: var(--sel-card); }
.c-acc-stack { display: flex; flex-direction: column; gap: 8px; }
.c-acc-card { display: flex; flex-direction: column; gap: 5px; padding: 7px; border-radius: 10px; background: #FFFFFF; border: 1px solid var(--line); }
.c-acc-card.on { border-color: var(--sel-line); }
.c-acc-top { display: flex; align-items: flex-start; gap: 6px; cursor: pointer; }
.c-acc-top input { flex: 0 0 auto; margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--accent); }
.c-acc-top .photo { flex: 0 0 34px; border-radius: 6px; }
.c-acc-top .photo .none { display: none; }
.c-acc-name { flex: 1; min-width: 0; font-weight: 600; font-size: 12.5px; line-height: 1.25; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.c-acc-meta { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.c-acc-meta .c-acc-per { font-size: 11px; gap: 2px; white-space: nowrap; }
.c-acc-per { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 3px; }
.c-acc-why { align-self: flex-start; padding: 1px 7px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: var(--warn-bg); color: var(--warn); }
.c-acc-add { align-self: flex-start; text-align: left; }
.c-acc-add .n { color: var(--muted); font-weight: 500; }
.c-step { display: inline-flex; align-items: center; border-radius: 8px; background: var(--field); }
.c-step button { width: 28px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; font-size: 16px; line-height: 1; color: var(--text); }
.c-step button:hover:not(:disabled) { background: var(--line); }
.c-step button:disabled { color: var(--mute-ring); cursor: not-allowed; }
.c-step .v { min-width: 18px; text-align: center; font-weight: 600; color: var(--text); }
.c-step.sm button { width: 20px; height: 22px; font-size: 14px; }
.c-step.sm .v { min-width: 14px; font-size: 12.5px; }
.c-step.off { opacity: 0.55; }


/* The prop marks of the search drawer */
.c-prop-marks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }

/* Answer bar: what goes to the client, always in sight */
.c-bar { flex: 0 0 auto; border-top: 2px solid var(--accent); padding: 12px 32px 14px; display: flex; flex-direction: column; gap: 10px; background: #F7FAFF; box-shadow: 0 -8px 20px rgba(15, 20, 25, 0.06); }
.c-bar-chips { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; min-height: 40px; }
.c-bar-label { font-weight: 600; font-size: 16px; margin-right: 4px; }
.c-bar-hint { font-size: 14px; color: var(--muted); }
.c-ans { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; max-width: 100%; padding: 4px 6px; border-radius: 12px; background: #FFFFFF; border: 1px solid var(--control-line); font-size: 14px; }
.c-ans .photo { flex: 0 0 28px; border-radius: 6px; }
.c-ans .photo .none { display: none; }
.c-ans-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.c-ans-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-ans-name strong { font-weight: 600; }
.c-ans-acc { max-width: 260px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-ans button { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--track); display: flex; align-items: center; justify-content: center; }
.c-ans button:hover { background: var(--control-line); }
.c-bar-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.c-qty { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.c-qty-input { width: 72px; text-align: right; font-size: 15px; }
.c-qty-input[aria-invalid="true"] { outline: 2px solid var(--bad-ring); }
.c-qty-group { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.c-qty-hint { font-size: 12.5px; color: var(--muted); }
.c-bar-go { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.c-note { flex: 1 1 160px; min-width: 160px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.c-note .field { flex: 1; min-width: 0; font-size: 14px; }
.c-bar .field { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--control-line); }
.c-bar .field:focus { box-shadow: none; }
.c-oos { height: 40px; padding: 0 6px; }
.c-validate { height: 44px; padding: 0 22px; border-radius: var(--r-control); border: 0; font-weight: 600; font-size: 15px; transition: background-color .15s ease; }
.c-validate.ready { background: var(--accent); color: #FFFFFF; }
.c-validate.ready:hover { background: var(--accent-hover); }
.c-validate.done { background: var(--ok-bg); color: var(--ok); }
.c-validate.idle { background: var(--track); color: var(--muted); }

/* Document panel (side) */
.c-doc { position: relative; flex: 0 0 340px; min-width: 0; min-height: 0; display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--side); }
.c-split { position: absolute; left: -4px; top: 0; bottom: 0; width: 8px; z-index: 6; cursor: col-resize; touch-action: none; }
.c-split::after { content: ''; position: absolute; left: 3px; top: 0; bottom: 0; width: 2px; background: var(--accent); opacity: 0; transition: opacity .15s ease; }
.c-split::before { content: ''; position: absolute; left: 2px; top: 50%; width: 4px; height: 44px; margin-top: -22px; border-radius: 4px; background: var(--control-line); transition: background-color .15s ease; }
.c-split:hover::before, .c-split.drag::before, .c-split:focus-visible::before { background: var(--accent); }
.c-split:hover::after, .c-split.drag::after, .c-split:focus-visible::after { opacity: 0.7; }
.c-split:focus-visible { outline: none; }

/* ---------------------------------------------------------------------------------------------------------
   Document view: pages | page | articles of the page
   --------------------------------------------------------------------------------------------------------- */
.c-docview { flex: 1; min-width: 0; min-height: 0; display: flex; }
.c-thumbs { flex: 0 0 148px; min-width: 0; min-height: 0; overflow-y: auto; padding: 14px 12px; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.c-thumb { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 10px; background: #FFFFFF; text-align: left; border: 2px solid transparent; transition: border-color .12s ease; }
.c-thumb:hover { border-color: var(--sel-line); }
.c-thumb[aria-current="true"] { border-color: var(--accent); }
.c-thumb .pic { display: block; border-radius: 3px; overflow: hidden; box-shadow: 0 1px 3px rgba(15, 20, 25, 0.14); aspect-ratio: 1 / 1.414; background: var(--field); }
.c-thumb .pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.c-thumb .meta { display: flex; font-size: 12.5px; }
.c-thumb .count { margin-left: auto; color: var(--muted); }
.c-docpage { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--doc-bg); position: relative; }
.c-pagecards { flex: 0 0 340px; min-width: 0; min-height: 0; overflow-y: auto; padding: 18px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.c-pc-head { display: flex; flex-direction: column; gap: 2px; }
.c-pc-head b { font-weight: 600; font-size: 17px; }
.c-pcard { flex: 0 0 auto; border-radius: var(--r-card); padding: 14px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--card-line); background: #FFFFFF; }
.c-pcard { transition: border-color .15s ease, background-color .15s ease; }
.c-pcard.hot:not(.sel) { border-color: var(--sel-line); background: var(--sel-card); }
.c-pcard.sel { border: 2px solid var(--accent); background: var(--sel-card); padding: 13px; }
.c-pcard .code { font-size: 14.5px; }
.c-pcard .lab { font-size: 14px; line-height: 1.35; }
.c-pcard .lab.struck { text-decoration: line-through; color: var(--muted); }

/* ---------------------------------------------------------------------------------------------------------
   Réponse: settings | live preview
   --------------------------------------------------------------------------------------------------------- */
.c-reponse { flex: 1; min-width: 0; min-height: 0; display: flex; }
.c-settings { flex: 0 0 336px; min-width: 0; min-height: 0; overflow-y: auto; padding: 22px 20px; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; }
.c-set-title { font-weight: 600; font-size: 18px; }
.c-sum { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-card); background: #FFFFFF; border: 1px solid var(--line); }
.c-sum-n { display: flex; align-items: baseline; gap: 6px; }
.c-sum-n b { font-size: 28px; font-weight: 700; line-height: 1; }
.c-settings .seg > button { padding: 0 6px; font-size: 13px; }
.c-lines { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--text-2); }
.c-lines > span { display: flex; }
.c-lines strong { color: var(--text); }
.section-title.sm { font-size: 15px; }
.c-preview { flex: 1; min-width: 0; min-height: 0; overflow-y: auto; background: var(--doc-bg); padding: 28px; }
.c-paper { max-width: 920px; margin: 0 auto; background: #FFFFFF; border-radius: 4px; box-shadow: 0 2px 12px rgba(15, 20, 25, 0.10); padding: 44px 48px; display: flex; flex-direction: column; gap: 22px; }
.c-pv-top { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.c-pv-title { flex: 1 1 380px; display: flex; flex-direction: column; gap: 6px; }
.c-pv-title .kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.c-pv-title .name { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.c-pv-title .sub { font-size: 14px; color: var(--text-2); }
.c-pv-by { flex: 0 0 auto; display: flex; flex-direction: column; gap: 2px; text-align: right; font-size: 13.5px; color: var(--text-2); }
.c-pv-by strong { font-size: 16px; color: var(--text); }
.c-pv-summary { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: var(--r-control); background: var(--side); }
.c-pv-summary b { font-weight: 600; font-size: 14px; }
.c-pv-summary span { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.c-pv-sec { display: flex; align-items: baseline; gap: 10px; }
.c-pv-sec b { font-weight: 600; font-size: 16px; }
.c-pv-table { border: 1px solid var(--line); border-radius: var(--r-control); overflow: hidden; }
.c-pv-row { display: grid; grid-template-columns: 74px minmax(0, 1.2fr) minmax(0, 1.6fr) 48px minmax(0, 1fr); border-top: 1px solid var(--line-2); font-size: 13px; align-items: start; }
.c-pv-row.todo { background: #FBFBFC; }
.c-pv-row.head { border-top: 0; background: var(--side); font-size: 11.5px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em; }
.c-pv-row.head > span { padding: 10px 12px; }
.c-pv-row.head > span:nth-child(4) { padding: 10px 6px; }
.c-pv-row > span { min-width: 0; }
.c-pv-row .code { padding: 12px; font-weight: 700; }
.c-pv-row .req { padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.c-pv-row .req .muted { font-size: 12px; }
.c-pv-row .prop { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.c-pv-row .qty { padding: 12px 6px; }
.c-pv-row .note { padding: 12px; font-size: 12.5px; color: var(--text-2); }
.c-pv-prod { display: flex; gap: 10px; align-items: center; }
.c-pv-prod .pic { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--line); overflow: hidden; background: #FFFFFF; }
.c-pv-prod .pic img { width: 100%; height: 100%; object-fit: contain; }
.c-pv-prod .txt { display: flex; flex-direction: column; min-width: 0; }
.c-pv-prod .txt .muted { font-size: 12px; }
.c-pv-item { display: flex; flex-direction: column; gap: 6px; }
.c-pv-acc { display: flex; gap: 8px; align-items: center; margin-left: 46px; padding-left: 10px; border-left: 2px solid var(--card-line); font-size: 12.5px; color: var(--text-2); }
.c-pv-acc .pic { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 4px; border: 1px solid var(--line); overflow: hidden; background: #FFFFFF; }
.c-pv-acc .pic img { width: 100%; height: 100%; object-fit: contain; }
.c-pv-acc strong { color: var(--text); font-weight: 600; }
.c-pv-todo { padding: 3px 10px; border-radius: 6px; border: 1px dashed var(--mute-ring); color: var(--muted); font-style: italic; }
.c-pv-barres { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.c-pv-barres b { color: var(--text); font-weight: 600; }
.c-pv-foot { padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* ---------------------------------------------------------------------------------------------------------
   Dialogs
   --------------------------------------------------------------------------------------------------------- */
.c-resume { width: 980px; height: 800px; }
.c-res-head { display: flex; gap: 18px; align-items: flex-start; padding: 22px 28px 18px; border-bottom: 1px solid var(--line); }
.c-res-thumb { flex: 0 0 70px; height: 98px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); background: #FFFFFF; }
.c-res-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.c-res-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.c-res-title .kicker { font-size: 13px; font-weight: 600; color: var(--text-2); }
.c-res-title h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.c-res-body { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 28px; display: flex; flex-wrap: wrap; gap: 28px; align-content: flex-start; }
.c-res-left { flex: 3 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.c-res-right { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.c-res-text { font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.c-res-facts { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 16px; font-size: 14px; }
.c-res-facts .k { color: var(--muted); }
.c-res-li { display: flex; gap: 10px; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.c-res-li i { flex: 0 0 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--mute-ring); }
.c-res-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.c-res-stats > div { padding: 14px; border-radius: var(--r-card); border: 1px solid var(--line); }
.c-res-stats b { display: block; font-size: 26px; font-weight: 700; line-height: 1.1; }
.c-res-stats span { font-size: 13.5px; color: var(--text-2); }
.c-res-tri { display: flex; height: 10px; border-radius: 6px; overflow: hidden; gap: 2px; }
.c-res-tri i { display: block; height: 100%; }
.c-res-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--text-2); }
.c-res-legend b { color: var(--text); }
.c-res-attention { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: var(--r-card); background: var(--attention-bg); }
.c-res-attention > b { font-weight: 600; font-size: 15px; color: var(--attention-title); }
.c-res-attention > span { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.45; }
.c-res-attention i { flex: 0 0 auto; font-style: normal; font-weight: 700; color: var(--warn); }

/* Search drawer */
.c-search { width: 640px; }
.c-s-head { padding: 20px 24px 14px; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--line); }
.c-s-title { font-size: 20px; font-weight: 600; }
.c-s-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 30px; }
.c-s-chips .hint { margin-right: 2px; }
.c-s-chip { height: 30px; padding: 0 10px; border-radius: 999px; border: 0; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; background: var(--field); color: var(--muted); }
.c-s-chip.on { background: var(--sel-bg); color: var(--sel-text); }
.c-s-tabs { gap: 22px; margin-bottom: -15px; }
.c-s-tabs > button { padding: 8px 0; font-size: 14.5px; }
.c-s-list { flex: 1; min-height: 0; overflow-y: auto; transition: opacity .15s ease; }
.c-s-list.busy { opacity: 0.55; }
.c-s-row { display: flex; gap: 14px; padding: 14px 24px; border-bottom: 1px solid var(--line-2); align-items: center; }
.c-s-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.c-s-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.c-s-name b { font-weight: 600; font-size: 15px; }
.c-s-name .ref { font-size: 13px; color: var(--muted); }
.c-s-name .c-tag { white-space: nowrap; }
.c-s-label { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-s-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.btn-link.sm { font-size: 13px; }
.c-s-state { padding: 32px 24px; color: var(--text-2); font-size: 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.c-s-or { padding: 16px 24px; font-size: 13.5px; color: var(--muted); }
.c-s-or .btn-link { font-size: 13.5px; }
.c-s-form { margin: 0 24px 24px; padding: 16px; border-radius: var(--r-card); border: 1px solid var(--card-line); display: flex; flex-direction: column; gap: 10px; background: var(--side); }
.c-s-form .field { flex: 1 1 180px; background: #FFFFFF; border: 1px solid var(--control-line); }
.c-s-err { font-size: 13px; color: var(--bad); min-height: 0; }
.c-s-err:empty { display: none; }

/* Accessories drawer */
.c-acc-drawer { width: 600px; }
.c-acc-drawer .c-s-head { padding-bottom: 0; }
.c-acc-tabs { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.c-acc-tabs > button { flex: 0 0 auto; padding: 8px 0 9px; border: 0; background: transparent; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.c-acc-tabs > button[aria-selected="true"] { font-weight: 600; color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.c-acc-row .photo { border-radius: 10px; }
.c-acc-src { font-size: 12.5px; color: var(--text-2); }
.c-acc-row .c-acc-per { flex-wrap: nowrap; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.c-acc-btn { min-width: 112px; }
.c-acc-sum { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 14px; color: var(--text-2); }
.c-acc-drawer .modal-foot { flex-wrap: nowrap; }

/* Add an article by hand */
.c-artform { width: 520px; }
.c-af { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.c-af .modal-body { gap: 14px; }
.c-af-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.c-af-field .field { width: 100%; }
.c-af-field[hidden] { display: none; }
.c-af-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; }

/* Export */
.c-export { width: 760px; }
.c-ex-slot { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.c-ex-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 28px 20px; display: flex; flex-direction: column; gap: 18px; }
.c-ex-formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.c-ex-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--r-card); text-align: left; border: 1px solid var(--card-line); background: #FFFFFF; transition: border-color .15s ease, background-color .15s ease; }
.c-ex-card.on { border: 2px solid var(--accent); background: var(--sel-card); padding: 15px; }
.c-ex-card .dot { flex: 0 0 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--mute-ring); }
.c-ex-card.on .dot { border: 6px solid var(--accent); }
.c-ex-card b { font-weight: 700; font-size: 16px; }
.c-ex-card span.stack span { font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.c-ex-col { padding: 4px 10px; border-radius: var(--r-control); background: var(--field); font-size: 13px; }
.c-ex-warn { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--warn-bg); font-size: 14px; line-height: 1.45; }
.c-ex-warn b { color: var(--warn); font-weight: 700; }
.c-ex-warn .btn-link { white-space: nowrap; }
.c-ex-done { padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.c-ex-done b { font-size: 18px; font-weight: 600; }
.c-ex-done .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; }
.c-ex-done .btn { margin-top: 6px; }

/* ---------------------------------------------------------------------------------------------------------
   Page viewer (docview.js): the side panel and the Document view
   --------------------------------------------------------------------------------------------------------- */
.dv { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dv-head { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 14px; }
.dv-tools { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 0 16px 8px; flex-wrap: wrap; }
.dv-pager > button { height: 26px; padding: 0 10px; font-size: 12.5px; }
.dv-zoom { display: flex; align-items: center; gap: 4px; }
.dv-btn {
  flex: 0 0 28px; width: 28px; height: 28px; padding: 0; border-radius: 6px; border: 1px solid var(--control-line); background: #FFFFFF; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
}
.dv-btn:hover:not(:disabled) { background: var(--field); }
.dv-btn:disabled { opacity: 0.4; }
.dv-zoom-label { min-width: 44px; text-align: center; font-size: 12.5px; color: var(--text-2); }
.dv-fit { height: 28px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--control-line); background: #FFFFFF; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.dv-fit:hover { background: var(--field); }
.dv-float { position: absolute; top: 12px; right: 18px; z-index: 5; padding: 4px; display: flex; align-items: center; gap: 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 1px 6px rgba(15, 20, 25, 0.18); }
.dv-page-label { padding-left: 6px; font-size: 13px; white-space: nowrap; }
.dv-cont .dv-sheet + .dv-sheet { margin-top: 18px; }

.dv-scroll { position: relative; flex: 1; min-height: 0; overflow: auto; padding: 8px 16px 16px; overscroll-behavior: contain; }
.dv-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dv-full .dv-scroll { background: var(--doc-bg); padding: 24px; }
.dv-sheet { position: relative; width: calc(var(--dv-z, 1) * 100%); margin: 0 auto; background: #FFFFFF; border-radius: 4px; box-shadow: var(--shadow-page); }
.dv-full .dv-sheet { width: min(calc(var(--dv-z, 1) * 100%), calc(var(--dv-z, 1) * var(--dv-max, 100%))); border-radius: 0; box-shadow: 0 2px 10px rgba(15, 20, 25, 0.14); }
.dv-img { display: block; width: 100%; height: auto; border-radius: inherit; }
.dv-sheet.loading { background: linear-gradient(90deg, var(--field) 0%, #FAFBFB 50%, var(--field) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.dv-sheet.loading .dv-img { visibility: hidden; }
.dv-failure { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.dv-layer { position: absolute; inset: 0; pointer-events: none; }
.dv-sheet { cursor: grab; }
.dv-scroll.panning, .dv-scroll.panning * { cursor: grabbing !important; user-select: none; }

.dv-zone {
  position: absolute; box-sizing: border-box; padding: 0; margin: 0; font: inherit; border: 2.5px solid var(--zc); border-radius: 6px; background: var(--zf);
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
  --zc: var(--accent); --zt: var(--accent); --zf: rgba(10, 99, 242, 0.07);
}
.dv-zone.tone-ok { --zc: var(--ok); --zt: var(--ok); --zf: transparent; }
.dv-zone.tone-warn { --zc: var(--warn-ring); --zt: var(--warn); --zf: transparent; }
.dv-zone.tone-bad { --zc: var(--bad-ring); --zt: var(--bad); --zf: transparent; }
.dv-zone.tone-mute { --zc: var(--mute-ring); --zt: var(--muted); --zf: transparent; }
.dv-zone.dashed { border-style: dashed; border-width: 2px; }
.dv-full .dv-zone { border-width: 2px; }
.dv-full .dv-zone.sel { border-width: 3px; --zf: rgba(10, 99, 242, 0.08); }
button.dv-zone { pointer-events: auto; cursor: pointer; }
button.dv-zone:hover { background: color-mix(in srgb, var(--zc) 9%, transparent); }
button.dv-zone.sel:hover { background: rgba(10, 99, 242, 0.12); }
.dv-zone.hot { background: rgba(10, 99, 242, 0.14); box-shadow: 0 0 0 3px rgba(10, 99, 242, 0.25); }
.dv-tag {
  position: absolute; top: -12px; left: 10px; padding: 3px 9px; border-radius: 6px; background: var(--zt); color: #FFFFFF; font-size: 12px; font-weight: 700;
  white-space: nowrap; line-height: 1.3; pointer-events: none; text-align: left;
}
.dv-panel .dv-tag { top: -11px; padding: 2px 8px; }
.dv-zone.tag-in .dv-tag { top: 5px; }

.dv-mark {
  position: absolute; box-sizing: border-box; pointer-events: auto; border: 1.5px solid rgba(21, 25, 29, 0.5); border-radius: 3px; background: rgba(255, 196, 0, 0.22);
  transition: opacity .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.dv-layer.has-hot .dv-mark:not(.hot) { opacity: 0.35; }
.dv-mark.hot { border: 2px solid var(--dark); background: rgba(255, 196, 0, 0.5); box-shadow: 0 0 0 3px rgba(21, 25, 29, 0.14); }
.dv-pins { position: absolute; transform: translate(4px, -50%); display: flex; align-items: center; pointer-events: auto; transition: opacity .15s ease; }
.dv-layer.has-hot .dv-pins:not(.hot) { opacity: 0.35; }
.dv-badge {
  flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%; background: var(--dark); color: #FFFFFF; font-size: 8.5px; font-weight: 700; letter-spacing: -0.02em;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1.5px #FFFFFF; transition: transform .15s ease;
}
.dv-badge + .dv-badge { margin-left: -5px; }
.dv-badge.l3 { font-size: 7px; }
.dv-badge.l4 { font-size: 6px; letter-spacing: -0.04em; }
.dv-badge.hot { transform: scale(1.2); position: relative; z-index: 1; }
.dv-panel .dv-badge { flex-basis: 13px; width: 13px; height: 13px; font-size: 7px; box-shadow: 0 0 0 1px #FFFFFF; }
.dv-panel .dv-badge + .dv-badge { margin-left: -4px; }
.dv-panel .dv-badge.l3 { font-size: 5.5px; }
.dv-panel .dv-badge.l4 { font-size: 4.5px; }

/* ---------------------------------------------------------------------------------------------------------
   Smaller windows, reduced motion
   --------------------------------------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .c-nav { flex-basis: 248px; }
  .c-pagecards { flex-basis: 288px; }
  .c-settings { flex-basis: 296px; }
  .c-article, .c-bar { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 980px) {
  .c-head { padding: 0 16px; }
  .c-progress .progress { width: 80px; }
  .c-tabsbar { padding: 0 16px; gap: 20px; }
  .c-doc, .c-doc-toggle { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .c-app *, .c-app *::before, .c-app *::after, .dv, .dv *, .c-s-list, .c-split::after, .c-split::before { transition-duration: 0.01ms !important; animation: none !important; scroll-behavior: auto !important; }
}
