@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap");

.jd-thoughts {
  --jdt-bg: #f5f5fb;
  --jdt-paper: #fcfbff;
  --jdt-paper-2: #eeeff9;
  --jdt-ink: #252947;
  --jdt-soft: #525b79;
  --jdt-muted: #6b7591;
  --jdt-line: #dfe2f0;
  --jdt-accent: #6355b8;
  --jdt-accent-ink: #fcfaff;
  --jdt-accent-soft: #e9e5fa;
  --jdt-error: #a83450;
  --jdt-decor: rgba(104, 93, 170, .10);
  --jdt-shadow: 0 14px 40px rgba(39, 40, 85, .055);
  box-sizing: border-box;
  isolation: isolate;
  width: 100%;
  min-height: 100dvh;
  padding: clamp(28px, 5vw, 70px) clamp(18px, 5vw, 68px) 100px;
  background: radial-gradient(ellipse 68% 35% at 78% 0%, var(--jdt-decor), transparent 80%), var(--jdt-bg);
  color: var(--jdt-ink);
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.jd-thoughts *, .jd-thoughts *::before, .jd-thoughts *::after { box-sizing: border-box; }
[data-theme="dark"] .jd-thoughts, .dark .jd-thoughts, .jd-thoughts[data-theme="dark"] {
  --jdt-bg: #101630;
  --jdt-paper: #192240;
  --jdt-paper-2: #212b4d;
  --jdt-ink: #f2f1fc;
  --jdt-soft: #c5cce3;
  --jdt-muted: #a6b1d1;
  --jdt-line: #344062;
  --jdt-accent: #beadff;
  --jdt-accent-ink: #1d193a;
  --jdt-accent-soft: #312d59;
  --jdt-error: #ff9ba6;
  --jdt-decor: rgba(152, 141, 241, .11);
  --jdt-shadow: 0 20px 55px rgba(5, 10, 31, .15);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="mono"]) .jd-thoughts {
    --jdt-bg: #101630;
    --jdt-paper: #192240;
    --jdt-paper-2: #212b4d;
    --jdt-ink: #f2f1fc;
    --jdt-soft: #c5cce3;
    --jdt-muted: #a6b1d1;
    --jdt-line: #344062;
    --jdt-accent: #beadff;
    --jdt-accent-ink: #1d193a;
    --jdt-accent-soft: #312d59;
    --jdt-error: #ff9ba6;
    --jdt-decor: rgba(152, 141, 241, .11);
    --jdt-shadow: 0 20px 55px rgba(5, 10, 31, .15);
    color-scheme: dark;
  }
}
.jd-thoughts button { font: inherit; cursor: pointer; }
.jd-thoughts button:disabled { cursor: not-allowed; opacity: .56; }
.jd-thoughts button:focus-visible { outline: 2px solid var(--jdt-accent); outline-offset: 4px; }
.jd-thoughts svg { display: block; flex: none; }
.jd-thoughts p, .jd-thoughts h1, .jd-thoughts h2, .jd-thoughts h3 { margin: 0; }
.jd-thoughts-inner { max-width: 1180px; margin: 0 auto; }
.jd-thoughts-topline { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(32px, 5vw, 64px); }
.jd-thoughts-monogram { width: 32px; height: 32px; border: 1px solid var(--jdt-line); border-radius: 10px; display: grid; place-items: center; font: italic 24px/1 "Instrument Serif", Georgia, serif; color: var(--jdt-accent); background: var(--jdt-paper); }
.jd-thoughts-brand { color: var(--jdt-soft); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.jd-thoughts-topline-rule { flex: 1; height: 1px; background: var(--jdt-line); margin-left: 8px; }
.jd-thoughts-topline-end { color: var(--jdt-muted); font-size: 12px; white-space: nowrap; }
.jd-thoughts-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(30px, 4vw, 48px); }
.jd-thoughts-eyebrow { display: flex; align-items: center; gap: 9px; color: var(--jdt-accent); text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .19em; margin-bottom: 12px !important; }
.jd-thoughts-eyebrow::before { content: ""; width: 21px; height: 1px; background: currentColor; }
.jd-thoughts h1 { font: 400 clamp(52px, 6.5vw, 92px)/.98 "Instrument Serif", Georgia, serif; letter-spacing: -.035em; }
.jd-thoughts-subtitle { max-width: 52ch; margin-top: 18px !important; color: var(--jdt-soft); font-size: clamp(14px, 1.4vw, 16px); line-height: 1.7; }
.jd-thoughts-actions { display: flex; gap: 10px; align-items: center; flex: none; padding-bottom: 4px; }
.jd-thoughts-btn { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 46px; border-radius: 12px; border: 1px solid var(--jdt-line); padding: 0 17px; color: var(--jdt-ink); background: var(--jdt-paper); font-size: 13px !important; font-weight: 700 !important; transition: transform .18s ease, opacity .18s ease; }
.jd-thoughts-btn:hover:not(:disabled) { transform: translateY(-2px); }
.jd-thoughts-btn svg { width: 17px; height: 17px; }
.jd-thoughts-btn-primary { border-color: transparent; background: var(--jdt-accent); color: var(--jdt-accent-ink); padding: 0 19px; }
.jd-thoughts-layout { display: grid; grid-template-columns: minmax(0, 1fr) 252px; align-items: start; gap: clamp(24px, 4vw, 56px); }
.jd-thoughts-main { min-width: 0; }
.jd-thoughts-sectionhead { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--jdt-line); padding: 0 2px 13px; margin-bottom: 11px; }
.jd-thoughts-sectionhead h2 { font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--jdt-soft); }
.jd-thoughts-count { font-size: 12px; color: var(--jdt-muted); }
.jd-thoughts-sync { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; min-height: 28px; color: var(--jdt-muted); font-size: 12px; line-height: 1.5; margin: 0 0 13px; }
.jd-thoughts-sync-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--jdt-accent); opacity: .8; }
.jd-thoughts-sync[data-status="error"] { color: var(--jdt-error); }
.jd-thoughts-sync[data-status="error"] .jd-thoughts-sync-dot { background: currentColor; }
.jd-thoughts-list { display: grid; gap: 10px; }
.jd-thoughts-note { position: relative; padding: 22px 24px 18px; border: 1px solid var(--jdt-line); border-radius: 16px; background: var(--jdt-paper); box-shadow: var(--jdt-shadow); animation: jd-thoughts-rise .35s both; }
.jd-thoughts-note:nth-child(2) { animation-delay: .05s; }
.jd-thoughts-note:nth-child(3) { animation-delay: .1s; }
.jd-thoughts-note:hover { border-color: var(--jdt-accent); }
.jd-thoughts-note-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.jd-thoughts-date { color: var(--jdt-muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.jd-thoughts .badge { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; max-width: 100%; padding: 3px 10px; border: 1px solid var(--jdt-line); border-radius: 999px; background: var(--jdt-paper-2); color: var(--jdt-soft); font-size: 11px; font-weight: 700; white-space: nowrap; }
.jd-thoughts .badge svg { width: 13px; height: 13px; }
.jd-thoughts .badge.b-private { color: var(--jdt-accent); background: var(--jdt-accent-soft); border-color: transparent; }
.jd-thoughts-note h3 { font: 400 clamp(25px, 2.4vw, 32px)/1.12 "Instrument Serif", Georgia, serif; letter-spacing: -.01em; overflow-wrap: anywhere; }
.jd-thoughts-preview-text { margin-top: 8px !important; color: var(--jdt-soft); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.jd-thoughts-note-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--jdt-line); }
.jd-thoughts-open { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 3px; color: var(--jdt-accent); background: none; border: 0; font-size: 12px !important; font-weight: 700 !important; }
.jd-thoughts-open svg { width: 15px; height: 15px; }
.jd-thoughts-note-tools { display: flex; align-items: center; gap: 5px; }
.jd-thoughts-tool { min-height: 44px; padding: 0 10px; border-radius: 9px; border: 0; background: transparent; color: var(--jdt-muted); font-size: 12px !important; font-weight: 600 !important; }
.jd-thoughts-tool:hover { background: var(--jdt-paper-2); color: var(--jdt-ink); }
.jd-thoughts-tool-danger:hover { color: var(--jdt-error); }
.jd-thoughts-aside { padding: 23px 0 0; border-top: 1px solid var(--jdt-accent); }
.jd-thoughts-aside-icon { width: 37px; height: 37px; padding: 8px; color: var(--jdt-accent); border-radius: 11px; background: var(--jdt-accent-soft); margin-bottom: 20px; }
.jd-thoughts-aside h2 { font: italic 400 28px/1.05 "Instrument Serif", Georgia, serif; color: var(--jdt-ink); margin-bottom: 12px; }
.jd-thoughts-aside p { font-size: 12px; line-height: 1.7; color: var(--jdt-soft); }
.jd-thoughts-aside-divider { height: 1px; background: var(--jdt-line); margin: 23px 0 17px; }
.jd-thoughts-aside-small { color: var(--jdt-muted) !important; }
.jd-thoughts-state { min-height: 286px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(26px, 5vw, 48px); border: 1px dashed var(--jdt-line); border-radius: 16px; background: var(--jdt-paper); }
.jd-thoughts-state-art { position: relative; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--jdt-accent-soft); color: var(--jdt-accent); margin-bottom: 24px; }
.jd-thoughts-state-art svg { width: 25px; height: 25px; }
.jd-thoughts-state h3 { font: 400 32px/1.1 "Instrument Serif", Georgia, serif; }
.jd-thoughts-state p { margin: 9px 0 20px; color: var(--jdt-soft); font-size: 13px; max-width: 40ch; line-height: 1.7; }
.jd-thoughts-state-error { border-color: var(--jdt-error); }
.jd-thoughts-state-error .jd-thoughts-state-art { color: var(--jdt-error); }
.jd-thoughts-skeleton { min-height: 170px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.jd-thoughts-skeleton span { height: 11px; border-radius: 20px; background: var(--jdt-paper-2); animation: jd-thoughts-pulse 1.4s ease-in-out infinite alternate; }
.jd-thoughts-skeleton span:nth-child(1) { width: 26%; }
.jd-thoughts-skeleton span:nth-child(2) { width: 65%; height: 24px; }
.jd-thoughts-skeleton span:nth-child(3) { width: 83%; }
@keyframes jd-thoughts-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes jd-thoughts-pulse { from { opacity: .4; } to { opacity: .85; } }
@media (max-width: 800px) {
  .jd-thoughts-layout { grid-template-columns: 1fr; }
  .jd-thoughts-aside { padding: 23px 24px; border: 1px solid var(--jdt-line); border-top-color: var(--jdt-accent); border-radius: 14px; }
  .jd-thoughts-aside-icon { margin-bottom: 14px; }
  .jd-thoughts-aside-divider { margin: 15px 0 12px; }
}
@media (max-width: 620px) {
  .jd-thoughts { padding: 25px 17px 70px; }
  .jd-thoughts-topline { margin-bottom: 38px; }
  .jd-thoughts-topline-end { display: none; }
  .jd-thoughts-header { display: block; margin-bottom: 26px; }
  .jd-thoughts h1 { font-size: 62px; }
  .jd-thoughts-subtitle { margin-top: 13px !important; }
  .jd-thoughts-actions { display: grid; grid-template-columns: 1fr 1.35fr; margin-top: 25px; }
  .jd-thoughts-btn { padding-inline: 8px; }
  .jd-thoughts-note { padding: 20px 18px 12px; }
  .jd-thoughts-note h3 { font-size: 28px; }
  .jd-thoughts-note-foot { margin-top: 13px; }
  .jd-thoughts-tool { padding-inline: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .jd-thoughts-note, .jd-thoughts-skeleton span { animation: none; }
  .jd-thoughts-btn { transition: none; }
}