/* Meta title & description generator — additions on top of design-md.css.
   The SERP preview is generic search-result furniture, not Google's exact
   trade dress: blue link, green-less URL line, two-line snippet. */

/* Full content column, like the other tools' input furniture. */
.mtg-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(20px, 3vw, 28px);
}
.mtg-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.mtg-field-wide {
  grid-column: 1 / -1;
}
.mtg-field label {
  display: block;
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 6px;
}
.mtg-field label span {
  color: var(--muted-foreground);
  font-weight: 400;
}
.mtg-field input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 16px;
  background: var(--background, #fff);
  color: var(--foreground);
  outline: 0;
  transition: border-color 160ms ease;
}
.mtg-field input:focus {
  border-color: var(--foreground);
}

.mtg-output {
  margin-top: 28px;
  display: grid;
  gap: 28px;
}

.mtg-serp-label {
  font-size: 12px;
  font-weight: 550;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
  margin: 0 0 10px;
}
.mtg-serp-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  padding: 18px 20px;
  display: block;
  max-width: 640px;
}
.mtg-serp-url {
  display: block;
  font-size: 13px;
  color: var(--muted-foreground);
  margin-bottom: 4px;
}
.mtg-serp-title {
  display: block;
  font-size: 19px;
  line-height: 1.3;
  color: #1a0dab;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 580px;
}
.mtg-serp-desc {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted-foreground);
  max-width: 600px;
}

.mtg-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.mtg-cols h2 {
  font-size: 16px;
  margin: 0 0 12px;
}
.mtg-options {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.mtg-option {
  display: flex;
  align-items: stretch;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 160ms ease;
}
.mtg-option.is-selected {
  border-color: var(--foreground);
}
.mtg-option-pick {
  flex: 1;
  text-align: left;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--foreground);
  font: inherit;
  min-width: 0;
}
.mtg-option-text {
  display: block;
  font-size: 14.5px;
  line-height: 1.5;
  margin-bottom: 6px;
  word-break: break-word;
}
.mtg-option-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--muted-foreground);
}
.mtg-option-meta .is-over {
  color: #d1443b;
  font-weight: 600;
}
.mtg-option-meta .is-ok {
  color: #1f9d55;
}
.mtg-option-copy {
  flex: none;
  align-self: center;
  border: 1px solid var(--border);
  background: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--foreground);
  cursor: pointer;
}
.mtg-option-copy:hover {
  border-color: var(--foreground);
}

.mtg-snippet h2 {
  font-size: 16px;
  margin: 0 0 12px;
}
.mtg-snippet pre {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 12px;
}
.mtg-model-note {
  font-size: 13px;
  color: var(--muted-foreground);
  margin: 0;
  max-width: 640px;
}
