/* Notes façon Notion : barre latérale de pages, page (couverture, icône, titre, propriétés), éditeur de blocs. */

/* --- Puces de tags et d'éléments liés --- */

.tag-chips, .link-chips { display: contents; }
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 4px 1px 8px;
  border-radius: 999px;
  background: var(--accent-weak);
  color: var(--accent);
  font-weight: 550;
}
.tag-chip button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; }
.tag-chip button:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.tag-input { width: 130px; min-height: 26px; padding: 2px 4px; border: 0; border-radius: 6px; background: none; font-size: 13px; color: var(--text); }
.tag-input:focus { outline: none; background: var(--surface-2); }

.link-chip {
  display: inline-flex;
  align-items: center;
  max-width: 260px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.link-chip__main {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 2px 4px 2px 8px;
  border: 0;
  background: none;
  font-size: 13px;
  color: var(--text);
}
.link-chip__main .icon { color: var(--text-3); }
.link-chip__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-chip__meta { flex: none; color: var(--text-3); font-size: 12px; }
.link-chip.is-done .link-chip__title { text-decoration: line-through; color: var(--text-3); }
.link-chip__x { display: grid; place-items: center; width: 28px; height: 28px; margin-right: 2px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text-3); }
.link-chip__x:hover { background: var(--surface-hover); color: var(--text); }
.link-chip:hover { border-color: var(--border-strong); }

/* --- Rendu Markdown --- */

.md { line-height: 1.65; overflow-wrap: anywhere; }
.md > * + * { margin-top: .75em; }
.md h1, .md h2, .md h3, .md h4, .md h5, .md h6 { line-height: 1.3; letter-spacing: -.01em; margin-top: 1.2em; }
.md > :first-child { margin-top: 0; }
.md h1 { font-size: 1.7em; }
.md h2 { font-size: 1.4em; }
.md h3 { font-size: 1.18em; }
.md h4, .md h5, .md h6 { font-size: 1em; }
.md ul, .md ol { margin-block: 0; padding-left: 1.5em; }
.md li + li, .md li > ul, .md li > ol { margin-top: .2em; }
.md li.task-item { list-style: none; margin-left: -1.4em; display: block; }
.md li.task-item > input { width: 16px; height: 16px; margin: 0 .5em 0 0; vertical-align: -2px; accent-color: var(--accent-fill); cursor: pointer; }
.md li.task-item > input:disabled { cursor: default; }
.md li.task-item:has(> input:checked) { color: var(--text-3); text-decoration: line-through; }
.md blockquote { margin: 0; padding: 2px 0 2px 14px; border-left: 3px solid var(--border-strong); color: var(--text-2); }
.md code { padding: .1em .35em; border-radius: 5px; background: var(--fill); font-family: var(--font-mono); font-size: .88em; }
.md pre { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); overflow-x: auto; }
.md pre code { padding: 0; background: none; font-size: .85em; }
.md hr { border: 0; border-top: 1px solid var(--border); margin-block: 1.4em; }
.md a { color: var(--accent); text-underline-offset: 2px; }

/* --- Sélecteur de liens --- */

.picker-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: min(50dvh, 420px); overflow-y: auto; }
.picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
  text-align: left;
}
.picker-row:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.picker-row__check {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  color: var(--accent-on);
}
.picker-row.is-linked .picker-row__check { background: var(--accent-fill); border-color: var(--accent-fill); }
.picker-row__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-row.is-done .picker-row__title { color: var(--text-3); text-decoration: line-through; }
.picker-row__meta { flex: none; font-size: 12.5px; color: var(--text-3); }
.picker-row__icon { color: var(--text-3); }
.picker-more { padding: 8px 10px; font-size: 13px; color: var(--text-3); }


/* --- Mise en page --- */

.notion {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  height: max(560px, calc(100dvh - 110px));
  max-width: 1440px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm), 0 0 0 1px color-mix(in srgb, var(--text) 5%, transparent);
  background: var(--surface);
  overflow: hidden;
}

/* --- Barre latérale --- */

