/* Sfera CRM Notes — corrected single-source layout, version 2.16.4.
   Applies only to the Notes view and its fixed topbar.
   Source of truth for editor dimensions remains notes.css, unmodified. */

/* TOPBAR — search lives here once, and cannot expose an unstyled sr-only span. */
#signed-in .sfera-notes-topbar { display:none!important; }
#signed-in.app-shell:has(#notes-view:not([hidden])) .app-topbar {
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  gap:clamp(9px,1.1vw,17px)!important;
  background:#0e2166!important;background-image:none!important;color:#f7faff!important;
}
#signed-in.app-shell:has(#notes-view:not([hidden])) .app-topbar .sfera-dashboard-topbar-label {
  display:none!important;
}
#signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar {
  display:flex!important;align-items:center;flex:1 1 auto;min-width:0;gap:14px;
  padding:0;margin:0;background:transparent;
}
#signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar__title {
  flex:0 0 auto;margin:0;color:#fff;font:600 15px/1.25 Poppins,"Open Sans",sans-serif;
}
#signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar__search {
  display:flex;align-items:center;gap:9px;flex:0 1 365px;min-width:120px;
  height:36px;margin-left:auto;padding:0 11px;
  border:1px solid #deebf9;border-radius:9px;background:#fff;
  color:#7890ac;box-shadow:none;
  transition:border-color .18s ease,box-shadow .18s ease;
}
#signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar__search:focus-within {
  border-color:#85bdff;box-shadow:0 0 0 3px rgba(122,183,255,.25);
}
.sfera-notes-topbar__search svg { display:block;flex:0 0 17px;width:17px;height:17px; }
.sfera-notes-topbar__search input {
  display:block;flex:1 1 auto;min-width:0;width:100%;height:100%;
  margin:0;padding:0;border:0;outline:0;background:transparent;
  color:#1b3760;font:500 12px/1.3 "Open Sans",sans-serif;
}
.sfera-notes-topbar__search input::placeholder { color:#95a5b9; }
.sfera-notes-topbar__shortcut {
  flex:0 0 auto;padding:3px 6px;border-radius:5px;background:#f1f5fa;
  color:#8799b0;font:650 9px/1.25 "Open Sans",sans-serif;white-space:nowrap;
}
#signed-in.app-shell:has(#notes-view:not([hidden])) .app-topbar .portal-topbar__actions {
  flex:0 0 auto;margin-left:auto!important;
}

/* PAGE — same horizontal breathing room as Aziende, without a parent card. */
body:has(#notes-view:not([hidden])) #signed-in .app-content {
  box-sizing:border-box;width:100%!important;max-width:none!important;min-width:0!important;
  margin:0!important;padding:clamp(14px,1.4vw,22px) clamp(12px,1.6vw,28px) 26px!important;
}
#notes-view.notes-page {
  --n-primary:#0b7ff0;--n-title:#0e2166;--n-border:#e1e8f3;
  box-sizing:border-box;width:100%!important;max-width:none!important;min-width:0;
  margin:0!important;padding:0 0 24px!important;
  border:0!important;border-radius:0!important;background:transparent!important;
  color:#243d62;font-family:Poppins,"Open Sans",sans-serif;
}
#notes-view.notes-page .notes-canvas,
#notes-view.notes-page .notes-workspace {
  box-sizing:border-box;display:block;width:100%!important;max-width:none!important;
  margin:0!important;padding:0!important;min-width:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;
  background-image:none!important;box-shadow:none!important;
}
#notes-view.notes-page .notes-hero {
  display:flex!important;flex-direction:row!important;align-items:center!important;
  justify-content:space-between!important;gap:16px!important;min-height:42px!important;
  margin:0 0 17px!important;padding:0 2px!important;
  border:0!important;border-radius:0!important;
  background:transparent!important;background-image:none!important;
  box-shadow:none!important;overflow:visible!important;
}
#notes-view.notes-page .notes-hero::after { display:none!important;content:none!important; }
#notes-view.notes-page .notes-hero h1 {
  margin:0!important;padding:0!important;
  font:500 clamp(18px,1.55vw,23px)/1.3 Poppins,"Open Sans",sans-serif!important;
  letter-spacing:-.025em!important;color:#0e2166!important;
}
#notes-view.notes-page .notes-hero__actions {
  display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:8px;
  flex-wrap:nowrap;
}
#notes-view.notes-page .notes-btn {
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:37px;padding:9px 13px;border-radius:9px;
  font:650 11px/1.25 Poppins,"Open Sans",sans-serif;
  transition:background-color .18s,border-color .18s,box-shadow .18s,transform .18s;
}
#notes-view.notes-page .notes-btn--primary {
  border:1px solid #0b7ff0;background:#0b7ff0;color:#fff;
  box-shadow:0 4px 11px rgba(11,127,240,.12);
}
#notes-view.notes-page .notes-btn--primary:hover:not(:disabled) {
  border-color:#0871da;background:#0871da;transform:translateY(-1px);
}
#notes-view.notes-page .notes-btn--secondary,
#notes-view.notes-page .notes-btn--icon {
  border:1px solid #dce5f2;background:#fff;color:#37577f;box-shadow:none;
}
#notes-view.notes-page .notes-btn--secondary:hover:not(:disabled),
#notes-view.notes-page .notes-btn--icon:hover:not(:disabled) {
  border-color:#bcd6f7;background:#eef5ff;color:#145fb6;
}
#notes-view.notes-page .notes-hero__actions .notes-btn--icon {
  width:38px;min-width:38px;padding:0;
}

