.notes-page { width: min(980px, calc(100% - 48px)); max-width: none; margin-inline: auto; }
.notes-page .intro { max-width: 780px; color: var(--tool-muted); line-height: 1.7; margin: 0 0 24px; }
.privacy-bar { border: 1px solid var(--tool-cyan); background: var(--tool-raised); padding: 14px 18px; margin-bottom: 24px; line-height: 1.5; }
.privacy-bar strong { color: var(--tool-accent); }
.panel { border: 1px solid var(--tool-line); background: var(--tool-surface); padding: clamp(18px, 3vw, 28px); margin-bottom: 18px; }
.panel-heading { display: flex; gap: 16px; align-items: start; border-bottom: 1px solid var(--tool-line); padding-bottom: 18px; margin-bottom: 20px; }
.panel-heading h2 { font-size: 1.35rem; line-height: 1.2; margin: 0 0 5px; letter-spacing: -.035em; }
.panel-heading p { color: var(--tool-muted); margin: 0; font-size: .9rem; }
.step, .mono-label, .field-label, .editor-foot, .status { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.step { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border: 1px solid var(--tool-accent); color: var(--tool-accent); font-size: .78rem; font-weight: 700; }
.source-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr); gap: 24px; }
.source-note { align-self: start; padding: 18px; background: var(--tool-raised); border: 1px solid var(--tool-line); }
.source-note p { color: var(--tool-muted); font-size: .87rem; line-height: 1.55; margin: 10px 0 0; }
.mono-label { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tool-cyan); }
.field-label { display: block; color: var(--tool-text); font-size: .78rem; font-weight: 700; margin-bottom: 8px; }
.field-help { color: var(--tool-muted); font-size: .82rem; line-height: 1.5; margin: 8px 0 15px; }
.notes-page input[type="file"], .notes-page input[type="text"], .notes-page select, .notes-page textarea { display: block; width: 100%; min-width: 0; border: 1px solid var(--tool-line); border-radius: 3px; background: var(--tool-bg); color: var(--tool-text); font: inherit; padding: 11px 12px; }
.notes-page input[type="file"] { font-size: .84rem; }
.notes-page textarea { resize: vertical; line-height: 1.55; font-size: .91rem; }
.notes-page textarea[readonly] { background: var(--tool-raised); }
.notes-page input:focus, .notes-page select:focus, .notes-page textarea:focus { outline: 2px solid var(--tool-cyan); outline-offset: 2px; }
.preview-wrap { margin: 0 0 14px; }
.preview-wrap video { display: block; width: min(100%, 470px); max-height: 260px; background: #000; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.notes-page button { border-radius: 3px; padding: 10px 14px; font: 700 .78rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; cursor: pointer; }
.notes-page button:disabled { opacity: .48; cursor: not-allowed; }
.notes-page .action-button { border: 1px solid var(--tool-accent); background: var(--tool-accent); color: var(--tool-accent-ink); }
.notes-page .secondary-button { border: 1px solid var(--tool-line); background: var(--tool-raised); color: var(--tool-text); }
.notes-page .text-button { border: 0; padding: 0; background: transparent; color: var(--tool-cyan); }
.notes-page button:not(:disabled):hover { filter: brightness(.88); }
.status { margin-top: 17px; color: var(--tool-muted); font-size: .82rem; }
.error { margin: 12px 0 0; padding: 12px; border: 1px solid #c85b5b; background: color-mix(in srgb, #c85b5b, transparent 88%); color: var(--tool-text); }
.notes-page progress { display: block; width: 100%; height: 9px; margin-top: 11px; accent-color: var(--tool-accent); }
.notes-page progress[hidden], .notes-page .error[hidden], .notes-page .preview-wrap[hidden] { display: none; }
.editor-foot { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-top: 10px; color: var(--tool-muted); font-size: .76rem; }
.settings-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(160px, .8fr) auto; gap: 12px; align-items: end; margin-bottom: 22px; }
.settings-row button { min-height: 46px; }
.about { color: var(--tool-muted); font-size: .85rem; line-height: 1.65; margin: 28px 0 0; }
.about h2 { color: var(--tool-text); font-size: 1.1rem; margin-bottom: 8px; }
.about p { margin: 0 0 10px; }
@media (max-width: 720px) { .notes-page { width: calc(100% - 32px); } .source-grid, .settings-row { grid-template-columns: 1fr; } .settings-row button { width: fit-content; } }
