:root {
  --bg: #eff6ff;
  --bg-soft: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #f3f4f6;
  --border: #e5e7eb;
  --border-strong: #d1d5db;

  --text: #111827;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;

  --brand: #4f46e5;
  --brand-hover: #4338ca;
  --brand-soft: #eef2ff;
  --brand-mid: #625fff;

  --green: #16a34a;
  --green-border: #22c55e;
  --green-soft: #f0fdf4;

  --mint: #059669;
  --mint-dim: #ecfdf5;
  --amber: #d97706;
  --amber-dim: #fffbeb;
  --blue: #4f46e5;
  --blue-dim: #eef2ff;
  --coral: #dc2626;
  --coral-dim: #fef2f2;

  --font-display: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 0.5rem;
  --radius-pill: 999px;
  --shadow-soft: 0 1px 2px #0000000d, 0 4px 16px #0000000a;
  --shadow-md: 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;
  --shadow-lg: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
  --transition-fast: .15s ease-in-out;
  --color-primary-600: #4f46e5;
  --color-primary-700: #4338ca;
  --color-primary-800: #3730a3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* Offset for fixed header (hidden on login gate) */
body:not(.auth-locked) {
  padding-top: 53px;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ---------- Hero (mirrors dailycodesolutions.com homepage hero) ---------- */
main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.hero {
  --color-primary-600: #4f46e5;
  --color-primary-700: #4338ca;
  --color-primary-800: #3730a3;
  --color-secondary-600: #0284c7;
  --color-gray-600: #4b5563;
  --color-gray-900: #111827;
  --font-size-xs: .75rem;
  --font-size-lg: 1rem;
  --font-size-xl: 1.125rem;
  --font-size-5xl: 2.05rem;
  --font-size-6xl: 2.4rem;
  --radius-lg: .5rem;
  --shadow-md: 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;
  --shadow-lg: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
  --transition-fast: .15s ease-in-out;

  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, #dbeafe 0%, transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #eff6ff 55%, #eff6ff 100%);
  text-align: center;
  padding: 2.75rem 1rem 2rem;
}

.hero__container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 640px) {
  .hero__container { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .hero__container { padding: 0 2rem; }
}

.hero-heading {
  font-family: var(--font-display);
  font-size: var(--font-size-5xl);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.025em;
  margin: 0 auto 1rem;
  max-width: 18ch;
  background: linear-gradient(135deg, var(--color-gray-900), var(--color-primary-800));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp .6s ease-out both;
}

@media (min-width: 768px) {
  .hero-heading { font-size: var(--font-size-6xl); }
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary-600), var(--color-secondary-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  color: var(--color-gray-600);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  max-width: 40rem;
  margin: 0 auto;
  animation: fadeInUp .6s ease-out .08s both;
}

@media (min-width: 768px) {
  .hero-text {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
  }
}

.hero__cta-wrap {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  animation: fadeInUp .6s ease-out .16s both;
}

.btn-base {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary-600), var(--color-primary-700));
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-700), var(--color-primary-800));
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-secondary {
  color: #4338ca;
  background: #fff;
  border: 1px solid #c7d2fe;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.btn-secondary:hover {
  background: #eef2ff;
  border-color: #a5b4fc;
  transform: translateY(-1px);
}

.btn-lg {
  font-size: 1rem;
  min-height: 2.65rem;
  padding: .7rem 1.4rem;
}

.hero__proof {
  margin-top: 1.75rem;
  animation: fadeIn .6s ease-out .24s both;
}

.text-caption {
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.4;
  color: #6b7280;
  margin: 0 0 .65rem;
}

.hero__brands {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem .7rem;
  opacity: .7;
}

.hero__brands span {
  font-size: .85rem;
  color: #4b5563;
  font-weight: 500;
}

.hero__arrow {
  color: #9ca3af;
  font-weight: 400;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(2rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 16px 48px;
  background: transparent;
}

.glance {
  margin-bottom: 8px;
}
.glance__head {
  margin-bottom: 12px;
}
.glance__title {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
}
.glance__desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  text-align: left;
  margin-bottom: 22px;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.stat:hover {
  border-color: #c7d2fe;
  box-shadow: 0 1px 2px rgba(79, 70, 229, .08);
}
.stat:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.stat.is-active {
  border-color: var(--brand);
  background: #eef2ff;
  box-shadow: 0 0 0 1px rgba(79, 70, 229, .2);
}
.stat__value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: block;
  color: var(--text);
}
.stat__label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
  display: block;
}
.stat--mint .stat__value { color: var(--mint); }
.stat--amber .stat__value { color: var(--amber); }
.stat--blue .stat__value { color: var(--brand); }
.stat--coral .stat__value { color: var(--coral); }
.stat--starter .stat__value { color: #0f766e; }
.stat--starter.is-active {
  border-color: #0d9488;
  background: #f0fdfa;
  box-shadow: 0 0 0 1px rgba(13, 148, 136, .2);
}
#toolResults {
  scroll-margin-top: 5.5rem;
}

.stat--new.is-active {
  border-color: #f59e0b;
  background: #fffbeb;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, .25);
}

