/**
 * Story 169 — Cadastros, Configurações e Ajuda mobile.
 */

@media (max-width: 768px) {
  .m-sys {
    padding: 0.85rem 1rem 1.5rem;
    font-family: var(--font, "Inter", system-ui, sans-serif);
    color: var(--color-text, #172033);
  }

  .m-sys__head {
    margin-bottom: 0.85rem;
  }

  .m-sys__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  .m-sys__sub {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--color-muted, #64748b);
  }

  .m-sys-back {
    display: inline-flex;
    align-items: center;
    margin: 0 0 0.45rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-primary, #2563eb);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
  }

  .m-sys-count {
    flex-shrink: 0;
    min-width: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-muted, #64748b);
  }

  .m-sys-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1rem;
  }

  .m-sys-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius, 12px);
    background: var(--color-surface, #fff);
    box-shadow: var(--shadow);
  }

  .m-sys-swatch {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    flex-shrink: 0;
  }

  .m-sys-form {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }

  .m-sys-notice {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius, 12px);
    border: 1px solid #fde68a;
    background: #fffbeb;
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .m-sys-notice strong {
    display: block;
    margin-bottom: 0.25rem;
  }

  .m-sys-notice p {
    margin: 0;
    color: var(--color-muted, #64748b);
  }

  .m-sys-article {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .m-sys-article :is(h1, h2, h3) {
    font-size: 1rem;
    margin: 1rem 0 0.4rem;
  }

  .m-sys-article p {
    margin: 0.45rem 0;
  }

  .master-page:has([data-mobile-config]),
  .master-page:has([data-mobile-cadastros-hub]),
  .master-page:has([data-mobile-categorias]),
  .help-root:has([data-mobile-ajuda]),
  .help-root:has([data-mobile-ajuda-article]) {
    padding: 0;
  }
}