.nside {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface-2);
  border-right: 1px solid var(--border);
}
.nside__top { display: flex; flex-direction: column; gap: 1px; padding: 10px 8px 6px; }
.nside__action {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 4px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  text-align: left;
}
.nside__action:hover, .nside__action.is-active { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); text-decoration: none; }
.nside__kbd { margin-left: auto; padding: 1px 6px; border-radius: 5px; background: var(--fill); font: 600 11px var(--font); color: var(--text-2); }
.nside__scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 8px 16px; }
.nside__section + .nside__section { margin-top: 14px; }
.nside__heading-row { display: flex; align-items: center; justify-content: space-between; }
.nside__heading { margin: 0; padding: 6px 10px 4px; font-size: 12px; font-weight: 650; color: var(--text-2); }
.nside__mini {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 4px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--text-2);
}
.nside__mini:hover { background: color-mix(in srgb, var(--text) 9%, transparent); color: var(--text); }
.nside__empty { padding: 4px 10px; font-size: 13px; color: var(--text-2); }
.nside__tags { display: flex; flex-wrap: wrap; gap: 4px; padding: 2px 6px; }
.nside__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 2px 9px;
  border: 0;
  border-radius: 999px;
  background: var(--fill);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
}
.nside__tag:hover { background: var(--accent-weak); color: var(--accent); }
.nside__tag-count { color: var(--text-2); font-size: 11.5px; }