/* Aim first view at hero + stats; filters stay below */
@media (max-height: 820px) {
  .hero {
    padding: 2.25rem 1rem 1.65rem;
  }
  .hero__proof {
    margin-top: 1.35rem;
  }
}

/* ---------- Controls (compact filter panel) ---------- */
.controls {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .875rem;
  padding: 1rem 1.1rem .95rem;
  margin-bottom: 20px;
}

.controls__header {
  margin-bottom: .75rem;
}

.controls__title {
  margin: 0 0 .2rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #111827;
  line-height: 1.3;
}

.controls__desc {
  margin: 0;
  font-size: .78rem;
  line-height: 1.45;
  color: #6b7280;
  max-width: 40rem;
}

.controls__row {
  display: flex;
  gap: 8px;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}

.search {
  position: relative;
  flex: 1 1 240px;
}
.search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--text-faint);
  pointer-events: none;
}
.search input {
  width: 100%;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  padding: 9px 12px 9px 34px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  transition: border-color .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--text-faint); }
.search input:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px #625fff26;
  background: #fff;
}

select {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12.5px;
  padding: 0 12px;
  min-height: 38px;
  cursor: pointer;
}

.btn-compare {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: #4338ca;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-sm);
  padding: 0 14px;
  min-height: 38px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-compare:hover,
.btn-compare.is-active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}

.chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.filter-groups {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.filter-group__label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: .01em;
  margin-bottom: .35rem;
}

.status-guide {
  margin-top: .65rem;
}

.status-guide__summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  user-select: none;
}

.status-guide__summary::-webkit-details-marker { display: none; }

.status-guide__summary::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid currentColor;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  opacity: .7;
  transition: transform .15s;
}

.status-guide[open] .status-guide__summary::before {
  transform: rotate(90deg);
}

.status-guide__summary:hover {
  color: #4338ca;
}

.status-guide__list {
  margin: .55rem 0 0;
  padding: .65rem .75rem;
  display: grid;
  gap: .45rem;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 10px;
}

.status-guide__row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 9.5rem) 1fr;
  gap: .5rem 1rem;
  align-items: baseline;
}

.status-guide__row dt {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.status-guide__row dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: #64748b;
}

.status-guide__swatch {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.status-guide__swatch--starter { background: #059669; }
.status-guide__swatch--mint { background: #10b981; }
.status-guide__swatch--amber { background: #f59e0b; }
.status-guide__swatch--blue { background: #3b82f6; }
.status-guide__swatch--coral { background: #f43f5e; }

@media (max-width: 520px) {
  .status-guide__row {
    grid-template-columns: 1fr;
    gap: .15rem;
  }
}

.filter-more {
  border-top: 1px solid #f3f4f6;
  padding-top: .55rem;
}

.filter-more__summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #4338ca;
  user-select: none;
}

.filter-more__summary::-webkit-details-marker { display: none; }

.filter-more__summary::before {
  content: "▸";
  font-size: 11px;
  transition: transform .15s;
}

.filter-more[open] .filter-more__summary::before {
  transform: rotate(90deg);
}

.filter-more__hint {
  font-weight: 500;
  color: #9ca3af;
  font-size: 11.5px;
}

.filter-more__body {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-top: .65rem;
}

.chip {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  padding: .35rem .75rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #334155;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  user-select: none;
  line-height: 1.35;
}
.chip:hover {
  border-color: #d1d5db;
  background: #f3f4f6;
}
.chip.active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}

.chip--starter {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #065f46;
  font-weight: 600;
}

.chip--starter:hover {
  border-color: #6ee7b7;
  background: #d1fae5;
}

.chip--starter.active {
  background: #059669;
  border-color: #059669;
  color: #fff;
}

/* ---------- Results ---------- */
.resultbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.linkbtn {
  background: none;
  border: none;
  color: var(--brand);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}
.linkbtn:hover { text-decoration: underline; text-underline-offset: 2px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding-bottom: 48px;
}

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  animation: cardIn .35s ease backwards;
  position: relative;
}
.card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 8px 24px -12px #4f46e533;
  transform: translateY(-2px);
}
.card--selected {
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px #625fff33;
}

.card__compare {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #4338ca;
  cursor: pointer;
  user-select: none;
}
.card__compare input {
  width: 14px;
  height: 14px;
  accent-color: #4f46e5;
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.card__badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.card__default {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}
.card__new {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #1e40af;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}

.card__identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.card__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.card__logo img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}
.card__logo.is-fallback::before {
  content: attr(data-letter);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #4f46e5;
}

.card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #111827;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.3;
}

.badge {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.badge--mint { background: var(--mint-dim); color: var(--mint); }
.badge--amber { background: var(--amber-dim); color: var(--amber); }
.badge--blue { background: var(--blue-dim); color: var(--brand); }
.badge--coral { background: var(--coral-dim); color: var(--coral); }

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.45rem;
  margin-bottom: 0.15rem;
}

.card__desc {
  font-size: .875rem;
  color: #4b5563;
  line-height: 1.5;
  margin: 0.35rem 0 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(1.5em * 3); /* hard cap: exactly 3 lines */
  flex: 0 0 auto;
}

.card__guide {
  margin: .35rem 0 0;
  font-size: .78rem;
  line-height: 1.4;
  color: #4338ca;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.card__meta {
  margin-top: .4rem;
  font-size: .7rem;
  color: #94a3b8;
}

.card__tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: #4f46e5;
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 9999px;
  padding: 4px 12px;
  line-height: 1.4;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  line-height: 1;
}
.star {
  font-size: 16px;
  color: #e5e7eb;
}
.star--full {
  color: #f59e0b;
}
.star--half {
  color: #f59e0b;
  opacity: .55;
}
.star--empty {
  color: #e5e7eb;
}

.modal__stars-row {
  margin: 6px 0 8px;
}

.card__notes {
  font-size: 12.5px;
  color: #9ca3af;
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
  line-height: 1.5;
  margin: 0;
}

.card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  margin-top: 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: #4f46e5;
  color: #fff;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: background .15s;
  cursor: pointer;
  box-sizing: border-box;
}
.card__cta:hover {
  background: #4338ca;
  text-decoration: none;
}
.card__actions {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  margin-top: auto;
  padding-top: 0.75rem;
}
.card__cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  padding: 8px 14px;
  border-radius: 8px;
  background: transparent;
  color: #4338ca;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #c7d2fe;
  transition: background .15s, border-color .15s;
  box-sizing: border-box;
}
.card__cta-secondary:hover {
  background: #eef2ff;
  border-color: #a5b4fc;
  text-decoration: none;
}
.card__cta--muted {
  background: #eef2ff;
  color: #4338ca;
  cursor: pointer;
}
.card__cta--muted:hover {
  background: #e0e7ff;
}

