.noty-demo {
  --noty-bg: rgb(100% 97% 68%);
  --noty-ink: rgb(11% 9% 3%);
  --noty-accent: rgb(4% 42% 80%);
  --noty-font-adjustment: 0px;
  --noty-compact-width: 360px;
  --noty-compact-height: 300px;
  --noty-edit-width: 780px;
  --noty-edit-height: 620px;
  position: absolute;
  width: var(--noty-compact-width);
  height: var(--noty-compact-height);
  isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--noty-ink) 12%, transparent);
  border-radius: 22px;
  background: var(--noty-bg);
  color: var(--noty-ink);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, .18),
    0 18px 42px rgba(0, 0, 0, .29);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.42;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  transition:
    width .28s cubic-bezier(.28, .78, .28, 1),
    height .28s cubic-bezier(.28, .78, .28, 1),
    opacity .26s ease,
    transform .26s ease,
    box-shadow .16s ease;
}

.noty-demo.is-mode-transitioning {
  overflow: hidden;
  will-change: left, top, width, height;
  transition:
    left .28s cubic-bezier(.28, .78, .28, 1),
    top .28s cubic-bezier(.28, .78, .28, 1),
    width .28s cubic-bezier(.28, .78, .28, 1),
    height .28s cubic-bezier(.28, .78, .28, 1),
    opacity .26s ease,
    transform .26s ease,
    box-shadow .16s ease;
}

.noty-demo.is-resizing { transition: none; }

.noty-demo[hidden] { display: none !important; }

.noty-demo *,
.noty-demo *::before,
.noty-demo *::after { box-sizing: border-box; }

.noty-demo button { font: inherit; }

.noty-demo button {
  color: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.noty-demo button:focus-visible,
.noty-demo input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--noty-accent) 78%, white);
  outline-offset: 2px;
}

.noty-demo.is-editing {
  width: var(--noty-edit-width);
  height: var(--noty-edit-height);
}

.noty-demo.is-collapsed {
  width: var(--noty-compact-width);
  height: 46px;
}

.noty-demo__resize-handle {
  position: absolute;
  z-index: 20;
  right: 2px;
  bottom: 2px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 0 0 18px 0;
  background: transparent;
  color: color-mix(in srgb, var(--noty-ink) 32%, transparent);
  cursor: nwse-resize;
  touch-action: none;
}

.noty-demo__resize-handle::before,
.noty-demo__resize-handle::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 7px;
  height: 1px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: right center;
}

.noty-demo__resize-handle::after { width: 12px; right: 4px; bottom: 4px; }
.noty-demo__resize-handle:hover { color: color-mix(in srgb, var(--noty-ink) 62%, transparent); }
.noty-demo.is-collapsed .noty-demo__resize-handle,
.noty-demo.is-mode-transitioning .noty-demo__resize-handle { display: none; }

.noty-demo__topbar {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 22px 22px 0 0;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.noty-demo.is-collapsed .noty-demo__topbar { border-radius: 22px; }
.noty-demo__topbar:active { cursor: grabbing; }

.noty-demo__drag-surface {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  touch-action: none;
}

.noty-demo__rail {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.noty-demo__rail--trailing { margin-left: auto; }

.noty-demo__control {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--noty-ink) 2.5%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--noty-ink) 2.5%, transparent);
  color: color-mix(in srgb, var(--noty-ink) 68%, transparent);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color .12s ease, color .12s ease, transform .1s ease;
}

.noty-demo__control:hover {
  background: color-mix(in srgb, var(--noty-ink) 9%, transparent);
  color: var(--noty-ink);
}

.noty-demo__control:active { transform: scale(.92); }
.noty-demo__control:disabled { opacity: .28; cursor: default; transform: none; }

.noty-demo__control svg {
  width: 14px;
  height: 14px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.noty-demo__control svg g {
  transform-box: fill-box;
  transform-origin: center;
}

.noty-demo__pin[aria-pressed="true"],
.noty-demo__preview-toggle[aria-pressed="true"],
.noty-demo__attach.is-selected {
  background: color-mix(in srgb, var(--noty-ink) 13%, transparent);
  color: var(--noty-accent);
}

.noty-demo__primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 62px;
  width: 62px;
  height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 15px;
  background: color-mix(in srgb, var(--noty-ink) 7%, transparent);
  color: color-mix(in srgb, var(--noty-ink) 85%, transparent);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color .12s ease, color .12s ease, transform .1s ease;
}

