@import url('./default-brand.generated.css');
/* Production states and report charter retained for the live Atelier. */
/* Lot V (02/10/2026): the Atelier, after the validated mock-ups
   (~/echange/lot-V-maquettes, atelier.css). Application tokens only; the
   preview of the document follows the client charter of lot T (slate,
   Arial). The large titles keep the serif; « Atelier » is in Jost like
   « Assistant ». Narrow columns: text to the left (Jean-Charles's rule). */

.atelier-view { padding-bottom: 32px; }
.atelier-root { max-width: 1320px; }
.atelier-page { display: grid; gap: 0; }
.atelier-ic { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; flex: none; vertical-align: -3px; margin-right: 6px; }
.atelier-muted { color: var(--tx-3); font-size: 12.5px; }
.atelier-note { font-size: 12.5px; color: var(--tx-3); }
.atelier-note b { color: var(--tx-2); }
/* Lot W2 (X-8): why « Lancer » is greyed, and the way to write without a file. */
.atelier-run-why { font-size: 12.5px; color: var(--tx-2); }
.atelier-run-why a { color: var(--accent-text, var(--accent)); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.atelier-link { color: var(--accent-text); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; }

/* Header: « Atelier » in Jost, like « Assistant » (lot T). */
.atelier-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.atelier-crumbs { margin-bottom: 4px; font-size: 12.5px; color: var(--tx-3); }
.atelier-crumbs a { color: var(--tx-3); text-decoration: none; }
.atelier-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.atelier-title h1 { font-family: 'Jost', var(--sans); font-size: 28px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.atelier-title p { color: var(--tx-3); font-size: 13.5px; margin: 0; }
.atelier-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.atelier-badges { display: flex; gap: 6px; flex-wrap: wrap; margin: -8px 0 14px; }
.atelier-pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--idle-bg); border: 1px solid var(--idle-line); color: var(--idle); }
.atelier-pill.is-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.atelier-pill.is-ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.atelier-error { margin-bottom: 14px; padding: 10px 14px; border-radius: 11px; border: 1px solid var(--err-line); background: var(--err-bg); color: var(--err); font-size: 13px; }

/* Bases */
.atelier-bases { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 8px 10px; }
.atelier-bases-head { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tx-3); padding: 4px 4px 6px; }
.atelier-base-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.atelier-base { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 9px; cursor: pointer; }
.atelier-base.is-on { background: var(--accent-soft); }
.atelier-base-name { display: grid; font-size: 13.5px; font-weight: 600; }
.atelier-base-name small { font-size: 12px; color: var(--tx-3); font-weight: 400; }