/* ONE TOOLBAR — tabs left, sort and tags right, no separate second row. */
#notes-view.notes-page .notes-controls {
  display:flex!important;flex-direction:row!important;align-items:center!important;
  justify-content:space-between!important;flex-wrap:wrap;
  column-gap:15px;row-gap:9px;min-height:44px;
  margin:0 0 11px!important;padding:0!important;
  border:0!important;background:transparent!important;
}
#notes-view.notes-page .notes-tabs {
  display:inline-flex!important;align-items:center;flex:0 0 auto;gap:4px;
  min-width:0;margin:0;padding:4px;
  border:1px solid #e0e8f3;border-radius:10px;background:#fff;
  box-shadow:0 2px 7px rgba(14,33,102,.025);
}
#notes-view.notes-page .notes-tab {
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:34px!important;padding:8px 11px!important;
  border:0!important;border-radius:7px!important;
  background:transparent!important;box-shadow:none!important;
  color:#617897!important;font:650 11px/1.3 Poppins,"Open Sans",sans-serif!important;
  white-space:nowrap;
}
#notes-view.notes-page .notes-tab:hover:not(:disabled) { background:#f4f8fd!important;color:#1257ab!important; }
#notes-view.notes-page .notes-tab.is-active { background:#edf4ff!important;color:#0a61bb!important; }
#notes-view.notes-page .notes-count {
  display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;
  padding:1px 5px;border:0;border-radius:5px;background:#eef2f8;color:#7488a3;
  font:700 10px/1.3 "Open Sans",sans-serif;
}
#notes-view.notes-page .notes-tab.is-active .notes-count { background:#dceaff;color:#1359ae; }
#notes-view.notes-page .notes-querybar {
  display:flex!important;position:relative;z-index:10;
  flex:0 1 auto;align-items:center!important;justify-content:flex-end!important;
  flex-wrap:nowrap!important;gap:9px!important;
  min-width:0;margin:0 0 0 auto!important;padding:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;
}
#notes-view.notes-page .notes-field--compact { display:flex;align-items:center;gap:0;min-width:0; }
#notes-view.notes-page .notes-field--compact>.notes-field__label {
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
#notes-view.notes-page .notes-select-control { display:block;position:relative;min-width:0; }
#notes-view.notes-page .notes-select-control select {
  width:170px;max-width:100%;min-width:0;min-height:36px;height:36px;
  padding:7px 29px 7px 12px;appearance:none;-webkit-appearance:none;
  border:1px solid #dfe7f1;border-radius:8px;background:#fff;
  color:#31567c;font:650 11px/1.3 Poppins,"Open Sans",sans-serif;
  box-shadow:none;
}
#notes-view.notes-page .notes-select-control__chevron {
  display:grid;place-items:center;position:absolute;top:50%;right:7px;
  transform:translateY(-50%);width:17px;height:17px;pointer-events:none;color:#6883a4;
}
#notes-view.notes-page .notes-tag-filter { position:relative;flex:0 0 auto; }
#notes-view.notes-page .notes-tag-filter__summary {
  display:flex;align-items:center;justify-content:center;gap:8px;
  width:auto;min-width:80px;min-height:36px;height:36px;padding:7px 11px;
  border:1px solid #dfe7f1;border-radius:8px;background:#fff;
  color:#31567c;font:650 11px/1.3 Poppins,"Open Sans",sans-serif;
  box-shadow:none;
}
#notes-view.notes-page .notes-tag-filter__summary:hover,
#notes-view.notes-page .notes-tag-filter[open] .notes-tag-filter__summary {
  border-color:#afd1f8;background:#f5f9ff;color:#166bc3;
}
#notes-view.notes-page .notes-tag-filter__panel {
  position:absolute;top:calc(100% + 7px);right:0;
  width:min(290px,calc(100vw - 35px));max-height:320px;
  overflow:auto;padding:10px;border:1px solid #dce6f4;border-radius:10px;
  background:#fff;box-shadow:0 12px 27px rgba(14,33,102,.12);
}
#notes-view.notes-page #notes-empty { flex:0 0 auto; }
#notes-view.notes-page .notes-filter-chips {
  display:flex;gap:7px;flex-wrap:wrap;margin:0 0 10px;
}
#notes-view.notes-page .notes-filter-chips:empty { display:none; }
#notes-view.notes-page .notes-filter-chip { border-radius:7px;background:#eff6ff;color:#2868b1; }

/* Status is a compact single line, not a blank content panel. */
#notes-view.notes-page .notes-state {
  min-height:0;margin:0 2px 11px!important;padding:0;border:0;background:transparent;
  color:#8396ad;font:500 11px/1.5 "Open Sans",sans-serif;
}
#notes-view.notes-page .notes-state:empty { display:none!important; }
#notes-view.notes-page .notes-state[data-tone="error"] { color:#c81e1e; }

/* GRID — uniform compact cards, no forced first-note double-width tile. */
#notes-view.notes-page .notes-list {
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;align-items:stretch;min-width:0;margin:0!important;padding:0!important;
}
#notes-view.notes-page .notes-card,
#notes-view.notes-page .notes-card:first-child:not(.notes-card--skeleton) {
  display:flex!important;flex-direction:column;grid-column:auto!important;
  position:relative;min-width:0;min-height:184px;height:auto;
  margin:0;padding:0;border:1px solid #e0e8f3!important;border-radius:12px;
  background:#fff!important;box-shadow:0 3px 12px rgba(14,33,102,.03)!important;
  transform:none!important;
  transition:border-color .19s,box-shadow .19s,transform .19s!important;
}
#notes-view.notes-page .notes-card:is(:hover,.is-selected) {
  border-color:#b4d3f8!important;box-shadow:0 8px 22px rgba(14,33,102,.075)!important;
  transform:translateY(-2px)!important;
}
#notes-view.notes-page .notes-card__main {
  display:flex;flex:1 1 auto;flex-direction:column;align-items:stretch;
  width:100%;min-width:0;min-height:182px;
  margin:0;padding:15px 16px 13px!important;
  border:0!important;border-radius:inherit;background:transparent!important;
  box-shadow:none!important;color:inherit;text-align:left;
}
#notes-view.notes-page .notes-card__emblem {
  display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;
  margin:0 0 13px;border-radius:9px;background:#0e2166;color:#fff;
}
#notes-view.notes-page .notes-card__emblem svg {
  width:17px;height:17px;fill:none;stroke:currentColor;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
