/* écran 12 — Carnet de l'avocat (320 / 1fr / 340) */
.cn { display: grid; grid-template-columns: 320px minmax(0, 1fr) 340px; min-height: 100vh; }
.cn-list { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.cn-lh { padding: 20px 18px 12px; }
.cn-lt { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cn-lt h1 { font-weight: 500; font-size: 26px; }
.cn-def { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 8px; }
.cn-def .vis { font-size: 11px; padding: 0 7px; }
.cn-f { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.cn-f button { border: 0; font-size: 12px; font-weight: 600; border-radius: 6px; padding: 4px 9px; background: var(--chip); color: var(--text-2b); cursor: pointer; }
.cn-f button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cn-items { flex: 1; overflow: auto; border-top: 1px solid var(--line-soft); }
.cn-it { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line-soft-2); background: #fff; padding: 13px 18px; cursor: pointer; }
.cn-it:hover { background: var(--surface-2); }
.cn-it.on { background: var(--select); box-shadow: inset 3px 0 0 var(--blue); }
.cn-it .k { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--meta); } .cn-it .k span:first-child { font-weight: 600; }
.cn-it .t { font-size: 14px; font-weight: 600; line-height: 1.35; margin-top: 4px; }
.cn-it .x { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cn-it .v { margin-top: 7px; display: flex; gap: 8px; align-items: center; } .cn-it .v .vis { font-size: 11px; padding: 0 7px; } .cn-it .by { font-size: 11.5px; color: var(--meta); }
.cn-empty { padding: 18px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.cn-ed { background: #fff; min-width: 0; overflow: auto; }
.cn-inner { max-width: 720px; margin: 0 auto; padding: 30px 40px 60px; }
.cn-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12.5px; color: var(--meta); }
.cn-kind { border: 0; background: transparent; font: inherit; color: var(--meta); font-weight: 600; padding: 0 2px; cursor: pointer; -webkit-appearance: none; appearance: none; field-sizing: content; text-decoration: underline dotted var(--faint-2); text-underline-offset: 3px; }
.cn-status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cn-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok-dot); }
.cn-status.wait::before { background: var(--wait-dot); }
.cn-title { width: 100%; border: 0; outline: none; font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.2; margin-top: 12px; padding: 0; color: var(--ink); background: transparent; }
.cn-title:focus { box-shadow: none; }
.cn-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.cn-chip { display: inline-flex; align-items: center; background: var(--chip); border-radius: 5px; }
.cn-cl { border: 0; background: none; font-size: 12px; font-weight: 600; color: var(--text-2b); padding: 3px 4px 3px 9px; cursor: pointer; }
.cn-x { border: 0; background: none; color: var(--label); padding: 0 7px 0 3px; cursor: pointer; font-size: 14px; }
.cn-add { border: 1px dashed var(--faint-2); background: #fff; color: var(--muted); border-radius: 5px; font-size: 12px; padding: 3px 6px; max-width: 220px; cursor: pointer; }
.cn-body { display: block; width: 100%; min-height: 320px; border: 0; outline: none; resize: vertical; margin-top: 22px; padding: 0; font-family: var(--serif); font-size: 18px; line-height: 1.7; color: var(--text-2); background: transparent; }
.cn-body:focus { box-shadow: none; }
.cn-save { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.cn-tl { margin-top: 28px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.cn-task { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-soft-2); font-size: 14.5px; cursor: pointer; }
.cn-task input { width: 16px; height: 16px; accent-color: var(--steel); }
.cn-task.done span { text-decoration: line-through; color: var(--faint); }
.cn-newtask { display: flex; gap: 8px; margin-top: 12px; } .cn-newtask .input { padding: 7px 10px; font-size: 13.5px; }
.cn-side { padding: 24px 22px; background: var(--bg); }
.cn-vis { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.cn-vc { display: grid; grid-template-columns: 18px 1fr; gap: 10px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.cn-vc b { display: block; font-size: 14px; font-weight: 600; } .cn-vc span span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cn-vc .radio { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--faint-3); background: #fff; margin-top: 2px; }
.cn-vc.on { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); } .cn-vc.on .radio { border: 4.5px solid var(--blue); }
.cn-vc[disabled] { cursor: not-allowed; }
.cn-why { font-size: 12px; line-height: 1.5; color: var(--meta); margin-top: 12px; }
.cn-hooks { display: flex; flex-direction: column; margin-top: 8px; }
.cn-hook { display: block; text-align: left; border: 0; border-top: 1px solid var(--line); background: none; padding: 10px 0; cursor: pointer; }
.cn-hook .h { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--meta); } .cn-hook .h b { color: var(--ink); font-weight: 600; } .cn-hook .h .vis { font-size: 10.5px; padding: 0 6px; margin-left: auto; }
.cn-hook .b { font-size: 13px; line-height: 1.45; color: var(--text-2); margin-top: 3px; }
.cn-export { margin-top: 20px; padding: 14px; border-radius: 10px; background: var(--soft); font-size: 13px; line-height: 1.5; color: var(--text-2); }
@media (max-width: 1280px) { .cn { grid-template-columns: 280px minmax(0, 1fr); } .cn-side { grid-column: 1 / -1; } }
@media (max-width: 860px) { .cn { grid-template-columns: minmax(0, 1fr); } .cn-inner { padding: 20px 16px 40px; } .cn-items { max-height: 280px; } }
