/* Tema Synthwave do PADD: céu roxo dos anos 80, sol listrado (outrun),
   montanhas com contorno neon e chão quadriculado em perspectiva (parado).
   A nota fica num painel de vidro escuro com borda neon; as sub-notas
   viram as faixas do "LADO A" de uma fita cassete. Fica ativo só com o
   tema "synthwave" (ver theme.js) e SUBSTITUI o note.css inteiro. */

@font-face { font-family: Audiowide; src: url(fonts/audiowide-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Orbitron; src: url(fonts/orbitron-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Orbitron; src: url(fonts/orbitron-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --pink: #ff2bd6;
  --hot: #ff3c8e;
  --purple: #8a2be2;
  --cyan: #2de2ff;
  --orange: #ff8a3d;
  --yellow: #ffd319;
  --text: #f4e9ff;
  --muted: #b79bd8;
  --glass: rgba(14, 3, 36, .66);
  --glass-solid: rgba(20, 5, 48, .95);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --orb: Orbitron, "Arial Narrow", sans-serif;
  --neon-border: linear-gradient(135deg, var(--pink), var(--purple) 45%, var(--cyan));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.lc-only, .tm-only, .pp-only { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: #12032a; }
html, body { margin: 0; height: 100%; }
/* fundo transparente no body: o cenário fixo (z-index -1) fica atrás do
   conteúdo, mas na frente do fundo do html */
body { background: transparent; color: var(--text); font-family: var(--mono); }
::selection { background: rgba(255, 43, 214, .45); color: #fff; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---- Cenário ---------------------------------------------------------------- */
#sw-scene {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: linear-gradient(180deg, #07011a 0%, #1a0540 38%, #4b0f6b 60%, #a3237c 72%, #ff6a7a 76%, #1a0533 76.2%, #12032a 100%);
}
.sw-stars { position: absolute; inset: 0 0 30% 0; }
.sw-stars i { position: absolute; display: block; border-radius: 50%; background: #fff; opacity: var(--o); }
.sw-sun {
  position: absolute; left: 50%; bottom: 24%; width: 420px; height: 420px; transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--yellow) 8%, var(--orange) 42%, var(--hot) 70%, var(--pink) 92%);
  -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 52% 55%, #000 55% 62%, transparent 62% 66%, #000 66% 73%, transparent 73% 78%, #000 78% 85%, transparent 85% 91%, #000 91%);
          mask-image: linear-gradient(180deg, #000 52%, transparent 52% 55%, #000 55% 62%, transparent 62% 66%, #000 66% 73%, transparent 73% 78%, #000 78% 85%, transparent 85% 91%, #000 91%);
  filter: drop-shadow(0 0 40px rgba(255, 43, 214, .7)) drop-shadow(0 0 90px rgba(255, 138, 61, .45));
}
.sw-mountains { position: absolute; left: 0; right: 0; bottom: 23.6%; width: 100%; height: 150px; }
.sw-horizon { position: absolute; left: 0; right: 0; bottom: 24%; height: 2px; background: var(--pink); box-shadow: 0 0 16px 3px var(--pink); }
.sw-floor-wrap { position: absolute; left: 0; right: 0; bottom: 0; height: 24%; perspective: 260px; perspective-origin: 50% 0; overflow: hidden; }
.sw-floor {
  position: absolute; left: -50%; right: -50%; top: 0; height: 300%;
  transform: rotateX(68deg); transform-origin: 50% 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 43, 214, .9) 0 2px, transparent 2px 70px),
    repeating-linear-gradient(180deg, rgba(255, 43, 214, .9) 0 2px, transparent 2px 70px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%);
          mask-image: linear-gradient(180deg, transparent 0, #000 12%);
  filter: drop-shadow(0 0 4px var(--pink));
}

/* ---- Peças comuns: logo, vidro com borda neon, botões ----------------------- */
#sw-brand { align-self: center; }
.sw-logo {
  font: 400 46px/1 Audiowide, sans-serif; letter-spacing: .04em;
  background: linear-gradient(180deg, #ffffff 0%, #c9f4ff 38%, #4fd7ff 50%, #2a1a6e 52%, #ff7ad9 72%, #ffe3f6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(45, 226, 255, .55)) drop-shadow(0 2px 0 #5a1b86);
}
.sw-tag { font: 700 10px/1 var(--orb); letter-spacing: .5em; color: var(--pink); text-shadow: 0 0 8px var(--pink); margin-top: 8px; }

/* vidro: fundo escuro desfocado + borda em degradê feita com máscara */
#sw-panel, #sidebar, .panel-inner, .login-page .card, .list-page #list {
  position: relative; border-radius: 16px; background: var(--glass);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 0 30px rgba(255, 43, 214, .25), inset 0 0 40px rgba(138, 43, 226, .15);
}
#sw-panel::before, #sidebar::after, .panel-inner::before, .login-page .card::before, .list-page #list::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: var(--neon-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

.links a, .links button, .panel-header button, .login-page button {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 11px/1 var(--orb); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  padding: 11px 16px; border-radius: 999px; color: #fff; cursor: pointer;
  border: 1.5px solid var(--pink); background: rgba(14, 3, 36, .55);
  box-shadow: 0 0 10px rgba(255, 43, 214, .6), inset 0 0 10px rgba(255, 43, 214, .35);
  text-shadow: 0 0 6px var(--pink);
}
.links a:hover, .links button:hover, .panel-header button:hover, .login-page button:hover {
  box-shadow: 0 0 16px rgba(255, 43, 214, .9), inset 0 0 14px rgba(255, 43, 214, .5);
}

/* ---- Página da nota ------------------------------------------------------------ */
body.note-page {
  height: 100vh; height: 100dvh; overflow: hidden;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  grid-template-rows: 92px minmax(0, 1fr) 74px;
  grid-template-areas: "brand top" "tape main" "bar bar";
  column-gap: 22px; padding: 18px 26px 16px;
}
body.note-page:has(#sidebar[hidden]) { grid-template-areas: "brand top" "main main" "bar bar"; }
#main-column, #status-bar { display: contents; }
#sw-brand { grid-area: brand; }
#sw-top { grid-area: top; }
#sidebar { grid-area: tape; }
#sw-panel, #editor, #preview { grid-area: main; }
#status, #status-bar .links { grid-area: bar; }

#sw-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-width: 0; }
#sw-top > div:first-child { min-width: 0; }
#sw-crumb { font: 400 13px/1 var(--orb); letter-spacing: .25em; color: var(--muted); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sw-title {
  font: 400 40px/1.15 Audiowide, sans-serif; color: #fff; margin-top: 6px;
  text-shadow: 0 0 6px #fff, 0 0 14px var(--pink), 0 0 30px var(--pink), 0 0 50px var(--purple);
  /* clip + margem: corta o texto comprido com reticências sem cortar o brilho */
  white-space: nowrap; overflow: clip; overflow-clip-margin: 50px; text-overflow: ellipsis;
}
.sw-clock { text-align: right; flex-shrink: 0; }
#sw-date { font: 700 30px/1 var(--orb); color: var(--cyan); letter-spacing: .08em; text-shadow: 0 0 8px var(--cyan), 0 0 22px rgba(45, 226, 255, .6); }
.sw-clock-label { font: 400 10px/1 var(--orb); letter-spacing: .4em; color: var(--muted); margin-top: 6px; text-transform: uppercase; }

/* painel da nota + editor/preview por cima */
#sw-panel { min-height: 0; }
.sw-meta {
  display: flex; justify-content: space-between; gap: 16px; padding: 14px 22px 0;
  font: 400 11px/1 var(--orb); letter-spacing: .25em; color: var(--muted); text-transform: uppercase;
  white-space: nowrap; overflow: hidden;
}
.sw-meta > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.sw-meta b { color: var(--pink); font-weight: 700; }
#editor, #preview {
  z-index: 1; align-self: stretch; justify-self: stretch; width: auto; height: auto; min-width: 0; min-height: 0;
  margin: 40px 6px 10px 6px; padding: 6px 16px 10px;
  background: transparent; color: var(--text);
  scrollbar-width: thin; scrollbar-color: rgba(255, 43, 214, .55) transparent;
}
#editor {
  border: none; outline: none; resize: none;
  font: 400 15px/1.7 var(--mono); caret-color: var(--pink);
}
#editor::placeholder { color: var(--muted); }

/* sub-notas: "LADO A" de uma fita cassete, com os dois carretéis */
#sidebar {
  align-self: start; max-height: 100%; min-height: 0;
  display: flex; flex-direction: column; padding: 18px 16px;
}
#sidebar::before {
  content: "LADO A"; display: block; flex-shrink: 0; padding-bottom: 82px;
  font: 700 12px/1 var(--orb); letter-spacing: .35em; color: var(--cyan); text-shadow: 0 0 8px var(--cyan);
  background:
    radial-gradient(circle, var(--pink) 0 6px, transparent 7px 13px, var(--pink) 14px 17px, rgba(255, 43, 214, .3) 18px 21px, transparent 22px) calc(50% - 31px) 28px / 48px 48px no-repeat,
    radial-gradient(circle, var(--pink) 0 6px, transparent 7px 13px, var(--pink) 14px 17px, rgba(255, 43, 214, .3) 18px 21px, transparent 22px) calc(50% + 31px) 28px / 48px 48px no-repeat;
}
#sidebar-title { display: none; }
#sidebar-up, #sidebar-list a {
  display: flex; gap: 10px; align-items: baseline; padding: 7px 8px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: 14px; overflow-wrap: anywhere;
}
#sidebar-up { color: var(--cyan); font-size: 0; flex-shrink: 0; }
#sidebar-up::before { flex-shrink: 0; content: "◀◀"; font: 700 11px var(--orb); color: var(--pink); }
#sidebar-up::after { content: attr(data-parent); font-size: 14px; }
#sidebar-list { list-style: none; margin: 0; padding: 0; counter-reset: faixa; min-height: 0; overflow-y: auto; scrollbar-width: none; }
#sidebar-list a::before { flex-shrink: 0; counter-increment: faixa; content: counter(faixa, decimal-leading-zero); font: 700 11px var(--orb); color: var(--pink); }
#sidebar-list a .slash { display: none; }
#sidebar-up:hover, #sidebar-list a:hover, #sidebar-list a:focus-visible {
  background: linear-gradient(90deg, rgba(255, 43, 214, .28), transparent); box-shadow: inset 2px 0 0 var(--pink); outline: none;
}

