:root {
  --bg: #f7f0da;
  --ink: #43402f;
  --ink-soft: #8a8266;
  --ink-faint: #b6ac8d;
  --accent: #bf3a1f;
  --line: #d8cfae;
  --selection-bg: rgba(191, 58, 31, 0.22);
  --scrollbar-thumb: var(--ink-faint);
  --scrollbar-thumb-hover: var(--ink-soft);
}

::selection {
  background: var(--selection-bg);
  color: inherit;
}

::-moz-selection {
  background: var(--selection-bg);
  color: inherit;
}

* { box-sizing: border-box; }

html {
  overflow-x: clip;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 15px;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}

::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

main {
  max-width: 75rem;
  margin: 0 auto;
  padding: 2.5rem 2rem 3rem;
  position: relative;
}

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- Authentification ---------- */

#auth-page {
  max-width: 28rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2rem 5rem;
  position: relative;
}

#auth-page[hidden] {
  display: none;
}

.auth-back-btn {
  position: absolute;
  left: 0;
  top: 2rem;
  font-size: 1.75rem;
  line-height: 1;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--ink);
  opacity: 0.5;
}

.auth-back-btn:hover {
  opacity: 0.75;
  color: var(--accent);
}

.auth-card {
  width: 100%;
}

.auth-profile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.auth-profile-icon {
  display: flex;
  flex-shrink: 0;
  color: var(--ink);
  opacity: 0.5;
}

.auth-profile-icon svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.auth-profile-name {
  font-size: 0.92rem;
  color: var(--ink);
}

.auth-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.auth-input {
  display: block;
  width: 100%;
  padding: 0.55rem 0.65rem;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.auth-input:focus {
  outline: none;
  border-color: var(--accent);
}

.auth-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.35rem;
}

.auth-switch {
  display: block;
  width: 100%;
  margin-top: 2rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}

.auth-switch:hover { color: var(--accent); }

/* ---------- Liste des profils / journaux ---------- */

#profiles-page,
#journals-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  padding-bottom: 4rem;
}

/* ---------- Language footer ---------- */

.lang-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 1.25rem 1rem 1.5rem;
  pointer-events: none;
}

.lang-footer[hidden] {
  display: none;
}

.lang-footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  pointer-events: auto;
}

.lang-footer-btn {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.25rem 0.15rem;
}

.lang-footer-btn:hover:not(:disabled) {
  color: var(--accent);
}

.lang-footer-btn.is-active {
  color: var(--accent);
  font-weight: bold;
}

.lang-footer-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

#profiles-page[hidden],
#journals-page[hidden] {
  display: none;
}

.profiles-list,
.journals-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 0.35rem;
  margin-bottom: 2.5rem;
}

.profile-row,
.journal-row {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0.15rem 0;
}

.profile-row-core,
.journal-row-core {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 100%;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
}

.profile-row:hover .profile-row-core,
.journal-row:hover .journal-row-core {
  background: rgba(0, 0, 0, 0.04);
}

.profile-row-icon,
.journal-row-book {
  display: flex;
  flex-shrink: 0;
  color: var(--ink);
}

.profile-row-icon svg,
.journal-row-book svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.profile-row-label,
.journal-row-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.profile-row-name,
.journal-row-name {
  font-size: 0.8rem;
  color: var(--ink);
}

.profile-row-actions,
.journal-row-actions {
  position: absolute;
  left: calc(100% + 0.35rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 0.15rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.profile-row:hover .profile-row-actions,
.journal-row:hover .journal-row-actions {
  opacity: 1;
  pointer-events: auto;
}

.profile-row-btn,
.journal-row-btn {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.25rem 0.45rem;
  border-radius: 3px;
}

.profile-row-btn:hover,
.journal-row-btn:hover { color: var(--accent); background: rgba(0, 0, 0, 0.05); }

.profiles-actions {
  display: flex;
  justify-content: center;
}

.journals-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.journals-actions .auth-switch {
  margin-top: 1.75rem;
}

/* legacy aliases — kept for journal list */

.dialog-box-wide { max-width: 26rem; text-align: left; }
.dialog-box-wide > p { text-align: center; }

.dialog-label {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.dialog-hint {
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-faint);
  font-size: 0.62rem;
}

.export-hint {
  margin-top: 0.5rem;
  text-align: center;
}

/* ---------- Navigation ---------- */

.nav-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 0.75rem;
}

.nav-journal-name {
  margin: 0;
  justify-self: center;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--ink);
  opacity: 0.42;
}

.nav-journal-name:empty {
  visibility: hidden;
}

.nav-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2.5rem;
}

.nav-actions .auth-switch {
  margin-top: 0;
}

.year-corner {
  justify-self: start;
}

.search-corner {
  justify-self: end;
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  color: var(--ink-soft);
  opacity: 0.6;
}

.search-btn:hover {
  opacity: 1;
  color: var(--accent);
}

.search-icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.year {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--ink-faint);
}

.month-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem;
}

