/* Guias "Anotações" e "Changelog e regras" + nota rápida flutuante — tokens do design system Axis. */

/* ---- formulário ---- */
.notes-card { margin-bottom: 18px; }
.notes-form { display: grid; gap: 12px; padding: 0 20px 20px; }
.notes-form__row { display: flex; flex-wrap: wrap; gap: 12px; }
.notes-form__row > .meta-form__field { flex: 1 1 160px; }
.notes-form__grow { flex: 3 1 260px !important; }
.notes-form textarea { width: 100%; resize: vertical; min-height: 84px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-1); color: var(--text-primary); font: inherit; font-size: 13px; }
.notes-form textarea:focus-visible { outline: none; border-color: var(--ax-orange); box-shadow: var(--focus-ring); }
.notes-form__creds[hidden] { display: none; }
.notes-form__actions { display: flex; justify-content: flex-end; gap: 8px; }
.notes-btn { padding: 8px 16px; border: 1px solid transparent; border-radius: var(--radius-pill, 999px); font-size: 13px; font-weight: 600; cursor: pointer; transition: background 150ms ease, border-color 150ms ease; }
.notes-btn--primary { background: var(--ax-orange); color: #fff; }
.notes-btn--primary:hover { background: var(--ax-orange-dark); }
.notes-btn--primary:disabled { opacity: .6; cursor: progress; }
.notes-btn--danger { background: transparent; border-color: var(--ax-orange-dark); color: var(--ax-orange-dark); }
.notes-btn--danger:hover { background: var(--ax-orange-tint); }
.notes-btn:focus-visible { outline: 2px solid var(--ax-orange); outline-offset: 2px; }

/* ---- lista agrupada por data ---- */
.notes-list { padding: 0 20px 20px; display: grid; gap: 18px; }
.notes-empty { margin: 0; color: var(--text-muted); font-size: 13px; }
.notes-group__date { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 0.5px solid var(--border); color: var(--text-primary); font-family: var(--font-display); font-size: 14px; font-weight: 700; }
.notes-group__count { padding: 0 7px; border-radius: var(--radius-pill, 999px); background: var(--ax-metas-chip); color: var(--text-secondary); font-family: var(--font-mono); font-size: 10px; font-weight: 600; }
.notes-group__items { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.notes-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-1); color: var(--text-primary); text-align: left; cursor: pointer; transition: border-color 150ms ease, transform 150ms ease; }
.notes-item:hover { border-color: var(--ax-navy); transform: translateX(2px); }
.notes-item:focus-visible { outline: 2px solid var(--ax-orange); outline-offset: 2px; }
.notes-item__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.notes-item__more { flex-shrink: 0; color: var(--ax-orange-dark); font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }


/* ---- detalhe ---- */
.notes-detail__body { display: grid; gap: 12px; padding: 0 20px 20px; }
.notes-detail__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; color: var(--text-muted); font-size: 12px; }
.notes-detail__text { margin: 0; color: var(--text-primary); font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---- botão flutuante + nota rápida ---- */
.notes-fab { position: fixed; right: 24px; bottom: 24px; z-index: 25; display: inline-flex; align-items: center; gap: 6px; padding: 12px 18px; border: 0; border-radius: var(--radius-pill, 999px); background: var(--ax-orange); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 12px 28px -10px rgba(2, 0, 53, .45); cursor: pointer; transition: transform 150ms ease, background 150ms ease; }
.notes-fab:hover { background: var(--ax-orange-dark); transform: translateY(-2px); }
.notes-fab:focus-visible { outline: 2px solid var(--ax-navy); outline-offset: 3px; }
.notes-fab svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.notes-quick { position: fixed; right: 24px; bottom: 84px; z-index: 26; width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 120px); overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2); box-shadow: 0 32px 72px -20px rgba(2, 0, 53, .4); }
.notes-quick[hidden] { display: none; }
.notes-quick__header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.notes-quick__header h2 { margin: 0; font-size: 15px; }
.notes-quick__date { margin-left: 6px; color: var(--ax-orange-dark); font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.notes-quick .notes-form { padding: 0 16px 16px; }
@media (max-width: 640px) {
  .notes-fab { right: 16px; bottom: 16px; }
  .notes-quick { right: 16px; bottom: 72px; }
}

/* ---- changelog e regras ---- */
.changelog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; align-items: start; }
.changelog-body { padding: 0 20px 20px; color: var(--text-primary); font-size: 13px; line-height: 1.55; }
.changelog-body h3 { margin: 18px 0 6px; color: var(--ax-orange-dark); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.changelog-body h3:first-child { margin-top: 0; }
.changelog-body ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.changelog-body code { padding: 0 4px; border-radius: 4px; background: var(--ax-metas-chip); font-family: var(--font-mono); font-size: 11px; }