/* barra de baixo: status à esquerda, botões neon à direita */
#status {
  justify-self: start; align-self: center; display: flex; align-items: center; gap: 10px; min-width: 0;
  font: 700 12px/1.2 var(--orb); letter-spacing: .3em; text-transform: uppercase;
  color: var(--cyan); text-shadow: 0 0 8px var(--cyan); white-space: nowrap; overflow: clip; overflow-clip-margin: 24px; text-overflow: ellipsis;
  max-width: 40%;
}
#status::before { content: ""; flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor, 0 0 20px currentColor; }
#status[data-state="busy"] { color: var(--yellow); text-shadow: 0 0 8px var(--yellow); }
#status[data-state="offline"] { color: var(--hot); text-shadow: 0 0 8px var(--hot); }
#status-bar .links { justify-self: end; align-self: center; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; position: relative; }
#more-links, #logout-form { display: contents; }
#more-toggle { display: none; }
#preview-toggle { background: linear-gradient(90deg, var(--pink), var(--purple)); border-color: transparent; }
.links .history-link, #theme-link {
  border-color: var(--cyan); box-shadow: 0 0 10px rgba(45, 226, 255, .6), inset 0 0 10px rgba(45, 226, 255, .3); text-shadow: 0 0 6px var(--cyan);
}
.links .history-link.lc-only { display: none; }

