:root {
  color-scheme: light;
  --ink: #1c2946;
  --muted: #55647d;
  --accent: #354d88;
  --line: #dbe2ef;
  --surface: #fff;
  --canvas: #f6f7fc;
  --tint: #edf1fb;
  --selected: #e6edfc;
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; }
button {
  border: 1px solid #bdc9e0;
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  min-height: 38px;
  padding: .44rem .78rem;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}
button:hover { background: var(--tint); }
button:disabled { opacity: .58; cursor: default; }
:focus-visible { outline: 2px solid #526eb1; outline-offset: 3px; }
input, select, textarea {
  color: var(--ink);
  background: var(--surface);
  min-width: 0;
  width: 100%;
  border: 1px solid #bac7de;
  border-radius: 8px;
  padding: .55rem .65rem;
}
input::placeholder, textarea::placeholder { color: #61708a; opacity: 1; }
svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.banner {
  background: linear-gradient(90deg, #121f3be8, #23385a8c 52%, #20345456), url("./mountain-lake.jpg") center 52% / cover;
  background-color: #273b61;
}
.masthead {
  width: min(100% - 3rem, 1240px);
  min-height: 124px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: white;
}
.identity { display: flex; align-items: center; gap: .8rem; }
.identity h1 { font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -.035em; font-weight: 650; line-height: 1.12; }
.edition { color: #e4ebff; font-size: .8125rem; }
.new-note { background: #e9efff; border-color: #b6c5e7; color: #233656; }
.new-note span { margin-right: .15rem; font-size: 1.05em; }
.workspace {
  width: min(100% - 3rem, 1240px);
  margin: 1.6rem auto 2.5rem;
  display: grid;
  grid-template-columns: minmax(215px, 256px) minmax(0, 1fr);
  gap: clamp(1.1rem, 3vw, 2.4rem);
  align-items: start;
}
.library {
  position: sticky;
  top: 1.25rem;
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  background: #eef1f9;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 1rem;
}
.navigation { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; margin-bottom: 1.15rem; }
.navigation button { border-color: transparent; background: transparent; padding-inline: .35rem; }
.navigation button:hover { background: #e2e9f8; }
.navigation button[aria-pressed="true"] { background: var(--accent); color: white; }
.directory-head, .button-line, .section-toolbar, .note-toolbar { display: flex; align-items: center; gap: .5rem; }
.directory-head, .section-toolbar, .note-toolbar { justify-content: space-between; }
.directory-head h2 { font-size: 1rem; }
.link-button { background: transparent; border: 0; color: var(--accent); min-height: 34px; padding-inline: .35rem; }
.link-button[aria-pressed="true"] { background: #dfe7fa; }
.search { position: relative; display: block; margin: .55rem 0 .65rem; }
.search svg { position: absolute; top: 50%; left: .55rem; transform: translateY(-50%); color: #61718c; pointer-events: none; }
.search input { padding-left: 1.95rem; font-size: .875rem; }
.note-list { display: grid; gap: .25rem; }
.note-item { text-align: left; background: transparent; border-color: transparent; padding: .52rem .56rem; min-width: 0; }
.note-item[aria-current="true"] { background: var(--selected); border-color: #b0c0e4; }
.note-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-item small { font-size: .8125rem; color: var(--muted); font-weight: 400; }
.storage-status { display: flex; align-items: center; gap: .4rem; border-top: 1px solid #d6dff0; margin-top: 1.1rem; padding-top: .85rem; font-size: .8125rem; color: var(--muted); }
main { min-width: 0; }
.note-toolbar { flex-wrap: wrap; margin-bottom: .5rem; }
.note-kind { color: var(--muted); font-size: .875rem; }
.button-line { flex-wrap: wrap; }
.meeting-title { font-size: clamp(1.55rem, 3.5vw, 2.35rem); letter-spacing: -.04em; line-height: 1.2; font-weight: 650; background: transparent; border: 1px solid transparent; padding: .16rem 0; }
.meeting-title:hover { border-bottom-color: #bac7de; }
.metadata { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .6rem; }
.metadata label { width: min(100%, 168px); }
.metadata label, .task-form label, dialog label { display: grid; gap: .25rem; color: var(--muted); font-size: .875rem; }
.metadata select { appearance: none; padding-right: 1.75rem; background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2355647d' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.3'/%3E%3C/svg%3E") right .6rem center no-repeat; }
.notes-area, .tasks-area { margin-top: 1.35rem; padding-top: 1.05rem; border-top: 1px solid var(--line); }
.section-toolbar { flex-wrap: wrap; margin-bottom: .7rem; }
.section-toolbar h2 { font-size: 1.18rem; letter-spacing: -.02em; }
.primary { background: var(--accent); color: white; border-color: var(--accent); display: inline-flex; align-items: center; gap: .4rem; }
.primary:hover { background: #273e75; }
textarea { display: block; min-height: 215px; resize: vertical; line-height: 1.6; padding: .75rem .85rem; }
#cards { display: grid; gap: .6rem; }
#cards:empty { display: none; }
.section-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.section-card h3 { font-size: 1rem; background: #edf2fc; padding: .53rem .85rem; overflow-wrap: anywhere; }
.section-card ul { margin: 0; padding: .42rem 1rem .6rem 2rem; }
.section-card li { padding-block: .12rem; overflow-wrap: anywhere; }
.section-card li::marker { color: #637bae; }
.organize-feedback { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .875rem; margin-top: .35rem; min-height: 34px; }
.task-form { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(90px, 145px) minmax(128px, 152px) auto; align-items: end; gap: .48rem; }
.task-form input { min-height: 40px; }
.task-form button { min-height: 40px; }
.task-list { margin: 0 0 .65rem; padding: 0; list-style: none; display: grid; gap: .4rem; }
.task-list:empty { display: none; }
.task { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .65rem; border: 1px solid var(--line); background: white; border-radius: 9px; padding: .47rem .65rem; }
.task-copy { flex: 1 1 150px; display: flex; gap: .65rem; align-items: flex-start; overflow-wrap: anywhere; }
.task-copy input, .check-label input { flex: none; width: 1rem; height: 1rem; accent-color: var(--accent); }
.task-copy input { margin-top: .31rem; }
.task-copy small { display: block; color: var(--muted); font-size: .8125rem; }
.task-done .task-title { text-decoration: line-through; color: var(--muted); }
.muted, .empty-small { color: var(--muted); font-size: .875rem; }
.empty-small { padding: .35rem .15rem; }
.overview-heading h2 { font-size: 1.8rem; }
.check-label { display: flex; align-items: center; gap: .35rem; font-size: .875rem; }
.empty-state { color: var(--muted); padding: 1.2rem; background: white; border: 1px solid var(--line); border-radius: 10px; }
dialog { width: min(440px, calc(100% - 2rem)); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; }
dialog::backdrop { background: #16284760; }
dialog form { display: grid; gap: .8rem; }
dialog form .button-line { justify-content: flex-end; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 940px) {
  .task-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-main { grid-column: 1 / -1; }
  .task-form button { justify-self: start; }
}
@media (max-width: 690px) {
  .masthead, .workspace { width: calc(100% - 1.7rem); }
  .masthead { min-height: 102px; }
  .identity img { width: 36px; height: 36px; }
  .workspace { grid-template-columns: minmax(0, 1fr); margin-top: .85rem; }
  .library { position: static; max-height: none; padding: .75rem; }
  .navigation { margin-bottom: .65rem; }
  .note-list { display: flex; overflow: auto; padding: 3px; gap: .35rem; }
  .note-item { flex: 0 1 195px; min-width: min(150px, 100%); }
  .storage-status { margin-top: .6rem; padding-top: .55rem; }
  input, select, textarea { font-size: 1rem; }
}
