/* AubeNotes : minimaliste noir/blanc, signature "trait rouge cachet"
   inspiration cahier d'écrivain + presse éditoriale, pas de SaaS générique */

:root {
  --bg:        #ffffff;          /* papier */
  --bg-soft:   #fafaf7;          /* légère chaleur */
  --bg-2:      #f4f3ee;          /* sidebar */
  --bg-3:      #ebeae3;          /* hover */
  --rule:      #1a1a1a;          /* filets noirs nets */
  --rule-soft: #d8d6cc;          /* filets discrets */
  --ink:       #0a0a0a;          /* encre principale */
  --ink-soft:  #3a3a3a;          /* encre secondaire */
  --ink-mute:  #8a8780;          /* encre dégradée */
  --cachet:    #c8281d;          /* unique accent : rouge tampon */
  --cachet-2:  #9b1f17;          /* rouge plus profond */

  --serif:     'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans:      'Inter', -apple-system, system-ui, sans-serif;
  --mono:      'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: grid;
  grid-template-rows: auto 1fr;
}

.serif-display { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; }
.serif-italic  { font-family: var(--serif); font-style: italic; }
.mono          { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--ink-mute); }
.eyebrow       { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .22em; color: var(--ink-soft); }

.hidden { display: none !important; }

/* ==== TOPBAR ==== */
.topbar {
  display: grid;
  grid-template-columns: 280px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 5;
}

.brand { display: flex; align-items: baseline; gap: 14px; }

.brand-mark {
  width: 32px; height: 32px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  display: grid; place-items: center;
  align-self: center;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -3px -3px auto auto;
  width: 8px; height: 8px;
  background: var(--cachet);
  border-radius: 50%;
}

.brand-text h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.015em;
}

.brand-text p {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .2em;
}

.search {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.search input {
  width: 100%;
  padding: 10px 50px 10px 0;
  border: none;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  color: var(--ink);
  border-radius: 0;
}

.search input::placeholder { color: var(--ink-mute); font-style: italic; }

.search input:focus {
  outline: none;
  border-bottom-color: var(--cachet);
}

.search-hint {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: .1em;
}

.topbar-actions { display: flex; gap: 0; align-items: center; }

.btn {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: background .12s, color .12s;
  border-radius: 0;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn.primary:hover { background: var(--cachet); border-color: var(--cachet); }
.btn.ghost {
  background: transparent;
  border-right: none;
  color: var(--ink-soft);
}
.btn.ghost:hover { background: transparent; color: var(--cachet); }

/* ==== LAYOUT ==== */
.layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: 100%;
  overflow: hidden;
}

/* ==== SIDEBAR ==== */
.sidebar {
  border-right: 1px solid var(--rule);
  background: var(--bg-2);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-meta {
  padding: 18px 22px 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-2);
  position: sticky; top: 0;
  z-index: 1;
}

.mode-tag {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--cachet);
}

.note-list {
  list-style: none;
  margin: 0; padding: 0;
  flex: 1;
  counter-reset: note;
}

.note-card {
  position: relative;
  padding: 18px 22px 18px 56px;
  border-bottom: 1px solid var(--rule-soft);
  cursor: pointer;
  transition: background .1s;
  counter-increment: note;
}

/* numérotation manuscrite en marge */
.note-card::before {
  content: counter(note, decimal-leading-zero);
  position: absolute;
  left: 18px; top: 20px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: .08em;
}

.note-card:hover { background: var(--bg-3); }

.note-card.active {
  background: var(--bg);
  box-shadow: inset 3px 0 0 var(--cachet);
}
.note-card.active::before { color: var(--cachet); }

.note-card.pinned::after {
  content: "●";
  position: absolute;
  top: 16px; right: 18px;
  font-size: 10px;
  color: var(--cachet);
}

.note-card h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 22px;
  letter-spacing: -.005em;
}