.noty-demo__primary-action:hover { background: color-mix(in srgb, var(--noty-ink) 12%, transparent); }
.noty-demo__primary-action:active { transform: scale(.94); }
.noty-demo__primary-action svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.noty-demo__primary-action.is-completion { background: var(--noty-accent); color: white; }
.noty-demo__primary-action.is-completion:hover { background: color-mix(in srgb, var(--noty-accent) 88%, black); }

.noty-demo__title {
  position: absolute;
  z-index: 1;
  inset: 0 66px 0 126px;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: color-mix(in srgb, var(--noty-ink) 78%, transparent);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 650;
  line-height: 46px;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.noty-demo.is-collapsed .noty-demo__title { display: block; text-align: center; }

.noty-demo__color-dot {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid color-mix(in srgb, var(--noty-ink) 42%, transparent);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.noty-demo__color-dot::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--noty-accent);
}

.noty-demo__font {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0 4px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--noty-ink) 2.5%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--noty-ink) 2.5%, transparent);
  transition: width .16s ease-in-out;
}

.noty-demo__font.is-expanded { width: 86px; }

.noty-demo__font .noty-demo__control {
  flex-basis: auto;
  border: 0;
  background: transparent;
}

.noty-demo__font-side {
  width: 24px;
  min-width: 24px;
  font-size: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .1s ease, visibility 0s linear .1s;
}
.noty-demo__font.is-expanded .noty-demo__font-side {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: .04s, 0s;
}
.noty-demo__font-main { order: 2; width: 28px; min-width: 28px; }
.noty-demo__font.has-adjustment .noty-demo__font-main { color: var(--noty-accent); }
.noty-demo__font-side:first-child { order: 1; }
.noty-demo__font-side:last-child { order: 3; }

.noty-demo:not(.is-edit-content):not(.is-collapsed) .noty-demo__preview-toggle,
.noty-demo:not(.is-edit-content):not(.is-collapsed) .noty-demo__expand,
.noty-demo.is-edit-content .noty-demo__collapse,
.noty-demo.is-edit-content .noty-demo__attach,
.noty-demo.is-edit-content .noty-demo__rail--trailing > .noty-demo__theme,
.noty-demo.is-edit-content .noty-demo__font,
.noty-demo.is-edit-content .noty-demo__expand,
.noty-demo.is-collapsed .noty-demo__collapse,
.noty-demo.is-collapsed .noty-demo__attach,
.noty-demo.is-collapsed .noty-demo__theme,
.noty-demo.is-collapsed .noty-demo__font,
.noty-demo.is-collapsed .noty-demo__preview-toggle,
.noty-demo.is-collapsed .noty-demo__edit { display: none; }

.noty-demo__center-info {
  position: absolute;
  z-index: 1;
  left: 50%;
  display: none;
  align-items: center;
  gap: 8px;
  max-width: 260px;
  height: 46px;
  overflow: hidden;
  transform: translateX(-50%);
  pointer-events: none;
}

.noty-demo__last-edited {
  display: none;
  width: 120px;
  overflow: hidden;
  color: color-mix(in srgb, var(--noty-ink) 44%, transparent);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.noty-demo.is-edit-content .noty-demo__center-info,
.noty-demo.is-edit-content .noty-demo__last-edited { display: flex; }

.noty-demo__compact {
  position: absolute;
  inset: 46px 0 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 38px;
  min-height: 0;
  overflow: hidden;
  border-radius: 0 0 21px 21px;
}

.noty-demo.is-collapsed .noty-demo__compact { display: none; }
.noty-demo__compact {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.noty-demo.is-edit-content .noty-demo__compact {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.noty-demo__scroll,
.noty-demo__preview-scroll {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: color-mix(in srgb, var(--noty-ink) 22%, transparent) transparent;
  scrollbar-width: thin;
}

.noty-demo__scroll { padding: 4px 24px 16px 28px; }
.noty-demo:not(.has-checklist) .noty-demo__scroll { padding-top: 12px; }

.noty-demo__filters {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 0;
  padding: 2px 28px 3px;
}

.noty-demo__filters:empty { display: none; }

.noty-demo__filter-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--noty-accent) 12%, transparent);
}