.compare-banner {
  margin: 0 0 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.modal__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.modal__header .card__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.modal__header .card__logo img {
  width: 26px;
  height: 26px;
}
.modal__header .modal__name {
  margin: 0 0 8px;
}
.modal__meta .card__tag {
  margin-left: 0;
}
.card__tag--assignee {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-weight: 600;
}

.empty {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 0;
  font-size: 14px;
}

footer {
  border-top: 1px solid #dbeafe;
  padding: 32px 24px 64px;
  text-align: center;
  background: var(--bg);
}

body.has-compare-bar footer {
  padding-bottom: 110px;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: opacity .2s ease, transform .2s ease, background .15s ease, box-shadow .15s ease;
}

.back-to-top:hover {
  background: var(--brand-soft);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.back-to-top[hidden] {
  display: none !important;
}

body.has-compare-bar .back-to-top {
  bottom: 5.5rem;
}

body.auth-locked .back-to-top {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

/* ---------- Compare mode ---------- */
.compare-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: none;
  background: #fff;
  border-top: 2px solid var(--brand);
  box-shadow: 0 -8px 28px rgba(15, 23, 42, .18);
}
.compare-bar.is-visible,
.compare-bar:not([hidden]) {
  display: block;
}
.compare-bar[hidden] {
  display: none !important;
}
.compare-bar__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.compare-bar__text {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.compare-bar__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.compare-bar__actions .linkbtn {
  color: var(--text-muted);
  font-size: 13.5px;
}
.compare-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: .65rem 1.2rem;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
  background: #4f46e5;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.compare-bar__btn:hover:not(:disabled) {
  background: #4338ca;
}
.compare-bar__btn:disabled {
  background: #a5b4fc;
  color: #fff;
  cursor: not-allowed;
  opacity: 1;
}

.compare-table-wrap {
  overflow-x: auto;
  margin: 8px 0 24px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 13.5px;
}
.compare-table th,
.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
  color: #374151;
}
.compare-table thead th {
  background: #f8fafc;
  color: #111827;
  font-weight: 600;
}
.compare-table tbody th {
  width: 120px;
  background: #f9fafb;
  color: #6b7280;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .01em;
}
.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.compare-table a:hover {
  color: #1d4ed8;
}
.compare-tool {
  display: flex;
  align-items: center;
  gap: 8px;
}
.compare-tool .card__logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.compare-tool .card__logo img {
  width: 16px;
  height: 16px;
}
.compare-section__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}
.compare-notes {
  display: grid;
  gap: 10px;
}
.compare-note {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
}
.compare-note p {
  margin: 6px 0 0;
  color: #4b5563;
  font-size: 13.5px;
  line-height: 1.5;
}
.compare-note__body {
  color: #6b7280 !important;
}
.compare-empty {
  margin: 0;
  color: #6b7280;
  font-size: 13.5px;
}
.compare-empty code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 1px 5px;
}
footer p {
  max-width: 60ch;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}
footer code {
  font-family: var(--font-mono);
  color: var(--text);
  background: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-size: 12px;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  z-index: 210;
  animation: fadeIn .18s ease;
  overflow-y: auto;
}
.modal-overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 32px 32px;
  position: relative;
  box-shadow: 0 20px 40px #0000001a;
  animation: modalIn .22s cubic-bezier(.2,.8,.2,1);
}

.modal--wide {
  max-width: min(980px, calc(100vw - 32px));
  padding-bottom: 48px;
}

