body {
  margin: 0;
  background: var(--tb-paper);
  color: var(--tb-ink);
  font-family: var(--font-body);
}

h1, h2, h3 {
  color: var(--tb-slate);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}

a {
  color: var(--tb-slate);
  text-decoration-color: var(--tb-topaz);
  text-underline-offset: 3px;
}

.flash-wrap {
  padding-top: 1rem;
}

.site-footer {
  background: var(--mm-footer-bg);
  color: var(--mm-footer-text);
  padding: 2rem 0;
}

.site-footer a {
  color: var(--mm-footer-text);
}

.site-footer a:hover,
nav.hcwf-navbar .nav-link:hover {
  color: var(--tb-topaz) !important;
}

.hero {
  background:
    linear-gradient(110deg, rgba(24,31,42,.98) 0%, rgba(48,74,102,.94) 58%, rgba(247,243,237,.98) 58%, rgba(247,243,237,1) 100%);
  color: #fff;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1.02;
  max-width: 760px;
  margin: 1rem 0;
}

.hero .lead {
  color: #e1e7ea;
  font-size: 1.14rem;
  line-height: 1.7;
  max-width: 680px;
}

.eyebrow {
  align-items: center;
  color: var(--tb-topaz);
  display: inline-flex;
  font-size: .85rem;
  font-weight: 800;
  gap: .45rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.audit-form {
  background: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  display: grid;
  gap: .65rem;
  grid-template-columns: 1fr auto;
  margin-top: 2rem;
  max-width: 720px;
  padding: .55rem;
}

.audit-form input {
  border: 0;
  color: var(--tb-ink);
  font-size: 1rem;
  min-width: 0;
  outline: 0;
  padding: .85rem 1rem;
}

.audit-form button,
.btn-main {
  align-items: center;
  background: var(--tb-topaz);
  border: 0;
  border-radius: 8px;
  color: #16120e;
  display: inline-flex;
  font-weight: 800;
  gap: .45rem;
  justify-content: center;
  padding: .85rem 1.1rem;
  text-decoration: none;
}

.audit-form button:hover,
.btn-main:hover {
  background: #de7614;
  color: #16120e;
}

.btn-line {
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  color: var(--tb-slate);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  padding: .82rem 1rem;
  text-decoration: none;
}

.btn-line:hover {
  border-color: var(--tb-topaz);
  color: var(--tb-rust);
}

.hero-notes {
  color: #d7dce2;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-notes span {
  align-items: center;
  display: inline-flex;
  gap: .35rem;
  font-size: .92rem;
}

.product-shell {
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(24,31,42,.22);
  color: var(--tb-ink);
  overflow: hidden;
}

.product-top {
  align-items: center;
  background: var(--tb-dark);
  color: #f5efe6;
  display: flex;
  gap: .45rem;
  padding: .85rem 1rem;
}

.product-top span {
  background: var(--tb-topaz);
  border-radius: 50%;
  height: .7rem;
  width: .7rem;
}

.product-top span:nth-child(2) {
  background: #67b26f;
}

.product-top span:nth-child(3) {
  background: #6aa4c8;
}

.product-top strong {
  font-size: .9rem;
  margin-left: .5rem;
}

.score-row {
  align-items: center;
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
}

.score-ring,
.big-score,
.mini-score {
  align-items: center;
  background: #eef7f2;
  border: 6px solid var(--tb-green);
  border-radius: 50%;
  color: var(--tb-green);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
}

.score-ring {
  flex: 0 0 96px;
  font-size: 2rem;
  height: 96px;
  width: 96px;
}

.score-row h2 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  margin: 0 0 .3rem;
}

.score-row p {
  color: var(--tb-muted);
  margin: 0;
}

.issue-list {
  border-top: 1px solid var(--tb-line);
}

.issue-list div {
  display: grid;
  gap: .8rem;
  grid-template-columns: 58px 1fr;
  padding: .85rem 1.5rem;
}

.issue-list div + div {
  border-top: 1px solid var(--tb-line);
}

.issue-list b {
  color: var(--tb-rust);
  font-size: .8rem;
  text-transform: uppercase;
}