.noty-demo__filters button {
  min-width: 36px;
  height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: color-mix(in srgb, var(--noty-ink) 58%, transparent);
  font-family: inherit;
  font-size: 11px;
  font-weight: 400;
  cursor: pointer;
}

.noty-demo__filters button:hover { background: color-mix(in srgb, var(--noty-ink) 9%, transparent); }
.noty-demo__filters button[aria-pressed="true"] { background: var(--noty-accent); color: white; font-weight: 600; }
.noty-demo__filters .noty-demo__regular-list-toggle { min-width: 24px; width: 24px; padding: 0; }
.noty-demo__filters .noty-demo__regular-list-toggle svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.noty-demo__markdown {
  color: color-mix(in srgb, var(--noty-ink) 90%, transparent);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(12px, calc(16px + var(--noty-font-adjustment)), 24px);
  font-weight: 400;
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
}

.noty-demo__markdown h1,
.noty-demo__markdown h2,
.noty-demo__markdown h3,
.noty-demo__markdown h4,
.noty-demo__markdown h5,
.noty-demo__markdown h6 {
  margin: 0 0 .48em;
  color: inherit;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.12;
}

.noty-demo__markdown h1 { font-size: 1.42em; }
.noty-demo__markdown h2 { font-size: 1.24em; }
.noty-demo__markdown h3 { font-size: 1.1em; }

.noty-demo__markdown p,
.noty-demo__markdown ul,
.noty-demo__markdown ol,
.noty-demo__markdown blockquote,
.noty-demo__markdown pre { margin: 0 0 .72em; }

.noty-demo__markdown p:last-child,
.noty-demo__markdown ul:last-child,
.noty-demo__markdown ol:last-child,
.noty-demo__markdown blockquote:last-child,
.noty-demo__markdown pre:last-child { margin-bottom: 0; }

.noty-demo__markdown ul,
.noty-demo__markdown ol { padding-left: 1.35em; }
.noty-demo__markdown li + li { margin-top: .22em; }

.noty-demo__markdown blockquote {
  padding: .12em 0 .12em .8em;
  border-left: 0;
  color: color-mix(in srgb, var(--noty-ink) 78%, transparent);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 600;
}

.noty-demo__markdown code {
  padding: .08em .28em;
  border-radius: 5px;
  background: color-mix(in srgb, var(--noty-ink) 10%, transparent);
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
}