#notes-view.notes-page .notes-card__title-row {
  display:flex;align-items:flex-start;gap:7px;min-width:0;
}
#notes-view.notes-page .notes-card h2,
#notes-view.notes-page .notes-card:first-child:not(.notes-card--skeleton) h2 {
  margin:0;color:#112d5e;font:700 15px/1.38 Poppins,"Open Sans",sans-serif!important;
  letter-spacing:-.018em;overflow-wrap:anywhere;
}
#notes-view.notes-page .notes-card__preview {
  display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  min-height:0;max-height:42px;flex:0 0 auto;
  margin:7px 0 0;color:#7086a4;font:400 11px/1.6 "Open Sans",sans-serif;
  overflow-wrap:anywhere;
}
#notes-view.notes-page .notes-card__tags {
  display:flex;flex-wrap:wrap;gap:5px;min-height:0;margin:10px 0 0;
}
#notes-view.notes-page .notes-card__tags:empty { display:none; }
#notes-view.notes-page .notes-tag-chip {
  min-height:22px;padding:4px 7px;border:1px solid #e0e9f7;border-radius:6px;
  background:#f4f8fd;color:#547398;font:600 9px/1.25 "Open Sans",sans-serif;
}
#notes-view.notes-page .notes-card__meta {
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin:12px 0 0;padding:10px 0 0;border-top:1px solid #edf1f7;
  color:#90a2b8;font:500 10px/1.4 "Open Sans",sans-serif;
}
#notes-view.notes-page .notes-card__actions {
  display:flex;flex-direction:row;position:absolute;top:11px;right:11px;
  gap:3px;margin:0;padding:0;border:0;border-radius:0;background:transparent;
}
#notes-view.notes-page .notes-card__action {
  display:grid;place-items:center;width:31px;min-height:31px;padding:0;
  border:1px solid transparent;border-radius:8px;background:transparent;color:#8299b7;box-shadow:none;
  transition:background-color .15s,border-color .15s,color .15s,transform .15s;
}
#notes-view.notes-page .notes-card__action:hover,
#notes-view.notes-page .notes-card__action:focus-visible {
  border:0;background:#edf5ff;color:#126bc7;
}
#notes-view.notes-page .notes-card__action--edit {
  background:#edf6ff;color:#0b7ff0;border-color:#dcecff;
}
#notes-view.notes-page .notes-card__action--edit:hover,
#notes-view.notes-page .notes-card__action--edit:focus-visible {
  background:#dceeff;color:#075faf;border-color:#bddbf9;transform:translateY(-1px);
}
#notes-view.notes-page .notes-card__action--danger {
  background:#fff1f1;color:#c93d4b;border-color:#ffe1e4;
}
#notes-view.notes-page .notes-card__action--danger:hover,
#notes-view.notes-page .notes-card__action--danger:focus-visible {
  background:#ffe2e6;color:#aa2536;border-color:#ffc4cc;transform:translateY(-1px);
}
#notes-view.notes-page .notes-card__action--restore:hover {
  background:#edf8f2;color:#13865a;
}
#notes-view.notes-page .notes-card__action svg { width:16px;height:16px; }
#notes-view.notes-page .notes-badge {
  padding:3px 6px;border-radius:6px;background:#fff1f1;color:#b94c4c;font-size:10px;
}
#notes-view.notes-page .notes-card--skeleton {
  display:block!important;min-height:184px;padding:17px;
}
#notes-view.notes-page .notes-empty-state,
#notes-view.notes-page .notes-error-state {
  grid-column:1/-1;padding:45px 20px;
  border:1px dashed #cfdeef;border-radius:13px;background:#fff;
  box-shadow:none;text-align:center;
}
#notes-view.notes-page .notes-pagination { margin:14px 0 0; }

/* EDITOR — visual polish only; NO width, height, max-height or inset here.
   The full-window sizing and all behaviors are from the existing notes.css. */
#notes-view.notes-page .notes-editor__panel {
  border-color:#e1e8f3;background:#fff;box-shadow:0 24px 62px rgba(14,33,102,.2);
}
#notes-view.notes-page .notes-editor__header {
  gap:13px;padding:14px 19px;border-bottom:1px solid #e7edf5;background:#fff;
}
#notes-view.notes-page .notes-editor__header .notes-eyebrow {
  margin:0 0 4px;color:#8397b0;font:700 10px/1.35 "Open Sans",sans-serif;
  letter-spacing:.09em;text-transform:uppercase;
}
#notes-view.notes-page .notes-editor__header h2 {
  margin:0;color:#0e2166;font:700 20px/1.3 Poppins,"Open Sans",sans-serif;
}
#notes-view.notes-page .notes-save-status { padding:7px 10px;border-radius:8px;font-size:11px; }
#notes-view.notes-page .notes-icon-btn {
  border:1px solid #e4ebf5;border-radius:8px;background:#f5f8fc;color:#70849e;
}
#notes-view.notes-page .notes-icon-btn:hover { background:#edf5ff;color:#0b7ff0; }
#notes-view.notes-page .notes-editor__body {
  display:flex;flex-direction:column;gap:12px;padding:16px 19px;background:#f7f9fc;
}
#notes-view.notes-page .notes-field--title,
#notes-view.notes-page .notes-tags-editor {
  border:1px solid #e1e8f3;border-radius:10px;background:#fff;box-shadow:none;
}
#notes-view.notes-page .notes-field--title { padding:12px 15px; }
#notes-view.notes-page .notes-field--title>span,
#notes-view.notes-page .notes-tags-editor__heading {
  color:#617994;font:650 11px/1.3 Poppins,"Open Sans",sans-serif;
}
#notes-view.notes-page .notes-field--title input {
  min-height:43px;padding:7px 0;border:0;outline:0;background:#fff;
  color:#163569;font:700 18px/1.3 Poppins,"Open Sans",sans-serif;
  box-shadow:none;
}
#notes-view.notes-page .notes-field--title input::placeholder { color:#aebed0; }
#notes-view.notes-page .notes-field--title small { color:#92a3b7;font-size:10px; }
#notes-view.notes-page .notes-toolbar {
  display:flex;align-items:center;gap:7px;overflow-x:auto;
  padding:7px;border:1px solid #e0e8f3;border-radius:10px;
  background:#fbfcfe;box-shadow:none;
}
#notes-view.notes-page .notes-toolbar__group { gap:3px;border-right-color:#e5ebf3; }
#notes-view.notes-page .notes-tool {
  border:1px solid transparent;border-radius:7px;background:transparent;
  color:#526d92;box-shadow:none;
}
#notes-view.notes-page .notes-tool:is(:hover,.is-active,:focus-visible) {
  border-color:#d6e8fc;background:#eaf3ff;color:#0b75dd;
}
#notes-view.notes-page .notes-tool-select select {
  border-color:#e0e8f3;border-radius:7px;background:#fff;color:#587091;
}
#notes-view.notes-page .notes-frame-wrap {
  border-color:#e0e8f3;border-radius:10px;box-shadow:none;
}
#notes-view.notes-page .notes-frame-wrap iframe { background:#fff; }
#notes-view.notes-page .notes-tags-editor { padding:12px 14px; }
#notes-view.notes-page .notes-tags-editor>input {
  background:#fff;border-color:#dce7f3;color:#244269;
}
#notes-view.notes-page .notes-meta-row { color:#8da0b7;font-size:11px; }
#notes-view.notes-page .notes-editor__footer {
  gap:12px;padding:12px 19px;border-top:1px solid #e7edf5;background:#fff;
}
#notes-view.notes-page .notes-btn--danger-ghost,
#notes-view.notes-page .notes-btn--danger {
  border-color:#edcece;background:#fff;color:#b34c4c;box-shadow:none;
}
#notes-view.notes-page .notes-btn--danger-ghost:hover,
#notes-view.notes-page .notes-btn--danger:hover {
  border-color:#e9babb;background:#fff2f2;
}
#notes-view.notes-page .notes-inline-dialog__card {
  border:1px solid #dce6f4;border-radius:14px;background:#fff;
  box-shadow:0 20px 50px rgba(14,33,102,.17);
}