.metric-strip {
  background: #f7f3ed;
  border-top: 1px solid var(--tb-line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.metric-strip span {
  padding: .9rem;
  text-align: center;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: #eef4f4;
}

.section-head {
  margin: 0 auto 2rem;
  max-width: 720px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-head p {
  color: var(--tb-muted);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid article,
.pricing-card,
.panel,
.empty-state {
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: 8px;
}

.feature-grid article {
  padding: 1.25rem;
}

.feature-grid i {
  color: var(--tb-topaz);
  font-size: 1.8rem;
}

.feature-grid h3 {
  font-family: var(--font-body);
  font-size: 1.12rem;
  margin-top: .8rem;
}

.feature-grid p,
.workflow p,
.pricing-card li,
.snapshot dd {
  color: var(--tb-muted);
}

.workflow {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr 1fr;
}

.workflow ol {
  counter-reset: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.workflow li {
  align-items: center;
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  display: flex;
  gap: 1rem;
  margin-bottom: .8rem;
  padding: 1rem;
}

.workflow li span {
  align-items: center;
  background: var(--tb-slate);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 2.2rem;
  font-weight: 800;
  height: 2.2rem;
  justify-content: center;
}

.billing-toggle {
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  display: inline-flex;
  padding: .25rem;
}

.billing-toggle button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--tb-muted);
  font-weight: 800;
  padding: .55rem .9rem;
}

.billing-toggle button.active {
  background: var(--tb-dark);
  color: #fff;
}

.pricing-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
}

.pricing-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.2rem;
  position: relative;
}

.pricing-card.popular {
  border-color: var(--tb-topaz);
  box-shadow: 0 18px 40px rgba(48,74,102,.12);
}

.popular-label {
  background: var(--tb-topaz);
  border-radius: 6px;
  color: #16120e;
  font-size: .75rem;
  font-weight: 800;
  padding: .25rem .5rem;
  position: absolute;
  right: 1rem;
  top: 1rem;
  text-transform: uppercase;
}

.pricing-card h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
}

.price {
  align-items: baseline;
  display: flex;
  gap: .4rem;
  margin: .8rem 0;
}

.price > span {
  color: var(--tb-dark);
  font-size: 2.35rem;
  font-weight: 800;
}

.price small,
.annual-note {
  color: var(--tb-muted);
}

.pricing-card ul {
  flex: 1;
  margin: 1rem 0;
  padding-left: 1.2rem;
}

.dashboard {
  min-height: 72vh;
  padding: 3rem 0 4rem;
}