.noty-demo__markdown del { opacity: .68; }
.noty-demo__markdown mark {
  padding: 0 .08em;
  border-radius: .18em;
  background: rgb(100% 82% 18% / 42%);
  color: inherit;
}
.noty-demo__inline-color--red { color: #c71f24; }
.noty-demo__inline-color--orange { color: #c7520a; }
.noty-demo__inline-color--yellow { color: #9e7000; }
.noty-demo__inline-color--green { color: #247a38; }
.noty-demo__inline-color--blue { color: #1a52c2; }
.noty-demo__inline-color--purple { color: #7a38b3; }
.noty-demo__inline-color--pink { color: #c72e75; }

.noty-demo__markdown hr {
  height: 1px;
  margin: .8em 0;
  border: 0;
  background: color-mix(in srgb, var(--noty-ink) 22%, transparent);
}

.noty-demo__markdown pre {
  overflow: auto;
  padding: .72em .86em;
  border: 1px solid color-mix(in srgb, var(--noty-ink) 10%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--noty-ink) 9%, transparent);
}

.noty-demo__markdown pre code { padding: 0; background: none; white-space: pre; }

.noty-demo__checklist {
  list-style: none;
  padding-left: 0 !important;
}

.noty-demo__check-item label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  min-height: 24px;
  cursor: pointer;
}

.noty-demo__check-item input {
  appearance: none;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  border: 1.5px solid color-mix(in srgb, var(--noty-ink) 54%, transparent);
  border-radius: 5px;
  background: color-mix(in srgb, white 14%, transparent);
  cursor: pointer;
}

.noty-demo__check-item input:checked {
  border-color: var(--noty-accent);
  background: var(--noty-accent);
}

.noty-demo__check-item input:checked::after {
  content: "";
  display: block;
  width: 8px;
  height: 4px;
  margin: 4px 0 0 3px;
  border-bottom: 2px solid white;
  border-left: 2px solid white;
  transform: rotate(-45deg);
}

.noty-demo__check-item.is-done span {
  color: color-mix(in srgb, var(--noty-ink) 48%, transparent);
  text-decoration: line-through;
}

.noty-demo__empty {
  padding-top: 36px;
  color: color-mix(in srgb, var(--noty-ink) 42%, transparent);
  font-style: italic;
  text-align: center;
}

.noty-demo__empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 172px;
  color: color-mix(in srgb, var(--noty-ink) 56%, transparent);
  text-align: center;
}

.noty-demo__empty-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
}

.noty-demo__empty-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.noty-demo__empty-state strong {
  color: color-mix(in srgb, var(--noty-ink) 90%, transparent);
  font-size: 18px;
  font-weight: 600;
}

.noty-demo__empty-state > span:not(.noty-demo__empty-icon) { margin-top: 3px; font-size: 12px; }
.noty-demo__empty-state button {
  height: 30px;
  margin-top: 14px;
  padding: 0 13px;
  border: 0;
  border-radius: 15px;
  background: color-mix(in srgb, var(--noty-ink) 8%, transparent);
  color: color-mix(in srgb, var(--noty-ink) 82%, transparent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.noty-demo__empty-state button:hover { background: color-mix(in srgb, var(--noty-ink) 13%, transparent); }

.noty-demo__info {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  overflow: hidden;
}

.noty-demo__info::before {
  content: "";
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 1px;
  background: color-mix(in srgb, var(--noty-ink) 6%, transparent);
}

.noty-demo__pill {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 150px;
  gap: 4px;
  padding: 4px 3px;
  overflow: hidden;
  border-radius: 999px;
  background: transparent;
  color: color-mix(in srgb, var(--noty-ink) 58%, transparent);
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.noty-demo__pill svg {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.noty-demo__pill > span { overflow: hidden; text-overflow: ellipsis; }
.noty-demo__pill b {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--noty-ink) 8%, transparent);
  font-size: 9px;
  font-weight: 600;
}

.noty-demo__pill--end { margin-left: auto; }
.noty-demo__pill--attachment { margin-left: auto; max-width: 190px; }
.noty-demo__pill--end + .noty-demo__pill--attachment { margin-left: 0; }

.noty-demo__edit-surface {
  position: absolute;
  inset: 46px 0 0;
  display: block;
  min-height: 0;
  overflow: hidden;
  border-radius: 0 0 21px 21px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.noty-demo.is-edit-content .noty-demo__edit-surface {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.noty-demo__edit-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: 18px;
  height: 100%;
  padding: 8px 26px 92px;
}

.noty-demo__edit-columns:has(.noty-demo__preview[hidden]) {
  grid-template-columns: minmax(0, 1fr);
}

.noty-demo__editor {
  width: 100%;
  height: 100%;
  min-width: 0;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--noty-ink);
  caret-color: var(--noty-accent);
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.48;
  overscroll-behavior: contain;
}

.noty-demo__editor::selection { background: color-mix(in srgb, var(--noty-accent) 28%, transparent); }
.noty-demo__editor:focus-visible { outline: 0; }
.noty-demo__edit-divider { width: 1px; height: calc(100% - 16px); margin-top: 8px; background: color-mix(in srgb, var(--noty-ink) 16%, transparent); }
.noty-demo__preview {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--noty-ink) 10%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--noty-ink) 4.5%, transparent);
}
.noty-demo__preview[hidden], .noty-demo__edit-divider[hidden] { display: none; }
.noty-demo__preview .noty-demo__filters { padding: 10px 14px 2px; }
.noty-demo__preview-scroll { padding: 10px 14px 18px; }

.noty-demo__edit-toolbar {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 5px 16px;
  border: 1px solid color-mix(in srgb, var(--noty-ink) 12%, transparent);
  border-radius: 22px;
  background: var(--noty-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06), 0 8px 20px rgba(0, 0, 0, .08);
  transform: translateX(-50%);
}

.noty-demo__tool-item {
  display: flex;
  flex: 0 0 34px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 44px;
  color: color-mix(in srgb, var(--noty-ink) 72%, transparent);
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
}

.noty-demo__tool-item .noty-demo__control { flex-basis: 26px; width: 26px; height: 26px; }
.noty-demo__tool-item .noty-demo__control svg { width: 13px; height: 13px; }

.noty-demo__tool { font-size: 15px; }
.noty-demo__tool--text { font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: -.06em; }
.noty-demo__tool--code { font-family: ui-monospace, "SF Mono", monospace; font-size: 15px; font-weight: 800; letter-spacing: -.12em; }
.noty-demo__tool--text-color { color: var(--noty-accent); font-family: inherit; font-size: 15px; font-weight: 700; }
.noty-demo__tool--bold { font-weight: 900; }
.noty-demo__tool--italic { font-family: Georgia, serif; font-style: italic; }
.noty-demo__tool--heading { font-size: 18px; font-weight: 800; }
.noty-demo__tool--strike { text-decoration: line-through; }
.noty-demo__tool--highlight { font-size: 12px; font-weight: 900; }
.noty-demo__tool--divider { font-size: 18px; font-weight: 800; }

.noty-demo__edit-secondary {
  position: absolute;
  z-index: 6;
  bottom: 88px;
  left: 50%;
  max-width: calc(100% - 36px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--noty-ink) 12%, transparent);
  border-radius: 22px;
  background: var(--noty-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08), 0 10px 24px rgba(0, 0, 0, .10);
  transform: translateX(-50%);
  animation: noty-secondary-in .2s ease both;
}

.noty-demo__edit-secondary[hidden] { display: none; }

.noty-demo__secondary-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 4px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.noty-demo__secondary-stack { padding: 10px 14px; }
.noty-demo__secondary-stack > strong {
  display: block;
  color: color-mix(in srgb, var(--noty-ink) 68%, transparent);
  font-size: 11px;
  font-weight: 500;
}

.noty-demo__secondary-row::-webkit-scrollbar { display: none; }
.noty-demo__secondary-action { flex: 0 0 30px; }

.noty-demo__text-swatch {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--text-swatch) 64%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--noty-ink) 2.5%, transparent);
  color: var(--text-swatch);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.noty-demo__tag-row { gap: 8px; }