.ntree { list-style: none; margin: 0; padding: 0; }
.ntree__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 2px 4px 2px calc(4px + var(--depth, 0) * 16px);
  border-radius: 7px;
  color: var(--text);
  font-size: 14px;
  user-select: none;
}
.ntree__row:hover { background: color-mix(in srgb, var(--text) 6%, transparent); text-decoration: none; }
.ntree__row.is-current { background: color-mix(in srgb, var(--text) 9%, transparent); font-weight: 600; }
.ntree__toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: none;
  color: var(--text-2);
}
.ntree__toggle:not(:disabled):hover { background: color-mix(in srgb, var(--text) 10%, transparent); }
.ntree__toggle:disabled { cursor: inherit; }
.ntree__icon { flex: none; width: 20px; text-align: center; font-size: 15px; line-height: 1; }
.ntree__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ntree__tools { display: none; flex: none; gap: 1px; }
.ntree__row:hover .ntree__tools, .ntree__row:focus-within .ntree__tools, .ntree__row:focus-visible .ntree__tools { display: flex; }
.ntree__tool {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: none;
  color: var(--text-2);
}
.ntree__tool:hover { background: color-mix(in srgb, var(--text) 12%, transparent); color: var(--text); }
.ntree__row.is-lifted { opacity: .45; }
.nside.is-dragging .ntree__row { cursor: grabbing; }
.ntree__row.drop-inside { background: var(--accent-weak); box-shadow: inset 0 0 0 2px var(--accent); }
.ntree__row.drop-before::before, .ntree__row.drop-after::after {
  content: "";
  position: absolute;
  left: calc(8px + var(--depth, 0) * 16px);
  right: 4px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.ntree__row.drop-before::before { top: -2px; }
.ntree__row.drop-after::after { bottom: -2px; }

/* --- Zone principale --- */

.nmain { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.page { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.page-bar { display: flex; align-items: center; gap: 4px; min-height: 48px; padding: 6px 10px 6px 14px; }
.page-back { display: none; }
.page-crumbs { display: flex; align-items: center; gap: 2px; min-width: 0; overflow: hidden; font-size: 14px; }
.page-crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 220px;
  padding: 3px 6px;
  border-radius: 6px;
  color: var(--text-2);
  white-space: nowrap;
}
.page-crumb span:last-child { overflow: hidden; text-overflow: ellipsis; }
a.page-crumb:hover { background: var(--fill); color: var(--text); text-decoration: none; }
.page-crumb.is-current { color: var(--text); }
.page-crumbs__sep { color: var(--text-3); }
.page-edited { margin-right: 6px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.page-star.is-active { color: #c27c00; }
.page-star.is-active svg { fill: currentColor; }

.page-scroll { flex: 1; min-height: 0; overflow-y: auto; }
.page-cover { position: relative; height: 0; }
.page.has-cover .page-cover { height: clamp(120px, 24vh, 220px); }
.page-cover__tools { position: absolute; right: 16px; bottom: 12px; display: none; gap: 6px; }
.page-cover:hover .page-cover__tools, .page-cover:focus-within .page-cover__tools { display: flex; }
.page-cover__btn { background: rgb(255 255 255 / 0.85); color: #1d1d1f; }
.page-inner { width: min(760px, 100%); margin: 0 auto; padding: 36px 48px 30vh; }
.page.has-cover .page-inner { padding-top: 0; }
.page-icon {
  display: block;
  width: 78px;
  height: 78px;
  margin: 0 0 8px -6px;
  border: 0;
  border-radius: 12px;
  background: none;
  font-size: 64px;
  line-height: 78px;
  text-align: center;
}
.page-icon:not(:disabled):hover { background: var(--fill); }
.page.has-cover .page-icon { margin-top: -40px; position: relative; }
.page-tools { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 4px -10px; opacity: 0; transition: opacity var(--dur-fast) var(--ease); }
.page-inner:hover .page-tools, .page-tools:focus-within { opacity: 1; }
.page-tools .btn { color: var(--text-2); }
.page-title {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  resize: none;
  overflow: hidden;
  color: var(--text);
  font: 700 40px/1.2 var(--font);
  letter-spacing: var(--tracking-title);
}
.page-title:focus { outline: none; }
.page-title::placeholder { color: var(--text-3); }

.page-props { display: flex; flex-direction: column; gap: 2px; margin: 14px 0 6px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.page-prop { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: start; gap: 8px; min-height: 34px; }
.page-prop__name { display: flex; align-items: center; gap: 8px; min-height: 34px; font-size: 14px; color: var(--text-2); }
.page-prop__value { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 34px; font-size: 14px; }
.page-prop__text { color: var(--text); }
.page-prop__empty { color: var(--text-3); }

.page-subpages { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; }
.page-subpages:empty { display: none; }
.page-subpages__title { margin: 0 0 4px; font-size: 13px; font-weight: 650; color: var(--text-2); }

/* Couvertures (dégradés). */
.cover--aurore { background: linear-gradient(120deg, #ff9a8b, #ff6a88 45%, #ff99ac); }
.cover--ocean { background: linear-gradient(120deg, #2193b0, #6dd5ed); }
.cover--foret { background: linear-gradient(120deg, #134e5e, #71b280); }
.cover--sable { background: linear-gradient(120deg, #f6d365, #fda085); }
.cover--lavande { background: linear-gradient(120deg, #a18cd1, #fbc2eb); }
.cover--nuit { background: linear-gradient(120deg, #0f2027, #203a43 50%, #2c5364); }
.cover--corail { background: linear-gradient(120deg, #ee9ca7, #ffdde1); }
.cover--ardoise { background: linear-gradient(120deg, #606c88, #3f4c6b); }

.emoji-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; padding: 4px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.emoji-grid__item { width: 40px; height: 40px; border: 0; border-radius: 8px; background: none; font-size: 22px; }
.emoji-grid__item:hover, .emoji-grid__item:focus-visible { background: var(--fill); outline: none; }
.cover-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.cover-grid__item { height: 40px; border: 0; border-radius: 8px; }
.cover-grid__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Éditeur de blocs --- */

.block-editor { margin-top: 12px; }
.blocks { display: flex; flex-direction: column; }
.blocks__tail { min-height: 120px; cursor: text; }
.blocks.is-readonly + .blocks__tail { cursor: default; min-height: 20px; }
.blocks__empty { margin: 4px 0; color: var(--text-3); }
.blk {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-left: calc(var(--indent, 0) * 26px);
  padding: 2px 0;
  border-radius: 6px;
}
.blk__gutter {
  position: absolute;
  top: 3px;
  left: -50px;
  display: flex;
  gap: 1px;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}
.blk:hover .blk__gutter, .blk.is-active .blk__gutter, .blk__gutter:focus-within { opacity: 1; }
.blk__btn {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: none;
  color: var(--text-3);
  cursor: pointer;
}
.blk__btn:hover { background: var(--fill); color: var(--text-2); }
.blk__handle { cursor: grab; }
.blk__marker {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 1.6em;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}
.blk__marker--num { min-width: 24px; justify-content: end; font-variant-numeric: tabular-nums; }
.blk__emoji { flex: none; width: 30px; height: 30px; margin: 4px 0 0 6px; border: 0; border-radius: 6px; background: none; font-size: 20px; line-height: 1; }
.blk__emoji:not(:disabled):hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.blk__body { flex: 1; min-width: 0; }
.blk__view, .blk__input {
  display: block;
  width: 100%;
  min-height: 1.6em;
  margin: 0;
  padding: 1px 2px;
  border: 0;
  background: none;
  color: var(--text);
  font: 16px/1.6 var(--font);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.blk__view { cursor: text; }
.blocks.is-readonly .blk__view { cursor: auto; }
.blk__input { resize: none; overflow: hidden; outline: none; }
.blk__input::placeholder, .blk__view[data-placeholder]:empty::before { color: var(--text-3); }
.blk__view[data-placeholder]:empty::before { content: attr(data-placeholder); }
.blk__view code { padding: .1em .35em; border-radius: 5px; background: var(--fill); font: .9em var(--font-mono); }
.blk__view a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.blk--h1 { margin-top: 1.1em; }
.blk--h2 { margin-top: .9em; }
.blk--h3 { margin-top: .6em; }
.blk--h1 :is(.blk__view, .blk__input) { font-size: 30px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.blk--h2 :is(.blk__view, .blk__input) { font-size: 23px; font-weight: 680; line-height: 1.3; }
.blk--h3 :is(.blk__view, .blk__input) { font-size: 19px; font-weight: 650; line-height: 1.35; }
.blk--h1 .blk__gutter { top: 14px; }
.blk--h2 .blk__gutter { top: 8px; }
.blk.is-checked :is(.blk__view, .blk__input) { color: var(--text-3); text-decoration: line-through; }
.blk--todo .blk__marker .check { margin: 0; }
.blk--quote .blk__body { padding-left: 14px; border-left: 3px solid var(--text); }
.blk--callout { margin-block: 4px; padding: 10px 14px 10px 6px; background: var(--fill); border-radius: 10px; }
.blk--callout .blk__gutter { top: 13px; }
.blk--code .blk__body { padding: 12px 14px; border-radius: 10px; background: var(--fill); }
.blk--code :is(.blk__view, .blk__input) { font: 14px/1.55 var(--font-mono); white-space: pre-wrap; }
.blk__code code { font: inherit; }
.blk--hr .blk__body { padding: 10px 0; }
.blk--hr hr { margin: 0; border: 0; border-top: 1px solid var(--border-strong); }
.blk__page {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 34px;
  padding: 3px 8px 3px 4px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  text-align: left;
}
.blk__page:hover { background: var(--fill); text-decoration: none; }
.blk__page-icon { flex: none; width: 24px; text-align: center; font-size: 18px; }
.blk__page-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; border-bottom: 1px solid color-mix(in srgb, var(--text) 25%, transparent); }
.blk__page.is-missing { color: var(--text-3); }
.blk.is-lifted { opacity: .4; }
.blocks.is-dragging .blk { cursor: grabbing; }
.blk.is-drop-before::before, .blk.is-drop-after::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.blk.is-drop-before::before { top: -2px; }
.blk.is-drop-after::after { bottom: -2px; }

/* Menu « / ». */
.slash {
  position: fixed;
  inset: auto;
  margin: 0;
  width: 300px;
  max-height: 340px;
  overflow-y: auto;
  padding: 6px;
  border: 0;
  border-radius: 14px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
  box-shadow: var(--shadow-lg), 0 0 0 0.5px color-mix(in srgb, var(--text) 14%, transparent);
  color: var(--text);
}
.slash__head { margin: 0; padding: 6px 8px 4px; font-size: 12px; font-weight: 650; color: var(--text-2); }
.slash__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
}
.slash__item.is-selected { background: color-mix(in srgb, var(--text) 8%, transparent); }
.slash__glyph {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border);
  font-size: 14px;
  font-weight: 700;
}
.slash__text { display: flex; flex-direction: column; min-width: 0; }
.slash__label { font-size: 14px; font-weight: 550; }
.slash__hint { font-size: 12.5px; color: var(--text-2); }
.slash__empty { margin: 0; padding: 8px; font-size: 13px; color: var(--text-2); }

/* --- Accueil des notes --- */

.nhome { width: min(860px, 100%); margin: 0 auto; padding: 48px 40px; overflow-y: auto; }
.nhome__title { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: var(--tracking-title); }
.nhome__sub { margin: 4px 0 28px; color: var(--text-2); }
.nhome__label { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 13px; font-weight: 650; color: var(--text-2); }
.nhome__grid { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ncard {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 138px;
  padding: 0 12px 10px;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--border);
  color: var(--text);
  overflow: hidden;
}
.ncard:hover { text-decoration: none; box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-sm); }
.ncard__cover { height: 44px; margin: 0 -12px; background: var(--fill); }
.ncard__icon { margin-top: -14px; font-size: 26px; line-height: 1; }
.ncard__title { margin-top: 8px; font-weight: 650; font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ncard__date { margin-top: auto; font-size: 12px; color: var(--text-2); }

/* --- Recherche rapide --- */

.qf { display: flex; flex-direction: column; gap: 10px; }
.qf__input { min-height: 44px; font-size: 16px; }
.qf__list { list-style: none; margin: 0; padding: 0; max-height: 55dvh; overflow-y: auto; }
.qf__label { padding: 6px 8px 2px; font-size: 12px; font-weight: 650; color: var(--text-2); }
.qf__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
}
.qf__item.is-selected { background: color-mix(in srgb, var(--text) 8%, transparent); }
.qf__icon { flex: none; width: 24px; text-align: center; font-size: 18px; }
.qf__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qf__title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qf__path { font-weight: 400; color: var(--text-2); }
.qf__excerpt { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qf__date { flex: none; font-size: 12px; color: var(--text-2); }
.qf__empty { padding: 12px 8px; color: var(--text-2); }

/* --- Responsive --- */

@media (max-width: 1099px) {
  .notion { grid-template-columns: 230px minmax(0, 1fr); }
  .page-inner { padding-inline: 40px; }
  .page-edited { display: none; }
}

@media (max-width: 767px) {
  .notion {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: calc(100dvh - 120px);
    box-shadow: none;
    background: none;
    overflow: visible;
  }
  .notion:not(.has-page) .nmain { display: none; }
  .notion.has-page .nside { display: none; }
  .nside { background: var(--surface); border: 0; border-radius: var(--radius-lg); }
  .nside__scroll { overflow: visible; }
  .ntree__row { min-height: 44px; }
  .ntree__tools { display: flex; }
  .ntree__tool, .ntree__toggle { width: 36px; height: 36px; }
  .nside__action { min-height: 44px; }
  .nside__kbd { display: none; }
  .nmain { margin: -16px -16px 0; min-height: calc(100dvh - 84px - env(safe-area-inset-bottom)); background: var(--surface); }
  .page-back { display: inline-flex; }
  .page-bar { padding-left: 4px; }
  .page-crumb:not(.is-current) { display: none; }
  .page-crumbs__sep { display: none; }
  .page-inner { padding: 20px 20px 40vh; }
  .page-title { font-size: 30px; }
  .page-icon { width: 60px; height: 60px; font-size: 48px; line-height: 60px; }
  .page-prop { grid-template-columns: 96px minmax(0, 1fr); }
  .page-tools { opacity: 1; }
  .blk__gutter { display: none; }
  .nhome { padding: 24px 4px; }
}

@media (pointer: coarse) {
  .tag-chip button { width: 32px; height: 32px; margin: -5px -4px -5px 0; }
  .slash__item { min-height: 48px; }
}