.dash-head,
.report-header {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.dash-head h1,
.report-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.dash-lead {
  color: var(--tb-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: .45rem 0 0;
  max-width: 760px;
}

.dash-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: flex-end;
  max-width: 620px;
}

.dash-stats span {
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  padding: .7rem 1rem;
}

.dash-form {
  border-color: var(--tb-line);
  box-shadow: 0 14px 36px rgba(48,74,102,.08);
  max-width: none;
}

.dash-tools {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr 1fr;
  margin-bottom: 1.5rem;
}

.dash-tools .audit-form {
  margin-top: 0;
}

.small-input {
  border: 1px solid var(--tb-line) !important;
  border-radius: 6px;
  max-width: 86px;
  padding-left: .65rem !important;
  padding-right: .65rem !important;
}

.dash-tool-link {
  align-items: center;
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(48,74,102,.08);
  color: var(--tb-ink);
  display: flex;
  gap: .85rem;
  padding: 1rem;
  text-decoration: none;
}

.dash-tool-link:hover {
  border-color: var(--tb-topaz);
  color: var(--tb-ink);
}

.dash-tool-link i {
  color: var(--tb-topaz);
  font-size: 1.6rem;
}

.dash-tool-link strong,
.dash-tool-link small {
  display: block;
}

.dash-tool-link small,
.muted-copy {
  color: var(--tb-muted);
}

.workflow-strip {
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  display: grid;
  gap: .7rem;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 1rem;
  padding: .85rem;
}

.workflow-strip span {
  align-items: center;
  color: var(--tb-slate);
  display: flex;
  font-weight: 800;
  gap: .55rem;
}

.workflow-strip b {
  align-items: center;
  background: #eef4f4;
  border: 1px solid var(--tb-line);
  border-radius: 50%;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.dash-tabs {
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  display: grid;
  gap: .45rem;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 1rem;
  padding: .45rem;
  position: sticky;
  top: .75rem;
  z-index: 3;
}

.dash-tab {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--tb-slate);
  display: inline-flex;
  font-weight: 800;
  gap: .45rem;
  justify-content: center;
  padding: .78rem .85rem;
}

.dash-tab:hover,
.dash-tab.is-active {
  background: var(--tb-slate);
  color: #fff;
}

.dash-tab-panel {
  display: none;
}

.dash-tab-panel.is-active {
  display: block;
}

.tool-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-card,
.history-panel,
.dash-helper,
.schedule-card {
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: 8px;
}

.tool-card {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.primary-tool {
  border-top: 4px solid var(--tb-topaz);
}

.tool-card-top {
  align-items: start;
  display: grid;
  gap: .85rem;
  grid-template-columns: 42px minmax(0, 1fr);
}

.tool-card-top > i {
  align-items: center;
  background: #eef4f4;
  border-radius: 8px;
  color: var(--tb-topaz);
  display: inline-flex;
  font-size: 1.35rem;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.tool-card h2 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  margin: 0 0 .35rem;
}

.tool-card p {
  color: var(--tb-muted);
  line-height: 1.55;
  margin: 0;
}

.tool-form {
  display: grid;
  gap: .65rem;
}

.tool-form input,
.tool-form select,
.report-form select {
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  color: var(--tb-ink);
  font: inherit;
  min-width: 0;
  padding: .82rem;
  width: 100%;
}

.split-form {
  grid-template-columns: minmax(0, 1fr) minmax(96px, 180px);
}

.split-form button {
  grid-column: 1 / -1;
}

.report-form {
  display: grid;
  gap: .65rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.dash-helper {
  align-items: center;
  display: grid;
  gap: .9rem;
  grid-template-columns: 44px minmax(0, 1fr);
  margin-top: 1rem;
  padding: 1rem 1.25rem;
}

.dash-helper i {
  color: var(--tb-topaz);
  font-size: 1.6rem;
}

.dash-helper p {
  color: var(--tb-muted);
  margin: 0;
}

.dash-helper b {
  color: var(--tb-ink);
}

.history-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.wide-history {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.history-panel {
  padding: 1.1rem;
}

.compact-title {
  align-items: start;
  margin: 0 0 .75rem;
}

.compact-title h2 {
  font-size: 1.1rem;
}

.compact-title p {
  font-size: .92rem;
}

.mini-report-link,
.schedule-card {
  align-items: center;
  color: var(--tb-ink);
  display: grid;
  gap: .75rem;
  grid-template-columns: 42px minmax(0, 1fr);
  padding: .72rem 0;
  text-decoration: none;
}

.mini-report-link + .mini-report-link,
.schedule-card + .schedule-card {
  border-top: 1px solid var(--tb-line);
}

.mini-report-link > i {
  align-items: center;
  background: #eef4f4;
  border-radius: 8px;
  color: var(--tb-topaz);
  display: inline-flex;
  font-size: 1.15rem;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.mini-report-link span,
.schedule-card b {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-report-link small,
.schedule-card small,
.empty-copy {
  color: var(--tb-muted);
}

.schedule-card {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) auto;
}

.schedule-card .row-actions {
  justify-content: flex-end;
}

.action-plan-hero {
  align-items: center;
  background: var(--tb-dark);
  border-radius: 8px;
  color: #f6f0e7;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin: 1.25rem 0 1.5rem;
  padding: 1.25rem;
}

.action-plan-hero h2 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.35rem;
  margin: .25rem 0;
}

.action-plan-hero p {
  color: #d7dce2;
  margin: 0;
  max-width: 760px;
}

.progress-hero {
  background: #24374d;
}

.progress-form {
  display: grid;
  gap: .65rem;
  grid-template-columns: 170px auto;
}

.progress-form select {
  background: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  color: var(--tb-ink);
  font: inherit;
  padding: .78rem;
}

.schedule-panel {
  align-items: center;
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
  margin: 1rem 0 1.5rem;
  padding: 1.25rem;
}

.schedule-panel h2 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  margin: .25rem 0;
}

.schedule-panel p {
  color: var(--tb-muted);
  margin: 0;
}

.schema-panel,
.refresh-panel {
  align-items: center;
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 660px);
  margin: 1rem 0 1.5rem;
  padding: 1.25rem;
}

.schema-panel h2,
.refresh-panel h2 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  margin: .25rem 0;
}

.schema-panel p,
.refresh-panel p {
  color: var(--tb-muted);
  margin: 0;
}

.schedule-form {
  display: grid;
  gap: .65rem;
  grid-template-columns: minmax(0, 1fr) 86px auto;
}

.schema-form {
  display: grid;
  gap: .65rem;
  grid-template-columns: minmax(0, 1fr) 190px auto;
}

.refresh-form {
  display: grid;
  gap: .65rem;
  grid-template-columns: minmax(0, 1fr) 190px auto;
}

.schedule-form input,
.schema-form input,
.refresh-form input,
.schema-form select,
.schema-mini-form select {
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  color: var(--tb-ink);
  font: inherit;
  min-width: 0;
  padding: .82rem;
}

.schema-mini-form {
  border-top: 1px solid var(--tb-line);
  display: grid;
  gap: .55rem;
  margin-top: 1rem;
  padding-top: 1rem;
}

.schema-mini-form label {
  color: var(--tb-slate);
  font-weight: 800;
}

.schedule-row {
  grid-template-columns: 58px minmax(0, 1fr) 160px 190px minmax(300px, auto);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: flex-end;
}

.row-actions form {
  margin: 0;
}

.row-actions .btn-line {
  font-size: .86rem;
  padding: .45rem .6rem;
}

.danger-link {
  border-color: rgba(196,77,55,.38);
  color: #a53d2a;
}

.schedule-error {
  color: #a53d2a;
  grid-column: 2 / -1;
}

.dash-section-title {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 2rem 0 .8rem;
}

.dash-section-title h2 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  margin: 0;
}