.modal-overlay--stack {
  z-index: 220;
}

.modal--assignment {
  max-width: min(480px, calc(100vw - 32px));
  padding-bottom: 28px;
}

.assignment-meta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.assignment-meta-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e3a8a;
}

.assignment-card__tool {
  margin: -0.35rem 0 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.modal__notes--assignment {
  border-left: 3px solid #f59e0b;
}

/* Keep the sticky compare bar from covering the open comparison panel */
body:has(#compareOverlay:not([hidden])) .compare-bar {
  display: none !important;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, border-color .15s, background .15s;
}
.modal__close:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-muted);
}

.modal__name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 6px 0 12px;
  color: var(--text);
}
.modal__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.modal__meta .card__tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modal__desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
  margin-bottom: 16px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.detail-field__label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: .01em;
  margin-bottom: 4px;
}

.detail-field__value {
  font-size: 13.5px;
  color: #111827;
  line-height: 1.45;
  word-break: break-word;
}

.detail-field--wide {
  grid-column: 1 / -1;
}

.detail-field--wide .card__tags {
  margin-top: 2px;
}

.detail-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.detail-panels .modal__notes {
  margin-bottom: 0;
  height: 100%;
}

.detail-panels:has(> :only-child) {
  grid-template-columns: 1fr;
}

.modal__notes--caution {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 12px 14px;
  border-top: 1px solid #fde68a;
}
.modal__notes--caution strong {
  color: #92400e;
}

@media (max-width: 800px) {
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .detail-grid,
  .detail-panels { grid-template-columns: 1fr; }
}

.modal__notes {
  font-size: 14px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.modal__notes strong {
  color: var(--text);
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  margin-bottom: 6px;
}

.modal__eval .eval-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: baseline;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.modal__eval .eval-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.modal__eval .eval-label::after {
  content: ":";
}

.modal__eval .eval-value {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
}

.modal__eval .eval-note {
  margin-top: 8px;
  color: var(--text-muted);
  line-height: 1.55;
}
.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.modal__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.modal__cta:hover { background: var(--brand-hover); }

.modal__cta--secondary {
  background: #fff;
  color: var(--brand);
  border: 1px solid #c7d2fe;
}
.modal__cta--secondary:hover {
  background: #eef2ff;
  color: var(--brand-hover);
}
.modal__cta--secondary:disabled {
  opacity: .55;
  cursor: not-allowed;
  background: #fff;
  color: #9ca3af;
  border-color: #e5e7eb;
}

.modal__cta--wide {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  border-radius: var(--radius-sm);
}

.suggest-draft-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.suggest-draft-actions .linkbtn {
  align-self: center;
  margin-top: 4px;
}

/* Suggest form — Contact page pattern */
#suggestModal {
  max-width: 600px;
  padding: 22px 24px 20px;
}
#suggestModal .modal__name {
  font-size: 22px;
  text-align: center;
  margin: 0 0 6px;
}
#suggestModal .modal__desc {
  text-align: center;
  max-width: 46ch;
  margin: 0 auto 14px;
  font-size: 13px;
  line-height: 1.45;
}
#suggestModal .modal__close {
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
}
#suggestModal .modal__cta--wide {
  margin-top: 4px;
  padding: 10px 16px;
  font-size: 13.5px;
  min-height: 40px;
}
#suggestModal .field-note {
  margin-top: 10px;
  font-size: 11.5px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field-row .field {
  margin-bottom: 10px;
}
.field label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
}
.field label .req {
  color: #dc2626;
  margin-left: 2px;
}
.field input,
.field textarea,
.field select {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 8px 10px;
  resize: vertical;
  transition: border-color .15s, box-shadow .15s;
  min-height: 36px;
}
.field select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.field textarea { min-height: 64px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .15);
}
.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select {
  border-color: #dc2626;
  background: #fef2f2;
}
.field.is-invalid input:focus,
.field.is-invalid textarea:focus,
.field.is-invalid select:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .15);
}
.field-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: #9ca3af;
}
.field-meta {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 8px;
}
.field-count {
  flex-shrink: 0;
  font-size: 11px;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
}
.field-error {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.35;
  color: #dc2626;
  font-weight: 500;
}
.field-warn {
  margin: 0 0 10px;
  font-size: 11.5px;
  line-height: 1.4;
  color: #b45309;
  font-weight: 500;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 6px 8px;
}
.similar-tool-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.similar-tool-link:hover {
  color: #1e40af;
}
.similar-tool-status {
  font-weight: 500;
  color: #92400e;
}
.field-error--form {
  margin-bottom: 12px;
  text-align: center;
}

.field-note {
  font-size: 12.5px;
  color: var(--text-faint);
  text-align: center;
  margin: 14px 0 0;
  line-height: 1.5;
}

#suggestSuccess {
  text-align: center;
}
#suggestSuccess .modal__desc {
  margin-bottom: 16px;
  font-size: 13px;
}