/* RESPONSIVE — never allow topbar to wrap into a second line. */
@media(max-width:1100px) {
  #notes-view.notes-page .notes-list { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
}
@media(max-width:740px) {
  #signed-in.app-shell:has(#notes-view:not([hidden])) .app-topbar {
    height:var(--sfera-topbar-height,56px)!important;flex-wrap:nowrap!important;gap:8px!important;
  }
  #signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar {
    flex:1 1 auto;gap:8px;min-width:0;flex-wrap:nowrap!important;
  }
  #signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar__search {
    flex:1 1 100px;min-width:60px;max-width:none;height:35px;
    margin-left:auto;padding:0 8px;
  }
  #signed-in.app-shell:has(#notes-view:not([hidden])) .app-topbar .portal-topbar__actions {
    margin-left:auto!important;
  }
  #notes-view.notes-page .notes-list { grid-template-columns:minmax(0,1fr)!important; }
  #notes-view.notes-page .notes-controls { align-items:stretch!important;gap:10px!important; }
  #notes-view.notes-page .notes-querybar { justify-content:flex-end!important; }
  #notes-view.notes-page .notes-hero { flex-direction:row!important;flex-wrap:wrap; }
  #notes-view.notes-page .notes-editor__header,#notes-view.notes-page .notes-editor__footer { padding:12px; }
  #notes-view.notes-page .notes-editor__body { padding:12px; }
}
@media(max-width:520px) {
  #notes-view.notes-page .notes-controls { flex-direction:column!important;align-items:stretch!important; }
  #notes-view.notes-page .notes-tabs { display:flex!important;width:100%; }
  #notes-view.notes-page .notes-tab { flex:1;justify-content:center;padding:8px 5px!important; }
  #notes-view.notes-page .notes-querybar { display:flex!important;margin:0!important;justify-content:stretch!important;width:100%; }
  #notes-view.notes-page .notes-querybar .notes-field--compact { flex:1 1 auto;min-width:0; }
  #notes-view.notes-page .notes-select-control { width:100%; }
  #notes-view.notes-page .notes-select-control select { width:100%; }
  #notes-view.notes-page .notes-tag-filter { flex:0 0 auto; }
  #notes-view.notes-page .notes-card__main { min-height:176px; }
  #notes-view.notes-page .notes-card { min-height:178px; }
  #notes-view.notes-page .notes-editor__header h2 { font-size:17px; }
}
@media(max-width:390px) {
  #signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar__title { display:none; }
  #signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar__shortcut { display:none; }
  #notes-view.notes-page .notes-hero h1 { font-size:20px!important; }
  #notes-view.notes-page .notes-hero__actions .notes-btn--primary { padding:9px 10px; }
}
@media(prefers-reduced-motion:reduce) {
  #notes-view.notes-page *,#notes-view.notes-page *::before,#notes-view.notes-page *::after,
  #signed-in .sfera-notes-topbar * { animation:none!important;transition:none!important; }
  #notes-view.notes-page .notes-card:is(:hover,.is-selected) { transform:none!important; }
}

