/* Yoyo Notlar */
svg.nt-st { fill: none !important; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.nt-wrap { display: flex; height: 100%; min-height: 0; }
.nt-list { width: 320px; flex: none; display: flex; flex-direction: column; min-height: 0; border-inline-end: 1px solid var(--line); }
.nt-lhead { display: flex; align-items: center; gap: 8px; padding: 0 10px 0 16px; height: 52px; flex: none; border-bottom: 1px solid var(--line); }
.nt-lhead h1 { margin: 0; font-size: 16px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-items { flex: 1; overflow-y: auto; min-height: 0; }
.nt-item { display: grid; gap: 2px; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: start; padding: 11px 16px; min-width: 0; }
.nt-item:hover { background: #f8fafc; }
.nt-item.on { background: var(--blue-l); }
.nt-t { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nt-t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nt-t svg { width: 14px; height: 14px; fill: var(--mute); flex: none; }
.nt-s { display: flex; gap: 8px; font-size: 13px; color: var(--mute); min-width: 0; }
.nt-s time { flex: none; color: #475569; }
.nt-s span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nt-item mark { background: #fde68a; color: inherit; border-radius: 2px; }

.nt-pane { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.nt-head { display: flex; align-items: center; gap: 6px; padding: 0 10px; min-height: 52px; flex: none; border-bottom: 1px solid var(--line); }
.nt-back { display: none; }
.nt-tools { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nt-tools::-webkit-scrollbar { display: none; }
.nt-tb { font-size: 14px; line-height: 1; }
.nt-tb b { font-weight: 700; }
.nt-tb i { font-family: Georgia, "Times New Roman", serif; font-size: 16px; }
.nt-tb.on { background: var(--blue-l); color: var(--blue-d); }
.nt-sep { width: 1px; height: 18px; background: var(--line); margin: 0 5px; flex: none; }
.nt-acts { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; flex: none; }
.nt-state { font-size: 12px; color: var(--mute); white-space: nowrap; margin-inline-end: 4px; }
.nt-state.bad { color: var(--red); }
.nt-pin.on { color: var(--blue); }
.nt-conf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 16px; background: #fffbeb; border-bottom: 1px solid #fde68a; font-size: 14px; flex: none; }
.nt-conf span { flex: 1; min-width: 160px; }

.nt-scroll { flex: 1; overflow-y: auto; min-height: 0; display: flex; flex-direction: column; }
.nt-date { font-size: 12px; color: var(--mute); padding: 14px 28px 0; width: 100%; max-width: 820px; }
.nt-ed { flex: 1; outline: 0; padding: 8px 28px 60px; width: 100%; max-width: 820px; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; cursor: text; }
.nt-ed > :first-child { font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; margin-top: 0; }
.nt-ed p { margin: 0; }
.nt-ed h1 { font-size: 24px; line-height: 1.3; margin: 14px 0 4px; }
.nt-ed h2 { font-size: 19px; line-height: 1.35; margin: 12px 0 4px; }
.nt-ed h3 { font-size: 16px; margin: 10px 0 2px; }
.nt-ed a { color: var(--blue); cursor: pointer; }
.nt-ed ul, .nt-ed ol { margin: 4px 0; padding-inline-start: 26px; }
.nt-ed blockquote { margin: 8px 0; padding: 2px 0 2px 14px; border-inline-start: 3px solid #cbd5e1; color: #475569; }
.nt-ed pre, .nt-ed code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; background: #f1f5f9; border-radius: 4px; }
.nt-ed pre { margin: 8px 0; padding: 10px 12px; white-space: pre-wrap; border-radius: 8px; font-weight: 400; }
.nt-ed code { padding: 1px 4px; }
.nt-ed pre code { padding: 0; background: none; }
.nt-ed img { max-width: 100%; height: auto; border-radius: 6px; vertical-align: top; margin: 4px 0; }
.nt-ed hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.nt-ed ul[data-todo] { list-style: none; padding-inline-start: 0; }
.nt-ed ul[data-todo] > li { position: relative; padding-inline-start: 28px; }
.nt-ed ul[data-todo] > li::before { content: ""; position: absolute; inset-inline-start: 1px; top: .32em; width: 17px; height: 17px; border: 1.5px solid #94a3b8; border-radius: 5px; background: #fff; cursor: pointer; }
.nt-ed ul[data-todo] > li[data-done]::before { border-color: var(--blue); background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='m5.500 12.500 4.200 4.200 8.800-9.400'/%3E%3C/svg%3E") center / 13px no-repeat; }
.nt-ed ul[data-todo] > li[data-done] { color: var(--mute); text-decoration: line-through; }
.nt-ed > ul[data-todo]:first-child > li::before { top: .28em; }
.nt-off { position: fixed; left: -10000px; top: 0; width: 700px; white-space: normal; }

@media (max-width: 1040px) and (min-width: 761px) {
  .nt-list { width: 250px; }
}
@media (max-width: 760px) {
  /* Arama kutusu daralabilsin; yoksa ust cubuk 375 px'e sigmiyor */
  .ys-search { min-width: 0; }
  .nt-list { width: 100%; border: 0; }
  .nt-pane { display: none; }
  .nt-open .nt-list { display: none; }
  .nt-open .nt-pane { display: flex; }
  .nt-back { display: inline-grid; }
  .nt-head { flex-wrap: wrap; padding: 4px 6px 0; gap: 0 4px; }
  .nt-tools { order: 3; flex: 0 0 100%; padding: 2px 4px 6px; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; }
  .nt-date { padding: 12px 16px 0; }
  .nt-ed { padding: 6px 16px 60px; }
  .nt-ed > :first-child { font-size: 22px; }
}

@media print {
  .ys-top, .ys-side, .nt-list, .nt-head, .nt-conf, .ys-toast, .ys-menu { display: none !important; }
  body { background: #fff; }
  .ys, .ys-body, .nt-wrap, .nt-pane, .nt-scroll { display: block !important; height: auto !important; overflow: visible !important; }
  .ys-main { overflow: visible; border: 0; margin: 0; }
  .nt-ed { max-width: none; padding: 0; }
  .nt-date { padding: 0 0 8px; }
}