.month-header h1 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  text-indent: 0.45em;
  color: var(--ink-faint);
}

.month-header h1.entry-point { color: var(--ink); }
.month-header h1.entry-point.writable { color: var(--accent); }

.year.entry-point { cursor: pointer; color: var(--ink); }
.year.entry-point.writable { color: var(--accent); }
.year.entry-point:hover,
.month-header h1.entry-point:hover { opacity: 0.85; }

.ghost-btn {
  font-size: 1.1rem;
  color: var(--ink-soft);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.ghost-btn:hover { color: var(--accent); background: rgba(0, 0, 0, 0.04); }
.ghost-btn:disabled { opacity: 0.25; cursor: default; }
.ghost-btn:disabled:hover { color: var(--ink-soft); background: none; }

.weeks {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: center;
}

/* Row width adapts to its content: only written days are present. */
.week-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.week-row .day { min-width: 3.2rem; }
.week-row .week-label {
  min-width: 5.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.week-row .readme-label {
  min-width: 4.75rem;
}

.cell {
  text-align: center;
  padding: 0.45rem 0.2rem 0.3rem;
  border-radius: 4px;
  user-select: none;
}
.cell.clickable { cursor: pointer; }
.cell.clickable:hover { background: rgba(0, 0, 0, 0.05); }

.day,
.week-label {
  line-height: 1.1;
  color: var(--ink);
}

.day.today {
  font-weight: 700;
}

.cell.writable { color: var(--accent); }

/* ---------- Rédaction / consultation ---------- */

#entry-page {
  padding-top: 0;
}

.entry-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 2.25rem 1fr 2.25rem;
  align-items: center;
  column-gap: 1rem;
  margin-bottom: 7rem;
  background: var(--bg);
  box-sizing: border-box;
  /* Full-bleed band without width:100vw — 100vw overflows when a vertical
     scrollbar is present (e.g. once an image makes the page taller). */
  margin-inline: calc(50% - 50vw);
  padding: 1rem calc(50vw - 50% + 2rem);
}

.entry-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  transform: translateY(100%);
  background: linear-gradient(to bottom, rgba(67, 64, 47, 0.12), transparent);
  pointer-events: none;
}

.entry-header .ghost-btn {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.entry-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-width: 0;
}

.entry-header-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 2.25rem;
}

.entry-title-row h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
}

.entry-title-row .ghost-btn {
  font-size: 1.1rem;
  padding: 0.2rem 0.5rem;
}

.entry-header-spacer {
  flex-shrink: 0;
  width: 2.25rem;
  visibility: hidden;
}

.entry-back-btn[hidden] {
  display: none;
}

.entry-back-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  margin: 0;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  opacity: 0.5;
}

.entry-back-btn:hover {
  opacity: 0.75;
  color: var(--accent);
}

.entry-back-icon {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

.calendar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  padding: 0;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  opacity: 0.5;
}

.calendar-btn:hover {
  opacity: 0.75;
  color: var(--accent);
}

.calendar-icon {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

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

.search-input {
  flex: 1;
  max-width: 28rem;
  background: var(--bg);
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.4rem 0.2rem;
  outline: none;
}

.search-input::placeholder {
  color: var(--ink-faint);
}

.search-input:focus {
  border-bottom-color: var(--line);
}

.search-input::-webkit-search-decoration,
.search-input::-webkit-search-results-button,
.search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.1rem;
  cursor: pointer;
  opacity: 0.5;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8266' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");
}

.search-input::-webkit-search-cancel-button:hover {
  opacity: 0.75;
}

.search-results {
  max-width: 46rem;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
}