.dash-section-title p {
  color: var(--tb-muted);
  margin: 0;
  max-width: 640px;
  text-align: right;
}

.report-table {
  margin-top: 1.5rem;
}

.report-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  color: var(--tb-ink);
  display: grid;
  gap: .8rem;
  grid-template-columns: 58px minmax(0, 1fr) 100px 190px;
  margin-bottom: .6rem;
  padding: .75rem;
  text-decoration: none;
}

.report-row:hover {
  border-color: var(--tb-topaz);
  color: var(--tb-ink);
}

.refresh-row span:nth-child(3) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-score {
  border-width: 3px;
  height: 42px;
  width: 42px;
}

.big-score {
  border-width: 8px;
  flex: 0 0 124px;
  font-size: 2.3rem;
  height: 124px;
  width: 124px;
}

.score-good {
  background: #eef7f2;
  border-color: var(--tb-green);
  color: var(--tb-green);
}

.score-ok {
  background: #fff7e9;
  border-color: var(--tb-topaz);
  color: var(--tb-rust);
}

.score-bad {
  background: #fff1ee;
  border-color: #c44d37;
  color: #a53d2a;
}

.report-target {
  color: var(--tb-muted);
  overflow-wrap: anywhere;
}

.metric-grid {
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(6, 1fr);
  margin-bottom: 1rem;
}

.metric-grid div {
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  padding: 1rem;
}

.metric-grid span {
  color: var(--tb-muted);
  display: block;
  font-size: .8rem;
  text-transform: uppercase;
}

.metric-grid strong {
  display: block;
  font-size: 1.3rem;
  margin-top: .25rem;
}