.note-card .preview {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.note-card .stamp {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-mute);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: .1em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.note-card .swatch-mini {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 0;
  background: var(--ink);
}
.note-card .swatch-mini.cream { background: #f4ecd8; border: 1px solid var(--rule-soft); }
.note-card .swatch-mini.gray  { background: #cfcdc4; }
.note-card .swatch-mini.ink   { background: var(--ink); }
.note-card .swatch-mini.red   { background: var(--cachet); }

.empty {
  padding: 48px 22px;
  text-align: left;
  color: var(--ink-mute);
}
.empty p:first-child {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--ink-soft);
}

/* ==== EDITOR ==== */
.editor {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.editor-empty {
  margin: auto;
  text-align: left;
  max-width: 540px;
  padding: 40px 60px;
  color: var(--ink-soft);
  position: relative;
}
.editor-empty::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 28px; height: 1px;
  background: var(--cachet);
}
.editor-empty .eyebrow { display: block; margin-bottom: 18px; padding-left: 40px; }
.editor-empty h2 {
  font-size: 44px;
  margin: 0 0 24px;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.editor-empty h2 em {
  color: var(--cachet);
  font-style: italic;
  font-weight: 400;
}
.editor-empty p {
  margin: 0 0 28px;
  font-size: 14px;
  font-family: var(--serif);
  font-style: italic;
  line-height: 1.5;
}

.editor-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* fonds de page : blanc / crème / gris / encre */
.editor-pane[data-color="parchment"] { background: var(--bg); }
.editor-pane[data-color="sky"]       { background: #f4ecd8; }   /* crème */
.editor-pane[data-color="sage"]      { background: #ebeae3; }   /* gris papier */
.editor-pane[data-color="rose"]      { background: #fcefee; }   /* rosé très pâle */
.editor-pane[data-color="ink"]       {
  background: var(--ink);
  color: #f4f3ee;
}
.editor-pane[data-color="ink"] .note-title,
.editor-pane[data-color="ink"] .note-body { color: #f4f3ee; }
.editor-pane[data-color="ink"] .note-title::placeholder,
.editor-pane[data-color="ink"] .note-body::placeholder { color: #6e6c64; }
.editor-pane[data-color="ink"] .meta-line { color: #8e8b82; }
.editor-pane[data-color="ink"] .editor-bar {
  background: var(--ink);
  border-bottom-color: #2a2a2a;
}
.editor-pane[data-color="ink"] .save-state { color: #b0aca0; }
.editor-pane[data-color="ink"] .icon-btn { color: #b0aca0; }
.editor-pane[data-color="ink"] .icon-btn:hover { background: #1f1f1f; color: #fff; }
.editor-pane[data-color="ink"] .swatch { border-color: #444; }

.editor-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 28px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

.editor-bar-left, .editor-bar-right { display: flex; align-items: center; gap: 4px; }

.icon-btn {
  background: transparent;
  border: none;
  height: 32px;
  min-width: 32px;
  padding: 0 8px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-soft);
  transition: color .12s, background .12s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover { color: var(--cachet); }
.icon-btn.active { color: var(--cachet); }
.icon-btn.danger:hover { color: var(--cachet-2); }

.palette {
  display: flex;
  gap: 8px;
  margin-left: 12px;
  padding-left: 14px;
  border-left: 1px solid var(--rule-soft);
  height: 24px;
  align-items: center;
}

.swatch {
  width: 14px; height: 14px;
  border-radius: 0;
  border: 1px solid var(--rule);
  cursor: pointer;
  padding: 0;
  background: var(--bg);
  transition: transform .1s;
}
.swatch:hover { transform: scale(1.2); }
.swatch.active {
  outline: 1px solid var(--cachet);
  outline-offset: 2px;
}
.swatch[data-color="parchment"] { background: var(--bg); }
.swatch[data-color="sky"]       { background: #f4ecd8; }
.swatch[data-color="sage"]      { background: #ebeae3; }
.swatch[data-color="rose"]      { background: #fcefee; }
.swatch[data-color="ink"]       { background: var(--ink); border-color: var(--ink); }

.save-state {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-mute);
  margin-right: 14px;
  transition: color .2s;
}
.save-state.saving { color: var(--cachet); }
.save-state.saving::before {
  content: "● ";
  animation: pulse 1.2s infinite;
}
.save-state.error { color: var(--cachet-2); }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .3; }
}

.editor-page {
  flex: 1;
  overflow-y: auto;
  padding: 56px 8% 100px;
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.note-title {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.05;
  padding: 0;
  margin-bottom: 12px;
}
.note-title:focus { outline: none; }
.note-title::placeholder { color: var(--ink-mute); font-style: italic; font-weight: 400; }

.meta-line {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: 36px;
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.meta-line::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 36px; height: 1px;
  background: var(--cachet);
}
.meta-line .dot { opacity: .4; }

.note-body {
  width: 100%;
  min-height: 60vh;
  border: none;
  background: transparent;
  resize: none;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  padding: 0;
}
.note-body:focus { outline: none; }
.note-body::placeholder { color: var(--ink-mute); font-style: italic; }

/* ==== APERCU (preview Markdown live) ==== */
.note-preview {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  min-height: 60vh;
}
.note-preview h1, .note-preview h2, .note-preview h3, .note-preview h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 1.6em 0 .4em;
  line-height: 1.2;
}
.note-preview h1 { font-size: 1.8em; }
.note-preview h2 { font-size: 1.4em; }
.note-preview h3 { font-size: 1.15em; }
.note-preview p { margin: 0 0 1em; }
.note-preview blockquote {
  border-left: 3px solid var(--cachet);
  margin: 1em 0;
  padding: .25em 1em;
  font-style: italic;
  color: var(--ink-soft);
}
.note-preview ul, .note-preview ol { padding-left: 1.4em; }
.note-preview li { margin: .25em 0; }
.note-preview code {
  font-family: var(--mono);
  background: var(--bg-2);
  padding: 1px 5px;
  font-size: .9em;
}
.note-preview pre {
  background: var(--bg-2);
  padding: 1em;
  overflow-x: auto;
  font-size: .85em;
  border-left: 3px solid var(--ink);
}
.note-preview a { color: var(--cachet); text-decoration: underline; }
.editor-pane[data-color="ink"] .note-preview { color: #f4f3ee; }
.editor-pane[data-color="ink"] .note-preview code,
.editor-pane[data-color="ink"] .note-preview pre { background: #1f1f1f; }
.editor-pane[data-color="ink"] .note-preview blockquote { color: #c9c1ad; }

/* Cases a cocher TODO interactives */
.note-preview li.task {
  list-style: none;
  margin-left: -1.4em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.note-preview li.task input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--bg);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transform: translateY(2px);
}
.note-preview li.task input[type="checkbox"]:checked {
  background: var(--cachet);
  border-color: var(--cachet);
}
.note-preview li.task input[type="checkbox"]:checked::after {
  content: "✕";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--bg);
  line-height: 1;
}
.note-preview li.task.done > span {
  color: var(--ink-mute);
  text-decoration: line-through;
  text-decoration-color: var(--cachet);
}
.editor-pane[data-color="ink"] .note-preview li.task input[type="checkbox"] {
  border-color: #f4f3ee;
  background: var(--ink);
}

/* ==== DROPDOWN export ==== */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  position: absolute;
  top: 100%; right: 0;
  background: var(--bg);
  border: 1px solid var(--rule);
  min-width: 180px;
  box-shadow: 4px 4px 0 var(--cachet);
  z-index: 50;
  margin-top: 6px;
}
.dropdown-menu button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-soft);
  cursor: pointer;
  border-bottom: 1px solid var(--rule-soft);
}
.dropdown-menu button:last-child { border-bottom: none; }
.dropdown-menu button:hover {
  background: var(--ink);
  color: var(--bg);
}
.dropdown-menu button[data-export="aube"]:hover { color: var(--bg); background: var(--cachet); }
.icon-btn.preview-on { color: var(--cachet); border-bottom: 2px solid var(--cachet); }
.icon-btn.danger { color: var(--ink-soft); }

/* Boutons "Importer" et cycle de vue */
.btn.ghost.danger { color: var(--cachet); }
.btn.ghost.danger:hover { color: var(--bg); background: var(--cachet); }

.trash-actions {
  padding: 14px 22px 22px;
  border-top: 1px dashed var(--rule-soft);
  background: var(--bg-2);
}
.trash-actions .btn { width: 100%; }

/* Mode corbeille : note-card avec barre de cachet */
body[data-view="trashed"] .note-card { opacity: .85; }
body[data-view="trashed"] .note-card h3 { text-decoration: line-through; text-decoration-color: var(--cachet); text-decoration-thickness: 1px; }
body[data-view="archived"] .note-card.active { box-shadow: inset 3px 0 0 var(--ink-mute); }
body[data-view="archived"] .mode-tag { color: var(--ink-soft); }
body[data-view="trashed"] .mode-tag { color: var(--cachet-2); }

/* User chip + logout dans la topbar */
.user-chip {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  border-left: 1px solid var(--rule);
  padding-left: 14px;
  height: 36px;
  gap: 8px;
}
.user-chip-name {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
  text-transform: lowercase;
  letter-spacing: .04em;
  padding-right: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.user-chip-name::before {
  content: "·";
  color: var(--cachet);
  font-size: 18px;
  line-height: 0;
}
.user-chip-logout {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  padding: 5px 10px;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--mono);
  border-radius: 0;
  transition: background .12s, color .12s;
}
.user-chip-logout:hover {
  background: var(--cachet);
  color: var(--bg);
  border-color: var(--cachet);
}

/* === PAGE LOGIN === */
.login-body {
  background: var(--bg);
  display: grid;
  place-items: center;
  height: 100vh;
  overflow: hidden;
  position: relative;
}
.login-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(transparent 31px, rgba(184, 127, 58, .04) 32px),
    linear-gradient(90deg, transparent 31px, rgba(184, 127, 58, .04) 32px);
  background-size: 32px 32px;
  pointer-events: none;
}
.login-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 48px 52px;
  max-width: 460px;
  width: 92%;
  position: relative;
  z-index: 1;
  box-shadow: 6px 6px 0 var(--cachet);
}
.login-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.login-brand h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.015em; }
.login-brand .eyebrow { display: block; margin-top: 4px; }

.login-intro {
  font-size: 16px;
  color: var(--ink-soft);
  border-left: 3px solid var(--cachet);
  padding-left: 14px;
  margin: 0 0 28px;
  line-height: 1.5;
}
.login-intro .mono { font-style: normal; display: block; margin-top: 6px; }

.login-flash {
  padding: 10px 14px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  border-left: 3px solid var(--cachet);
  background: #fcefee;
  color: var(--cachet-2);
}
.login-flash.info { border-color: var(--ink); background: var(--bg-2); color: var(--ink); }

.login-form { display: flex; flex-direction: column; gap: 18px; }
.login-form label { display: flex; flex-direction: column; gap: 6px; }
.login-form label .eyebrow { display: block; }
.login-form input {
  border: 1px solid var(--rule);
  background: var(--bg);
  padding: 12px 14px;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  border-radius: 0;
}
.login-form input:focus {
  outline: none;
  border-color: var(--cachet);
  box-shadow: 0 0 0 1px var(--cachet);
}
.login-submit { width: 100%; margin-top: 8px; padding: 13px; font-size: 13px; }

.login-foot {
  margin: 28px 0 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.login-foot a { color: var(--ink-soft); text-decoration: none; }
.login-foot a:hover { color: var(--cachet); }

@media (max-width: 600px) {
  .login-card { padding: 32px 24px; }
  .login-brand h1 { font-size: 22px; }
}

/* Drag & drop d'un .aube */
body.drag-over::before {
  content: "Lâchez le fichier .aube pour l'importer";
  position: fixed;
  inset: 12px;
  z-index: 999;
  background: rgba(255,255,255,.94);
  border: 2px dashed var(--cachet);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--cachet);
  pointer-events: none;
}

/* ==== TOAST ==== */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 12px 22px;
  border: none;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  box-shadow: 0 4px 0 var(--cachet);
  z-index: 100;
  animation: toastIn .25s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ==== SCROLLBAR discrète ==== */
.sidebar::-webkit-scrollbar,
.editor-page::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb,
.editor-page::-webkit-scrollbar-thumb { background: var(--rule-soft); }
.sidebar::-webkit-scrollbar-thumb:hover,
.editor-page::-webkit-scrollbar-thumb:hover { background: var(--ink-mute); }

/* ==== RESPONSIVE ==== */
@media (max-width: 800px) {
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 16px;
  }
  .brand-text { display: none; }
  .search { grid-column: 1/-1; order: 3; max-width: none; }
  .search-hint { display: none; }
  .topbar-actions .btn.ghost { display: none; }

  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    inset: 110px 0 0 0;
    z-index: 4;
    transform: translateX(-100%);
    transition: transform .25s;
  }
  body.show-sidebar .sidebar { transform: translateX(0); }
  body.show-sidebar .editor { display: none; }

  .editor-page { padding: 28px 22px 60px; }
  .note-title { font-size: 30px; }
  .note-body { font-size: 16px; line-height: 1.65; }
  .editor-empty h2 { font-size: 32px; }
}