.search-result {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0.4rem;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

.search-result:hover {
  background: rgba(0, 0, 0, 0.04);
}

.search-result-title {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.search-result-snippet {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink);
}

.search-snippet-sep {
  color: var(--ink-faint);
}

.search-result-snippet mark {
  background: rgba(191, 58, 31, 0.18);
  color: var(--accent);
  border-radius: 2px;
  padding: 0 0.1em;
}

.search-empty {
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-top: 2.5rem;
}

.search-hit {
  display: inline;
  background: rgba(191, 58, 31, 0.28);
  color: inherit;
  border-radius: 2px;
  padding: 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  animation: search-hit-pulse 1.4s ease-out 1;
  transition: background 0.8s ease-out;
}

.search-hit.search-hit-fading {
  background: transparent;
}

@keyframes search-hit-pulse {
  0% { background: rgba(191, 58, 31, 0.5); }
  100% { background: rgba(191, 58, 31, 0.28); }
}

@media (prefers-reduced-motion: reduce) {
  .search-hit {
    animation: none;
    transition: none;
  }
}

.draft-entry {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.draft-entry--meta .entry-meta {
  min-height: calc(0.85rem * 1.5);
}

.draft-entry--meta:not(.meta-visible) .entry-meta {
  visibility: hidden;
}

.entry-meta {
  margin: 0;
  color: var(--ink-soft);
  opacity: 0.75;
  font-size: 0.85rem;
  line-height: 1.5;
  user-select: none;
}

.dialog {
  position: fixed;
  inset: 0;
  background: rgba(67, 64, 47, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.dialog[hidden] { display: none !important; }
.dialog-box {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 1.6rem 1.8rem;
  max-width: 22rem;
  text-align: center;
  line-height: 1.6;
}
.dialog-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

/* Writable zone = content height + 75vh so the caret can sit in the upper viewport. */
#editor {
  padding: 0.2rem 0 75vh;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: clip;
}
#editor:focus { outline: none; }
#editor strong { font-weight: 700; }
#editor em,
.rendered em {
  font-style: italic;
  font-size: 0.92em;
}
#editor a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
#editor .image-line {
  user-select: none;
  -webkit-user-select: none;
}
#editor img,
.viewer-section-body img {
  max-width: 90%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin: 0.8rem auto;
  user-select: none;
  -webkit-user-select: none;
}
#editor img::selection,
.viewer-section-body img::selection {
  background: transparent;
}
#editor img.selected-img,
.viewer-section-body img.selected-img {
  outline: 2px dashed var(--accent);
  outline-offset: 4px;
}

#format-toolbar {
  position: absolute;
  z-index: 20;
  display: flex;
  gap: 0.15rem;
  padding: 0.25rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(67, 64, 47, 0.12);
}
#format-toolbar[hidden] { display: none !important; }

.fmt-btn {
  min-width: 1.75rem;
  height: 1.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  border-radius: 3px;
}
.fmt-btn:hover { background: rgba(0, 0, 0, 0.06); color: var(--ink); }
.fmt-btn.active { color: var(--accent); background: rgba(191, 58, 31, 0.08); }
.fmt-btn:disabled,
.fmt-btn.disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.fmt-btn-wide {
  min-width: auto;
  padding: 0 0.45rem;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.censored {
  display: inline-block;
  vertical-align: -0.08em;
  height: 0.92em;
  width: calc(var(--censor-length, 1) * 0.55em);
  min-width: 0.75em;
  margin: 0 0.05em;
  background: #1c1c1c;
  border-radius: 1px;
  color: transparent;
  font-size: inherit;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  overflow: hidden;
  text-indent: -9999px;
}

.dialog-input {
  display: block;
  width: 100%;
  margin-top: 0.8rem;
  padding: 0.45rem 0.55rem;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.dialog-input:focus { outline: none; border-color: var(--accent); }

/* Resize anchor shown at the bottom-right corner of a selected image. */
#img-handle {
  position: fixed;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 50%;
  cursor: nwse-resize;
  z-index: 10;
  transform: translate(-50%, -50%);
}
#img-handle[hidden] { display: none !important; pointer-events: none; }

.rendered {
  border: 1px solid transparent;
  padding: 0.2rem 0 1rem;
  line-height: 1.75;
  font-size: 0.95rem;
  user-select: text;
}

.viewer-section-content {
  user-select: text;
}

.viewer-section-body {
  user-select: text;
  word-break: break-word;
}

.locked-entry-body {
  min-height: 0;
  outline: none;
  cursor: text;
}

.locked-entry-body:focus {
  outline: none;
}

.context-menu {
  position: fixed;
  z-index: 120;
  min-width: 11rem;
  padding: 0.35rem 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(67, 64, 47, 0.12);
}

.context-menu[hidden] {
  display: none !important;
}

.context-menu-item {
  display: block;
  width: 100%;
  padding: 0.45rem 0.9rem;
  text-align: left;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
}

.context-menu-item[hidden] {
  display: none !important;
}

.context-menu-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--accent);
}

.context-menu-item.danger:hover {
  color: var(--accent);
}
.rendered p,
.viewer-section-body p {
  margin: 0;
}
.rendered h1, .rendered h2, .rendered h3 {
  font-weight: 600;
  letter-spacing: 0.08em;
}
.rendered img { max-width: 90%; height: auto; border-radius: 4px; display: block; margin: 0.8rem auto; }
.rendered blockquote {
  margin: 0.8rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--line);
  color: var(--ink-soft);
}
.rendered code {
  background: rgba(0, 0, 0, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.85em;
}
.rendered hr { border: none; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.rendered a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

#entry-sep[hidden] { display: none !important; }

#prior-entries .viewer-section-sep,
#entry-sep {
  height: 0;
  border: none;
  border-top: 1px solid var(--ink);
  margin: 2.8rem auto;
  width: 4.5rem;
  opacity: 0.55;
}
.viewer-empty { color: var(--ink-faint); font-style: italic; }

.action-btn {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-soft);
}
.action-btn:hover { background: rgba(0, 0, 0, 0.05); color: var(--ink); }
.action-btn.accent { border-color: var(--accent); color: var(--accent); }
.action-btn.accent:hover { background: var(--accent); color: var(--bg); }

/* ---------- Toast ---------- */

#toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 110;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
#toast.visible { opacity: 1; }