/* ---------- App navigation & multi-view layout ---------- */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.app-nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.app-nav__inner::-webkit-scrollbar { display: none; }
.app-nav__link {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.app-nav__link:hover { background: var(--brand-soft); color: var(--brand); }
.app-nav__link.is-active {
  background: var(--brand);
  color: #fff;
}
.app-nav__link--signout {
  margin-left: auto;
  color: var(--text-muted);
}
.app-nav__link--signout:hover {
  background: var(--coral-dim);
  color: var(--coral);
}

.view[hidden] { display: none !important; }

.page-hero {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, #dbeafe 0%, transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
  padding: 2rem 1rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero__inner { max-width: 40rem; margin: 0 auto; }
.page-hero__title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
}
.page-hero__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.hero-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
}
.hero--home .hero-heading { max-width: 22ch; }

.content--home { padding-top: 1.25rem; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-soft);
}
.panel--feature {
  background: #fff;
  border-color: #c7d2fe;
  border-left: 4px solid var(--brand);
  box-shadow: 0 4px 18px #4f46e512;
}
.panel--feature .panel__eyebrow {
  color: var(--brand);
}
.panel--feature .panel__title {
  color: var(--text);
}
.panel--feature .totw__name {
  color: var(--text);
}
.panel--feature .totw__desc,
.panel--feature .totw__cat {
  color: var(--text-muted);
}
.panel--feature .totw__guide {
  background: var(--brand-soft);
  border-color: #c7d2fe;
  color: var(--text);
}
.panel--feature .totw__actions .btn-secondary {
  background: var(--brand-soft);
  border-color: #c7d2fe;
  color: var(--brand-hover);
}
.panel--feature .totw__actions .btn-secondary:hover {
  background: #e0e7ff;
  border-color: #a5b4fc;
}
.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.panel__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.85rem;
  flex-shrink: 0;
}
#recentTools {
  scroll-margin-top: 5.5rem;
}
.panel__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand);
}
.panel__title {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 750;
}
.panel__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.home-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 860px) {
  .home-split { grid-template-columns: 1fr; }
}

