/* Deliberately minimal. System font, automatic light/dark, plain HTML feel. */
:root {
  color-scheme: light dark;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  max-width: 42rem;
  margin: 2rem auto;
  padding: 0 1rem 4rem;
}

h1 {
  font-size: 1.4rem;
  margin: 0 0 0.25rem;
}
.hero p {
  margin: 0 0 1.5rem;
  opacity: 0.8;
}

.bar {
  display: flex;
  gap: 0.5rem;
}
.bar input {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 0.45rem 0.6rem;
}
.bar button,
.copy,
.tabs button,
.cite-toggle button {
  font: inherit;
  cursor: pointer;
}

.examples {
  font-size: 0.9rem;
  opacity: 0.8;
}
.link {
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: LinkText;
  text-decoration: underline;
}

.status {
  margin-top: 1rem;
}
.status.error {
  color: crimson;
}

#result {
  margin-top: 1.5rem;
}

/* Tweet preview: a plain line, not a card. */
.preview {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid;
  border-color: GrayText;
}
.preview img {
  display: none; /* keep it plain — no avatar */
}
.preview .name {
  font-weight: 600;
}
.preview .name svg {
  display: none;
}
.preview .handle,
.preview .snippet {
  opacity: 0.7;
  font-size: 0.9rem;
}
.preview .open {
  margin-left: auto;
}

/* Tabs: just a row of buttons. Active one is bold. */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.tabs button[aria-selected="true"] {
  font-weight: 700;
  text-decoration: underline;
}

.hint {
  font-size: 0.85rem;
  opacity: 0.75;
  margin: 0 0 0.5rem;
}
.hint:empty {
  display: none;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}
.count {
  font-size: 0.8rem;
  opacity: 0.7;
}
.count.over {
  color: crimson;
  opacity: 1;
}
.copy {
  margin-left: auto;
}
.copy.done {
  font-weight: 600;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.85rem;
  border: 1px solid GrayText;
  padding: 0.6rem;
  margin: 0;
}

.media-item {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}
.media-item img {
  max-width: 4rem;
  height: auto;
  vertical-align: middle;
  margin-right: 0.5rem;
}

footer {
  margin-top: 2.5rem;
  font-size: 0.8rem;
  opacity: 0.7;
}
