#notesWorkspace {
  --notes-blue: #0b2f7a;
  --notes-blue-soft: #e8f0ff;
  --notes-gold: #d9a92f;
  --notes-ink: #17203a;
  --notes-muted: #69728b;
  position: fixed;
  inset: 0;
  z-index: 130;
  width: 100%;
  height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
  color: var(--notes-ink);
  background:
    radial-gradient(circle at 92% 5%, rgba(217, 169, 47, .16), transparent 25rem),
    #f7f5ef;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#notesWorkspace[hidden],
#notesWorkspace [hidden] { display: none !important; }

#notesWorkspace * { box-sizing: border-box; }

#notesWorkspace button,
#notesWorkspace input,
#notesWorkspace textarea { font: inherit; }

#notesWorkspace button { color: inherit; }

#notesWorkspace .ee-notes-app { display: flex; flex-direction: column; height: 100%; }

#notesWorkspace .ee-notes-topbar {
  display: grid;
  grid-template-columns: auto auto auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding:
    calc(10px + env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    10px
    max(18px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(11, 47, 122, .12);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 35px rgba(40, 50, 80, .08);
  backdrop-filter: blur(18px);
}

#notesWorkspace .ee-notes-topbar > img { border-radius: 50%; background: var(--notes-blue); box-shadow: 0 0 0 3px rgba(217, 169, 47, .2); }

#notesWorkspace .ee-notes-iconbtn {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(11, 47, 122, .15);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

#notesWorkspace .ee-notes-heading { min-width: 180px; }
#notesWorkspace .ee-notes-heading strong,
#notesWorkspace .ee-notes-heading span { display: block; }
#notesWorkspace .ee-notes-heading strong { color: var(--notes-blue); font: 700 17px/1.1 "Hammersmith One", sans-serif; }
#notesWorkspace .ee-notes-heading span { margin-top: 4px; color: var(--notes-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

#notesWorkspace .ee-notes-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(610px, 100%);
  min-height: 46px;
  justify-self: center;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: #eef1f7;
}

#notesWorkspace .ee-notes-search:focus-within { border-color: rgba(11, 47, 122, .28); background: #fff; box-shadow: 0 6px 22px rgba(11, 47, 122, .1); }
#notesWorkspace .ee-notes-search span { color: var(--notes-muted); font-size: 24px; }
#notesWorkspace .ee-notes-search input { width: 100%; border: 0; outline: 0; color: var(--notes-ink); background: transparent; }
#notesWorkspace .ee-notes-search input { margin: 0; padding: 0; border-radius: 0; font-size: 14px; letter-spacing: 0; text-align: left; }

#notesWorkspace .ee-notes-new,
#notesWorkspace .ee-notes-empty button {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid #d8a62c;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #0b2f7a, #174caa);
  box-shadow: 3px 4px 0 rgba(217, 169, 47, .34);
  font-weight: 750;
  cursor: pointer;
}

#notesWorkspace .ee-notes-notice {
  padding: 9px 20px;
  color: #61470b;
  background: #fff2bd;
  font-size: 12px;
  text-align: center;
}
#notesWorkspace .ee-notes-notice[data-kind="error"] { color: #7a1e24; background: #ffe1e4; }

#notesWorkspace .ee-notes-body { display: grid; grid-template-columns: 225px minmax(0, 1fr); flex: 1; min-height: 0; }

#notesWorkspace .ee-notes-sidebar {
  overflow-y: auto;
  padding: 24px 13px calc(24px + env(safe-area-inset-bottom));
  border-right: 1px solid rgba(11, 47, 122, .1);
  background: rgba(255, 255, 255, .55);
}

#notesWorkspace .ee-notes-sidebar nav,
#notesWorkspace .ee-notes-tags [data-tag-list] { display: grid; gap: 5px; }

#notesWorkspace .ee-notes-sidebar button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  color: var(--notes-muted);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

