/* Collection navigation, personal records and speech selection. */
.speech-cards { padding: 0 0 18px; border-bottom: 1px solid #8b9ab72d; }
.speech-filter { position: relative; z-index: 6; }
.speech-filter-menu { position: absolute; z-index: 30; overflow: auto; }
.speech-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; transition: background .15s, color .15s; }
.speech-option-copy { display: grid; min-width: 0; }
.speech-option-check { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 auto; }
.speaker-notes{ margin: 26px 0 8px; padding: 16px; border: 1px solid #8b9ab72d; border-radius: 16px; background: #0b111e; }
.speaker-notes h3{ margin: 0 0 12px; font-size: 15px; font-weight: 550; color: #d7ddf0; }
.speaker-note-card{ display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px; border: 1px solid #8b9ab72d; border-radius: 12px; background: #0d1422; text-align: left; }
.speaker-note-card + .speaker-note-card{ margin-top: 8px; }
.speaker-note-cover{ width: 84px; height: 52px; object-fit: cover; border-radius: 8px; background: #151d2e; flex: 0 0 auto; }
.speaker-note-copy{ display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.speaker-note-copy strong{ font-size: 14px; font-weight: 550; color: #e7ebf7; }
.speaker-note-copy span{ font-size: 11px; color: #98a6c2; }
.speaker-note-copy small{ font-size: 10px; color: #6d7b96; }
.speaker-record{ display: flex; gap: 8px; padding: 10px 0; border-top: 1px solid #ffffff0d; font-size: 13px; color: #c3cce0; line-height: 1.7; }
.speaker-record-type{ flex: 0 0 auto; color: #e6b86a; font-size: 10px; }
.speaker-record-type.is-note{ color: #6fe3d2; }
.speaker-record small{ color: #6d7b96; font-size: 10px; }
.speaker-record-text{ flex: 1 1 auto; min-width: 0; }
.speaker-records-empty{ margin: 0; padding: 12px 0; border-top: 1px solid #ffffff0d; font-size: 12px; color: #98a6c2; }
.speaker-material-list{ display: grid; gap: 8px; margin: 4px 0 18px; }
.speaker-material{ border: 1px solid #8b9ab72d; border-radius: 10px; overflow: hidden; background: #0b111e; }
.speaker-material img{ max-height: 220px; object-fit: contain; background: #080d19; }
.speech-page{margin:0 0 20px;padding:0 0 18px;border-bottom:1px solid #ffffff0d}
.speech-page:last-of-type{border-bottom:0;padding-bottom:0}
.speech-page .screenshot-btn{display:block;width:100%;margin-bottom:10px}
.speech-page-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 0 8px}
.speech-page-head strong{font-size:14px;font-weight:550;color:#dfe6f6;line-height:1.5}
.speech-page-head small{flex:0 0 auto;font-size:10px;color:#6d7b96;font-variant-numeric:tabular-nums}
.speech-quote{margin:8px 0;padding:9px 12px;border-left:2px solid #e6b86a88;border-radius:0 9px 9px 0;background:#e6b86a0d;color:#e9e1cf;font-size:13px;line-height:1.7}
.speech-quote small{display:block;margin-top:3px;color:#7c745f;font-size:9px;font-variant-numeric:tabular-nums}
.speech-material-list{grid-template-columns:1fr;margin-bottom:16px}
.note-speech-tag{display:inline-block;max-width:9em;margin-right:6px;padding:2px 6px;border:1px solid #8ea8e23d;border-radius:999px;background:#8ea8e21a;color:#aebfe4;font-size:9px;font-style:normal;line-height:1.4;vertical-align:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (min-width:768px){.speech-material-list{grid-template-columns:1fr 1fr}}
.note.is-inline{cursor:default;min-height:0}
.note.is-inline:hover{transform:none;border-color:#b8a8d139}
.note.is-inline[data-note]{cursor:pointer}
.note.is-inline[data-note]:hover{transform:translateY(-2px);border-color:#beadd176}
.note.is-inline[data-note]:focus-visible{outline:2px solid #a1ddff;outline-offset:4px}
.note.is-record{min-height:0;padding:16px 18px}
.record-kind{margin:0 0 8px;font-size:10px;letter-spacing:.14em;color:var(--color);font-weight:600}
.note.is-record .note-text{font-size:15px;line-height:1.75}
.record-meta{margin:10px 0 0;font-size:10px;color:#7f8ea9;letter-spacing:.04em}
.collection-title-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.collection-title-row > h1 { flex: 0 0 auto; margin: 0; }
.collection-title-row > .speech-cards { flex: 1 1 auto; min-width: 0; max-width: 250px; margin: 0 0 0 auto; }
.collection-intro { position: relative; z-index: 8; }
.speech-toolbar { display: flex; align-items: center; gap: 8px; min-width: 0; }
.speech-control-label { flex-shrink: 0; font-size: 12px; color: #b5adc8; }
.speech-toolbar .speech-filter { flex: 1 1 auto; min-width: 0; margin: 0; z-index: 10; }
.speech-toolbar .speech-filter-trigger {
  min-height: 44px; width: 100%; display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border: 1px solid #b7a9d73d; border-radius: 10px;
  background: #1013229c; color: #e6ddf5; box-shadow: inset 0 1px #e2d5ff0b;
  text-align: left; font-size: 14px; font-weight: 450;
}
.speech-toolbar .speech-filter-trigger:hover, .speech-toolbar .speech-filter.is-open .speech-filter-trigger { border-color: #c6afe88c; background: #211c359c; box-shadow: inset 0 1px #e2d5ff14; }
#speech-filter-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.speech-filter-trigger > svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: #c4b3df; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.speech-filter.is-open .speech-filter-trigger > svg { transform: rotate(180deg); }
.speech-toolbar .speech-filter-menu {
  left: auto; right: 0; top: calc(100% + 7px); width: min(310px, calc(100vw - 48px));
  max-height: min(320px, 50vh); padding: 6px; border: 1px solid #c4add95e; border-radius: 12px;
  background: #19172af5; box-shadow: 0 16px 45px #03030cb3; backdrop-filter: blur(24px);
}
.speech-toolbar .speech-option { min-height: 62px; padding: 11px 12px; border-radius: 8px; }
.speech-toolbar .speech-option:hover, .speech-toolbar .speech-option:focus-visible { background: #c6a2ea14; color: #fff1ff; outline: 1px solid #c9b1e657; outline-offset: -1px; }
.speech-toolbar .speech-option.is-active { background: #b59bd124; color: #f2e8ff; }
.speech-toolbar .speech-option-copy { gap: 5px; }
.speech-toolbar .speech-option-copy strong { font-size: 14px; font-weight: 500; white-space: normal; line-height: 1.5; }
.speech-toolbar .speech-option-copy small { font-size: 12px; color: #a89abf; line-height: 1.5; }
.speech-toolbar .speech-option-check { background: transparent; color: #e0c2ff; font-size: 14px; }
.speech-filter-reset { min-height: 44px; flex-shrink: 0; padding: 0 2px; color: #b6a3cf; font-size: 12px; }
.speech-filter-reset:hover { color: #f4dcff; }
.garden { display: flex; flex-direction: column; }
.garden > .flower-wrap { position: relative; inset: auto; height: 340px; margin: 8px -8px 0; }
.garden > .bird-help { position: relative; inset: auto; font-size: 12px; margin: 0; }
.collection-intro #growth { margin-top: 12px; color: #a99bbb; }
.collection-head { margin-bottom: 6px; }
.collection-head #total { color: #afa0c4; font-size: 13px; }
.note-main.has-personal-note { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 14px; align-items: start; }
.has-personal-note > .note-heading { grid-column: 1 / -1; min-width: 0; }
.has-personal-note > .note-personal-line { grid-column: 1; margin: 0; min-width: 0; padding: 10px 12px; }
.has-personal-note > .thumb { grid-column: 2; grid-row: 2; align-self: start; margin: 0; }
.note-personal-label { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 550; color: #d9c8f0; }
.note-personal-body p { margin: 0; font-size: 12px; line-height: 1.7; font-weight: 400; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-personal-body p + p { margin-top: 8px; }
.fold-preview .garden { display: flex; gap: 0; margin-bottom: 24px; }
.fold-preview .collection-intro { position: relative; inset: auto; width: 100%; }
.fold-preview .collection-title-row { gap: 12px; flex-wrap: wrap; }
.fold-preview .collection-title-row > .speech-cards { flex: 1 1 170px; max-width: none; }
.fold-preview .garden > .flower-wrap { height: 250px; margin: 8px 0 0; width: 100%; }
.fold-preview .garden > .bird-help { font-size: 11px; margin-top: 0; }
@media (max-width: 767px) {
  .collection-title-row { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .collection-title-row > .speech-cards { flex: 0 0 auto; width: 100%; max-width: none; margin: 0; }
  .speech-toolbar { gap: 10px; }
  .speech-control-label { font-size: 13px; }
  .speech-toolbar .speech-filter-menu { left: 0; right: auto; width: 100%; }
  .garden > .flower-wrap { height: 300px; margin: 6px -6px 0; }
  .collection { padding-top: 22px; }
}