/* Sfera Notes 2.16.2: pinned quick-actions and unified note library. */
#signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar__search {
 flex:1 1 250px;max-width:520px;min-width:125px;margin-left:0!important;height:38px;
 border-radius:11px;border-color:rgba(192,216,255,.21);
 background:rgba(255,255,255,.09);color:#e4f1ff;
}
#signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar__search:focus-within {
 background:rgba(255,255,255,.15);border-color:rgba(219,235,255,.66);
 box-shadow:0 0 0 2px rgba(175,212,255,.12);
}
#signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar__search input{color:#fff}
#signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar__search input::placeholder{color:#b9cbea;opacity:1}
#signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar__shortcut{background:rgba(255,255,255,.12);color:#e2edff}
#signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar__tools {
 display:flex;align-items:center;gap:8px;flex:0 0 auto;margin-left:0;
}
#signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar__button{
 display:grid;place-items:center;box-sizing:border-box;flex:0 0 36px;
 width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;
 margin:0!important;padding:8px!important;border:1px solid rgba(192,216,255,.23);
 border-radius:10px;background:rgba(255,255,255,.075);color:#f4f9ff;cursor:pointer;
 transition:background-color .16s,border-color .16s,transform .16s;
}
#signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar__button svg{
 display:block;width:19px;height:19px;fill:none!important;stroke:currentColor!important;
 stroke-width:1.8!important;stroke-linecap:round;stroke-linejoin:round;
}
#signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar__button:hover {
 background:rgba(255,255,255,.16);border-color:rgba(219,235,255,.48);
}
#signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar__button--create{
 background:#e4f0ff!important;border-color:#c8dfff!important;color:#0e2166!important;
}
#signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar__button--create:hover{
 background:#f2f7ff!important;border-color:#c8dfff!important;
}
#signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar__button:active{transform:scale(.95)}
#signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar__button:disabled{opacity:.55;cursor:wait}
#signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar__button:focus-visible,
#notes-view.notes-page :is(.notes-tab,.notes-filter-toggle,.notes-sort-filter__summary,.notes-tag-filter__summary,.notes-view-switch__button,.notes-sort-filter__panel button):focus-visible {
 outline:2px solid #87b9fd;outline-offset:3px;
}
/* The only parent surface contains both the tabs and the note cards. */
#notes-view.notes-page .notes-workspace {
 padding:clamp(12px,1.65vw,22px)!important;border:1px solid #dfe7f3!important;
 border-radius:16px!important;background:#fff!important;
 box-shadow:0 5px 22px rgba(14,33,102,.035)!important;
}
#notes-view.notes-page .notes-controls {
 align-items:center!important;justify-content:flex-start!important;
 flex-wrap:wrap;gap:12px!important;padding:0 0 15px!important;margin:0 0 13px!important;
 border-bottom:1px solid #e7edf5!important;
}
/* Match task workspace navigation, using an understated blue underline. */
#notes-view.notes-page .notes-tabs{
 flex:0 0 auto;gap:16px;padding:0;border:0;border-radius:0;
 background:transparent;box-shadow:none;
}
#notes-view.notes-page .notes-tab{
 position:relative;min-height:43px!important;padding:9px 2px!important;
 border-radius:0!important;background:transparent!important;color:#667085!important;
 font:600 12px/1.4 "Open Sans",sans-serif!important;
}
#notes-view.notes-page .notes-tab::after{
 content:"";position:absolute;bottom:-1px;left:0;right:0;height:3px;
 border-radius:3px 3px 0 0;background:#0b7ff0;transform:scaleX(0);
 transition:transform .18s ease;
}
#notes-view.notes-page .notes-tab:hover:not(:disabled),
#notes-view.notes-page .notes-tab.is-active {background:transparent!important;color:#0e2166!important}
#notes-view.notes-page .notes-tab.is-active::after{transform:scaleX(1)}
#notes-view.notes-page .notes-collection-summary{
 display:flex;align-items:center;gap:9px;min-width:0;
 margin:0 0 0 clamp(1px,1vw,14px);padding-left:clamp(8px,1.2vw,18px);
 border-left:1px solid #e5ebf3;color:#0e2166;
}
#notes-view.notes-page .notes-collection-summary__icon{
 display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#eef5ff;color:#2d72c9;
}
#notes-view.notes-page .notes-collection-summary__icon svg{
 width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;
 stroke-linecap:round;stroke-linejoin:round;
}
#notes-view.notes-page .notes-collection-summary__copy{display:grid;gap:2px}
#notes-view.notes-page .notes-collection-summary strong{font:650 12px/1.25 Poppins,"Open Sans",sans-serif}
#notes-view.notes-page .notes-collection-summary small{color:#7990ad;font:500 10px/1.3 "Open Sans",sans-serif}
#notes-view.notes-page .notes-controls__right{
 display:flex;align-items:center;justify-content:flex-end;flex:1 1 auto;
 min-width:0;gap:8px;margin-left:auto;
}
#notes-view.notes-page .notes-filter-toggle,
#notes-view.notes-page .notes-view-switch__button{
 display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;
 padding:8px;border:1px solid #dce6f4;border-radius:9px;
 background:#fff;color:#557194;cursor:pointer;
 transition:background-color .16s,border-color .16s,color .16s;
}
#notes-view.notes-page .notes-filter-toggle svg,
#notes-view.notes-page .notes-view-switch__button svg{
 width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;
 stroke-linecap:round;stroke-linejoin:round;
}
#notes-view.notes-page .notes-filter-toggle[aria-expanded="true"]{
 border-color:#b5d2f6;background:#eef5ff;color:#0b65c3;
}
#notes-view.notes-page .notes-querybar{
 display:flex!important;align-items:center!important;gap:8px!important;
 flex:0 1 auto;position:relative;z-index:15;min-width:0;margin:0!important;
 padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;
}
#notes-view.notes-page .notes-querybar[hidden],
#notes-view.notes-page [hidden]{display:none!important}
#notes-view.notes-page .notes-sort-filter,
#notes-view.notes-page .notes-tag-filter{position:relative;min-width:0}
#notes-view.notes-page .notes-sort-filter__summary,
#notes-view.notes-page .notes-tag-filter__summary{
 display:flex;align-items:center;justify-content:space-between;gap:10px;
 width:165px;min-width:165px;max-width:165px;height:36px;min-height:36px;padding:8px 11px;
 border:1px solid #dce6f4;border-radius:9px;background:#fff;box-shadow:none;
 color:#31567c;font:600 11px/1.3 Poppins,"Open Sans",sans-serif;
 list-style:none;cursor:pointer;
}
#notes-view.notes-page .notes-tag-filter__summary{min-width:165px}
#notes-view.notes-page :is(.notes-sort-filter__summary,.notes-tag-filter__summary)::-webkit-details-marker{display:none}
#notes-view.notes-page :is(.notes-sort-filter__summary,.notes-tag-filter__summary):hover,
#notes-view.notes-page :is(.notes-sort-filter[open] .notes-sort-filter__summary,.notes-tag-filter[open] .notes-tag-filter__summary){
 border-color:#a9cafa;background:#f5f9ff;color:#0b65c3;
}
#notes-view.notes-page .notes-sort-filter__summary svg,
#notes-view.notes-page .notes-tag-filter__summary svg{
 width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;
 stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .16s ease;
}
#notes-view.notes-page :is(.notes-sort-filter[open],.notes-tag-filter[open])>summary svg:last-child{transform:rotate(180deg)}
#notes-view.notes-page .notes-sort-filter__panel,
#notes-view.notes-page .notes-tag-filter__panel{
 position:absolute;z-index:22;top:calc(100% + 7px);right:0;box-sizing:border-box;
 min-width:195px;width:max-content;max-width:min(300px,calc(100vw - 32px));
 max-height:300px;overflow-y:auto;padding:7px;border:1px solid #dce6f4;
 border-radius:11px;background:#fff;box-shadow:0 12px 27px rgba(14,33,102,.12);
}
#notes-view.notes-page .notes-tag-filter__panel{min-width:220px;width:260px}
#notes-view.notes-page .notes-sort-filter__panel button{
 display:flex;align-items:center;justify-content:space-between;gap:12px;
 width:100%;min-height:36px;padding:8px 11px;border:0;border-radius:7px;
 background:transparent;color:#3e5d82;text-align:left;
 font:600 11px/1.4 "Open Sans",sans-serif;cursor:pointer;
}
#notes-view.notes-page .notes-sort-filter__panel button:hover{background:#f1f6ff;color:#0b65c3}
#notes-view.notes-page .notes-sort-filter__panel button[aria-pressed="true"]{background:#edf5ff;color:#0b65c3}
#notes-view.notes-page .notes-sort-filter__panel button[aria-pressed="true"]::after{content:"✓";font-weight:800}
#notes-view.notes-page .notes-tag-option{
 display:flex;align-items:center;gap:10px;min-height:37px;
 padding:8px;border-radius:7px;color:#3e5d82;
 font:600 11px/1.4 "Open Sans",sans-serif;cursor:pointer;
}
#notes-view.notes-page .notes-tag-option:hover{background:#f1f6ff}
#notes-view.notes-page .notes-tag-option input[type="checkbox"]{
 flex:0 0 17px;width:17px;height:17px;accent-color:#0b7ff0;
}
#notes-view.notes-page .notes-view-switch{
 display:flex;align-items:center;gap:2px;padding:3px;
 border:1px solid #dce6f4;border-radius:10px;background:#f7f9fd;
}
#notes-view.notes-page .notes-view-switch__button{
 flex:0 0 32px;width:32px;height:32px;border:0;border-radius:7px;background:transparent;
}
#notes-view.notes-page .notes-view-switch__button:hover{background:#eaf3ff;color:#0b65c3}
#notes-view.notes-page .notes-view-switch__button.is-active{
 background:#0b7ff0;color:#fff;box-shadow:0 2px 6px rgba(11,127,240,.15);
}
/* Actual note metadata; no synthetic categories or fictional data. */
#notes-view.notes-page .notes-card__modified{display:inline-flex;align-items:center;gap:6px;min-width:0}
#notes-view.notes-page .notes-card__modified svg{
 flex:0 0 14px;width:14px;height:14px;fill:none;stroke:currentColor;
 stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