.two-col {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.panel {
  padding: 1.25rem;
}

.fix {
  border-left: 4px solid var(--tb-line);
  padding: 1rem 0 1rem 1rem;
}

.fix + .fix {
  border-top: 1px solid var(--tb-line);
}

.fix.high {
  border-left-color: #c44d37;
}

.fix.medium {
  border-left-color: var(--tb-topaz);
}

.fix.low {
  border-left-color: var(--tb-sky);
}

.fix-top {
  display: flex;
  gap: .5rem;
}

.fix-top span {
  color: var(--tb-rust);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fix h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  margin: .35rem 0;
}

.fix p {
  color: var(--tb-muted);
  margin-bottom: .4rem;
}

.fix b {
  color: var(--tb-ink);
  font-weight: 700;
}

.snapshot dt {
  color: var(--tb-slate);
  font-weight: 800;
  margin-top: .9rem;
}

.snapshot dd {
  overflow-wrap: anywhere;
}

.empty-state,
.legal-page {
  padding: 3rem;
  text-align: center;
}

.empty-state.compact {
  padding: 1.5rem;
}

.empty-state i {
  color: var(--tb-topaz);
  font-size: 2rem;
}

.link-suggestions article {
  border-left: 4px solid var(--tb-topaz);
  padding: 1rem 0 1rem 1rem;
}

.link-suggestions article + article {
  border-top: 1px solid var(--tb-line);
}

.link-suggestions p {
  color: var(--tb-muted);
  margin-bottom: .4rem;
  overflow-wrap: anywhere;
}

.page-score-list {
  display: grid;
  gap: .75rem;
}

.page-score-list > div {
  align-items: start;
  display: grid;
  gap: .7rem;
  grid-template-columns: 42px minmax(0, 1fr);
}

.page-score-list p {
  margin: 0;
  min-width: 0;
}

.page-score-list a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-score-list small {
  color: var(--tb-muted);
  display: block;
  margin-top: .15rem;
}

.gsc-layout {
  align-items: start;
}

.gsc-form {
  display: grid;
  gap: 1rem;
}

.gsc-form label span {
  color: var(--tb-slate);
  display: block;
  font-weight: 800;
  margin-bottom: .35rem;
}

.gsc-form input,
.gsc-form textarea {
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  color: var(--tb-ink);
  display: block;
  font: inherit;
  padding: .8rem;
  width: 100%;
}

.gsc-form textarea {
  min-height: 190px;
  resize: vertical;
}

.opportunity-rules {
  display: grid;
  gap: .75rem;
}

.opportunity-rules article {
  border-left: 4px solid var(--tb-topaz);
  padding-left: .9rem;
}

.opportunity-rules b {
  color: var(--tb-slate);
}

.opportunity-rules p {
  color: var(--tb-muted);
  margin: .2rem 0 0;
}

.gsc-opportunities article {
  border-left: 4px solid var(--tb-topaz);
  padding: 1rem 0 1rem 1rem;
}

.gsc-opportunities article + article {
  border-top: 1px solid var(--tb-line);
}

.gsc-opportunities h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.gsc-opportunities p {
  color: var(--tb-muted);
  margin-bottom: .45rem;
}

.gsc-opportunities b {
  color: var(--tb-ink);
}

.inline-action-form {
  margin-top: .85rem;
}

.inline-action-form .btn-main {
  font-size: .92rem;
  padding: .62rem .8rem;
}

.query-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .7rem 0;
}

.query-chips span {
  background: #eef4f4;
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  color: var(--tb-ink);
  font-size: .88rem;
  padding: .38rem .55rem;
}

.query-chips small {
  color: var(--tb-muted);
}

.refresh-sections article {
  border-left: 4px solid var(--tb-sky);
  padding: 1rem 0 1rem 1rem;
}

.refresh-sections article + article,
.refresh-checklist article + article {
  border-top: 1px solid var(--tb-line);
}

.refresh-sections h3,
.refresh-checklist h3 {
  font-family: var(--font-body);
}

.refresh-sections p,
.refresh-checklist p {
  color: var(--tb-muted);
  line-height: 1.55;
  margin: .45rem 0;
}

.refresh-sections b,
.refresh-checklist b {
  color: var(--tb-ink);
}

.refresh-checklist article {
  padding: .85rem 0;
}

.refresh-questions span {
  line-height: 1.35;
}

.progress-highlights article {
  border-left: 4px solid var(--tb-green);
  padding: 1rem 0 1rem 1rem;
}

.progress-highlights article + article,
.progress-steps article + article {
  border-top: 1px solid var(--tb-line);
}

.progress-highlights h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  margin: .35rem 0;
}

.progress-highlights p,
.progress-steps p {
  color: var(--tb-muted);
  line-height: 1.55;
  margin: .4rem 0;
}

.progress-steps article {
  padding: .85rem 0;
}

.progress-steps b {
  color: var(--tb-ink);
}

.progress-steps small {
  color: var(--tb-slate);
  font-weight: 800;
}

.action-stack {
  display: grid;
  gap: .6rem;
  margin-bottom: 1rem;
}

.snippet-options article {
  border-left: 4px solid var(--tb-green);
  padding: 1rem 0 1rem 1rem;
}

.snippet-options article + article {
  border-top: 1px solid var(--tb-line);
}

.snippet-options h3 {
  color: var(--tb-ink);
  font-family: var(--font-body);
  font-size: 1.12rem;
  margin: .45rem 0;
}

