.assistant-notebook { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 24px; min-width: 0; }
.notebook-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notebook-heading h3 { margin: 0; font-size: 19px; line-height: 1.4; }
.notebook-privacy, .notebook-empty { margin: 8px 0 14px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.notebook-save-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.notebook-save-form input { flex: 1 1 180px; min-width: 0; }
.assistant-notebook input, .assistant-notebook textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; padding: 10px 12px; font: inherit; font-size: 14px; }
.assistant-notebook input:focus-visible, .assistant-notebook textarea:focus-visible, .assistant-notebook button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.notebook-command, .notebook-icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; color: var(--deep-teal); background: #fff; font-size: 13px; line-height: 1.4; }
.notebook-icon-button { width: 36px; height: 36px; padding: 8px; flex: 0 0 36px; }
.notebook-command svg, .notebook-command i, .notebook-icon-button svg, .notebook-icon-button i { width: 16px; height: 16px; flex: 0 0 16px; }
.notebook-command:hover, .notebook-icon-button:hover { border-color: var(--teal); background: #edf5f1; }
.assistant-notebook button:disabled { opacity: .5; cursor: not-allowed; }
.notebook-feedback { min-height: 21px; margin: 10px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.notebook-feedback[data-state="error"] { color: #a34538; }
.notebook-feedback[data-state="success"] { color: var(--deep-teal); }
.notebook-layout { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: 24px; align-items: start; }
.notebook-list { display: grid; gap: 0; min-width: 0; }
.notebook-entry { width: 100%; display: grid; gap: 4px; border: 0; border-bottom: 1px solid var(--line); border-inline-start: 3px solid transparent; border-radius: 0; padding: 13px 12px; color: var(--ink); background: transparent; text-align: start; min-width: 0; }
.notebook-entry[aria-pressed="true"] { border-inline-start-color: var(--teal); background: #edf5f1; }
.notebook-entry strong { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.notebook-entry small, .notebook-entry time { color: var(--muted); font-size: 12px; line-height: 1.5; }
.notebook-editor { display: grid; gap: 12px; min-width: 0; }
.notebook-editor textarea { min-height: 260px; resize: vertical; line-height: 1.7; }
.notebook-editor-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.notebook-editor-actions [data-notebook-download] { margin-inline-start: auto; }
.notebook-danger { color: #a34538; }
.notebook-delete-confirm { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.notebook-delete-confirm p { flex: 0 0 100%; margin: 0 0 3px; font-size: 13px; line-height: 1.6; }
.notebook-reuse-confirm { border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: flex; flex-wrap: wrap; gap: 8px; background: #edf5f1; }
.notebook-reuse-confirm p { flex: 0 0 100%; margin: 0 0 3px; font-size: 13px; line-height: 1.6; }
.notebook-latest { border-top: 1px solid var(--line); padding-top: 12px; font-size: 13px; line-height: 1.6; }
.notebook-latest summary { cursor: pointer; margin-bottom: 8px; color: var(--deep-teal); }
.notebook-latest pre { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; max-height: 220px; overflow: auto; }
.assistant-notebook [hidden] { display: none !important; }
@media (max-width: 760px) { .notebook-layout { grid-template-columns: 1fr; gap: 20px; } .notebook-list { max-height: 280px; overflow-y: auto; } .notebook-editor { border-top: 1px solid var(--line); padding-top: 20px; } }
@media (max-width: 420px) { .notebook-save-form input { flex-basis: 100%; } .notebook-editor-actions .notebook-command { padding: 9px 10px; } .notebook-editor-actions [data-notebook-download] { margin-inline-start: 0; } }