.noty-demo__tag-chip {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid color-mix(in srgb, var(--noty-ink) 10%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--noty-ink) 4%, transparent);
  color: color-mix(in srgb, var(--noty-ink) 76%, transparent);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.noty-demo__tag-chip[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--noty-ink) 28%, transparent);
  background: color-mix(in srgb, var(--noty-ink) 12%, transparent);
  color: var(--noty-ink);
}
.noty-demo__tag-chip > span { margin-right: 5px; }
.noty-demo__tag-chip[aria-pressed="false"] > span { display: none; }
.noty-demo__tag-chip--new { background: transparent; }

@keyframes noty-secondary-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.noty-demo__done {
  min-width: 72px;
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--noty-accent);
  color: white !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.noty-demo__popover {
  position: absolute;
  z-index: 20;
  top: 52px;
  right: 14px;
  width: min(330px, calc(100% - 28px));
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--noty-ink) 12%, transparent);
  border-radius: 22px;
  background: var(--noty-bg);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .14), 0 18px 38px rgba(0, 0, 0, .20);
}

.noty-demo__theme-group + .noty-demo__theme-group { margin-top: 4px; }

.noty-demo.is-edit-content .noty-demo__theme-popover {
  top: auto;
  right: auto;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
}

.noty-demo__theme-group > strong,
.noty-demo__menu-label {
  display: block;
  margin: 0 2px 1px;
  color: color-mix(in srgb, var(--noty-ink) 68%, transparent);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.noty-demo__swatches {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 3px 2px;
  scrollbar-width: none;
}

.noty-demo__swatches::-webkit-scrollbar { display: none; }

.noty-demo__swatch {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.noty-demo__swatch > span {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  border: 1px solid color-mix(in srgb, var(--swatch-ink) 28%, transparent);
  border-radius: 50%;
  background: var(--swatch-bg);
}

.noty-demo__swatch.is-selected > span { border: 2px solid var(--swatch-ink); }

.noty-demo__swatch.is-selected > span::before {
  content: "✓";
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--swatch-ink);
  font-size: 13px;
  font-weight: 700;
}

.noty-demo__swatch > span::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--swatch-accent);
}