#notesWorkspace .ee-notes-sidebar button:hover,
#notesWorkspace .ee-notes-sidebar button.is-active { color: var(--notes-blue); background: #e7edfb; }
#notesWorkspace .ee-notes-sidebar button.is-active { font-weight: 750; }
#notesWorkspace .ee-notes-sidebar button b { min-width: 25px; padding: 3px 6px; border-radius: 999px; background: rgba(11, 47, 122, .08); font-size: 10px; text-align: center; }
#notesWorkspace .ee-notes-tags { margin-top: 30px; }
#notesWorkspace .ee-notes-tags > p { margin: 0 12px 8px; color: #9097a8; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
#notesWorkspace .ee-notes-no-tags { padding: 8px 13px; color: #9da3b1; font-size: 11px; }

#notesWorkspace .ee-notes-main {
  min-width: 0;
  overflow-y: auto;
  padding: 34px clamp(18px, 4vw, 56px) calc(60px + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}

#notesWorkspace .ee-notes-mainhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 25px; }
#notesWorkspace .ee-notes-eyebrow { margin: 0 0 5px; color: var(--notes-gold); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
#notesWorkspace .ee-notes-mainhead h2 { margin: 0; color: var(--notes-blue); font: 500 clamp(28px, 4vw, 45px)/1 Georgia, serif; letter-spacing: -.04em; }
#notesWorkspace .ee-notes-sync { color: #6b768f; font-size: 11px; }
#notesWorkspace .ee-notes-sync[data-mode="cloud"] { color: #267149; }
#notesWorkspace .ee-notes-sync[data-mode="local"] { color: #987019; }

#notesWorkspace .ee-notes-filterbar { display: flex; gap: 7px; flex-wrap: wrap; margin: -9px 0 20px; }
#notesWorkspace .ee-notes-filterbar button { padding: 6px 9px; border: 1px solid #cad4eb; border-radius: 999px; color: var(--notes-blue); background: #fff; font-size: 11px; cursor: pointer; }

#notesWorkspace .ee-notes-grid { columns: 4 230px; column-gap: 16px; }

#notesWorkspace .ee-note-card {
  --note-paper: #fff1a8;
  --note-line: #dfc667;
  display: inline-block;
  position: relative;
  width: 100%;
  min-height: 150px;
  margin: 0 0 16px;
  padding: 20px 19px 17px;
  break-inside: avoid;
  border: 1px solid var(--note-line);
  border-radius: 12px 17px 14px 9px;
  color: #2f2d35;
  background: var(--note-paper);
  box-shadow: 0 5px 0 rgba(27, 31, 53, .05), 0 13px 28px rgba(48, 51, 74, .1);
  text-align: left;
  cursor: pointer;
  transform: rotate(-.22deg);
  transition: transform .15s ease, box-shadow .15s ease;
}

#notesWorkspace .ee-note-card:nth-child(3n) { transform: rotate(.2deg); }
#notesWorkspace .ee-note-card:hover,
#notesWorkspace .ee-note-card:focus-visible { outline: 3px solid rgba(11, 47, 122, .2); outline-offset: 2px; box-shadow: 0 8px 0 rgba(27, 31, 53, .05), 0 18px 34px rgba(48, 51, 74, .16); transform: translateY(-2px) rotate(0); }
#notesWorkspace .ee-note-card strong { display: block; padding-right: 20px; font: 700 16px/1.25 "Hammersmith One", sans-serif; }
#notesWorkspace .ee-note-card p { display: -webkit-box; margin: 11px 0 15px; overflow: hidden; color: #4b4b52; font-size: 13px; line-height: 1.48; -webkit-box-orient: vertical; -webkit-line-clamp: 7; }
#notesWorkspace .ee-note-card ul { display: grid; gap: 7px; margin: 12px 0 15px; padding: 0; list-style: none; }
#notesWorkspace .ee-note-card li { display: flex; gap: 7px; align-items: flex-start; font-size: 12px; }
#notesWorkspace .ee-note-card li > span { display: inline-grid; flex: 0 0 16px; width: 16px; height: 16px; place-items: center; border: 1px solid rgba(30,30,40,.4); border-radius: 4px; font-size: 10px; }
#notesWorkspace .ee-note-card li.is-done { opacity: .57; text-decoration: line-through; }
#notesWorkspace .ee-note-pin { position: absolute; top: 15px; right: 15px; color: rgba(11, 47, 122, .65); }
#notesWorkspace .ee-note-card-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 11px; }
#notesWorkspace .ee-note-card-tags i { padding: 4px 6px; border-radius: 999px; background: rgba(255,255,255,.45); font-size: 9px; font-style: normal; }
#notesWorkspace .ee-note-card small { display: block; margin-top: 12px; color: rgba(35, 39, 53, .58); font-size: 9px; }

