/* Title and Meta Writer (client/titlemeta.ts). Colours come only from theme tokens. */
.tm-modes { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.tm-modes legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.tm-check { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.tm-check input { margin-top: 4px; flex: none; }
.tm-check em { color: var(--muted); font-style: normal; }
.tm-card { display: grid; gap: 18px; }
.tm-block { display: grid; gap: 8px; }
.tm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tm-head h3 { margin: 0; font-size: 1.05rem; }

/* Now against recommended: fixed column widths so the text columns share the space and the label and Copy columns stay narrow. */
.tm-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .95rem; }
.tm-table th, .tm-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.tm-table thead th { font-size: .8rem; text-transform: none; color: var(--muted); background: var(--surface-2); }
.tm-table th:first-child { width: 128px; } .tm-table tbody th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: none; }
.tm-table th:nth-child(2), .tm-table td:nth-child(2) { width: 38%; }
.tm-table th:last-child, .tm-table td.tm-copy { width: 104px; }
.tm-len { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.tm-why { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.tm-table td b { display: inline; }
@media (max-width: 760px) {
  .tm-table, .tm-table tbody, .tm-table tr, .tm-table td, .tm-table th { display: block; width: auto; }
  .tm-table thead { display: none; }
  .tm-table tr { border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px 12px; margin-bottom: 12px; }
  .tm-table th, .tm-table td { border: 0; padding: 8px 0 0; }
  .tm-table th:nth-child(2), .tm-table td:nth-child(2), .tm-table td.tm-copy, .tm-table tbody th { width: auto; }
  .tm-table td[data-label]::before { content: attr(data-label); display: block; font-size: .8rem; text-transform: none; color: var(--muted); }
}

/* One page with its keywords and keyword evidence. */
.tm-page { display: grid; gap: 14px; margin-bottom: 16px; }
.tm-page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tm-page-head h3 { margin: 0; }
.tm-add { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.cb-grid .tm-full { grid-column: 1 / -1; }
@media (max-width: 900px) { .cb-grid .tm-full { grid-column: auto; } }
.tm-step { margin-top: 6px; }
.tm-step + .tm-step { margin-top: 14px; }

/* v0.128.11: the page-searches box and the suggestion picker use the full row, not one grid cell */
.cb-grid .kp.tm-full { grid-column: 1 / -1; min-width: 0; }
.tm-pagesearches .kp-bar { align-items: center; }
@media (max-width: 900px) { .cb-grid .kp.tm-full { grid-column: auto; } }