#notes-view.notes-page .notes-card__status{
 display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;
 padding:4px 9px;border-radius:999px;font:650 10px/1.2 "Open Sans",sans-serif;
}
#notes-view.notes-page .notes-card__status::before{
 content:"";width:6px;height:6px;border-radius:50%;background:currentColor;
}
#notes-view.notes-page .notes-card__status.is-active{color:#137546;background:#eaf8f0}
#notes-view.notes-page .notes-card__status.is-trashed{color:#a74d4d;background:#fff1f1}
/* List view reuses the same card actions/handlers; no new API requests. */
#notes-view.notes-page[data-notes-layout="list"] .notes-list{
 grid-template-columns:minmax(0,1fr)!important;gap:8px!important;
}
#notes-view.notes-page[data-notes-layout="list"] .notes-card,
#notes-view.notes-page[data-notes-layout="list"] .notes-card:first-child:not(.notes-card--skeleton){
 min-height:84px;height:auto;
}
#notes-view.notes-page[data-notes-layout="list"] .notes-card__main{
 display:grid!important;grid-template-columns:32px minmax(100px,1fr) minmax(120px,1.5fr) minmax(95px,.8fr) minmax(170px,1fr);
 align-items:center;gap:14px;min-height:82px!important;padding:12px 86px 12px 15px!important;
}
#notes-view.notes-page[data-notes-layout="list"] .notes-card__emblem,
#notes-view.notes-page[data-notes-layout="list"] .notes-card__preview,
#notes-view.notes-page[data-notes-layout="list"] .notes-card__tags,
#notes-view.notes-page[data-notes-layout="list"] .notes-card__meta{margin:0}
#notes-view.notes-page[data-notes-layout="list"] .notes-card__emblem{width:30px;height:30px}
#notes-view.notes-page[data-notes-layout="list"] .notes-card__preview{max-height:40px}
#notes-view.notes-page[data-notes-layout="list"] .notes-card__meta{
 border:0;padding:0;display:flex;flex-wrap:wrap;
}
#notes-view.notes-page[data-notes-layout="list"] .notes-card__actions{
 top:50%;right:14px;transform:translateY(-50%);
}
@media(max-width:1280px){
 #notes-view.notes-page .notes-collection-summary{display:none}
}
@media(max-width:980px){
 #notes-view.notes-page .notes-controls__right{flex-basis:100%;justify-content:flex-end}
 #notes-view.notes-page[data-notes-layout="list"] .notes-card__main{
  grid-template-columns:32px minmax(100px,.8fr) minmax(110px,1.5fr) minmax(150px,1fr);
 }
 #notes-view.notes-page[data-notes-layout="list"] .notes-card__tags{display:none}
}
@media(max-width:740px){
 #signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar{gap:8px}
 #signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar__search{
  flex:1 1 100px;max-width:none;min-width:65px;height:36px;margin-left:0!important;
 }
 #signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar__button{
  width:35px;height:35px;min-height:35px;flex-basis:35px;padding:7px;
 }
 #signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar__tools{gap:5px}
 #notes-view.notes-page .notes-controls__right{flex-wrap:wrap}
 #notes-view.notes-page .notes-querybar{flex:1 1 auto;justify-content:flex-start!important}
 #notes-view.notes-page[data-notes-layout="list"] .notes-card__main{
  grid-template-columns:30px minmax(0,1fr);gap:5px 12px;padding:12px 80px 12px 13px!important;
 }
 #notes-view.notes-page[data-notes-layout="list"] .notes-card__emblem{grid-row:1/3}
 #notes-view.notes-page[data-notes-layout="list"] .notes-card__title-row,
 #notes-view.notes-page[data-notes-layout="list"] .notes-card__preview,
 #notes-view.notes-page[data-notes-layout="list"] .notes-card__meta{grid-column:2}
 #notes-view.notes-page[data-notes-layout="list"] .notes-card__modified{font-size:9px}
}
@media(max-width:520px){
 #notes-view.notes-page .notes-controls{flex-direction:column!important;align-items:stretch!important}
 #notes-view.notes-page .notes-tabs{width:100%;justify-content:space-between;gap:4px}
 #notes-view.notes-page .notes-controls__right{
  width:100%;margin:0;flex-basis:auto;justify-content:space-between;
 }
 #notes-view.notes-page .notes-querybar{order:-1;flex:1 1 100%;width:100%;min-width:0;gap:7px!important}
 #notes-view.notes-page :is(.notes-sort-filter,.notes-tag-filter){flex:1 1 0;min-width:0}
 #notes-view.notes-page :is(.notes-sort-filter__summary,.notes-tag-filter__summary){width:100%;max-width:100%;min-width:0}
 #notes-view.notes-page .notes-view-switch{margin-left:auto}
}
@media(max-width:390px){
 #signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar__title{display:none}
 #signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar__search{min-width:46px;padding:0 7px}
 #notes-view.notes-page .notes-controls__right{gap:5px}
 #notes-view.notes-page .notes-filter-toggle{flex-basis:32px;width:32px}
 #notes-view.notes-page .notes-view-switch__button{flex-basis:30px;width:30px}
}
@media(prefers-reduced-motion:reduce){
 #signed-in.app-shell:has(#notes-view:not([hidden])) .sfera-notes-topbar__button,
 #notes-view.notes-page .notes-tab::after,
 #notes-view.notes-page .notes-sort-filter__summary svg,
 #notes-view.notes-page .notes-tag-filter__summary svg,
 #notes-view.notes-page .notes-view-switch__button{transition:none!important}
}