#notesWorkspace .ee-note-color--sunshine { --note-paper:#fff1a8; --note-line:#dfc667; }
#notesWorkspace .ee-note-color--peach { --note-paper:#ffd6a9; --note-line:#eeb67a; }
#notesWorkspace .ee-note-color--coral { --note-paper:#ffb8a9; --note-line:#e68e7f; }
#notesWorkspace .ee-note-color--rose { --note-paper:#ffd0dc; --note-line:#eaa2b5; }
#notesWorkspace .ee-note-color--lilac { --note-paper:#e6d6ff; --note-line:#bda6e5; }
#notesWorkspace .ee-note-color--sky { --note-paper:#cae4ff; --note-line:#8ebce9; }
#notesWorkspace .ee-note-color--aqua { --note-paper:#c9f0f4; --note-line:#8bcbd1; }
#notesWorkspace .ee-note-color--mint { --note-paper:#ccf0dc; --note-line:#92cfad; }
#notesWorkspace .ee-note-color--leaf { --note-paper:#dce9b8; --note-line:#afc77a; }
#notesWorkspace .ee-note-color--sand { --note-paper:#eadcc2; --note-line:#cab58f; }
#notesWorkspace .ee-note-color--cloud { --note-paper:#f7f7f5; --note-line:#d6d7db; }
#notesWorkspace .ee-note-color--slate { --note-paper:#cbd3df; --note-line:#9ca9bb; }

#notesWorkspace .ee-notes-empty { display: grid; min-height: 320px; place-items: center; align-content: center; padding: 35px; break-inside: avoid-column; column-span: all; border: 1px dashed #c9cfdb; border-radius: 22px; color: var(--notes-muted); text-align: center; }
#notesWorkspace .ee-notes-empty > span { color: var(--notes-gold); font-size: 40px; }
#notesWorkspace .ee-notes-empty h3 { margin: 12px 0 4px; color: var(--notes-blue); font-family: "Hammersmith One", sans-serif; }
#notesWorkspace .ee-notes-empty p { margin: 0 0 18px; font-size: 13px; }