/* ---- Preview de Markdown ----------------------------------------------------------- */
#preview { overflow-y: auto; overflow-wrap: anywhere; font: 400 15px/1.7 var(--mono); }
#preview > :first-child { margin-top: 0; }
#preview h1, #preview h2, #preview h3, #preview h4, #preview h5, #preview h6 {
  font-family: Audiowide, sans-serif; font-weight: 400; line-height: 1.3; margin: 1.1em 0 .4em; color: #fff;
}
#preview h1 { font-size: 1.9em; text-shadow: 0 0 6px #fff, 0 0 14px var(--pink), 0 0 28px var(--pink); }
#preview h2 { font-size: 1.45em; text-shadow: 0 0 10px var(--pink); color: #ffd6f6; }
#preview h3 { font-size: 1.2em; color: var(--cyan); text-shadow: 0 0 8px rgba(45, 226, 255, .6); }
#preview p { margin: .7em 0; }
#preview ul, #preview ol { padding-left: 1.5em; }
#preview li::marker { color: var(--pink); }
#preview li:has(input[type="checkbox"]) { list-style: none; margin-left: -1.5em; }
#preview input[type="checkbox"] { accent-color: var(--pink); }
#preview a { color: var(--cyan); text-shadow: 0 0 6px rgba(45, 226, 255, .5); }
#preview strong { color: #fff; text-shadow: 0 0 8px var(--pink); }
#preview blockquote { margin: .7em 0; padding-left: 1em; border-left: 3px solid var(--pink); color: var(--muted); }
#preview code { color: var(--yellow); }
#preview pre { padding: .8em 1em; border-radius: 10px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(255, 43, 214, .35); overflow-x: auto; }
#preview pre code { color: var(--text); overflow-wrap: normal; }
#preview img { max-width: 100%; height: auto; }
#preview hr { border: none; height: 2px; background: var(--neon-border); box-shadow: 0 0 10px var(--pink); margin: 1.4em 0; }
#preview table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
#preview th, #preview td { border: 1px solid rgba(255, 43, 214, .45); padding: .3em .8em; text-align: left; overflow-wrap: normal; }
#preview th { font: 700 .8em var(--orb); letter-spacing: .12em; color: var(--cyan); }