/* Final guard: no legacy translucent parent and no width cap at any viewport. */
#signed-in.app-shell:has(#notes-view:not([hidden])) #app-content,
#notes-view.notes-page,
#notes-view.notes-page .notes-canvas {
  box-sizing:border-box!important;width:100%!important;max-width:none!important;min-width:0!important;
  margin-left:0!important;margin-right:0!important;
}
#notes-view.notes-page .notes-canvas {
  padding:0!important;background:none!important;background-image:none!important;
  border:0!important;box-shadow:none!important;filter:none!important;
}
#notes-view.notes-page .notes-canvas::before,
#notes-view.notes-page .notes-canvas::after,
#notes-view.notes-page::before,
#notes-view.notes-page::after{display:none!important;content:none!important}

/* Notes 2.16.4 — plain heading, Activity/Task modal hierarchy and semantic form states. */
/* No hero card or pseudo-overlay around the section title. */
#notes-view.notes-page .notes-page-title{
  display:block;width:max-content;max-width:100%;margin:0 0 17px!important;
  padding:0 2px!important;border:0!important;border-radius:0!important;
  background:transparent!important;background-image:none!important;box-shadow:none!important;
  color:#0e2166!important;letter-spacing:-.025em!important;
  font:500 clamp(18px,1.55vw,23px)/1.3 Poppins,"Open Sans",sans-serif!important;
}
#notes-view.notes-page .notes-page-title::before,
#notes-view.notes-page .notes-page-title::after{display:none!important;content:none!important}
#notes-view.notes-page .notes-canvas{
  background:transparent!important;background-image:none!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
}
#notes-view.notes-page .notes-hero__actions[hidden]{display:none!important}
/* The two dropdown controls share identical box dimensions across all desktop widths. */
#notes-view.notes-page .notes-querybar :is(.notes-sort-filter,.notes-tag-filter){
  box-sizing:border-box!important;flex:0 0 188px!important;
  width:188px!important;min-width:188px!important;max-width:188px!important;
  margin:0!important;padding:0!important;
}
#notes-view.notes-page .notes-querybar :is(.notes-sort-filter__summary,.notes-tag-filter__summary){
  box-sizing:border-box!important;display:flex!important;align-items:center!important;
  justify-content:space-between!important;gap:10px!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:40px!important;min-height:40px!important;max-height:40px!important;
  margin:0!important;padding:9px 12px!important;
  border:1px solid #dce6f4!important;border-radius:10px!important;
  background:#fff!important;
  font:600 12px/1.3 var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif)!important;
}
#notes-view.notes-page .notes-querybar :is(.notes-sort-filter[open] .notes-sort-filter__summary,.notes-tag-filter[open] .notes-tag-filter__summary){
  background:#f5f9ff!important;border-color:#b6d4fb!important;
}
/* Stable modal grid: keep original desktop size and full-screen mobile geometry. */
#notes-view.notes-page .notes-editor__panel{
  border-color:#dce7f4!important;border-radius:16px;
  box-shadow:0 20px 65px rgba(12,30,65,.22)!important;
}
#notes-view.notes-page .notes-editor__header{
  display:flex;align-items:center!important;justify-content:space-between!important;
  gap:14px;min-width:0;min-height:89px;padding:19px 24px!important;
  border-bottom:1px solid #e8eff8!important;background:#fff!important;
}
#notes-view.notes-page .notes-editor__heading{
  display:flex;align-items:center;gap:13px;flex:1 1 auto;min-width:0;
}
#notes-view.notes-page .notes-editor__hero-icon{
  display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;
  border-radius:12px;background:#eaf3ff;color:#0e2166;
}
#notes-view.notes-page .notes-editor__hero-icon svg{
  display:block;width:23px;height:23px;fill:none;stroke:currentColor;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