#notesWorkspace .ee-note-editor-layer { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(7, 16, 39, .56); backdrop-filter: blur(8px); }
#notesWorkspace .ee-note-editor { --note-paper:#fff1a8; width: min(680px, 100%); max-height: min(820px, calc(100dvh - 40px)); overflow-y: auto; padding: 21px; border: 1px solid rgba(255,255,255,.5); border-radius: 20px; color: #2f2d35; background: var(--note-paper); box-shadow: 0 40px 100px rgba(0,0,0,.32); }
#notesWorkspace .ee-note-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#notesWorkspace .ee-note-editor > header > div { display: flex; gap: 7px; }
#notesWorkspace .ee-note-editor button { min-height: 36px; padding: 0 11px; border: 1px solid rgba(29,35,51,.19); border-radius: 9px; background: rgba(255,255,255,.35); cursor: pointer; }
#notesWorkspace .ee-note-editor-state { color: rgba(35,39,53,.62); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
#notesWorkspace .ee-note-title,
#notesWorkspace .ee-note-body,
#notesWorkspace .ee-note-title { margin: 18px 0 0; padding: 0; border-radius: 0; font: 700 27px/1.2 "Hammersmith One", sans-serif; letter-spacing: 0; text-align: left; }
#notesWorkspace .ee-note-body { min-height: 280px; margin: 13px 0 0; padding: 0; border-radius: 0; resize: vertical; font-size: 15px; line-height: 1.6; letter-spacing: 0; text-align: left; }
#notesWorkspace .ee-note-options input[type="checkbox"] { width: auto; margin: 0 6px 0 0; padding: 0; letter-spacing: 0; }
#notesWorkspace .ee-note-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; font-size: 11px; }
#notesWorkspace .ee-note-save-state { color: rgba(35,39,53,.6); }
#notesWorkspace .ee-note-palette { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
#notesWorkspace .ee-note-swatch { width: 28px; min-height: 28px !important; padding: 0 !important; border-radius: 50% !important; background: var(--note-paper) !important; }
#notesWorkspace .ee-note-swatch.is-selected { outline: 3px solid var(--notes-blue); outline-offset: 2px; }
#notesWorkspace .ee-note-editor > footer { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
#notesWorkspace .ee-note-editor > footer .ee-note-danger { margin-left: auto; color: #8e2028; border-color: rgba(142,32,40,.35); }
#notesWorkspace .ee-note-conflict { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; margin: 14px 0; padding: 12px; border: 1px solid #d69450; border-radius: 10px; background: #fff0d8; }
#notesWorkspace .ee-note-conflict strong,
#notesWorkspace .ee-note-conflict span { grid-column: 1; }
#notesWorkspace .ee-note-conflict span { font-size: 11px; }
#notesWorkspace .ee-note-conflict button { grid-row: 1 / span 2; }

@media (max-width: 840px) {
  #notesWorkspace .ee-notes-topbar { grid-template-columns: auto auto 1fr auto; }
  #notesWorkspace .ee-notes-heading { min-width: 0; }
  #notesWorkspace .ee-notes-search { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  #notesWorkspace .ee-notes-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  #notesWorkspace .ee-notes-sidebar { display: flex; overflow-x: auto; overflow-y: hidden; padding: 8px 12px; border-right: 0; border-bottom: 1px solid rgba(11,47,122,.1); }
  #notesWorkspace .ee-notes-sidebar nav { display: flex; }
  #notesWorkspace .ee-notes-sidebar nav button { min-width: 105px; }
  #notesWorkspace .ee-notes-tags { display: none; }
  #notesWorkspace .ee-notes-main { padding-top: 24px; }
  #notesWorkspace .ee-notes-mainhead { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  #notesWorkspace .ee-notes-topbar { gap: 8px; padding-left: 10px; padding-right: 10px; }
  #notesWorkspace .ee-notes-topbar > img { width: 38px; height: 38px; }
  #notesWorkspace .ee-notes-heading span { display: none; }
  #notesWorkspace .ee-notes-heading strong { font-size: 14px; }
  #notesWorkspace .ee-notes-new { width: 42px; padding: 0; overflow: hidden; color: transparent; }
  #notesWorkspace .ee-notes-new::first-letter { color: #fff; }
  #notesWorkspace .ee-notes-main { padding-left: 12px; padding-right: 12px; }
  #notesWorkspace .ee-notes-grid { columns: 2 150px; column-gap: 11px; }
  #notesWorkspace .ee-note-card { min-height: 135px; margin-bottom: 11px; padding: 16px 14px; }
  #notesWorkspace .ee-note-editor-layer { align-items: end; padding: 0; }
  #notesWorkspace .ee-note-editor { width: 100%; max-height: calc(100dvh - env(safe-area-inset-top)); padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
  #notesWorkspace .ee-note-body { min-height: 37dvh; }
  #notesWorkspace .ee-note-conflict { grid-template-columns: 1fr; }
  #notesWorkspace .ee-note-conflict button { grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  #notesWorkspace .ee-note-card { transition: none; }
}