/* Dropped files */
.atelier-files { display: grid; gap: 8px; margin-top: 14px; }
.atelier-file { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.atelier-file-type { grid-row: span 3; width: 38px; height: 44px; border-radius: 6px; border: 1px solid var(--accent-line); background: #fffaf1; display: grid; place-items: end center; padding-bottom: 5px; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; color: var(--accent-text); }
.atelier-file-type.is-pdf { color: #a1382c; }
.atelier-file-type.is-xlsx, .atelier-file-type.is-csv { color: #2f6b45; }
.atelier-file-type.is-docx { color: #2f4f7a; }
.atelier-file-name { font-weight: 600; font-size: 13.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.atelier-file-x { grid-row: span 2; width: 28px; height: 28px; border-radius: 8px; border: 0; background: none; color: var(--tx-3); font-size: 14px; cursor: pointer; }
.atelier-file-x:hover { background: var(--card-2); }
.atelier-file-meta { grid-column: 2; font-size: 12px; color: var(--tx-3); }
.atelier-ok { color: var(--ok); font-weight: 600; }
.atelier-file-del { grid-column: 2 / -1; font-size: 12px; color: var(--tx-3); }
.atelier-file-fix { grid-column: 2 / -1; font-size: 12.5px; color: var(--tx-2); margin-top: 4px; }
.atelier-file.is-err { border-color: var(--err-line); background: linear-gradient(90deg, var(--err-bg), #fff 70%); }
.atelier-file.is-err .atelier-file-meta { color: var(--err); font-weight: 500; }
.atelier-file.is-warn { border-color: var(--warn-line); background: linear-gradient(90deg, var(--warn-bg), #fff 70%); }
.atelier-file.is-warn .atelier-file-meta { color: #7d4f1e; font-weight: 500; }
.atelier-files-sum { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--tx-3); margin-top: 8px; }
.atelier-files-sum b { color: var(--tx-2); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Simultaneous users: the queued or running request, followed by the page */
.atelier-runcard { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--mode-general-line); background: var(--mode-general-soft); color: var(--mode-general); }
.atelier-runcard b { font-size: 14px; }
.atelier-runcard p { margin: 2px 0 0; font-size: 12.5px; color: var(--tx-2); text-align: left; }
.atelier-runcard.is-running { border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok); grid-template-columns: 34px minmax(0, 1fr); }
.atelier-runcard-ic { width: 34px; height: 34px; border-radius: 10px; background: #fff; display: grid; place-items: center; }
.atelier-runcard-ic .atelier-ic { margin: 0; }
.atelier-runcard-ic.is-spin .atelier-ic { animation: atelier-spin 2.4s linear infinite; }
@keyframes atelier-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .atelier-runcard-ic.is-spin .atelier-ic { animation: none; } }
.atelier-file.is-pending { border-style: dashed; background: #fdfbf7; }
.atelier-file.is-pending .atelier-file-meta { color: var(--accent-text); font-weight: 500; }

/* The chosen task and its instruction */
.atelier-pane { margin-top: 16px; border: 1px solid var(--accent-line); border-radius: 14px; background: linear-gradient(180deg, #fffaf1, #fff 70%); padding: 14px 16px; container-type: inline-size; }
.atelier-pane-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.atelier-pane-head h3 { font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-size: 20px; margin: 0; }
.atelier-pane-head span { font-size: 12.5px; color: var(--tx-3); }
.atelier-pane-what { color: var(--tx-2); font-size: 13.5px; margin: 2px 0 0; text-align: left; hyphens: manual; text-wrap: pretty; }
.atelier-opts { display: grid; grid-template-columns: minmax(0, 1fr) 150px 170px; gap: 10px 14px; margin-top: 12px; }
.atelier-field label { display: block; font-size: 11.5px; font-weight: 600; color: var(--tx-3); margin-bottom: 4px; }
.atelier-field label i { font-style: normal; font-weight: 400; }
.atelier-field select { width: 100%; }
.atelier-instruction { width: 100%; min-height: 74px; padding: 9px 11px; border: 1px solid var(--accent-line); border-radius: 10px; background: #fff; font: inherit; font-size: 13.5px; color: var(--tx); resize: vertical; }
.atelier-run { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.atelier-came { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; padding: 9px 14px; border-radius: 11px; border: 1px solid var(--mode-general-line); background: var(--mode-general-soft); color: var(--mode-general); font-size: 13px; }
.atelier-came a { color: var(--mode-general); font-weight: 600; }

/* Governance: the limit, and the orientation for a holder of pack.cyber */
.atelier-limit, .atelier-orient { margin-top: 12px; padding: 12px 14px; border: 1px solid #e3d6c1; border-radius: 12px; background: repeating-linear-gradient(135deg, #fdfaf4 0 10px, #faf5ec 10px 20px); container-type: inline-size; }
.atelier-orient { background: var(--mode-general-soft); border-color: var(--mode-general-line); }
.atelier-limit b, .atelier-orient b { font-size: 14px; }
.atelier-limit p, .atelier-orient p { font-size: 13px; color: var(--tx-2); margin: 4px 0 0; text-align: left; hyphens: manual; }
.atelier-ways { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* Result */
.atelier-result { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.atelier-res-side { display: grid; gap: 14px; position: sticky; top: 12px; }
.atelier-frame { background: #e9e4dc; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.atelier-frame-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 14px; background: var(--card); border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--tx-3); }
.atelier-frame-bar b { color: var(--tx); font-weight: 600; }
.atelier-frame-scroll { padding: 22px 22px 26px; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.atelier-jump { display: none; }
.atelier-toast { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-radius: 11px; background: #2b2118; color: #f3e6d0; font-size: 13px; margin-bottom: 14px; }
.atelier-toast .atelier-link { color: #ffd98a; margin-left: auto; }
.atelier-missing, .atelier-dl { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 14px 16px; box-shadow: var(--sh); }
.atelier-missing h4, .atelier-dl h4 { font-size: 14.5px; margin: 0; }
.atelier-missing { border-color: var(--accent-line); background: linear-gradient(180deg, #fffaf1, #fff 70%); }
.atelier-missing p { font-size: 13px; color: var(--tx-2); margin: 8px 0; text-align: left; }
.atelier-cnt { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 99px; background: var(--accent); color: #fbf6ee; font-size: 12px; font-weight: 700; margin-right: 6px; vertical-align: 1px; }
.atelier-qs { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; }
.atelier-reply { width: 100%; min-height: 96px; padding: 9px 11px; border: 1px solid var(--accent-line); border-radius: 10px; font: inherit; font-size: 13.5px; resize: vertical; }
.atelier-reply-acts { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.atelier-flag { display: grid; grid-template-columns: 20px 1fr; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #fbeee0; border: 1px solid #ecc9a1; color: #7d4f1e; font-size: 12.5px; }
.atelier-dl-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.atelier-dl .atelier-note { margin: 8px 0 0; }
.atelier-gone-note { margin: 8px 0 0; padding: 7px 10px; border-radius: 8px; background: var(--idle-bg); border: 1px solid var(--idle-line); font-size: 12.5px; color: var(--tx-2); }
.atelier-tab-note { display: flex; gap: 4px; align-items: center; margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok); font-size: 13px; font-weight: 600; }
.atelier-used { display: grid; gap: 6px; margin-top: 8px; }
.atelier-used div { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--tx-2); }
.atelier-used div span:first-child { overflow-wrap: anywhere; }
.atelier-used div span:last-child { color: var(--tx-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.atelier-filed { border: 1px solid var(--ok-line); background: linear-gradient(180deg, var(--ok-bg), #fff 75%); border-radius: 14px; padding: 14px 16px; }
.atelier-filed h4 { font-size: 14.5px; color: var(--ok); display: flex; align-items: center; margin: 0; }
.atelier-filed dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 10px 0; font-size: 13px; }
.atelier-filed dt { color: var(--tx-3); }
.atelier-filed dd { margin: 0; font-weight: 500; }
.atelier-valid { display: grid; grid-template-columns: 20px 1fr; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--mode-general-soft); border: 1px solid var(--mode-general-line); color: var(--mode-general); font-size: 12.5px; }

/* The preview of the document: the client charter (lot T, 01/10) */
.atelier-sheet { --sheet-slate: var(--torus-default-primary); --sheet-slate-pale: var(--torus-default-pale); --sheet-grey: var(--torus-default-grey); --sheet-grey-2: var(--torus-default-grey-light); --sheet-rule: var(--torus-default-rule); --sheet-fill: #F2F2F2;
  position: relative; width: 640px; max-width: 100%; min-height: 900px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.16); padding: 64px 52px 70px; font-family: Arial, 'Liberation Sans', Helvetica, sans-serif; color: #000; font-size: 12.4px; line-height: 1.45; }
.atelier-sheet-class { position: absolute; top: 0; left: 0; right: 0; height: 17px; background: var(--sheet-slate); color: var(--sheet-on-primary, #fff); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; }
.atelier-sheet-hd { position: absolute; top: 28px; left: 52px; right: 52px; display: flex; justify-content: space-between; padding-bottom: 5px; border-bottom: 1px solid var(--sheet-rule); font-size: 9.5px; color: var(--sheet-grey); }
.atelier-sheet-ft { position: absolute; bottom: 22px; left: 52px; right: 52px; display: flex; justify-content: space-between; gap: 10px; padding-top: 5px; border-top: 1px solid var(--sheet-rule); font-size: 9px; color: var(--sheet-grey); }
.atelier-sheet-prepared { color: var(--sheet-grey-2); white-space: nowrap; }
.atelier-sheet-draft { position: absolute; top: 46px; right: 52px; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8a6627; }
.atelier-sheet h1 { margin: 14px 0 4px; font-size: 22px; line-height: 1.15; font-weight: 700; color: var(--sheet-slate); letter-spacing: 0; text-wrap: balance; font-family: inherit; }
.atelier-sheet-rule { width: 70px; height: 4px; background: var(--sheet-slate); margin: 6px 0 16px; }
.atelier-sheet-body { counter-reset: atelier-h; }
.atelier-sheet h2 { counter-increment: atelier-h; margin: 18px 0 7px; font-size: 15px; font-weight: 700; color: var(--sheet-slate); letter-spacing: 0; font-family: inherit; }
.atelier-sheet h2::before { content: counter(atelier-h) ".\00a0\00a0"; }
.atelier-sheet h3 { margin: 12px 0 5px; font-size: 13px; font-weight: 700; color: var(--sheet-slate); font-family: inherit; }
.atelier-sheet p { margin: 0 0 7px; text-align: justify; hyphens: auto; hyphenate-limit-chars: 10 4 4; }
.atelier-sheet ul, .atelier-sheet ol { margin: 0 0 8px; padding-left: 18px; }
.atelier-sheet li { margin-bottom: 3px; text-align: justify; hyphens: auto; }
.atelier-t { width: 100%; border-collapse: collapse; margin: 4px 0 8px; font-size: 11px; line-height: 1.35; }
.atelier-t th { background: var(--sheet-slate); color: var(--sheet-on-primary, #fff); font-weight: 700; text-align: left; padding: 5px 7px; }
.atelier-t td { padding: 5px 7px; border-bottom: 1px solid var(--sheet-rule); vertical-align: top; text-align: left; hyphens: manual; }
.atelier-t tbody tr:nth-child(even) td { background: var(--sheet-fill); }
.atelier-formula { color: var(--sheet-grey-2); font-style: italic; }
.atelier-todo { background: #FFF2CC; border-bottom: 1.5px dashed #c79a2c; padding: 0 2px; color: #000; }
.atelier-qn { font-size: 8.5px; font-weight: 700; color: #8a6627; margin-left: 1px; }
.atelier-filled { background: #e5f1e8; border-bottom: 1.5px solid #8fbf9d; padding: 0 2px; border-radius: 2px; }
.atelier-cite { font-size: 8.5px; color: var(--sheet-slate); font-weight: 700; margin-left: 1px; }
.atelier-sens { background: #fbeee0; box-shadow: inset 2px 0 0 #d39a56; padding: 1px 3px; }
.atelier-sheet-box { margin: 10px 0; padding: 8px 11px; background: var(--sheet-slate-pale); border-left: 4px solid var(--sheet-slate); font-size: 11.5px; }
.atelier-sheet-box b { display: block; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--sheet-slate); margin-bottom: 2px; }

/* History */
.atelier-hist { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.atelier-runs { width: 100%; border-collapse: collapse; font-size: 13px; }
.atelier-runs th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--tx-3); text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.atelier-runs td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.atelier-runs td:nth-child(3) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.atelier-run-title { font-weight: 600; color: var(--tx); text-decoration: none; }
.atelier-sub { font-size: 12px; color: var(--tx-3); margin-top: 2px; }
.atelier-pages { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 10px; font-size: 12.5px; color: var(--tx-3); }

/* The Assistant (screen e): the joined file and the Atelier's card */
.chat-attach-button { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--tx-2); cursor: pointer; }
/* The task selector stays next to the clip (the row spreads its groups). */
.composer-row > .chat-attach-button { margin-right: 6px; }
.composer-row > .chat-attach-button ~ .chat-task-anchor { margin-right: auto; }
.chat-attach-button:hover { border-color: var(--accent-line); color: var(--accent-text); }
.chat-attachment { display: inline-flex; align-items: center; gap: 8px; margin: 10px 12px 0; padding: 5px 9px 5px 6px; border: 1px solid var(--line); border-radius: 10px; background: #fdfbf7; font-size: 12.5px; }
.chat-attachment b { font-weight: 600; }
.chat-attachment small { color: var(--tx-3); }
.chat-attachment-type { width: 22px; height: 26px; border-radius: 4px; border: 1px solid var(--accent-line); display: grid; place-items: end center; font-size: 7px; font-weight: 700; color: #a1382c; padding-bottom: 2px; background: #fff; }
.chat-attachment-x { border: 0; background: none; color: var(--tx-3); cursor: pointer; font-size: 12px; }
.chat-atelier-card { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin: 0 0 10px; padding: 12px 14px; border: 1px solid var(--accent-line); border-radius: 12px; background: linear-gradient(180deg, #fffaf1, #fff 75%); }
.chat-atelier-copy { min-width: 0; flex: 1 1 320px; }
.chat-atelier-title { font-weight: 600; font-size: 14px; margin: 0; }
.chat-atelier-text { font-size: 13px; color: var(--tx-2); margin: 2px 0 0; max-width: 62ch; }
.chat-atelier-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chat-atelier-remove { border: 0; background: none; color: var(--tx-3); font-size: 13px; cursor: pointer; }

/* Deliverables: raising an Atelier document's class (upward only) */
.deliverable-class-select { font: inherit; font-size: 13px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); background: #fff; }

@container (min-width: 30em) {
  .atelier-pane-what, .atelier-limit p, .atelier-orient p { text-align: justify; hyphens: auto; hyphenate-limit-chars: 10 4 4; }
}

@media (max-width: 1100px) {
  .atelier-result, .atelier-hist, .atelier-side { grid-template-columns: minmax(0, 1fr); }
  .atelier-res-side { position: static; }
}

/* Phone (390 px) */
@media (max-width: 600px) {
  .atelier-title h1 { font-size: 26px; }
  .atelier-title p { font-size: 13px; flex-basis: 100%; }
  .atelier-head .atelier-acts { display: none; }
  .atelier-stage { padding: 18px 14px 16px; border-radius: 12px; }
  .atelier-stage h2 { font-size: 22px; }
  .atelier-switch { margin: 14px auto 10px; }
  .atelier-drop { padding: 20px 14px 18px; }
  .atelier-drop b { font-size: 14.5px; }
  .atelier-tasks { flex-wrap: wrap; overflow: visible; padding: 10px; gap: 6px; }
  .atelier-tasks-group { flex-basis: 100%; padding: 2px 2px 0; }
  .atelier-tasks-sep { display: none; }
  .atelier-task { padding: 6px 11px; font-size: 13px; }
  .atelier-opts { grid-template-columns: 1fr 1fr; }
  .atelier-opts .atelier-field:first-child { grid-column: 1 / -1; }
  .atelier-frame { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .atelier-frame-scroll { padding: 12px 10px 16px; }
  .atelier-sheet { width: 100%; min-height: 0; padding: 44px 18px 50px; font-size: 12.5px; }
  .atelier-sheet-hd, .atelier-sheet-ft { left: 18px; right: 18px; }
  .atelier-sheet-hd { top: 22px; }
  .atelier-sheet-draft { display: none; }
  .atelier-sheet h1 { font-size: 19px; margin-top: 10px; }
  .atelier-sheet p, .atelier-sheet li { text-align: left; hyphens: manual; }
  .atelier-jump { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 12px; border: 1px solid var(--accent-line); border-radius: 12px; background: #fffaf1; font-size: 13px; color: var(--tx); text-decoration: none; }
  .atelier-jump b { color: var(--accent-text); white-space: nowrap; }
  .atelier-hide-m { display: none; }
  .atelier-reply-acts { flex-direction: column; align-items: stretch; }
}

/* Human names are entered before the draft, including on a phone. */
.atelier-naming { margin-top: 16px; padding: 16px; border: 1px solid var(--mode-general-line); border-radius: 12px; background: var(--mode-general-soft); min-width: 0; }
.atelier-naming h3 { margin: 0 0 8px; }
.atelier-naming p { font-size: 13px; overflow-wrap: anywhere; }
.atelier-naming-row { border-top: 1px solid var(--mode-general-line); padding: 14px 0; min-width: 0; }
.atelier-naming-row blockquote { margin: 8px 0; padding-left: 10px; border-left: 2px solid var(--mode-general-line); white-space: pre-wrap; overflow-wrap: anywhere; }
.atelier-naming-row label { display: block; font-size: 13px; margin-bottom: 6px; }
.atelier-naming-row input { box-sizing: border-box; width: 100%; min-width: 0; }
.atelier-naming-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.atelier-naming-rows { display: grid; grid-template-columns: minmax(0, 1fr); }

/* Keep intrinsic drop/input widths inside the phone's viewport. */
.atelier-page, .atelier-main { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.atelier-stage { min-width: 0; }
.atelier-used div { flex-wrap: wrap; min-width: 0; }
.atelier-used div span:last-child { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .atelier-drop.is-compact { grid-auto-flow: row; grid-template-columns: 34px minmax(0, 1fr); justify-content: stretch; }
  .atelier-drop.is-compact .atelier-note,
  .atelier-drop.is-compact .atelier-drop-deleted { grid-column: 1 / -1; }
  .atelier-drop-deleted { max-width: 100%; white-space: normal; }
}

/* Validated etabli proposal: scoped to Atelier. Fonts are already local in forge-bronze.css. */
.atelier-page 500;600;700&family=Newsreader:opsz, .atelier-page wght@6..72, .atelier-page 400;6..72, 500&display=swap');



.atelier-page, .atelier-page * { box-sizing: border-box; }
.atelier-page { font-family: var(--font-sans); color: var(--tx); background: var(--paper); font-size: 13.5px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
.atelier-page [hidden] { display: none !important; }
.atelier-page button { font: inherit; color: inherit; cursor: pointer; }
.atelier-page .serif { font-family: var(--font-serif); }
.atelier-page .ic { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:where(.atelier-page) :focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }
.atelier-page .t-top { display: flex; align-items: center; gap: 14px; height: 58px; padding: 0 26px; border-bottom: 1px solid var(--line); background: var(--paper); }
.atelier-page .t-top .logo { font-size: 21px; font-weight: 500; letter-spacing: -.01em; }
.atelier-page .t-top .org { display: flex; align-items: center; gap: 8px; padding-left: 14px; border-left: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--tx-2); }
.atelier-page .t-top .org i { width: 6px; height: 6px; border-radius: 99px; background: var(--ok); }
.atelier-page .t-top .r { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.atelier-page .t-top .chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); font-size: 12px; font-weight: 600; }
.atelier-page .t-top .av { width: 26px; height: 26px; border-radius: 99px; background: var(--cream-300); color: var(--h24-ink); display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.atelier-page .at-wrap { max-width: 1320px; margin: 0 auto; padding: 26px 28px 40px; }
.atelier-page .at-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; margin-bottom: 18px; }
.atelier-page .at-head .crumbs { font-size: 12px; color: var(--tx-3); margin-bottom: 4px; }
.atelier-page .at-title { display: flex; align-items: baseline; gap: 14px; }
.atelier-page .at-title h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.atelier-page .at-title p { margin: 0; color: var(--tx-3); }
.atelier-page .at-head .acts { display: flex; gap: 8px; }
.atelier-page .btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 600; color: var(--tx); text-decoration: none; white-space: nowrap; }
.atelier-page .btn:hover { border-color: var(--line-pane); }
.atelier-page .btn.primary { background: var(--bronze); border-color: var(--bronze); color: var(--on-bronze); height: 42px; padding: 0 18px; font-size: 14px; border-radius: 11px; }
.atelier-page .btn.primary:hover { box-shadow: var(--sh-lift); }
.atelier-page .btn.primary[disabled] { background: var(--bronze-disabled); border-color: var(--bronze-disabled); cursor: not-allowed; box-shadow: none; }
.atelier-page .btn .ic { width: 15px; height: 15px; }
.atelier-page .at-grid { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 20px; align-items: start; }
.atelier-page .bench { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--sh); overflow: clip; }
.atelier-page .bench-hd { padding: 24px 28px 6px; }
.atelier-page .bench-hd h2 { margin: 0; font-family: var(--font-serif); font-weight: 500; font-size: 26px; letter-spacing: -.005em; }
.atelier-page .bench-hd p { margin: 4px 0 0; color: var(--tx-3); }
.atelier-page .station { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 16px; padding: 18px 28px 4px; position: relative; }
.atelier-page .station::before { content: ""; position: absolute; left: 44px; top: 54px; bottom: -14px; width: 1px; background: repeating-linear-gradient(180deg, var(--line-pane) 0 4px, transparent 4px 8px); }
.atelier-page .station:last-of-type::before { display: none; }
.atelier-page .num { width: 34px; height: 34px; border-radius: 99px; border: 1.5px solid var(--line-pane); background: var(--card); display: grid; place-items: center; font-family: var(--font-serif); font-size: 15px; color: var(--accent-text); position: relative; z-index: 1; }
.atelier-page .station.done .num { background: var(--bronze); border-color: var(--bronze); color: var(--on-bronze); }
.atelier-page .station.done .num .n { display: none; }
.atelier-page .station:not(.done) .num .ic { display: none; }
.atelier-page .st-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 34px; padding-top: 6px; }
.atelier-page .st-hd h3 { margin: 0; font-size: 15px; font-weight: 600; }
.atelier-page .st-hd h3 small { font-weight: 400; color: var(--tx-3); font-size: 12.5px; margin-left: 8px; }
.atelier-page .st-body { grid-column: 2; padding: 10px 0 18px; }
.atelier-page .seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 99px; background: var(--cream-50); }
.atelier-page .seg button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border: 0; border-radius: 99px; background: none; font-size: 12.5px; font-weight: 500; color: var(--tx-2); }
.atelier-page .seg button.on { background: var(--bronze); color: var(--on-bronze); font-weight: 600; }
.atelier-page .seg .ic { width: 14px; height: 14px; }
.atelier-page .drop { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 18px; padding: 22px 24px; border: 2px dashed var(--line-drop); border-radius: var(--radius-xl);
  background-color: var(--cream-100);
  background-image: radial-gradient(circle, var(--mat-dot) 1px, transparent 1.4px);
  background-size: 18px 18px; background-position: 9px 9px; transition: background-color .15s, border-color .15s; cursor: pointer; }
.atelier-page .drop:hover, .atelier-page .drop.over { border-color: var(--accent-text); background-color: var(--cream-400); }
.atelier-page .drop .pic { width: 52px; height: 52px; border-radius: var(--radius-xl); background: var(--cream-300); display: grid; place-items: center; color: var(--accent-text); }
.atelier-page .drop .pic .ic { width: 24px; height: 24px; stroke-width: 1.6; }
.atelier-page .drop b { display: block; font-size: 15.5px; font-weight: 600; }
.atelier-page .drop b u { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.atelier-page .drop .lim { font-size: 12.5px; color: var(--tx-3); margin-top: 3px; }
.atelier-page .drop .badges { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.atelier-page .pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.atelier-page .pill .ic { width: 13px; height: 13px; }
.atelier-page .pill.h24 { background: var(--cream-300); color: var(--h24-ink); }
.atelier-page .pill.idle { background: var(--idle-bg); color: var(--tx-3); border: 1px solid var(--idle-line); font-weight: 500; }
.atelier-page .pill.ok { background: var(--ok-bg); color: var(--ok); }
.atelier-page .drop.compact { padding: 12px 16px; grid-template-columns: auto minmax(0, 1fr) auto; }
.atelier-page .drop.compact .pic { width: 36px; height: 36px; border-radius: var(--radius-md); }
.atelier-page .drop.compact .pic .ic { width: 18px; height: 18px; }
.atelier-page .drop.compact b { font-size: 13.5px; }
.atelier-page .drop.compact .badges { flex-direction: row; }
.atelier-page .drop.compact .pill.idle { display: none; }
.atelier-page .drop.compact b, .atelier-page .drop.compact .lim { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atelier-page .bases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.atelier-page .base { display: grid; grid-template-columns: 30px minmax(0, 1fr) 18px; gap: 1px 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); text-align: left; }
.atelier-page .base .i { grid-row: span 2; width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--card-2); display: grid; place-items: center; color: var(--accent-text); }
.atelier-page .base b { font-size: 13px; font-weight: 600; }
.atelier-page .base small { grid-column: 2; font-size: 12px; color: var(--tx-3); }
.atelier-page .base .ck { grid-row: span 2; grid-column: 3; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-field); display: grid; place-items: center; color: transparent; }
.atelier-page .base.on { border-color: var(--line-pane); background: var(--cream-100); }
.atelier-page .base.on .ck { background: var(--bronze); border-color: var(--bronze); color: var(--on-bronze); }
.atelier-page .base .ck .ic { width: 12px; height: 12px; stroke-width: 2.4; }
.atelier-page .files { display: grid; gap: 8px; margin-top: 10px; }
.atelier-page .fl { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 30px; gap: 2px 12px; align-items: center; padding: 10px 10px 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); animation: atelier-bench-in .25s ease-out; }
@keyframes atelier-bench-in{ from { opacity: 0; transform: translateY(-4px); } }
.atelier-page .fl .ty { grid-row: span 2; width: 34px; height: 42px; border-radius: 5px; border: 1px solid var(--line-field); background: var(--cream-100); display: grid; place-items: end center; padding-bottom: 5px; font-size: 9px; font-weight: 700; letter-spacing: .04em; color: var(--accent-text); position: relative; }
.atelier-page .fl .ty::before { content: ""; position: absolute; top: -1px; right: -1px; width: 10px; height: 10px; background: linear-gradient(225deg, var(--card) 50%, var(--line-field) 50%); border-radius: 0 5px 0 0; }
.atelier-page .fl .ty.pdf { color: var(--ty-pdf); }
.atelier-page .fl .ty.xlsx, .atelier-page .fl .ty.csv { color: var(--ty-sheet); }
.atelier-page .fl .ty.docx { color: var(--ty-docx); }
.atelier-page .fl .n { font-weight: 600; font-size: 13.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.atelier-page .fl .m { grid-column: 2; font-size: 12px; color: var(--tx-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.atelier-page .fl .m .okk { color: var(--ok); font-weight: 600; }
.atelier-page .fl .exp { grid-row: span 2; font-size: 12px; color: var(--tx-3); text-align: right; white-space: nowrap; }
.atelier-page .fl .exp b { display: block; color: var(--tx-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.atelier-page .fl .x { grid-row: span 2; width: 30px; height: 30px; border-radius: var(--radius-sm); border: 0; background: none; color: var(--tx-3); display: grid; place-items: center; }
.atelier-page .fl .x:hover { background: var(--card-2); color: var(--tx); }
.atelier-page .files-sum { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: var(--tx-3); margin-top: 8px; }
.atelier-page .files-sum b { color: var(--tx-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.atelier-page .meter { display: inline-flex; align-items: center; gap: 8px; }
.atelier-page .meter i { display: block; width: 90px; height: 5px; border-radius: 99px; background: var(--mat-dot); overflow: hidden; }
.atelier-page .meter i::before { content: ""; display: block; height: 100%; width: var(--g, 30%); background: var(--bronze); transition: width .3s; }
.atelier-page .racks { display: grid; gap: 10px; }
.atelier-page .rack { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--cream-50); padding: 8px; }
.atelier-page .rack-hd { display: flex; align-items: baseline; gap: 10px; padding: 2px 4px 0; }
.atelier-page .rack-hd b { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--nav-label); }
.atelier-page .rack-hd span { font-size: 11.5px; line-height: 1.3; color: var(--tx-3); }
.atelier-page .tools { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 6px; }
.atelier-page .tool { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 2px; padding: 10px 10px 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); text-align: left; transition: border-color .12s, box-shadow .12s, transform .12s; }
.atelier-page .tool:hover { border-color: var(--line-pane); box-shadow: var(--sh-lift); transform: translateY(-1px); }
.atelier-page .tool .ti { width: 28px; height: 28px; margin-bottom: 4px; border-radius: 8px; background: var(--card-2); color: var(--accent-text); display: grid; place-items: center; }
.atelier-page .tool .ti .ic { width: 15px; height: 15px; stroke-width: 1.8; }
.atelier-page .tool b { max-width: 100%; font-size: 13px; font-weight: 600; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atelier-page .tool small { font-size: 11.5px; line-height: 1.3; color: var(--tx-3); }
.atelier-page .tool.on { background: var(--bronze); border-color: var(--bronze); }
.atelier-page .tool.on b, .atelier-page .tool.on small { color: var(--on-bronze); }
.atelier-page .tool.on .ti { background: rgba(251,246,238,.14); color: var(--on-bronze); }
.atelier-page .tool.off { background: var(--idle-bg); border-style: dashed; border-color: var(--idle-line); cursor: not-allowed; }
.atelier-page .tool.off:hover { box-shadow: none; transform: none; }
.atelier-page .tool.off b { color: var(--tx-3); }
.atelier-page .tool .need { position: absolute; top: -7px; right: 8px; height: 16px; padding: 0 6px; border-radius: 99px; background: var(--card); border: 1px solid var(--line-pane); font-size: 10.5px; font-weight: 600; color: var(--h24-ink); line-height: 14px; }
.atelier-page .pane { border: 1px solid var(--line-pane); border-radius: var(--radius-xl); background: linear-gradient(180deg, var(--cream-100), var(--card) 75%); padding: 16px 18px; }
.atelier-page .pane .th { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.atelier-page .pane h4 { margin: 0; font-family: var(--font-serif); font-weight: 500; font-size: 20px; }
.atelier-page .pane .th span { font-size: 12px; color: var(--tx-3); }
.atelier-page .pane .what { color: var(--tx-2); margin: 3px 0 0; }
.atelier-page .opt-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 170px; gap: 10px 14px; margin-top: 12px; }
.atelier-page .f label { display: block; font-size: 11.5px; font-weight: 600; color: var(--tx-3); margin-bottom: 5px; }
.atelier-page .f label i { font-style: normal; font-weight: 400; }
.atelier-page .ta { width: 100%; min-height: 76px; resize: vertical; padding: 9px 11px; border: 1px solid var(--line-field); border-radius: var(--radius-md); background: var(--card); font: inherit; font-size: 13.5px; color: var(--tx); }
.atelier-page .ta::placeholder { color: var(--tx-3); }
.atelier-page .sel { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line-field); border-radius: var(--radius-md); background: var(--card); font: inherit; font-size: 13.5px; color: var(--tx); }
.atelier-page .hints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.atelier-page .hint { height: 26px; padding: 0 10px; border: 1px dashed var(--line-pane); border-radius: 99px; background: var(--card); font-size: 12px; color: var(--tx-2); }
.atelier-page .hint:hover { border-style: solid; color: var(--tx); }
.atelier-page .pane-empty { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px dashed var(--line-pane); border-radius: var(--radius-xl); color: var(--tx-3); background: var(--cream-50); }
.atelier-page .pane-empty .ic { color: var(--accent-text); }
.atelier-page .runbar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 28px; border-top: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(6px); }
.atelier-page .recap { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--tx-3); }
.atelier-page .recap span { display: inline-flex; align-items: center; gap: 6px; }
.atelier-page .recap span::before { content: ""; width: 14px; height: 14px; border-radius: 99px; border: 1.5px solid var(--line-field); flex: none; }
.atelier-page .recap span.ok { color: var(--tx); font-weight: 500; }
.atelier-page .recap span.ok::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center/10px no-repeat; }
.atelier-page .recap span.opt::before { border-style: dashed; }
.atelier-page .runbar .why { font-size: 12px; color: var(--tx-3); text-align: right; margin-top: 4px; }
.atelier-page .runbar .go { display: grid; justify-items: end; }
.atelier-page .shelf { display: grid; gap: 14px; position: sticky; top: 14px; }
.atelier-page .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--sh); padding: 16px 18px; }
.atelier-page .card-hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.atelier-page .card-hd h3 { margin: 0; font-size: 14.5px; font-weight: 600; }
.atelier-page .card-hd a { font-size: 12.5px; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.atelier-page .job { border-color: var(--ok-line); background: linear-gradient(180deg, var(--ok-bg), var(--card) 70%); animation: atelier-bench-in .3s ease-out; }
.atelier-page .job .jt { display: flex; gap: 10px; align-items: center; }
.atelier-page .job .jt b { font-size: 13.5px; }
.atelier-page .job .jt small { display: block; font-size: 12px; color: var(--tx-3); font-weight: 400; }
.atelier-page .job .spin { width: 30px; height: 30px; border-radius: 99px; border: 2px solid var(--ok-line); border-top-color: var(--ok); animation: atelier-bench-spin 1s linear infinite; flex: none; }
.atelier-page .job .spin .ic { display: none; }
.atelier-page .job.ready .spin { animation: none; border-color: var(--ok); background: var(--ok); color: var(--on-bronze); display: grid; place-items: center; }
.atelier-page .job.ready .spin .ic { display: block; width: 16px; height: 16px; stroke-width: 2.4; }
@keyframes atelier-bench-spin{ to { transform: rotate(360deg); } }
.atelier-page .steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; font-size: 12.5px; }
.atelier-page .steps li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; align-items: center; color: var(--tx-3); }
.atelier-page .steps li::before { content: ""; width: 9px; height: 9px; margin-left: 3px; border-radius: 99px; border: 1.5px solid var(--line-field); }
.atelier-page .steps li.now { color: var(--tx); font-weight: 600; }
.atelier-page .steps li.now::before { border-color: var(--ok); background: var(--ok-bg); box-shadow: 0 0 0 3px var(--ok-bg); }
.atelier-page .steps li.done { color: var(--ok); }
.atelier-page .steps li.done::before { background: var(--ok); border-color: var(--ok); }
.atelier-page .job .leave { margin-top: 10px; font-size: 12px; color: var(--tx-3); }
.atelier-page .deliv { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 1px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.atelier-page .deliv:first-of-type { border-top: 0; }
.atelier-page .deliv:hover b { color: var(--accent-text); }
.atelier-page .thumb { grid-row: span 2; width: 40px; height: 50px; border-radius: 3px; background: var(--card); border: 1px solid var(--line-field); box-shadow: 0 1px 3px rgba(36,30,22,.08); position: relative; overflow: hidden; }
.atelier-page .thumb::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--doc-bleu); }
.atelier-page .thumb::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 26px; background: repeating-linear-gradient(180deg, var(--line) 0 2px, transparent 2px 5px); }
.atelier-page .thumb.sheet::after { background: linear-gradient(var(--doc-bleu), var(--doc-bleu)) 0 0/100% 4px no-repeat, repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px 5px), repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 9px); }
.atelier-page .thumb .tk { position: absolute; right: 3px; bottom: 3px; font-size: 7px; font-weight: 700; letter-spacing: .03em; color: var(--ty-docx); }
.atelier-page .thumb.sheet .tk { color: var(--ty-sheet); }
.atelier-page .deliv b { font-size: 13px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.atelier-page .deliv small { font-size: 12px; color: var(--tx-3); }
.atelier-page .deliv.new { animation: atelier-bench-in .35s ease-out; }
.atelier-page .deliv.new b::after { content: "Nouveau"; margin-left: 8px; padding: 1px 6px; border-radius: 99px; background: var(--ok-bg); color: var(--ok); font-size: 10.5px; font-weight: 600; vertical-align: 1px; }
.atelier-page .rules { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 12.5px; color: var(--tx-2); }
.atelier-page .rules li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; }
.atelier-page .rules li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.atelier-page .rules .todo { background: var(--doc-todo); padding: 0 3px; border-bottom: 1.5px dashed var(--accent-text); color: var(--tx); }
@media (max-width: 1100px){.atelier-page .at-grid { grid-template-columns: minmax(0, 1fr); }
.atelier-page .shelf { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.atelier-page .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }

}
@media (max-width: 600px){.atelier-page .at-wrap { padding: 16px 16px 32px; }
.atelier-page .at-title { flex-wrap: wrap; }
.atelier-page .at-title p { flex-basis: 100%; }
.atelier-page .bench-hd { padding: 18px 16px 4px; }
.atelier-page .bench-hd h2 { font-size: 22px; }
.atelier-page .station { grid-template-columns: 28px minmax(0, 1fr); gap: 0 10px; padding: 14px 16px 2px; }
.atelier-page .station::before { left: 30px; }
.atelier-page .num { width: 28px; height: 28px; font-size: 13px; }
.atelier-page .st-body { grid-column: 1 / -1; }
.atelier-page .st-hd { flex-wrap: wrap; }
.atelier-page .drop, .atelier-page .drop.compact { grid-template-columns: auto minmax(0, 1fr); }
.atelier-page .drop .badges { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
.atelier-page .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.atelier-page .bases, .atelier-page .opt-row { grid-template-columns: minmax(0, 1fr); }
.atelier-page .runbar { flex-direction: column; align-items: stretch; padding: 12px 16px; }
.atelier-page .runbar .go { justify-items: stretch; }
.atelier-page .runbar .btn.primary { justify-content: center; }
.atelier-page .runbar .why { text-align: center; }

}
.atelier-page .rs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 24px; margin-bottom: 18px; }
.atelier-page .rs-head h1 { margin: 2px 0 8px; font-family: var(--font-serif); font-weight: 500; font-size: 28px; letter-spacing: -.01em; line-height: 1.15; }
.atelier-page .rs-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.atelier-page .pill.soft { background: var(--card-2); color: var(--tx-3); }
.atelier-page .rs-badges a { margin-left: 6px; font-size: 12.5px; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.atelier-page .rs-acts { display: flex; gap: 8px; align-items: center; flex: none; }
.atelier-page .split { display: inline-flex; }
.atelier-page .split .btn.primary { border-radius: 11px 0 0 11px; }
.atelier-page .split .btn.alt { height: 42px; border-radius: 0 11px 11px 0; border-left: 1px solid rgba(251,246,238,.25); background: var(--bronze); border-color: var(--bronze); color: var(--on-bronze); padding: 0 12px; }
.atelier-page .rs-grid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 20px; align-items: start; }
.atelier-page .desk { background: var(--frame); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: clip; }
.atelier-page .desk-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 9px 14px; background: var(--card); border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--tx-3); }
.atelier-page .legend { display: flex; gap: 14px; flex-wrap: wrap; }
.atelier-page .legend span { display: inline-flex; align-items: center; gap: 6px; }
.atelier-page .legend i { width: 14px; height: 10px; border-radius: 2px; }
.atelier-page .legend .lf { background: var(--filled); border-bottom: 1.5px solid var(--filled-line); }
.atelier-page .legend .ls { background: var(--part-bg); box-shadow: inset 2px 0 0 var(--sens-mark); }
.atelier-page .legend .lt { background: var(--doc-todo); border-bottom: 1.5px dashed var(--accent-text); }
.atelier-page .zoom { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 99px; padding: 2px; }
.atelier-page .zoom button { width: 26px; height: 24px; border: 0; background: none; border-radius: 99px; color: var(--tx-2); }
.atelier-page .zoom button:hover { background: var(--card-2); }
.atelier-page .zoom b { min-width: 42px; text-align: center; color: var(--tx-2); font-variant-numeric: tabular-nums; }
.atelier-page .desk-scroll { padding: 26px 22px 30px; display: grid; justify-items: center; }
.atelier-page .sheet-wrap { position: relative; transform-origin: top center; transition: transform .2s; }
.atelier-page article.sheet { --c: var(--doc-charte); position: relative; width: 640px; min-height: 900px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.16); padding: 64px 52px 70px; font-family: var(--font-doc); color: #000; font-size: 12.4px; line-height: 1.45; }
.atelier-page article.sheet .classif { position: absolute; top: 0; left: 0; right: 0; height: 17px; background: var(--c); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .14em; display: flex; align-items: center; justify-content: center; }
.atelier-page article.sheet .hd, .atelier-page article.sheet .ft { position: absolute; left: 52px; right: 52px; display: flex; justify-content: space-between; font-size: 9px; color: #595959; }
.atelier-page article.sheet .hd { top: 28px; padding-bottom: 5px; border-bottom: 1px solid #d9d9d9; }
.atelier-page article.sheet .ft { bottom: 22px; padding-top: 5px; border-top: 1px solid #d9d9d9; }
.atelier-page article.sheet h1 { margin: 14px 0 6px; font-size: 22px; line-height: 1.15; font-weight: 700; color: var(--c); }
.atelier-page article.sheet .rule { width: 70px; height: 4px; background: var(--c); margin: 0 0 16px; }
.atelier-page article.sheet h2 { margin: 16px 0 6px; font-size: 13.5px; font-weight: 700; color: var(--c); }
.atelier-page article.sheet p { margin: 0 0 7px; }
.atelier-page article.sheet ul { margin: 0 0 8px; padding-left: 18px; }
.atelier-page article.sheet li { margin-bottom: 3px; }
.atelier-page article.sheet table { width: 100%; border-collapse: collapse; margin: 4px 0 8px; font-size: 11px; line-height: 1.35; }
.atelier-page article.sheet th { background: var(--c); color: #fff; font-weight: 700; text-align: left; padding: 5px 7px; vertical-align: bottom; }
.atelier-page article.sheet td { padding: 5px 7px; border-bottom: 1px solid #d9d9d9; vertical-align: top; }
.atelier-page article.sheet tbody tr:nth-child(even) td { background: #f2f2f2; }
.atelier-page article.sheet .filled { background: var(--filled); border-bottom: 1.5px solid var(--filled-line); padding: 0 2px; }
.atelier-page article.sheet .todo { background: var(--doc-todo); border-bottom: 1.5px dashed #c79a2c; padding: 0 2px; }
.atelier-page article.sheet .sens { background: var(--part-bg); box-shadow: inset 2px 0 0 var(--sens-mark); padding: 1px 3px; transition: box-shadow .2s, background .2s; }
.atelier-page article.sheet .sens.flash { background: var(--cream-400); box-shadow: inset 2px 0 0 var(--sens-mark), 0 0 0 3px var(--sens-mark); }
.atelier-page .mk { position: absolute; left: -38px; width: 22px; height: 22px; border-radius: 99px; background: var(--sens-mark); color: #fff; font: 700 11px/22px var(--font-sans); text-align: center; border: 0; padding: 0; }
.atelier-page .mk.ok { background: var(--ok); }
.atelier-page .fiche { display: grid; gap: 14px; position: sticky; top: 14px; }
.atelier-page .fiche .card { padding: 15px 16px; }
.atelier-page .checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.atelier-page .chk { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 2px 10px; align-items: start; padding: 10px 10px 10px 10px; border: 1px solid var(--part-bg); border-radius: var(--radius-lg); background: linear-gradient(90deg, var(--part-bg), var(--card) 85%); cursor: pointer; }
.atelier-page .chk .no { width: 22px; height: 22px; border-radius: 99px; background: var(--sens-mark); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.atelier-page .chk b { font-size: 13px; font-weight: 600; color: var(--part-ink); }
.atelier-page .chk p { grid-column: 2; margin: 0; font-size: 12.5px; color: var(--tx-2); }
.atelier-page .chk label { grid-row: span 2; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tx-3); cursor: pointer; white-space: nowrap; padding-top: 2px; }
.atelier-page .chk input { width: 16px; height: 16px; accent-color: var(--ok); margin: 0; }
.atelier-page .chk.human { border-color: var(--info-bg); background: linear-gradient(90deg, var(--info-bg), var(--card) 85%); }
.atelier-page .chk.human .no { background: var(--info); }
.atelier-page .chk.human b { color: var(--info); }
.atelier-page .chk.done { border-color: var(--ok-line); background: linear-gradient(90deg, var(--ok-bg), var(--card) 85%); }
.atelier-page .chk.done .no { background: var(--ok); }
.atelier-page .chk.done b { color: var(--ok); }
.atelier-page .prog { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--tx-3); }
.atelier-page .prog i { flex: 1; height: 5px; border-radius: 99px; background: var(--mat-dot); overflow: hidden; }
.atelier-page .prog i::before { content: ""; display: block; height: 100%; width: var(--g, 0%); background: var(--ok); transition: width .3s; }
.atelier-page .retouch .ta { min-height: 64px; }
.atelier-page .retouch .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.atelier-page .retouch .row small { font-size: 12px; color: var(--tx-3); }
.atelier-page .meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 8px 0 10px; font-size: 12.5px; }
.atelier-page .meta dt { color: var(--tx-3); }
.atelier-page .meta dd { margin: 0; font-weight: 500; }
.atelier-page .meta dd small { color: var(--tx-3); font-weight: 400; }
.atelier-page .meta dd s { color: var(--tx-3); }
.atelier-page .fiche a.more { font-size: 12.5px; font-weight: 600; color: var(--accent-text); text-decoration: none; }
@media (max-width: 1100px){.atelier-page .rs-grid { grid-template-columns: minmax(0, 1fr); }
.atelier-page .fiche { position: static; }
.atelier-page .rs-head { flex-wrap: wrap; }
 }


/* Adapt the proposal to the production hooks and the existing shell. */
.atelier-page { font-family: var(--font-sans); color-scheme: light; min-width: 0; }
.atelier-page *, .atelier-page *::before, .atelier-page *::after { box-sizing: border-box; }
.atelier-page .bench.atelier-stage { padding: 0; overflow: clip; min-width: 0; }
.atelier-page .bench-hd h2 { text-align: left; }
.atelier-page .shelf.atelier-side { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.atelier-page .atelier-ic { margin-right: 0; stroke-linecap: round; stroke-linejoin: round; }
.atelier-page .pic .atelier-ic { width: 24px; height: 24px; }
.atelier-page .ti .atelier-task-ic { width: 15px; height: 15px; stroke-linecap: round; stroke-linejoin: round; }
.atelier-page .station:not(.done) .station-check { display: none; }
.atelier-page .station.done .station-check { display: inline-flex; }
.atelier-page .drop { justify-items: stretch; text-align: left; grid-auto-flow: row; }
.atelier-page .drop .lim { display: block; white-space: normal; }
.atelier-page .drop:focus-within { outline: 2px solid var(--bronze); outline-offset: 2px; }
.atelier-page .drop.is-over { border-color: var(--accent-text); background-color: var(--cream-400); }
.atelier-page .drop .badges { max-width: 240px; }
.atelier-page .drop .pill { height: auto; min-height: 24px; white-space: normal; }
.atelier-page .fl { grid-template-columns: 38px minmax(0, 1fr) 44px; }
.atelier-page .fl .x { width: 44px; height: 44px; }
.atelier-page .fl .ty { grid-row: span 3; }
.atelier-page .fl .ty.is-pdf { color: var(--ty-pdf); }
.atelier-page .fl .ty.is-docx { color: var(--ty-docx); }
.atelier-page .fl .ty.is-xlsx, .atelier-page .fl .ty.is-csv { color: var(--ty-sheet); }
.atelier-page .atelier-file-meta, .atelier-page .atelier-file-fix { overflow-wrap: anywhere; }
.atelier-page .tool small { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.atelier-page .tool:disabled { cursor: default; }
.atelier-page .tool:disabled:hover { transform: none; box-shadow: none; }
.atelier-page .pane.atelier-pane { margin: 0; }
.atelier-page .pane .what { margin-top: 4px; }
.atelier-page .runbar.atelier-run { margin: 0; border-top: 1px solid var(--line); padding: 14px 28px; flex-wrap: nowrap; }
.atelier-page .runbar .go { min-width: 190px; }
.atelier-page .runbar .why { text-align: left; }
.atelier-page p { text-align: justify; hyphens: auto; }
.atelier-page h1, .atelier-page h2, .atelier-page h3, .atelier-page h4, .atelier-page label, .atelier-page button { text-align: left; }
.atelier-page .atelier-runcard { margin: 0; border-color: var(--ok-line); background: linear-gradient(180deg, var(--ok-bg), var(--card) 70%); grid-template-columns: 30px minmax(0, 1fr); }
.atelier-page .atelier-runcard button { grid-column: 2; justify-self: start; }
.atelier-page .atelier-runcard.is-running b { color: var(--tx); }
.atelier-page .atelier-dl-row { margin-top: 0; }
.atelier-page.atelier-result-page > .atelier-head .atelier-title h1 { font-family: var(--font-serif); font-weight: 500; }
.atelier-page .desk.atelier-frame { background: var(--frame); margin: 0; }
.atelier-page .atelier-sheet { --c: var(--sheet-slate); min-width: 0; }
.atelier-page .atelier-frame-scroll { overflow-x: auto; }
.atelier-page .atelier-sheet { zoom: var(--atelier-preview-scale, 1); }
.atelier-page .atelier-sheet-class { color: var(--sheet-on-primary, #fff); }
.atelier-page .checks .chk { grid-template-columns: 22px minmax(0, 1fr); }
.atelier-page .checks .chk label { grid-column: 2; grid-row: auto; }
.atelier-page .checks .chk p { overflow-wrap: anywhere; }
.atelier-page .checks .chk .no { color: var(--tx); }
.atelier-page .checks .chk.human .no { color: var(--card); }
.atelier-page .atelier-filed { border: 0; padding: 0; box-shadow: none; background: none; }
.atelier-page .atelier-filed h4 { display: none; }
.atelier-page .atelier-used { overflow-wrap: anywhere; }
.atelier-page .atelier-base-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.atelier-page .atelier-base { border: 1px solid var(--line); min-width: 0; }
.atelier-page .atelier-base-name { overflow-wrap: anywhere; }
.atelier-page .atelier-base input { accent-color: var(--bronze); }
.atelier-page .atelier-base.is-on { background: var(--cream-100); border-color: var(--line-pane); }
.atelier-page .btn, .atelier-page .hint, .atelier-page .seg button, .atelier-page .zoom button { min-height: 36px; }
@media (max-width: 1100px) {
  .atelier-page .at-grid, .atelier-page .rs-grid { grid-template-columns: minmax(0, 1fr); }
  .atelier-page .drop { grid-template-columns: auto minmax(0, 1fr); }
  .atelier-page .drop .badges { grid-column: 1 / -1; max-width: none; flex-direction: row; flex-wrap: wrap; }
  .atelier-page .atelier-opts { grid-template-columns: minmax(0, 1fr) 130px 130px; }
}
@media (max-width: 600px) {
  .atelier-page .atelier-head .atelier-acts { display: flex; }
  .atelier-page .bench.atelier-stage { padding: 0; }
  .atelier-page .st-hd h3 small { display: block; margin: 0; }
  .atelier-page .station .st-body { grid-column: 1 / -1; }
  .atelier-page .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atelier-page .atelier-opts, .atelier-page .atelier-base-list { grid-template-columns: minmax(0, 1fr); }
  .atelier-page .atelier-opts .atelier-field:first-child { grid-column: auto; }
  .atelier-page .drop { grid-auto-flow: row; padding: 16px; }
  .atelier-page .drop .badges { align-items: flex-start; }
  .atelier-page .runbar.atelier-run { flex-direction: column; align-items: stretch; padding: 12px 16px; }
  .atelier-page .runbar .go { justify-items: stretch; min-width: 0; }
  .atelier-page .runbar .btn.primary { justify-content: flex-start; }
  .atelier-page .atelier-sheet p, .atelier-page .atelier-sheet li { text-align: justify; hyphens: auto; }
  .atelier-page .atelier-sheet table { table-layout: fixed; }
  .atelier-page .atelier-sheet td, .atelier-page .atelier-sheet th { overflow-wrap: anywhere; }
  .atelier-page .atelier-sheet { max-width: 100%; }
  .atelier-page input, .atelier-page select, .atelier-page textarea { font-size: 16px; }
  .atelier-page .btn, .atelier-page .hint, .atelier-page .seg button, .atelier-page .zoom button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .atelier-page *, .atelier-page *::before, .atelier-page *::after { animation: none !important; transition: none !important; }
}
.atelier-page .atelier-source-switch { flex-wrap: wrap; }
.atelier-page .atelier-sensitive-marker { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 99px; margin-left: 4px; border: 0; background: var(--part-bg); color: var(--part-ink); font: 600 11px var(--font-sans); vertical-align: middle; }
.atelier-page .checks .no { border: 0; cursor: pointer; }
.atelier-page .checks .chk.human.done .no { color: var(--card); }
.atelier-page .primary-action { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 10px 16px; border-radius: var(--radius-md); border: 1px solid var(--bronze); background: var(--bronze); color: var(--on-bronze); font-weight: 600; cursor: pointer; }
.atelier-page .primary-action:disabled { background: var(--bronze-disabled); border-color: var(--bronze-disabled); cursor: default; }
.atelier-page .secondary-button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); color: var(--tx); text-decoration: none; }
.atelier-page .atelier-ok, .atelier-page .checks .chk.done b { color: var(--ty-sheet); }
@media (max-width: 600px) { .atelier-page .primary-action, .atelier-page .secondary-button { min-height: 44px; } }
.atelier-page .atelier-file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.atelier-page .atelier-card-head { gap: 10px; flex-wrap: wrap; }
.atelier-page .atelier-recent { min-width: 0; }
.atelier-page .atelier-rules { font-size: 12.5px; }
.atelier-page .atelier-task-ic { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; flex: none; }

/* Proposal v2: narrow columns are left aligned; typography marks wide prose. */
.atelier-page p:not([data-prose]), .atelier-page li:not([data-prose]) { text-align: left; }
.atelier-page p[data-prose], .atelier-page li[data-prose] { text-align: justify; hyphens: auto; }
.atelier-page .shelf p, .atelier-page .shelf li, .atelier-page .fiche p, .atelier-page .fiche li { text-align: left; }

/* E2 structured document editor, on the existing light workbench. */
.atelier-document-editor summary { cursor: pointer; font-weight: 600; text-align: left; }
.atelier-document-editor label { display: grid; gap: 6px; margin: 12px 0; text-align: left; }
.atelier-document-editor textarea { width: 100%; min-height: 72px; font: inherit; resize: vertical; }
.atelier-editor-block { padding: 12px 0; border-bottom: 1px solid var(--at-rule, #ddd); }
.atelier-editor-table { overflow-x: auto; }
.atelier-rendered-page { width: 100%; height: auto; display: block; }
.atelier-document-editor fieldset { min-width: 0; }

/* E3 uses the existing Atelier cards, tabs and question controls. */
.atelier-workbook-mode-select { display:none; }
.atelier-improvement { max-width:1000px; margin:1rem auto; }
.atelier-improvement .card { margin-block:1rem; padding:1.25rem; }
.atelier-improvement-choices { display:grid; gap:.25rem; margin-block:1rem; }
.atelier-improvement-choice { display:flex; gap:.75rem; align-items:flex-start; margin-block:.8rem; cursor:pointer; }
.atelier-improvement-choice input { margin-top:.3rem; flex-shrink:0; }
.atelier-improvement-choice small { display:block; margin-top:.25rem; color:var(--muted,#56687F); }
[data-atelier-workbook-mode][aria-pressed="true"] { border-color:var(--accent,#56687F); box-shadow:inset 0 0 0 1px var(--accent,#56687F); }