.home-more {
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  padding: 0.35rem 1rem 1rem;
}
.home-more__summary {
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.75rem 0;
}
.home-more__summary::-webkit-details-marker { display: none; }
.home-more__summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.45rem;
  color: var(--brand);
  transition: transform .15s ease;
}
.home-more[open] .home-more__summary::before {
  transform: rotate(90deg);
}
.home-more[open] .home-more__summary {
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.home-more .home-split {
  margin-top: 0.25rem;
}
.home-more .panel {
  box-shadow: none;
}

.chooser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.chooser-card {
  text-align: left;
  border: 1px solid var(--border);
  border-left-width: 4px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  font: inherit;
  color: inherit;
}
.chooser-card:hover {
  box-shadow: 0 4px 14px #00000014;
  transform: translateY(-1px);
}
.chooser-card.is-active {
  box-shadow: 0 0 0 2px currentColor;
  filter: brightness(0.98);
}
.chooser-tone--research {
  background: #f3e5f5;
  border-color: #ce93d8;
  border-left-color: #7b1fa2;
}
.chooser-tone--writing {
  background: #e8eaf6;
  border-color: #c5cae9;
  border-left-color: #3949ab;
}
.chooser-tone--analysis {
  background: #e3f2fd;
  border-color: #90caf9;
  border-left-color: #1565c0;
}
.chooser-tone--workspace {
  background: #e1f5fe;
  border-color: #81d4fa;
  border-left-color: #0277bd;
}
.chooser-tone--coding {
  background: #e8eaf6;
  border-color: #9fa8da;
  border-left-color: #303f9f;
}
.chooser-tone--scrape {
  background: #fff8e1;
  border-color: #ffe082;
  border-left-color: #f9a825;
}
.chooser-tone--data {
  background: #e0f7fa;
  border-color: #80deea;
  border-left-color: #00838f;
}
.chooser-tone--docs {
  background: #eceff1;
  border-color: #cfd8dc;
  border-left-color: #546e7a;
}
.chooser-tone--decks {
  background: #fce4ec;
  border-color: #f48fb1;
  border-left-color: #c2185b;
}
.chooser-tone--agents {
  background: #e0f2f1;
  border-color: #80cbc4;
  border-left-color: #00796b;
}

.chooser-card__label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}
.chooser-card__desc {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.chooser-result {
  margin-top: 1rem;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid #c7d2fe;
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  background: #eef2ff;
  scroll-margin-top: 5.5rem;
  animation: fadeInUp .35s ease both;
}
.chooser-result.is-flash {
  animation: chooserFlash .7s ease;
}
@keyframes chooserFlash {
  0% { box-shadow: 0 0 0 0 #4f46e555; }
  40% { box-shadow: 0 0 0 6px #4f46e522; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.chooser-result__badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.45rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #4f46e5;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.chooser-result__title {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1.25;
  color: var(--text);
}
.chooser-result__tip {
  margin: 0 0 0.85rem;
  color: #3730a3;
  font-size: 0.95rem;
  font-weight: 550;
  line-height: 1.45;
}
.chooser-result__tools-label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.starter-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.mini-card {
  text-align: left;
  border: 1px solid var(--border);
  border-left-width: 4px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mini-card:hover {
  box-shadow: var(--shadow-soft);
}
.mini-card--tone-assistants {
  background: #e8eaf6;
  border-color: #c5cae9;
  border-left-color: #3949ab;
}
.mini-card--tone-coding {
  background: #e3f2fd;
  border-color: #90caf9;
  border-left-color: #1565c0;
}
.mini-card--tone-scrape {
  background: #fff8e1;
  border-color: #ffe082;
  border-left-color: #f9a825;
}
.mini-card--tone-data {
  background: #e0f7fa;
  border-color: #80deea;
  border-left-color: #00838f;
}
.mini-card--tone-agents {
  background: #e0f2f1;
  border-color: #80cbc4;
  border-left-color: #00796b;
}
.mini-card--tone-decks {
  background: #fce4ec;
  border-color: #f48fb1;
  border-left-color: #c2185b;
}
.mini-card--tone-docs {
  background: #eceff1;
  border-color: #cfd8dc;
  border-left-color: #546e7a;
}
.mini-card--tone-default {
  background: #f5f5f5;
  border-color: #e0e0e0;
  border-left-color: #757575;
}
.mini-card__top {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.mini-card__name {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}
.mini-card__desc {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.totw__identity {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.totw__name {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}
.totw__meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.totw__cat {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.totw__desc {
  margin: 0 0 0.65rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.totw__guide {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  background: var(--brand-soft);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
}
.totw__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.totw__actions .btn-base {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  min-height: 2.15rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  box-sizing: border-box;
}
.totw__actions a.btn-base {
  text-decoration: none;
}

.guide-card {
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: var(--radius);
  padding: 1.1rem;
  margin-bottom: 1rem;
  background: var(--bg-soft);
}

/* Decision guides — expandable category sections */
.guides-categories {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.guide-category {
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  overflow: hidden;
}
.guide-category__summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0.65rem 0.75rem;
  padding: 0.95rem 1rem;
  user-select: none;
}
.guide-category__summary::-webkit-details-marker { display: none; }
.guide-category__chev {
  width: 0;
  height: 0;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  opacity: 0.55;
  transition: transform 0.15s ease;
  color: var(--text-muted);
}
.guide-category[open] .guide-category__chev {
  transform: rotate(90deg);
}
.guide-category__summary:hover {
  background: rgba(255, 255, 255, 0.35);
}
.guide-category__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}
.guide-category__head {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.guide-category__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.guide-category__desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.guide-category__count {
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.guide-category__body {
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.guide-category__body .guide-tips {
  padding-top: 0.85rem;
}

@media (max-width: 640px) {
  .guide-category__summary {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "chev badge"
      "head head"
      "count count";
  }
  .guide-category__chev { grid-area: chev; }
  .guide-category__badge { grid-area: badge; justify-self: start; }
  .guide-category__head { grid-area: head; }
  .guide-category__count { grid-area: count; justify-self: start; }
}

.guide-tone--assistants {
  background: #e8eaf6;
  border-color: #c5cae9;
  border-left-color: #3949ab;
}
.guide-tone--assistants .guide-card__cat,
.guide-tone--assistants .guide-category__badge { color: #303f9f; }
.guide-tone--coding {
  background: #e3f2fd;
  border-color: #90caf9;
  border-left-color: #1565c0;
}
.guide-tone--coding .guide-card__cat,
.guide-tone--coding .guide-category__badge { color: #0d47a1; }
.guide-tone--research {
  background: #f3e5f5;
  border-color: #ce93d8;
  border-left-color: #7b1fa2;
}
.guide-tone--research .guide-card__cat,
.guide-tone--research .guide-category__badge { color: #6a1b9a; }
.guide-tone--default {
  background: #eceff1;
  border-color: #cfd8dc;
  border-left-color: #546e7a;
}
.guide-tone--default .guide-card__cat,
.guide-tone--default .guide-category__badge { color: #455a64; }

.guide-card__cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.35rem;
}
.guide-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}
.guide-card__summary {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.guide-tips { display: flex; flex-direction: column; gap: 0.75rem; }
.guide-tip {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}
.guide-tip__tool {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.guide-tip__tool .card__logo {
  width: 28px;
  height: 28px;
}
.guide-tip__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 640px) {
  .guide-tip__cols { grid-template-columns: 1fr; }
}
.guide-tip__cols p {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-muted);
}
.guide-tip__col {
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
}
.guide-tip__col--go {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}
.guide-tip__col--skip {
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.guide-tip__label {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.guide-tip__label--go { color: var(--mint); }
.guide-tip__label--skip { color: var(--coral); }

.compare-note--page {
  margin-bottom: 0.75rem;
}
.compare-note--slate {
  background: #eceff1;
  border: 1px solid #cfd8dc;
  border-left: 4px solid #546e7a;
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
}

/* Documented head-to-heads — expandable rows */
.compare-categories {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.compare-category {
  border: 1px solid #cfd8dc;
  border-left: 4px solid #546e7a;
  border-radius: var(--radius);
  background: #eceff1;
  overflow: hidden;
}
.compare-category__summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem 0.75rem;
  padding: 0.95rem 1rem;
  user-select: none;
}
.compare-category__summary::-webkit-details-marker { display: none; }
.compare-category__chev {
  width: 0;
  height: 0;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  opacity: 0.55;
  transition: transform 0.15s ease;
  color: var(--text-muted);
}
.compare-category[open] .compare-category__chev {
  transform: rotate(90deg);
}
.compare-category__summary:hover {
  background: rgba(255, 255, 255, 0.35);
}
.compare-category__head {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.compare-category__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.compare-category__matchup {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.compare-category__winner {
  font-size: 0.75rem;
  font-weight: 650;
  color: #047857;
  white-space: nowrap;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(4, 120, 87, 0.18);
}
.compare-category__body {
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.compare-category__body .compare-note__body {
  margin: 0.85rem 0 0;
}
.compare-category__body .compare-note__actions {
  margin-top: 0.65rem;
}

@media (max-width: 640px) {
  .compare-category__summary {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "chev head"
      "winner winner";
  }
  .compare-category__chev { grid-area: chev; }
  .compare-category__head { grid-area: head; }
  .compare-category__winner { grid-area: winner; justify-self: start; }
}

.compare-note__kind {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
}
.compare-note__feature {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.compare-note__matchup {
  margin: 0 0 0.35rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.compare-note__winner {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}
.compare-note__winner em {
  font-style: normal;
  font-weight: 750;
  color: #047857;
}
.compare-note__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}
.chip--winner {
  background: #ecfdf5 !important;
  border-color: #6ee7b7 !important;
  color: #047857 !important;
  font-weight: 700;
}

.role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}
.prompt-search-row {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
  margin-bottom: 1rem;
}
.prompt-search {
  flex: 1 1 auto;
}
.prompt-search-row .btn-base {
  flex: 0 0 auto;
  padding: 0 1.1rem;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}
@media (max-width: 640px) {
  .prompt-search-row { flex-direction: column; }
  .prompt-search-row .btn-base { width: 100%; padding: 0.7rem 1rem; }
}
.prompt-quick__hint {
  font-size: 0.82rem;
  color: #92400e;
}
.prompt-filters {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.prompt-filters > .linkbtn {
  align-self: flex-start;
  margin-top: 0.15rem;
}
.prompt-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0;
}
.prompt-quick .linkbtn {
  margin-left: 0.25rem;
}
.filter-block {
  margin-bottom: 0.55rem;
}
.filter-block__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.rating-pending {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.prompt-grid,
.usecase-grid,
.learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.9rem;
}

.prompt-card,
.usecase-card,
.learn-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.playbook-card {
  border-left-width: 4px;
  position: relative;
}
.playbook-card__kind {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}
.playbook-card--usecase .playbook-card__kind { color: #047857; }
.playbook-card--learn .playbook-card__kind { color: #1d4ed8; }

.playbook-tone--everyone {
  background: #eceff1;
  border-color: #cfd8dc;
  border-left-color: #546e7a;
}
.playbook-tone--engineering {
  background: #e8eaf6;
  border-color: #c5cae9;
  border-left-color: #3949ab;
}
.playbook-tone--data {
  background: #e3f2fd;
  border-color: #90caf9;
  border-left-color: #1565c0;
}
.playbook-tone--operations {
  background: #fff8e1;
  border-color: #ffe082;
  border-left-color: #f9a825;
}
.playbook-tone--management {
  background: #fce4ec;
  border-color: #f48fb1;
  border-left-color: #c2185b;
}
.playbook-tone--default {
  background: #e0f2f1;
  border-color: #80cbc4;
  border-left-color: #00796b;
}
.prompt-card__top,
.usecase-card__top,
.learn-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}
.prompt-card__title,
.usecase-card__title,
.learn-card__title {
  margin: 0;
  font-size: 1rem;
}
.prompt-card__meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.prompt-card__text {
  margin: 0;
  flex: 1;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.45;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  max-height: 160px;
  overflow: auto;
}
.prompt-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.15rem;
}
.prompt-card__actions .btn-base {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  min-height: 2.05rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
}
.prompt-card--focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #625fff33, var(--shadow-soft);
}
.btn-copy.is-copied {
  background: var(--mint);
  border-color: var(--mint);
}

.usecase-card__impact {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text);
}
.usecase-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.learn-card__desc {
  margin: 0;
  flex: 1;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.contribute-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.contribute-tab {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font: inherit;
  font-weight: 650;
  font-size: 0.88rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.contribute-tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

#view-contribute .field input,
#view-contribute .field textarea,
#view-contribute .field select {
  background: #eef2f7;
  border-color: #c5cbd3;
  color: var(--text);
}
#view-contribute .field textarea {
  min-height: 7.5rem;
  line-height: 1.45;
  resize: vertical;
}
#view-contribute .field input::placeholder,
#view-contribute .field textarea::placeholder {
  color: #4b5563;
  opacity: 1;
}
#view-contribute .pending-assign__input::placeholder {
  color: #4b5563;
  opacity: 1;
}
#view-contribute .form-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}
#view-contribute .form-actions .btn-base {
  width: auto;
  min-width: 9.5rem;
  padding: 0.65rem 1.25rem;
}
#view-contribute .suggest-draft-actions {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}
#view-contribute .suggest-draft-actions .modal__cta--wide {
  width: auto;
  min-width: 9.5rem;
  margin-top: 0;
}

@media (max-width: 640px) {
  .hero { padding: 3rem 1rem 2.75rem; }
  .hero-heading { font-size: 1.875rem; max-width: none; }
  .content { padding: 20px 12px 40px; }
  .controls { padding: 1rem; }
  .field-row { grid-template-columns: 1fr; }
  #suggestModal { padding: 18px 16px 16px; }
  .panel__head { flex-direction: column; }
  .app-nav__link { font-size: 0.8rem; padding: 0.4rem 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-heading,
  .hero-text,
  .hero__cta-wrap,
  .hero__proof,
  .card,
  .modal-overlay,
  .modal,
  .chooser-result,
  .chooser-card {
    animation: none;
    transition: none;
  }
}

.pending-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pending-list__status {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.pending-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0.85rem 1rem;
}
.pending-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.pending-item__kind { color: #4338ca; }
.pending-item__status { color: #b45309; }
.pending-item__date {
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}
.pending-item__title {
  display: inline-block;
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 0.25rem;
}
.pending-item__title:hover { color: var(--brand); text-decoration: underline; }
.pending-item__hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.pending-item__assigned {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.4;
}
.pending-item__assign {
  margin-top: 0.35rem;
}
.pending-assign {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--border);
}
.pending-assign__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.pending-assign__row {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}
.pending-assign__input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  font: inherit;
  font-size: 0.875rem;
  background: #fff;
}
.pending-assign__input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.pending-assign__btn {
  flex: 0 0 auto;
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}
.pending-assign__btn:hover {
  background: #e0e7ff;
}
.review-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text);
  line-height: 1.55;
  font-size: 0.92rem;
}
.review-steps li { margin-bottom: 0.45rem; }
.review-steps code {
  font-size: 0.84em;
  background: #f3f4f6;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* Tool testing assignments (Testing / Exploring) */
.card__assignment {
  margin: 0.35rem 0 0.5rem;
  padding: 0.55rem 0.65rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #78350f;
}
.card__assignee {
  display: block;
  margin-bottom: 0.2rem;
}
.card__assign-notes {
  display: block;
  color: #92400e;
}
.tool-assignment-wrap {
  border-left: none;
  padding: 0;
}
.tool-assignment__line {
  margin: 0.35rem 0 0;
}
.tool-assignment__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.tool-assignment__notes p {
  margin: 0.15rem 0 0;
  white-space: pre-wrap;
}
.tool-assignment__empty {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.tool-assignment--edit {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed #e5e7eb;
}
.tool-assignment__edit-title {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}
.tool-assignment__input,
.tool-assignment__textarea {
  width: 100%;
  font: inherit;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
}
.tool-assignment__textarea {
  resize: vertical;
  min-height: 4.5rem;
}
.tool-assignment__actions {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
#toolAssignStatus code {
  font-size: 0.78em;
  word-break: break-all;
}

.tool-assignment__input--readonly {
  background: #f9fafb;
  color: #374151;
}

.team-register__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

@media (max-width: 720px) {
  .team-register__grid {
    grid-template-columns: 1fr;
  }
}

.team-register__success {
  margin-top: 0.5rem;
}

.team-register__success-title {
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.team-register-admin {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed #e5e7eb;
}

.team-register-admin__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.pending-item__cmd {
  margin: 0.45rem 0 0.25rem;
  font-size: 0.82rem;
  word-break: break-all;
}

.pending-item__cmd code {
  display: block;
  padding: 0.45rem 0.55rem;
  background: #f3f4f6;
  border-radius: 8px;
}

.panel--register {
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.team-register__submit {
  padding: 0.85rem 2.25rem;
  min-width: 14rem;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 14px #2563eb33;
}

.team-register__submit:hover {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
}

.team-register__form .form-actions {
  margin-top: 0.75rem;
}

/* ---------- Soft login gate ---------- */
body.auth-locked {
  overflow: hidden;
}

body.auth-locked #dcs-site-header,
body.auth-locked main,
body.auth-locked footer,
body.auth-locked .compare-bar,
body.auth-locked .modal-overlay {
  display: none !important;
}

.login-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, #dbeafe 0%, transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #eff6ff 55%, #eff6ff 100%);
}

.login-gate[hidden] {
  display: none !important;
}

.login-gate__card {
  width: min(100%, 26rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  animation: fadeInUp .45s ease-out both;
}

.login-gate__kicker {
  margin: 0 0 0.5rem;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-gate__title {
  margin: 0 0 0.55rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.login-gate__text {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.login-gate__form {
  text-align: left;
}

.login-gate__form .field {
  margin-bottom: 1rem;
}

.login-gate__submit {
  width: 100%;
}

.login-gate__hint {
  margin: 1rem 0 0;
  color: var(--text-faint);
  font-size: 0.8rem;
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .login-gate__card {
    animation: none;
  }
}
