:root { color-scheme: light; font-family: Inter, "Segoe UI", Arial, sans-serif; color: #173b42; background: #eaf1f4; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #eaf1f4; }
.notes-page { width: min(1180px, calc(100% - 40px)); margin: 34px auto 60px; }
.notes-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 7px; color: #188a86; font-size: 12px; font-weight: 800; letter-spacing: .14em; }
h1 { margin: 0; color: #123f4c; font-size: 32px; }
.subtitle { margin: 9px 0 0; color: #59757a; }
.back-link, .notes-toolbar button { border: 1px solid #b9dada; border-radius: 9px; padding: 10px 14px; color: #176f83; background: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.notes-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding: 13px 16px; border: 1px solid #d8e7e8; border-radius: 12px; background: #fff; color: #176f83; }
.notes-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.notes-navigation { position: sticky; top: 14px; display: grid; gap: 6px; max-height: calc(100vh - 28px); overflow: auto; padding: 12px; border: 1px solid #d8e7e8; border-radius: 13px; background: #fff; }
.note-filter { display: grid; gap: 4px; padding: 10px 11px; border: 0; border-radius: 8px; color: #31555c; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.note-filter:hover, .note-filter.active { background: #eef7f8; }
.note-filter.active { color: #126f83; box-shadow: inset 3px 0 #19869a; }
.notes-navigation strong { font-size: 13px; }
.notes-navigation span { color: #789095; font-size: 11px; }
.notes-content { min-width: 0; }
.notes-groups { display: grid; gap: 18px; }
.note-group { overflow: hidden; border: 1px solid #d8e7e8; border-radius: 14px; background: #fff; box-shadow: 0 5px 18px #17424c10; }
.note-group h2 { margin: 0; padding: 15px 19px; color: #174954; background: #eef7f8; font-size: 18px; }
.note-group-content { display: grid; gap: 12px; padding: 15px; }
.note-card { padding: 15px 17px; border: 1px solid #f0d0cd; border-radius: 11px; background: #fff4f3; }
.note-card-header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: #59757a; font-size: 12px; }
.note-card-header strong { color: #176f83; font-size: 14px; }
.note-meta { display: flex; align-items: center; gap: 10px; }
.delete-note-button { width: 30px; height: 30px; border: 1px solid #efd2cf; border-radius: 8px; color: #b34840; background: #fff; font-size: 15px; cursor: pointer; }
.delete-note-button:hover { background: #fff0ee; }
.note-subtopic { margin-bottom: 8px; color: #628087; font-size: 12px; }
.note-question { margin: 0 0 10px; color: #17424c; font-weight: 650; line-height: 1.6; white-space: pre-wrap; }
.note-text { margin: 0; padding-top: 10px; border-top: 1px solid #edd9d7; color: #31555c; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.notes-empty { padding: 35px 20px; border: 1px solid #d8e7e8; border-radius: 14px; color: #6a8388; background: #fff; text-align: center; }
.note-viewer { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: #102c3180; }
.note-viewer[hidden] { display: none; }
.note-viewer-card { width: min(760px, 100%); max-height: min(84vh, 850px); overflow: auto; padding: 24px; border: 1px solid #d8e7e8; border-radius: 17px; background: #fff; box-shadow: 0 20px 65px #102c3150; animation: note-card-zoom .16s ease-out; }
.note-viewer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid #e7eeee; }
.note-viewer-header h2 { margin: 0; color: #174954; font-size: 22px; }
.viewer-topic { margin: 0 0 5px; color: #188a86; font-size: 13px; font-weight: 700; }
.close-note-viewer { width: 36px; height: 36px; border: 1px solid #d8e7e8; border-radius: 50%; color: #176f83; background: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.note-viewer-card h3 { margin: 20px 0 7px; color: #59757a; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.viewer-question, .viewer-note { margin: 0; color: #173b42; font-size: 17px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.viewer-note { padding: 15px; border: 1px solid #f0d0cd; border-radius: 11px; background: #fff4f3; }
.viewer-date { display: block; margin-top: 15px; color: #789095; font-size: 12px; }
@keyframes note-card-zoom { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 760px) { .notes-page { width: calc(100% - 24px); margin-top: 20px; } .notes-layout { grid-template-columns: 1fr; } .notes-navigation { position: static; display: flex; max-height: none; overflow-x: auto; } .note-filter { min-width: max-content; } .notes-header { align-items: flex-start; flex-direction: column; } h1 { font-size: 27px; } }