#notes-view.notes-page .notes-editor__heading-copy{min-width:0;flex:1 1 auto}
#notes-view.notes-page .notes-editor__header h2{
  color:#0e2166!important;margin:0!important;
  font:680 23px/1.25 var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif)!important;
  letter-spacing:-.4px!important;
}
#notes-view.notes-page .notes-editor__heading-copy p{
  margin:4px 0 0;color:#7385a2;
  font:430 12px/1.45 var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif);
}
#notes-view.notes-page .notes-editor__header-actions{
  display:flex;align-items:center;flex:0 0 auto;gap:11px;flex-wrap:nowrap;
}
#notes-view.notes-page .notes-save-status{
  border:1px solid transparent;border-radius:999px;padding:7px 11px;
  font:650 11px/1.4 var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif);
}
#notes-view.notes-page .notes-icon-btn{
  display:grid;place-items:center;flex:0 0 36px;width:36px;min-width:36px;
  min-height:36px;height:36px;padding:0;border:1px solid #e0e7f1;
  border-radius:9px;background:#fff;color:#8292aa;
  transition:background-color .15s,border-color .15s,color .15s;
}
#notes-view.notes-page .notes-icon-btn:is(:hover,:focus-visible){
  background:#f4f7fc;color:#0e2166;border-color:#b9cde9;
}
#notes-view.notes-page .notes-editor__body{
  gap:12px;padding:18px 23px!important;background:#f4f7fc!important;
}
#notes-view.notes-page .notes-field--title{
  display:grid;gap:9px;margin:0;padding:16px 19px!important;
  border:1px solid #dde7f3;border-radius:14px;
  background:#fff;box-shadow:0 3px 11px rgba(14,33,102,.035);
  transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease;
}
#notes-view.notes-page .notes-field__title-row{
  display:flex;justify-content:space-between;align-items:center;
  gap:10px;flex-wrap:wrap;
}
#notes-view.notes-page .notes-field--title .notes-field__title-label{
  display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;
  font:575 12.5px/1.4 var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif);
  color:#405776;
}
#notes-view.notes-page .notes-field__required-label{
  padding:3px 7px;border-radius:6px;background:#edf4fc;
  color:#6d86a6;font:650 10px/1.3 var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif);
}
#notes-view.notes-page .notes-field__state{
  font:650 11px/1.3 var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif);
}
#notes-view.notes-page .notes-field__input-wrap{
  display:flex;align-items:center;gap:7px;min-height:46px;
  padding:0 11px 0 0;border:1px solid #dce5f1;border-radius:10px;background:#fff;
  transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease;
}
#notes-view.notes-page .notes-field--title .notes-field__input-wrap input{
  display:block;flex:1 1 auto;box-sizing:border-box;min-width:0;
  width:100%;height:46px;min-height:46px;margin:0;padding:10px 13px!important;
  border:0!important;border-radius:10px;background:transparent!important;
  outline:0!important;box-shadow:none!important;color:#263e60;
  font:560 14px/1.4 var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif)!important;
}
#notes-view.notes-page .notes-field__input-wrap:focus-within{
  border-color:#0b7ff0;box-shadow:0 0 0 3px rgba(11,127,240,.12);
}
#notes-view.notes-page .notes-field__input-status{
  display:none;place-items:center;flex:0 0 21px;width:21px;height:21px;
  border-radius:50%;font:800 13px/1 Arial,sans-serif;
}
#notes-view.notes-page .notes-field--title>small{
  margin:0;color:#7286a2;font:480 11px/1.5 var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif);
}
#notes-view.notes-page .notes-field--title[data-title-state="invalid"]{
  border-color:#f2c4c2;background:#fffafa;
  box-shadow:0 0 0 2px rgba(210,68,63,.035);
}
#notes-view.notes-page .notes-field--title[data-title-state="invalid"] .notes-field__input-wrap{
  border-color:#d2443f;background:#fff9f8;box-shadow:0 0 0 2px rgba(210,68,63,.06);
}
#notes-view.notes-page .notes-field--title[data-title-state="invalid"] :is(.notes-field__title-label,.notes-field__state,small){
  color:#b44840;
}
#notes-view.notes-page .notes-field--title[data-title-state="invalid"] .notes-field__required-label{
  color:#b44840;background:#ffeaea;
}
#notes-view.notes-page .notes-field--title[data-title-state="invalid"] .notes-field__input-status{
  display:grid;background:#fce5e3;color:#b44840;
}
#notes-view.notes-page .notes-field--title[data-title-state="invalid"] .notes-field__input-status::before{content:"!"}
#notes-view.notes-page .notes-field--title[data-title-state="valid"]{
  border-color:#a8d7c3;background:#fcfffd;
  box-shadow:0 0 0 2px rgba(22,131,90,.035);
}
#notes-view.notes-page .notes-field--title[data-title-state="valid"] .notes-field__input-wrap{
  border-color:#42a279;background:#fbfffc;box-shadow:0 0 0 2px rgba(22,131,90,.045);
}
#notes-view.notes-page .notes-field--title[data-title-state="valid"] :is(.notes-field__title-label,.notes-field__state,small){
  color:#16835a;
}
#notes-view.notes-page .notes-field--title[data-title-state="valid"] .notes-field__required-label{
  color:#16835a;background:#e6f7ee;
}
#notes-view.notes-page .notes-field--title[data-title-state="valid"] .notes-field__input-status{
  display:grid;background:#dbf3e7;color:#16835a;
}
#notes-view.notes-page .notes-field--title[data-title-state="valid"] .notes-field__input-status::before{content:"✓"}
#notes-view.notes-page .notes-field--title[data-title-state="neutral"] .notes-field__required-label{display:none}
#notes-view.notes-page .notes-compose-heading{
  display:flex;align-items:center;gap:10px;min-height:36px;
  padding:3px 3px 0;color:#0e2166;
}
#notes-view.notes-page .notes-compose-heading__icon{
  display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;
  border-radius:9px;background:#eaf3ff;color:#0b7ff0;
}
#notes-view.notes-page .notes-compose-heading__icon svg{
  width:17px;height:17px;fill:none;stroke:currentColor;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
#notes-view.notes-page .notes-compose-heading__copy{
  display:grid;gap:3px;min-width:0;
}
#notes-view.notes-page .notes-compose-heading__copy strong{
  font:650 12.5px/1.2 var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif);
}
#notes-view.notes-page .notes-compose-heading__copy small{
  color:#7a8ea9;font:450 10.5px/1.3 var(--sfera-font-family,"Schibsted Grotesk",Arial,sans-serif);
}
#notes-view.notes-page .notes-toolbar{
  border:1px solid #dce6f3;border-radius:12px;background:#fff;
  box-shadow:0 2px 9px rgba(14,33,102,.025);
}
#notes-view.notes-page .notes-frame-wrap{
  border:1px solid #dce6f3;border-radius:13px;
  box-shadow:0 2px 9px rgba(14,33,102,.025);
}
#notes-view.notes-page .notes-tags-editor{
  border-radius:13px;border-color:#dde7f3;
  box-shadow:0 2px 9px rgba(14,33,102,.025);
}
@media(max-width:740px){
  #notes-view.notes-page .notes-editor__header{min-height:75px;padding:14px!important}
  #notes-view.notes-page .notes-editor__hero-icon{
    flex-basis:40px;width:40px;height:40px;border-radius:11px;
  }
  #notes-view.notes-page .notes-editor__header h2{font-size:19px!important}
  #notes-view.notes-page .notes-editor__body{padding:13px!important}
  #notes-view.notes-page .notes-field--title{padding:13px!important}
}
@media(max-width:520px){
  #notes-view.notes-page .notes-querybar :is(.notes-sort-filter,.notes-tag-filter){
    flex:1 1 0!important;width:auto!important;min-width:0!important;max-width:none!important;
  }
  #notes-view.notes-page .notes-editor__header{gap:8px;padding:12px!important}
  #notes-view.notes-page .notes-editor__heading{gap:9px}
  #notes-view.notes-page .notes-editor__hero-icon{flex-basis:36px;width:36px;height:36px}
  #notes-view.notes-page .notes-editor__hero-icon svg{width:19px;height:19px}
  #notes-view.notes-page .notes-editor__header h2{font-size:17px!important}
  #notes-view.notes-page .notes-editor__heading-copy p{
    font-size:10.5px;line-height:1.3;
  }
  #notes-view.notes-page .notes-save-status{padding:6px 8px;font-size:10px}
  #notes-view.notes-page .notes-editor__header-actions{gap:6px}
  #notes-view.notes-page .notes-icon-btn{width:34px;min-width:34px;height:34px;min-height:34px}
  #notes-view.notes-page .notes-compose-heading__copy small{font-size:10px}
}
@media(max-width:370px){
  #notes-view.notes-page .notes-editor__heading-copy p{display:none}
  #notes-view.notes-page .notes-save-status{max-width:75px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media(prefers-reduced-motion:reduce){
  #notes-view.notes-page :is(.notes-field--title,.notes-field__input-wrap,.notes-icon-btn){transition:none!important}
}

/* Preserve the pre-existing true edge-to-edge editor on narrow devices. */
@media(max-width:640px){
  #notes-view.notes-page .notes-editor__panel{
    border:0!important;border-radius:0!important;box-shadow:none!important;
  }
}
