/*
 * Copyright (c) 2026 by Gabriele Proietti Mattia <pm.gabriele@gmail.com>.
 *
 * All Rights Reserved.
 */

/*
 * What the screens that talk to the author add on top of styles.css (the card in the settings, the
 * three sheets, the author's links), written with the tokens of design-system.css and never with
 * values of its own. The tests read this file with the others: a rule written twice anywhere, a
 * token used and not defined, a design system token written again, all fail.
 */

.apps-box { display: flex; flex-direction: column; gap: var(--space-3); }

.apps-form { display: flex; flex-direction: column; gap: var(--space-2); }

.apps-textarea { min-height: 120px; padding: var(--space-3); resize: vertical; }

.apps-counter { align-self: flex-end; font-size: var(--fs-caption); }

.apps-ok {
  margin: 0;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--success-soft);
  color: var(--success);
}

.apps-need { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }

.apps-empty { padding: var(--space-4) 0; text-align: center; }

.apps-thanks { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); padding: var(--space-4) 0; text-align: center; }
.apps-thanks__icon { width: var(--space-8); height: var(--space-8); color: var(--success); }
.apps-thanks__title { margin: 0; font-size: var(--fs-h3); }

.apps-ideas, .apps-reports { gap: var(--space-3); }

.apps-idea, .apps-report {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.apps-idea__head { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); }
.apps-idea__title { font-weight: var(--fw-medium); overflow-wrap: anywhere; min-width: 0; }
.apps-idea__body, .apps-report__body { overflow-wrap: anywhere; white-space: pre-wrap; }
.apps-idea__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.apps-idea__votes { font-size: var(--fs-body-sm); color: var(--text-muted); }

.apps-pill {
  padding: 0 var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: var(--fs-caption);
}
.apps-pill--state { background: var(--accent-soft); color: var(--accent); }

.apps-thread { gap: var(--space-2); }
.apps-msg {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  background: var(--surface-2);
  border-radius: var(--radius-md);
}
.apps-msg--author { background: var(--accent-soft); }
.apps-msg__who { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--fs-caption); color: var(--text-muted); }
.apps-msg__name { font-weight: var(--fw-medium); }
.apps-msg__date { font-size: var(--fs-caption); color: var(--text-muted); }
.apps-msg__body { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }

.apps-links { margin-top: var(--space-3); }
.apps-link__anchor {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  padding: var(--space-2) 0;
  color: var(--link);
  text-decoration: none;
}
.apps-link__anchor:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.apps-link__icon { flex: none; display: flex; align-items: center; justify-content: center; width: var(--space-6); height: var(--space-6); }
.apps-link__glyph { width: 100%; height: 100%; }
.apps-link__text { display: flex; flex-direction: column; min-width: 0; }
.apps-link__title { font-weight: var(--fw-medium); overflow-wrap: anywhere; }
.apps-link__description { font-size: var(--fs-body-sm); color: var(--text-muted); overflow-wrap: anywhere; }