/* ---- Painéis (histórico, tema) ------------------------------------------------------- */
.panel {
  position: fixed; inset: 0; z-index: 20; background: rgba(7, 1, 26, .55);
  align-items: center; justify-content: center; padding: 2rem;
}
.panel:not([hidden]) { display: flex; }
.panel-inner { width: min(540px, 100%); max-height: 80vh; display: flex; flex-direction: column; background: var(--glass-solid); }
.panel-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px 12px; border-bottom: 1px solid rgba(255, 43, 214, .3);
}
.panel-header strong {
  font: 400 22px/1.1 Audiowide, sans-serif; color: #fff; text-transform: lowercase;
  text-shadow: 0 0 6px #fff, 0 0 14px var(--pink);
}
.panel-header button { padding: 9px 14px; font-size: 10px; }
.panel-list { overflow-y: auto; padding: 8px 10px 14px; }
.panel-list button {
  display: block; width: 100%; padding: 10px 12px; margin: 0 0 2px; border: none; border-radius: 10px;
  background: none; color: var(--text); text-align: left; cursor: pointer;
  font: 400 13px/1.45 var(--mono); overflow-wrap: anywhere;
}
.panel-list small { color: var(--muted); }
.panel-list button:hover, .panel-list button:focus-visible { background: linear-gradient(90deg, rgba(255, 43, 214, .28), transparent); outline: none; }
.panel-list button.current { box-shadow: inset 3px 0 0 var(--cyan); color: var(--cyan); text-shadow: 0 0 6px rgba(45, 226, 255, .6); }
.panel-list button.current::after { content: "  ◉"; }
#theme-list button { font: 700 12px/1.5 var(--orb); letter-spacing: .12em; text-transform: uppercase; }
#theme-list small { font: 400 11px var(--mono); letter-spacing: 0; text-transform: none; }

/* ---- Celular ---------------------------------------------------------------------------- */
@media (max-width: 640px) {
  #sw-scene { background: linear-gradient(180deg, #07011a 0%, #1a0540 40%, #4b0f6b 64%, #a3237c 77%, #ff6a7a 81%, #1a0533 81.2%, #12032a 100%); }
  .sw-sun { width: 250px; height: 250px; bottom: 19%; }
  .sw-mountains { bottom: 18.6%; height: 90px; }
  .sw-floor-wrap { height: 19%; }
  .sw-horizon { bottom: 19%; }

  body.note-page, body.note-page:has(#sidebar[hidden]) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    grid-template-areas: "brand" "top" "tape" "main" "bar";
    row-gap: 10px; padding: 12px;
  }
  #sw-brand { display: flex; align-items: baseline; justify-content: space-between; }
  .sw-logo { font-size: 30px; }
  .sw-tag { margin: 0; letter-spacing: .3em; }
  #sw-title { font-size: 30px; }
  #sw-date { font-size: 20px; }
  #sw-crumb { font-size: 11px; }

  /* faixas numa fileira de botões */
  #sidebar { flex-direction: row; align-items: center; gap: 8px; padding: 10px; overflow: hidden; }
  #sidebar::before { display: none; }
  #sidebar-list { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; }
  #sidebar-up, #sidebar-list a {
    flex-shrink: 0; white-space: nowrap; overflow-wrap: normal; padding: 6px 10px; border-radius: 999px; font-size: 13px;
    box-shadow: inset 0 0 0 1px rgba(255, 43, 214, .6);
  }
  #sidebar-up::after { font-size: 13px; }

  .sw-meta { padding: 12px 16px 0; font-size: 9px; }
  #editor, #preview { margin: 32px 2px 6px; padding: 6px 14px 8px; font-size: 14px; }

  #status { font-size: 10px; letter-spacing: .15em; gap: 7px; max-width: none; }
  #status::before { width: 8px; height: 8px; }
  #status-bar .links { flex-wrap: nowrap; gap: 6px; }
  .links a, .links button { padding: 10px 12px; font-size: 10px; letter-spacing: .12em; }
  /* "histórico" direto na barra, como no mockup (o .lc-only geral esconde
     com !important; aqui a regra é mais específica e vence) */
  .links .history-link.lc-only { display: inline-flex !important; }
  #more-toggle { display: inline-flex; border-color: var(--cyan); box-shadow: 0 0 10px rgba(45, 226, 255, .6), inset 0 0 10px rgba(45, 226, 255, .3); text-shadow: 0 0 6px var(--cyan); }
  #more-links {
    display: none; position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 10;
    flex-direction: column; align-items: stretch; gap: 8px; min-width: 13rem; padding: 14px;
    border-radius: 16px; background: var(--glass-solid);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 0 30px rgba(255, 43, 214, .25);
  }
  #more-links::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
    background: var(--neon-border);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
  }
  #status-bar.menu-open #more-links { display: flex; }
  #more-links #history-link { display: none; }
  #logout-form { display: block; }
  #logout-form button { width: 100%; }

  .panel { padding: 0; }
  .panel:not([hidden]) { align-items: flex-end; }
  .panel-inner { width: 100%; max-height: 85dvh; border-radius: 16px 16px 0 0; }
}