.snippet-options p {
  color: var(--tb-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: .45rem;
}

.snippet-options b {
  color: var(--tb-ink);
}

.action-items {
  display: grid;
  gap: .85rem;
}

.action-items article {
  background: #fff;
  border: 1px solid var(--tb-line);
  border-left: 5px solid var(--tb-topaz);
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 1rem;
}

.action-items article.priority-critical {
  border-left-color: #c44d37;
}

.action-items article.priority-high {
  border-left-color: var(--tb-topaz);
}

.action-items article.priority-medium {
  border-left-color: var(--tb-sky);
}

.action-items article.priority-low {
  border-left-color: var(--tb-green);
}

.action-rank {
  align-items: center;
  background: #eef4f4;
  border-radius: 8px;
  color: var(--tb-slate);
  display: inline-flex;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.action-items h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  margin: .35rem 0;
}

.action-items p {
  color: var(--tb-muted);
  margin-bottom: .4rem;
}

.action-items b {
  color: var(--tb-ink);
  display: block;
  margin-bottom: .5rem;
}

.action-page {
  color: var(--tb-slate) !important;
  font-size: .9rem;
  overflow-wrap: anywhere;
}

.source-link {
  font-size: .92rem;
  font-weight: 800;
}

.schema-code {
  background: #16202c;
  border-radius: 8px;
  color: #f6f0e7;
  font-size: .92rem;
  line-height: 1.55;
  max-height: 640px;
  overflow: auto;
  padding: 1rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.warning-list p {
  background: #fff7e9;
  border: 1px solid rgba(240,138,36,.28);
  border-radius: 8px;
  color: var(--tb-rust);
  margin-bottom: .5rem;
  padding: .75rem;
}

.instruction-list {
  color: var(--tb-muted);
  padding-left: 1.2rem;
}

.instruction-list li + li {
  margin-top: .4rem;
}

.legal-page {
  min-height: 64vh;
  text-align: left;
}

.legal-page .container {
  max-width: 820px;
}

@media (max-width: 991px) {
  .hero {
    background: var(--tb-dark);
    min-height: 0;
  }

  .feature-grid,
  .pricing-grid,
  .dash-tools,
  .workflow-strip,
  .tool-grid,
  .history-grid,
  .wide-history,
  .action-plan-hero,
  .progress-form,
  .report-form,
  .split-form,
  .schedule-panel,
  .schedule-form,
  .schema-panel,
  .schema-form,
  .refresh-panel,
  .refresh-form,
  .workflow,
  .two-col {
    display: grid;
    grid-template-columns: 1fr;
  }

  .split-form button {
    grid-column: auto;
  }

  .dash-tabs {
    grid-template-columns: repeat(2, 1fr);
    position: static;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .audit-form,
  .report-row,
  .dash-head,
  .report-header,
  .schedule-card {
    display: block;
  }

  .audit-form input,
  .audit-form button {
    width: 100%;
  }

  .audit-form button {
    margin-top: .5rem;
  }

  .dash-stats {
    justify-content: flex-start;
    margin-top: 1rem;
  }

  .dash-stats span {
    flex: 1 1 calc(50% - .5rem);
  }

  .dash-tab {
    justify-content: flex-start;
  }

  .tool-card-top,
  .dash-helper {
    grid-template-columns: 1fr;
  }

  .mini-report-link {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .mini-report-link > i,
  .mini-report-link .mini-score {
    height: 36px;
    width: 36px;
  }

  .dash-section-title {
    align-items: start;
    display: block;
  }

  .dash-section-title p {
    margin-top: .3rem;
    text-align: left;
  }

  .report-row > * {
    margin-bottom: .4rem;
  }

  .big-score {
    margin-top: 1rem;
  }

  .metric-grid,
  .metric-strip {
    grid-template-columns: 1fr;
  }
}

/* --- My Sites landing + per-site workspace --- */

.site-add-card {
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(48,74,102,.08);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
}
.site-add-card h2 {
  font-size: 1.25rem;
  margin: 0 0 .35rem;
}
.site-add-card p {
  color: var(--tb-muted);
  margin: 0;
}
.site-add-card .tool-form {
  margin: 0;
}

.sites-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  margin-bottom: 2rem;
}

.site-card {
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(48,74,102,.06);
  color: var(--tb-ink);
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.site-card:hover {
  border-color: var(--tb-topaz);
  box-shadow: 0 18px 44px rgba(48,74,102,.12);
  color: var(--tb-ink);
  transform: translateY(-2px);
}

.site-card-head {
  align-items: flex-start;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
}
.site-card-name {
  align-items: center;
  display: flex;
  gap: .6rem;
}
.site-card-name i {
  color: var(--tb-topaz);
  font-size: 1.4rem;
}
.site-card-name strong {
  color: var(--tb-slate);
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.site-card-name small {
  color: var(--tb-muted);
  display: block;
  font-size: .8rem;
  word-break: break-all;
}
.site-card-new {
  background: rgba(58,124,165,.12);
  border-radius: 6px;
  color: var(--tb-sky);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: .3rem .55rem;
  text-transform: uppercase;
}

.site-card-stats {
  color: var(--tb-muted);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  font-size: .85rem;
}
.site-card-stats b {
  color: var(--tb-ink);
}

.site-card-cta {
  align-items: center;
  border-top: 1px solid var(--tb-line);
  color: var(--tb-topaz);
  display: flex;
  font-weight: 700;
  gap: .35rem;
  justify-content: space-between;
  padding-top: .7rem;
}

.sites-howto {
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
}
.sites-howto h2 {
  font-size: 1.2rem;
  margin: 0 0 .6rem;
}
.sites-howto ol {
  color: var(--tb-ink);
  line-height: 1.65;
  margin: 0;
  padding-left: 1.2rem;
}

.site-crumb {
  margin-bottom: .65rem;
}
.site-crumb a {
  color: var(--tb-muted);
  font-weight: 600;
  text-decoration: none;
}
.site-crumb a:hover {
  color: var(--tb-topaz);
}

.site-head {
  align-items: end;
}
.site-head-actions {
  align-items: center;
  display: flex;
  gap: .5rem;
}
.site-head-actions form {
  margin: 0;
}

.site-progress {
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  padding: 1rem 1.2rem;
}
.site-progress p {
  color: var(--tb-muted);
  margin: .55rem 0 0;
}
.site-progress-bar {
  background: rgba(48,74,102,.1);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  position: relative;
}
.site-progress-bar span {
  background: var(--tb-topaz);
  border-radius: 999px;
  display: block;
  height: 100%;
  transition: width .25s ease-out;
}

.next-step-card {
  background: linear-gradient(135deg, rgba(240,138,36,.08) 0%, rgba(58,124,165,.05) 100%);
  border: 1px solid var(--tb-topaz);
  border-radius: 12px;
  margin-bottom: 2rem;
  padding: 1.6rem 1.8rem;
}
.next-step-card h2 {
  font-size: 1.6rem;
  margin: .35rem 0 .65rem;
}
.next-step-badge {
  background: var(--tb-topaz);
  border-radius: 999px;
  color: #16120e;
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .3rem .75rem;
  text-transform: uppercase;
}
.next-step-why {
  color: var(--tb-ink);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 1rem;
  max-width: 760px;
}
.next-step-locked {
  background: rgba(48,74,102,.06);
  border: 1px dashed var(--tb-line);
  border-radius: 8px;
  color: var(--tb-muted);
  margin: 0;
  padding: .8rem 1rem;
}
.next-step-done {
  border-color: var(--tb-green);
  background: rgba(33,131,91,.06);
}

.section-h {
  font-size: 1.3rem;
  margin: 2rem 0 .9rem;
}

.checklist {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}
.checklist-step {
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: 10px;
  display: grid;
  gap: 1rem;
  grid-template-columns: 56px 1fr;
  margin-bottom: .8rem;
  padding: 1.1rem 1.3rem;
}
.checklist-step.is-done {
  background: rgba(33,131,91,.04);
  border-color: rgba(33,131,91,.4);
}
.checklist-step.is-next {
  border-color: var(--tb-topaz);
  box-shadow: 0 0 0 3px rgba(240,138,36,.12);
}
.checklist-marker {
  align-items: center;
  display: flex;
  justify-content: center;
}
.checklist-marker i {
  font-size: 1.8rem;
}
.checklist-step.is-done .checklist-marker i {
  color: var(--tb-green);
}
.checklist-step.is-next .checklist-marker i {
  color: var(--tb-topaz);
}
.checklist-num {
  align-items: center;
  background: rgba(48,74,102,.08);
  border-radius: 50%;
  color: var(--tb-muted);
  display: inline-flex;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  width: 36px;
}
.checklist-body h3 {
  font-size: 1.05rem;
  margin: 0;
}
.checklist-body h3 small {
  color: var(--tb-muted);
  font-size: .8rem;
  font-weight: 500;
  margin-left: .35rem;
}
.checklist-row {
  align-items: center;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
}
.checklist-status {
  background: rgba(33,131,91,.12);
  border-radius: 6px;
  color: var(--tb-green);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: .25rem .55rem;
  text-transform: uppercase;
}
.checklist-why {
  color: var(--tb-muted);
  line-height: 1.6;
  margin: .4rem 0 .8rem;
}
.checklist-locked {
  background: rgba(48,74,102,.06);
  border: 1px dashed var(--tb-line);
  border-radius: 8px;
  color: var(--tb-muted);
  margin: 0;
  padding: .55rem .85rem;
}
.inline-checklist-form {
  margin-top: 0;
}

@media (max-width: 720px) {
  .site-add-card {
    grid-template-columns: 1fr;
  }
  .site-head {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
  }
  .site-head-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .checklist-step {
    grid-template-columns: 40px 1fr;
    padding: 1rem;
  }
}

/* --- workspace forms (wf-form): input + selects + button on one row --- */
.wf-form {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 0;
  width: 100%;
}
.wf-form .wf-input {
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  color: var(--tb-ink);
  flex: 1 1 220px;
  font: inherit;
  min-width: 0;
  padding: .82rem;
}
.wf-form .wf-input-narrow {
  flex: 0 1 200px;
}
.wf-select-wrap {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  padding: .25rem .65rem .35rem;
  position: relative;
}
.wf-select-label {
  color: var(--tb-muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.wf-select {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--tb-ink);
  font: inherit;
  font-weight: 600;
  outline: none;
  padding: .15rem 1.3rem .15rem 0;
  background-image: linear-gradient(45deg, transparent 50%, var(--tb-muted) 50%),
                    linear-gradient(135deg, var(--tb-muted) 50%, transparent 50%);
  background-position: calc(100% - 9px) 12px, calc(100% - 4px) 12px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.wf-submit {
  align-self: stretch;
  flex: 0 0 auto;
  margin-top: 0;
  white-space: nowrap;
}
.wf-form-hero .wf-input {
  font-size: 1.05rem;
  padding: 1rem;
}
.wf-form-hero .wf-submit {
  font-size: 1.05rem;
}

.checklist-done-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.checklist-done-actions .wf-form {
  width: auto;
  flex: 1 1 320px;
}
.checklist-done-actions .btn-line {
  flex: 0 0 auto;
}

/* --- 2-col tool grid (used on workspace "More tools" section) --- */
.tool-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* --- Single-column history list with clean rows --- */
.hist-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.hist-block {
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
}
.hist-block-head {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .85rem;
  margin-bottom: .8rem;
}
.hist-block-head h3 {
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 1.05rem;
  gap: .5rem;
  margin: 0;
}
.hist-block-head h3 i {
  color: var(--tb-topaz);
}
.hist-block-head small {
  color: var(--tb-muted);
}

.hist-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hist-rows li + li .hist-row {
  border-top: 1px solid var(--tb-line);
}
.hist-row {
  align-items: center;
  color: var(--tb-ink);
  display: flex;
  gap: .9rem;
  padding: .7rem 0;
  text-decoration: none;
  transition: background .12s;
}
.hist-row:hover {
  background: rgba(48,74,102,.04);
  color: var(--tb-ink);
}
.hist-row > .mini-score {
  flex: 0 0 42px;
  height: 42px;
  width: 42px;
}
.hist-row-icon {
  align-items: center;
  background: #eef4f4;
  border-radius: 8px;
  color: var(--tb-topaz);
  display: inline-flex;
  flex: 0 0 42px;
  font-size: 1.15rem;
  height: 42px;
  justify-content: center;
  width: 42px;
}
.hist-row-body {
  flex: 1 1 auto;
  min-width: 0;
}
.hist-row-body strong {
  color: var(--tb-ink);
  display: block;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hist-row-body small {
  color: var(--tb-muted);
  display: block;
  margin-top: .15rem;
}
.hist-row-chev {
  color: var(--tb-muted);
  flex: 0 0 auto;
}

.schedule-row {
  align-items: center;
  border-top: 1px solid var(--tb-line);
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  padding: .8rem 0;
}
.schedule-row:first-of-type {
  border-top: 0;
}
.schedule-row-body {
  flex: 1 1 280px;
  min-width: 0;
}
.schedule-row-body strong {
  display: block;
  font-weight: 600;
}
.schedule-row-body small {
  color: var(--tb-muted);
  display: block;
}

/* override the old global rule that forces buttons onto a new row */
.split-form .wf-submit,
.split-form button {
  grid-column: auto;
}

@media (max-width: 720px) {
  .wf-form .wf-input,
  .wf-form .wf-input-narrow,
  .wf-submit {
    flex: 1 1 100%;
  }
  .wf-select-wrap {
    flex: 1 1 100%;
  }
  .tool-grid-2 {
    grid-template-columns: 1fr;
  }
}