.noty-demo__attachment-popover {
  width: 300px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.noty-demo__attachment-root,
.noty-demo__attachment-methods {
  position: relative;
  padding: 8px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--noty-ink) 16%, transparent);
  border-radius: 22px;
  background: var(--noty-bg);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .14), 0 18px 38px rgba(0, 0, 0, .20);
}

.noty-demo__attachment-methods.opens-right {
  right: auto;
  left: calc(100% + 8px);
}

.noty-demo__attachment-methods {
  position: absolute;
  top: 0;
  right: calc(100% + 8px);
  width: 280px;
}

.noty-demo__attachment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 40px;
  padding: 0 10px;
  color: color-mix(in srgb, var(--noty-ink) 84%, transparent);
}

.noty-demo__attachment-header strong { overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.noty-demo__attachment-header > span {
  overflow: hidden;
  color: color-mix(in srgb, var(--noty-ink) 50%, transparent);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.noty-demo__attachment-header button {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: color-mix(in srgb, var(--noty-ink) 2.5%, transparent);
  color: color-mix(in srgb, var(--noty-ink) 68%, transparent);
  cursor: pointer;
}
.noty-demo__attachment-header button:hover { background: color-mix(in srgb, var(--noty-ink) 9%, transparent); }

.noty-demo__attachment-divider { height: 1px; margin: 0 8px; background: color-mix(in srgb, var(--noty-ink) 8%, transparent); }
.noty-demo__attachment-list { max-height: 260px; overflow-y: auto; scrollbar-width: thin; }

.noty-demo__target,
.noty-demo__attachment-methods > button,
.noty-demo__clear-attachment {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 50px;
  padding: 5px 10px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--noty-ink);
  text-align: left;
  cursor: pointer;
}

.noty-demo__target:hover,
.noty-demo__target.is-selected,
.noty-demo__attachment-methods > button:hover,
.noty-demo__clear-attachment:hover { background: color-mix(in srgb, var(--noty-ink) 10%, transparent); }

.noty-demo__app-icon {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-right: 9px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 7px;
  background: color-mix(in srgb, var(--noty-accent) 76%, white);
  color: white;
  font-size: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

.noty-demo__target > span:nth-child(2),
.noty-demo__attachment-methods > button > span:last-child { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.noty-demo__target strong,
.noty-demo__attachment-methods > button strong { overflow: hidden; font-size: 13px; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.noty-demo__target small,
.noty-demo__attachment-methods > button small { overflow: hidden; color: color-mix(in srgb, var(--noty-ink) 56%, transparent); font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.noty-demo__target svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.noty-demo__attachment-methods > button { min-height: 46px; }
.noty-demo__method-icon {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-right: 9px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--noty-ink) 5%, transparent);
  color: color-mix(in srgb, var(--noty-ink) 68%, transparent);
  font-size: 14px;
}
.noty-demo__clear-attachment { min-height: 38px; margin-top: 7px; color: #9a1f1f; font-size: 12px; font-weight: 500; }
.noty-demo__clear-attachment svg { width: 16px; height: 16px; margin-right: 7px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.noty-demo__sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 640px) {
  .noty-demo__editor { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .noty-demo,
  .noty-demo *,
  .noty-demo *::before,
  .noty-demo *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