/* ---- Login --------------------------------------------------------------------------------- */
body.login-page {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 20px;
}
.login-page #sw-brand { text-align: center; }
.login-page .sw-logo { font-size: 64px; }
.login-page .card { width: min(380px, 100%); padding: 26px 24px 24px; color: var(--text); }
.login-page h1 {
  margin: 0 0 18px; font: 700 13px/1 var(--orb); letter-spacing: .35em; text-transform: uppercase; color: var(--cyan); text-shadow: 0 0 8px var(--cyan);
}
.login-page input[type="password"] {
  display: block; width: 100%; margin: 0 0 16px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(255, 43, 214, .55); background: rgba(0, 0, 0, .35); color: var(--text); caret-color: var(--pink);
  font: 400 16px var(--mono); outline: none;
}
.login-page input[type="password"]:focus { border-color: var(--pink); box-shadow: 0 0 12px rgba(255, 43, 214, .5); }
.login-page button { width: 100%; padding: 13px 16px; font-size: 12px; background: linear-gradient(90deg, var(--pink), var(--purple)); border-color: transparent; }
.login-page .error { margin: 0 0 12px; color: var(--hot); font: 700 11px var(--orb); letter-spacing: .15em; text-transform: uppercase; text-shadow: 0 0 6px var(--hot); }

/* ---- Lista de notas: "todas as faixas" ------------------------------------------------------ */
body.list-page { min-height: 100vh; min-height: 100dvh; padding: 22px 26px; }
.list-page > header { max-width: 980px; margin: 0 auto 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.list-page h1 {
  margin: 0; font: 400 34px/1.1 Audiowide, sans-serif; color: #fff;
  text-shadow: 0 0 6px #fff, 0 0 14px var(--pink), 0 0 30px var(--pink);
}
.list-page a.new {
  display: inline-flex; align-items: center; padding: 11px 16px; border-radius: 999px; text-decoration: none;
  font: 700 11px/1 var(--orb); letter-spacing: .2em; text-transform: uppercase; color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple)); box-shadow: 0 0 12px rgba(255, 43, 214, .6);
}
.list-page #list { max-width: 980px; margin: 0 auto; padding: 10px; list-style: none; counter-reset: faixa; }
.list-page #list li a {
  display: grid; grid-template-columns: 3ch minmax(0, 1fr) auto; column-gap: 14px; align-items: baseline;
  padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none;
}
.list-page #list li a::before { counter-increment: faixa; content: counter(faixa, decimal-leading-zero); font: 700 12px var(--orb); color: var(--pink); }
.list-page #list .path { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-page #list .meta { font: 400 10px var(--orb); letter-spacing: .12em; color: var(--muted); white-space: nowrap; }
.list-page #list li a:hover { background: linear-gradient(90deg, rgba(255, 43, 214, .28), transparent); box-shadow: inset 2px 0 0 var(--pink); }
.list-page #empty { max-width: 980px; margin: 20px auto; color: var(--muted); }
.list-page #empty a { color: var(--cyan); }
@media (max-width: 640px) {
  body.list-page { padding: 14px 12px; }
  .list-page h1 { font-size: 26px; }
  .list-page #list li a { grid-template-columns: 3ch minmax(0, 1fr); }
  .list-page #list .meta { grid-column: 2; white-space: normal; }
}
