  :root {
    --bg: #f4f6f9;
    --surface: #ffffff;
    --border: #dde2ea;
    --text: #1f2933;
    --muted: #64748b;
    --primary: #1d4ed8;
    --primary-hover: #1e40af;
    --danger: #dc2626;
    --success-bg: #dcfce7;
    --success-text: #166534;
    --open-bg: #fef3c7;
    --open-text: #92400e;
    --radius: 8px;
  }
  * { box-sizing: border-box; }
  body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
  }
  header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  header h1 { margin: 0; font-size: 20px; }
  header p { margin: 2px 0 0; color: var(--muted); }
  main { width: 100%; padding: 24px 24px; }

  .toolbar {
    display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
    margin-bottom: 16px;
  }
  .toolbar input[type=search] { flex: 1; min-width: 200px; }
  .stats { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
  .stat {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 12px 16px; min-width: 140px;
  }
  .stat b { display: block; font-size: 22px; }
  .stat span { color: var(--muted); }

  input, select, textarea {
    font: inherit; padding: 8px 10px; border: 1px solid var(--border);
    border-radius: 6px; background: #fff; color: var(--text); width: 100%;
  }
  input:disabled, select:disabled, textarea:disabled { background: #f1f5f9; color: var(--muted); }
  .toolbar select { width: auto; }

  button {
    font: inherit; cursor: pointer; border-radius: 6px; padding: 8px 14px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
  }
  button:hover { background: #f1f5f9; }
  button.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
  button.primary:hover { background: var(--primary-hover); }
  button.danger { color: var(--danger); }
  button.small { padding: 4px 10px; font-size: 13px; }

  .table-wrap {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow-x: auto;
  }
  table { width: 100%; border-collapse: collapse; }
  th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
  th { background: #f8fafc; color: var(--muted); font-weight: 600; font-size: 13px; }
  tr:last-child td { border-bottom: none; }
  td.actions { display: flex; gap: 6px; }
  .empty { padding: 32px; text-align: center; color: var(--muted); }

  .badge {
    display: inline-block; padding: 2px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600;
  }
  .badge.open { background: var(--open-bg); color: var(--open-text); }
  .badge.closed { background: var(--success-bg); color: var(--success-text); }
  .badge.partial { background: #dbeafe; color: #1e40af; }
  .badge.todo { background: #fee2e2; color: #991b1b; font-weight: 500; margin-right: 4px; }
  .badge.muted { background: #f1f5f9; color: var(--muted); }
  .quiz-results-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 20px 0 10px; }
  .quiz-results-head .section-title { margin: 0; }
  .quiz-results-head .badge[hidden] { display: none; }
  .quiz-results-head label.check { margin: 0 0 0 auto; font-weight: 400; font-size: 13px; }
  .ok { color: var(--success-text); font-size: 12px; font-weight: 600; }
  label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 4px 0 10px; cursor: pointer; }
  label.check input { width: auto; }
  .restit-block { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
  .restit-block h4 { margin: 0 0 8px; font-size: 14px; }

  dialog {
    border: none; border-radius: 10px; padding: 0; width: min(640px, calc(100% - 32px));
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
  }
  dialog::backdrop { background: rgba(15, 23, 42, .45); }
  .dlg-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
  .dlg-head h2 { margin: 0; font-size: 17px; }
  .dlg-body { padding: 20px; max-height: 70vh; overflow-y: auto; }
  .dlg-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

  .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .full { grid-column: 1 / -1; }
  label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 13px; }
  .req::after { content: " *"; color: var(--danger); }
  .hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
  fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px 14px; margin: 0; min-width: 0; }
  legend { font-weight: 600; padding: 0 6px; }
  .error { color: var(--danger); font-weight: 600; }
  .dlg-foot .error { flex: 1 1 100%; margin: 0 0 4px; }

  .sig-wrap { border: 1px dashed #94a3b8; border-radius: 6px; background: #fff; position: relative; user-select: none; }
  .sig-wrap canvas { width: 100%; height: 150px; display: block; touch-action: none; }
  .conditions {
    background: #fffbeb; border: 1px solid #fcd34d; border-radius: 6px; padding: 10px 12px;
    margin-bottom: 12px; font-size: 13px; line-height: 1.5;
  }
  .conditions p { margin: 0; }
  .conditions p + p { margin-top: 4px; }
  .conditions label.check { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid #fcd34d; font-weight: 600; }
  .sig-img { max-width: 100%; height: 120px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }

  dl.view { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; margin: 0; }
  dl.view dt { color: var(--muted); }
  dl.view dd { margin: 0; font-weight: 500; }
  .section-title { margin: 20px 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

  @media (max-width: 600px) {
    .grid { grid-template-columns: 1fr; }
    dl.view { grid-template-columns: 1fr; }
    dl.view dt { margin-top: 6px; }
  }

  /* Tri */
  :is(th[data-sort], th[data-edl-sort], th.sortable) { cursor: pointer; user-select: none; }
  :is(th[data-sort], th[data-edl-sort], th.sortable):hover { color: var(--text); }
  :is(th[data-sort], th[data-edl-sort], th.sortable)::after { content: " ↕"; opacity: .35; }
  :is(th[data-sort], th[data-edl-sort], th.sortable).asc::after { content: " ▲"; opacity: 1; }
  :is(th[data-sort], th[data-edl-sort], th.sortable).desc::after { content: " ▼"; opacity: 1; }
  .filter-row th { padding: 4px 6px; background: #f8fafc; }
  .filter-row input { padding: 3px 6px; font-size: 12px; min-width: 70px; font-weight: 400; }
  tr.no-match td { display: table-cell !important; text-align: center; color: var(--muted); padding: 20px; }
  .cols-bar { gap: 6px; }
  td.flag, th.flag { text-align: center; }
  td.flag input { width: 16px; height: 16px; cursor: pointer; }

  /* Pill stock non attribué */
  .pill {
    display: inline-flex; align-items: center; gap: 8px; border-radius: 999px;
    padding: 6px 14px; border: 1px solid #fca5a5; background: #fef2f2; color: #991b1b; font-weight: 600;
    align-self: center;
  }
  .pill:hover { background: #fee2e2; }
  .pill b { background: #991b1b; color: #fff; border-radius: 999px; padding: 0 8px; font-size: 12px; }
  .stock-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .stock-cols h3 { margin: 0 0 8px; font-size: 14px; }
  .stock-cols ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); }
  .stock-cols li { padding: 8px 12px; border-bottom: 1px solid var(--border); }
  .stock-cols li:last-child { border-bottom: none; }
  .stock-cols li small { display: block; color: var(--muted); }
  @media (max-width: 600px) { .stock-cols { grid-template-columns: 1fr; } }

  /* Onglets Liste / Planning */
  .tabs { display: flex; gap: 4px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
  .tabs button { border: none; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--muted); font-weight: 600; }
  .tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }

  /* Gantt */
  .gantt-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
  .legend { display: flex; gap: 16px; color: var(--muted); font-size: 13px; }
  .legend i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
  .gantt { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }

  /* Barre de défilement horizontale collée en bas de l'écran */
  .table-wrap, .gantt { scrollbar-width: none; }
  .table-wrap::-webkit-scrollbar, .gantt::-webkit-scrollbar { display: none; }
  .hscroll {
    position: sticky; bottom: 0; z-index: 5; overflow-x: auto; overflow-y: hidden;
    height: 16px; background: var(--surface); border: 1px solid var(--border); border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .hscroll[hidden] { display: none; }
  .hscroll > div { height: 1px; }
  .g-row { display: grid; grid-template-columns: 190px 1fr; border-bottom: 1px solid var(--border); min-height: 36px; }
  .g-row:last-child { border-bottom: none; }
  .g-label { position: sticky; left: 0; background: var(--surface); z-index: 2; padding: 8px 12px; border-right: 1px solid var(--border); font-size: 13px; }
  .g-label small { display: block; color: var(--muted); font-size: 11px; }
  .g-track { position: relative; }
  .g-scale { position: relative; height: 34px; background: #f8fafc; }
  .g-tick { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--border); font-size: 11px; color: var(--muted); padding: 4px 0 0 4px; white-space: nowrap; }
  .g-grid { position: absolute; top: 0; bottom: 0; border-left: 1px solid #eef1f5; }
  .g-today { position: absolute; top: 0; bottom: 0; border-left: 2px dashed var(--danger); z-index: 1; }
  .g-bar {
    position: absolute; top: 8px; height: 20px; border-radius: 4px; color: #fff; font-size: 11px;
    padding: 2px 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: default;
    box-shadow: 0 0 0 2px var(--surface);
  }
  .g-bar.out { background: var(--primary); }
  .g-bar.back { background: #94a3b8; }
  .g-bar.out::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 10px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45)); }
  .g-empty { color: var(--muted); font-size: 12px; padding: 10px 8px; }
  .tooltip {
    position: fixed; z-index: 1000; pointer-events: none; background: #0f172a; color: #fff; font-size: 12px;
    padding: 8px 10px; border-radius: 6px; max-width: 260px; line-height: 1.5; box-shadow: 0 6px 20px rgba(0,0,0,.25);
  }
  .toast {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 1000;
    background: #0f172a; color: #fff; padding: 10px 18px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.25);
  }

  /* Navigation entre modules */
  nav.modules { display: flex; gap: 4px; background: #eef1f5; padding: 4px; border-radius: 8px; }
  nav.modules button { border: none; background: none; font-weight: 600; color: var(--muted); }
  nav.modules button.active { background: var(--surface); color: var(--primary); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
  .module-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
  .module-head h2 { margin: 0; font-size: 18px; }
  .module-head p { margin: 2px 0 0; color: var(--muted); }

  /* État des lieux */
  dialog.wide { width: min(820px, calc(100% - 32px)); }
  .depart-only[hidden] { display: none; }
  .equip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 16px; }
  .equip-grid label.check { margin: 4px 0; }
  .equip-grid small { color: var(--danger); font-weight: 600; }
  .damage-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
  .damage-tools button { display: inline-flex; align-items: center; gap: 6px; }
  .damage-tools button.active { border-color: var(--primary); background: #eff6ff; color: var(--primary); font-weight: 600; }
  .dot { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700; }
  .car-wrap { border: 1px solid var(--border); border-radius: 6px; background: #f8fafc; }
  .car-wrap svg { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; cursor: crosshair; user-select: none; }
  .car-wrap.readonly svg { cursor: default; }
  .damage-list { margin: 8px 0 0; padding: 0; list-style: none; }
  .damage-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); }
  .damage-list li:last-child { border-bottom: none; }
  .damage-list input { flex: 1; padding: 4px 8px; }
  .damage-list .zone { color: var(--muted); font-size: 12px; min-width: 120px; }
  .tag-new { background: #fee2e2; color: #991b1b; border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 600; }
  .tag-old { background: #e2e8f0; color: #475569; border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 600; }
  .photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
  .photo { position: relative; }
  .photo img { width: 110px; height: 82px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); display: block; }
  .photo button { position: absolute; top: 2px; right: 2px; padding: 0 6px; font-size: 12px; line-height: 18px; }
  .fuel { display: inline-flex; gap: 2px; vertical-align: middle; margin-right: 6px; }
  .fuel i { width: 10px; height: 12px; border-radius: 2px; background: #e2e8f0; }
  .fuel i.on { background: #475569; }
  .compare { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
  .compare th, .compare td { border: 1px solid var(--border); padding: 6px 10px; white-space: normal; text-align: left; vertical-align: top; }
  .compare th { background: #f8fafc; }
  .compare td.diff { color: #991b1b; font-weight: 600; }
  .controle-only[hidden] { display: none; }
  .ecarts { margin: 0; padding-left: 18px; }
  .ecarts li { margin: 2px 0; }
  .ecarts.none { list-style: none; padding: 0; color: var(--success-text); }
  /* Frise chronologique : départ → contrôles → retour */
  .frise { display: flex; overflow-x: auto; padding: 4px 0 8px; margin-bottom: 4px; }
  .frise-step { flex: 1 0 120px; position: relative; text-align: center; padding: 0 6px; font-size: 12px; }
  .frise-step::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; border-top: 2px solid var(--border); }
  .frise-step:first-child::before { left: 50%; }
  .frise-step:last-child::before { right: 50%; }
  .frise-step i { position: relative; display: block; width: 18px; height: 18px; margin: 0 auto 6px; border-radius: 50%; border: 3px solid var(--surface); background: var(--primary); box-shadow: 0 0 0 1px var(--border); }
  .frise-step.ctrl i { background: #7c3aed; }
  .frise-step.back i { background: #94a3b8; }
  .frise-step.todo i { background: var(--surface); border: 2px dashed #94a3b8; box-shadow: none; }
  .frise-step.alert i { background: var(--danger); }
  .frise-step b { display: block; font-size: 13px; }
  .frise-step span { display: block; color: var(--muted); }
  .frise-step .tag-new { display: inline-block; margin-top: 3px; }
  .hist-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px 4px; margin-bottom: 10px; }
  .hist-item header { all: unset; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }

  /* Quiz */
  .quiz-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px; max-width: 820px; }
  .quiz-card h3 { margin: 6px 0 12px; font-size: 17px; line-height: 1.4; }
  .quiz-card p { line-height: 1.5; }
  .quiz-rules { margin: 0; color: var(--muted); font-size: 14px; }
  .quiz-rules b { color: var(--text); }
  .quiz-themes-line { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
  .quiz-step { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 16px; }
  .quiz-step .grid { max-width: 560px; }
  .quiz-step-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-weight: 600; font-size: 15px; }
  .quiz-num { width: 24px; height: 24px; border-radius: 50%; background: #eff6ff; color: var(--primary); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
  .quiz-seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 6px; }
  .quiz-seg button { border: none; border-radius: 0; padding: 4px 12px; font-size: 13px; background: none; color: var(--muted); }
  .quiz-seg button + button { border-left: 1px solid var(--border); }
  .quiz-seg button.on { background: #eff6ff; color: var(--primary); font-weight: 600; }
  .quiz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .quiz-chips button { border-radius: 999px; padding: 6px 18px; min-width: 56px; }
  .quiz-chips button.on { background: #eff6ff; border-color: var(--primary); color: var(--primary); font-weight: 600; }
  .quiz-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
  .quiz-theme { display: inline-block; background: #eff6ff; color: var(--primary); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
  .quiz-progress { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
  .quiz-bar { flex: 1; height: 6px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
  .quiz-bar i { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width .3s; }
  .quiz-options { display: grid; gap: 8px; }
  .quiz-options button { text-align: left; padding: 12px 14px; line-height: 1.4; display: flex; gap: 10px; align-items: flex-start; }
  .quiz-options button b { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #e2e8f0; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
  .quiz-options button:disabled { cursor: default; color: var(--text); }
  .quiz-options button.right { border-color: #16a34a; background: var(--success-bg); }
  .quiz-options button.right b { background: #16a34a; color: #fff; }
  .quiz-options button.wrong { border-color: var(--danger); background: #fef2f2; }
  .quiz-options button.wrong b { background: var(--danger); color: #fff; }
  .quiz-explain { margin-top: 14px; padding: 12px 14px; border-radius: 6px; line-height: 1.5; border-left: 4px solid; }
  .quiz-explain.ok-box { background: var(--success-bg); border-color: #16a34a; }
  .quiz-explain.ko-box { background: #fef2f2; border-color: var(--danger); }
  .quiz-score { font-size: 40px; font-weight: 700; margin: 4px 0; }
  .quiz-review { margin: 12px 0 0; padding-left: 20px; line-height: 1.5; }
  .quiz-review li { margin-bottom: 10px; }

  /* Impression du bon */
  #print-area { display: none; }
  @media print {
    body * { visibility: hidden; }
    #print-area, #print-area * { visibility: visible; }
    #print-area { display: block; position: absolute; inset: 0; padding: 24px; }
    #print-area h1 { font-size: 20px; }
  }

  /* Paramètres */
  .param-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px; }
  .param-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
  .param-head h3 { margin: 0; font-size: 16px; }
  .param-head .hint { margin: 2px 0 0; }
  .param-card .table-wrap { border-radius: 6px; }
  .cols-bar { position: sticky; left: 0; display: flex; justify-content: flex-end; padding: 6px 8px; border-bottom: 1px solid var(--border); }
  .cols-group h3 { margin: 0 0 8px; font-size: 14px; }
  .cols-group + .cols-group { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
  .cols-group .hint { margin: -4px 0 8px; }
  .cols-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 16px; }
  .cols-list label.check { margin: 4px 0; font-weight: 400; }
  .col-off { display: none !important; }
  th[draggable=true] { cursor: grab; }
  th.drop-target { box-shadow: inset 3px 0 0 var(--primary); }
  .cols-order { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); }
  .cols-order li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--border); background: var(--surface); }
  .cols-order li:last-child { border-bottom: none; }
  .cols-order li[draggable=true] { cursor: grab; }
  .cols-order li.fixed { color: var(--muted); background: #f8fafc; }
  .cols-order li.drop-target { box-shadow: inset 0 3px 0 var(--primary); }
  .cols-order label.check { flex: 1; margin: 0; font-weight: 400; }
  .cols-order .grip { color: var(--muted); width: 14px; letter-spacing: -2px; }
  .cols-order button { padding: 2px 8px; }
  .cols-order button:disabled { opacity: .35; cursor: default; }
  .cols-order .hint { margin: 0 0 0 4px; }
  .param-card td { white-space: normal; vertical-align: top; }
  .soc-logo { max-height: 40px; max-width: 120px; object-fit: contain; display: block; }
  .stock-add { display: flex; gap: 6px; margin-bottom: 8px; }
  .stock-cols li.stock-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .stock-cols ul.scroll { max-height: 320px; overflow-y: auto; }

  /* En-tête société des documents imprimés */
  .doc-societe { display: flex; gap: 16px; align-items: center; border-bottom: 2px solid #1f2933; padding-bottom: 10px; margin-bottom: 18px; }
  .doc-societe img { max-height: 60px; max-width: 160px; object-fit: contain; }
  .doc-societe b { font-size: 16px; }
  .doc-societe div { line-height: 1.4; font-size: 12px; white-space: pre-line; }

  /* Autorisation de conduite */
  .autor { font-size: 14px; line-height: 1.6; max-width: 720px; }
  .autor h1 { text-align: center; margin: 0 0 4px; }
  .autor .sub { text-align: center; color: var(--muted); margin: 0 0 24px; }
  .autor h3 { font-size: 15px; margin: 20px 0 6px; }
  .autor ul { margin: 0; padding-left: 20px; }
  .autor .fill { display: inline-block; min-width: 180px; border-bottom: 1px dotted #000; }
  .autor .sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
  .autor .sigs div { border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; min-height: 120px; }
  .autor .sigs img { display: block; max-width: 100%; height: 90px; object-fit: contain; margin: 6px 0 2px; }
  .autor-preview { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; max-height: 280px; overflow-y: auto; background: #fff; font-size: 13px; }
  .autor-preview .autor { font-size: 13px; }
  .autor-preview .autor h1 { font-size: 17px; }
  .autor-sign { margin-top: 18px; }
  .autor-sign h3 { margin: 0 0 10px; font-size: 15px; }
  .sig-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
