/* Standalone alternatives UI: existing TextFrog semantic theme variables. */
.tf-alts, .tf-alts-admin { color: hsl(var(--foreground)); overflow-wrap: anywhere; }
.tf-alts *, .tf-alts-admin * { box-sizing: border-box; }
.tf-alts-shell { width: 100%; max-width: 1280px; margin: 0 auto; padding: 32px 24px; }
.tf-alts h1 { margin: 0; font-size: clamp(30px, 3.5vw, 46px); line-height: 1.14; letter-spacing: -.035em; font-weight: 750; }
.tf-alts h2 { margin: 0; font-size: 23px; line-height: 1.3; font-weight: 650; letter-spacing: -.02em; }
.tf-alts h3 { margin: 0; font-size: 20px; line-height: 1.35; font-weight: 650; letter-spacing: -.015em; }
.tf-alts p, .tf-alts-admin p { line-height: 1.65; }
.tf-alts a:focus-visible, .tf-alts button:focus-visible, .tf-alts-admin a:focus-visible, .tf-alts-admin button:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 4px; }
.tf-alts-muted { color: hsl(var(--muted-foreground)); }
.tf-alts-small { font-size: 13px; }
.tf-alts-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: hsl(142 38% 30%); font-size: 12px; line-height: 1.4; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.dark .tf-alts-eyebrow { color: hsl(139 46% 66%); }
.tf-alts-lead { max-width: 760px; margin: 18px 0 0; color: hsl(var(--muted-foreground)); font-size: 17px; }
.tf-alts-hero { border-bottom: 1px solid hsl(var(--border)); background: radial-gradient(ellipse at 85% 20%, hsl(130 34% 69% / .16), transparent 65%), hsl(var(--background)); }
.tf-alts-hero .tf-alts-shell { padding-top: 52px; padding-bottom: 42px; }
.tf-alts-search { display: flex; gap: 12px; align-items: center; width: min(100%, 690px); margin-top: 26px; padding: 8px 8px 8px 16px; border: 1px solid hsl(var(--input)); border-radius: 10px; background: hsl(var(--background)); box-shadow: 0 2px 9px hsl(var(--foreground) / .035); }
.tf-alts-search > svg { flex: 0 0 auto; color: hsl(var(--muted-foreground)); }
.tf-alts-search input { min-width: 0; flex: 1; height: 38px; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; font-size: 15px; }
.tf-alts-search:focus-within { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.tf-alts-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 15px; border: 1px solid transparent; border-radius: 7px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-size: 13px; line-height: 1.4; font-weight: 550; text-align: center; text-decoration: none; cursor: pointer; white-space: normal; transition: opacity .15s ease, background-color .15s ease; }
.tf-alts-button:hover { opacity: .88; }
.tf-alts-button-outline { border-color: hsl(var(--input)); background: hsl(var(--background)); color: hsl(var(--foreground)); }
.tf-alts-button-outline:hover { background: hsl(var(--accent)); opacity: 1; }
.tf-alts-button-small { min-height: 34px; padding: 6px 11px; font-size: 12px; }
.tf-alts-button-danger { border-color: hsl(var(--destructive) / .3); background: transparent; color: hsl(var(--destructive)); }
.tf-alts-button-danger:hover { background: hsl(var(--destructive) / .07); opacity: 1; }
.tf-alts-text-link { color: hsl(var(--foreground)); text-decoration: none; font-size: 14px; font-weight: 550; }
.tf-alts-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.tf-alts-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.tf-alts-actions form { margin: 0; }
.tf-alts-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.tf-alts-section-heading p { margin: 6px 0 0; font-size: 14px; }
.tf-alts-catalog { padding-top: 36px; padding-bottom: 64px; }
.tf-alts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tf-alts-guide-card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; padding: 24px; border: 1px solid hsl(var(--border)); border-radius: 10px; background: hsl(var(--card)); color: hsl(var(--card-foreground)); text-decoration: none; box-shadow: 0 1px 3px hsl(var(--foreground) / .025); transition: border-color .15s ease, box-shadow .15s ease; }
.tf-alts-guide-card:hover { border-color: hsl(var(--foreground) / .25); box-shadow: 0 5px 16px hsl(var(--foreground) / .045); }
.tf-alts-guide-heading { display: flex; align-items: center; gap: 14px; width: 100%; min-width: 0; }
.tf-alts-guide-heading h3 { min-width: 0; }
.tf-alts-logo { position: relative; display: inline-grid; flex: 0 0 52px; place-items: center; width: 52px; height: 52px; overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: 12px; background: hsl(var(--muted)); color: hsl(var(--foreground)); font-size: 22px; line-height: 1; font-weight: 700; }
.tf-alts-logo img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 7px; object-fit: contain; background: hsl(var(--card)); }
.tf-alts-logo-large { flex-basis: 64px; width: 64px; height: 64px; font-size: 28px; }
.tf-alts-card-summary { flex: 1; margin: 0; color: hsl(var(--muted-foreground)); font-size: 14px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.tf-alts-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-top: 2px; padding-top: 16px; border-top: 1px solid hsl(var(--border)); font-size: 13px; }
.tf-alts-card-footer > span:first-child { color: hsl(var(--muted-foreground)); }
.tf-alts-card-footer > span:last-child { font-weight: 600; }
.tf-alts-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 30px; font-size: 14px; }
.tf-alts-pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 8px 13px; border: 1px solid hsl(var(--border)); border-radius: 7px; background: hsl(var(--background)); text-decoration: none; color: hsl(var(--foreground)); }
.tf-alts-pagination a:hover { background: hsl(var(--accent)); }
.tf-alts-pagination a[aria-current="page"] { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }
.tf-alts-empty { padding: 48px 24px; border: 1px solid hsl(var(--border)); border-radius: 10px; background: hsl(var(--card)); text-align: center; }
.tf-alts-empty p { max-width: 620px; margin: 14px auto 24px; color: hsl(var(--muted-foreground)); }
.tf-alts-empty .tf-alts-actions { justify-content: center; }
.tf-alts-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; color: hsl(var(--muted-foreground)); font-size: 13px; }
.tf-alts-breadcrumbs a:hover { color: hsl(var(--foreground)); text-decoration: underline; text-underline-offset: 3px; }
.tf-alts-detail-heading { margin-bottom: 32px; }
.tf-alts-detail-heading > .tf-alts-muted { margin-top: 16px; }
.tf-alts-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: start; gap: 32px; padding-bottom: 40px; }
.tf-alts-sidebar { grid-column: 2; grid-row: 1; position: sticky; top: 90px; display: grid; gap: 20px; min-width: 0; }
.tf-alts-panel { border: 1px solid hsl(var(--border)); border-radius: 10px; background: hsl(var(--card)); color: hsl(var(--card-foreground)); box-shadow: 0 1px 3px hsl(var(--foreground) / .025); }
.tf-alts-target { padding: 24px; }
.tf-alts-target .tf-alts-eyebrow { margin: 20px 0 7px; font-size: 10px; }
.tf-alts-target h2 { font-size: 22px; }
.tf-alts-domain { margin: 6px 0 0; color: hsl(var(--muted-foreground)); font-size: 12px; overflow-wrap: anywhere; }
.tf-alts-target .tf-alts-button { width: 100%; margin-top: 20px; }
.tf-alts-contents { padding: 22px; }
.tf-alts-contents h2 { font-size: 15px; font-weight: 650; }
.tf-alts-contents ol { display: grid; gap: 4px; max-height: 320px; overflow-y: auto; list-style: none; margin: 14px -6px 12px; padding: 0; }
.tf-alts-contents li { min-width: 0; }
.tf-alts-contents a { display: flex; gap: 10px; align-items: baseline; padding: 7px 6px; border-radius: 5px; font-size: 13px; text-decoration: none; }
.tf-alts-contents a:hover { background: hsl(var(--accent)); }
.tf-alts-contents-number { color: hsl(var(--muted-foreground)); min-width: 14px; font-size: 11px; }
.tf-alts-contents > p { margin: 0; }
.tf-alts-main { grid-column: 1; grid-row: 1; min-width: 0; }
.tf-alts-intro { margin-bottom: 32px; }
.tf-alts-intro > h2 { margin-bottom: 14px; font-size: 21px; }
.tf-alts-entry-list { display: grid; gap: 24px; }
.tf-alts-entry { padding: 26px; scroll-margin-top: 105px; }
.tf-alts-entry-heading { display: flex; align-items: center; gap: 13px; }
.tf-alts-rank { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); font-size: 12px; font-weight: 650; }
.tf-alts-entry-title { flex: 1; min-width: 0; }
.tf-alts-entry-title h3 { font-size: 22px; }
.tf-alts-visit { flex: 0 0 auto; }
.tf-alts-tagline { margin: 20px 0 0; color: hsl(var(--muted-foreground)); font-size: 15px; }
.tf-alts-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.tf-alts-tag { display: inline-flex; align-items: center; padding: 4px 9px; border: 1px solid hsl(var(--border)); border-radius: 999px; background: hsl(var(--muted) / .6); color: hsl(var(--foreground)); font-size: 11px; line-height: 1.4; }
.tf-alts-tag-pricing { background: hsl(142 38% 36% / .07); color: hsl(142 38% 30%); border-color: hsl(142 38% 36% / .18); }
.dark .tf-alts-tag-pricing { color: hsl(139 46% 66%); }
.tf-alts-screenshot { overflow: hidden; margin: 22px 0 0; border: 1px solid hsl(var(--border)); border-radius: 7px; background: hsl(var(--muted)); }
.tf-alts-screenshot img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.tf-alts-prose { color: hsl(var(--foreground) / .85); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.tf-alts-entry > .tf-alts-prose { margin-top: 22px; padding-top: 18px; border-top: 1px solid hsl(var(--border)); }
.tf-alts-prose > :first-child { margin-top: 0; }
.tf-alts-prose > :last-child { margin-bottom: 0; }
.tf-alts-prose p { margin: 12px 0; line-height: 1.8; }
.tf-alts-prose h1, .tf-alts-prose h2, .tf-alts-prose h3, .tf-alts-prose h4 { margin: 20px 0 10px; font-size: 17px; line-height: 1.4; letter-spacing: -.01em; font-weight: 650; }
.tf-alts-prose ul, .tf-alts-prose ol { margin: 12px 0; padding-left: 22px; }
.tf-alts-prose ul { list-style: disc; }
.tf-alts-prose ol { list-style: decimal; }
.tf-alts-prose li { margin: 6px 0; }
.tf-alts-prose a { text-decoration: underline; text-underline-offset: 3px; }
.tf-alts-prose strong { font-weight: 650; color: hsl(var(--foreground)); }
.tf-alts-prose img { max-width: 100%; height: auto; border-radius: 6px; }
.tf-alts-prose pre { overflow-x: auto; padding: 12px; border-radius: 6px; background: hsl(var(--muted)); }
.tf-alts-prose code { font-size: .9em; }
.tf-alts-prose blockquote { margin: 14px 0; padding-left: 16px; border-left: 3px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); }
.tf-alts-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.tf-alts-prose th, .tf-alts-prose td { border: 1px solid hsl(var(--border)); padding: 8px 12px; text-align: left; }
.tf-alts-source { margin: 20px 0 0; font-size: 12px; color: hsl(var(--muted-foreground)); }
.tf-alts-source a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tf-alts-editorial-note { margin: 24px 0; color: hsl(var(--muted-foreground)); font-size: 12px; }
.tf-alts-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Admin forms use the existing shell without depending on a Tailwind rebuild. */
.tf-alts-admin { min-width: 0; max-width: 1200px; }
.tf-alts-admin h2 { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 650; }
.tf-alts-admin h3 { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 650; }
.tf-alts-admin-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; margin: 24px 0 14px; }
.tf-alts-admin-filters .tf-alts-field:first-child { flex: 1; min-width: 200px; }
.tf-alts-admin-filters .tf-alts-text-link { align-self: center; margin-top: 20px; }
.tf-alts-field { min-width: 0; }
.tf-alts-field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 550; line-height: 1.5; }
.tf-alts-field input, .tf-alts-field select, .tf-alts-field textarea { display: block; width: 100%; max-width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid hsl(var(--input)); border-radius: 6px; background: hsl(var(--background)); color: hsl(var(--foreground)); font: inherit; font-size: 14px; line-height: 1.5; }
.tf-alts-field input:focus, .tf-alts-field select:focus, .tf-alts-field textarea:focus { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.tf-alts-field input[readonly] { background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.tf-alts-field textarea { resize: vertical; }
.tf-alts-field .tf-alts-markdown-input { min-height: 220px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.tf-alts-field-help { margin: 8px 0 0; color: hsl(var(--muted-foreground)); font-size: 12px; }
.tf-alts-admin-count { margin: 16px 0; }
.tf-alts-table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid hsl(var(--border)); border-radius: 8px; }
.tf-alts-table { width: 100%; min-width: 660px; border-collapse: collapse; text-align: left; font-size: 13px; }
.tf-alts-table th { padding: 13px 16px; border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--muted) / .65); color: hsl(var(--muted-foreground)); font-size: 12px; font-weight: 550; }
.tf-alts-table td { padding: 16px; vertical-align: middle; border-bottom: 1px solid hsl(var(--border)); }
.tf-alts-table tbody tr:last-child td { border-bottom: 0; }
.tf-alts-table td p { margin: 5px 0 0; }
.tf-alts-table .tf-alts-actions { gap: 8px; }
.tf-alts-table-description { max-width: 440px; font-size: 12px; }
.tf-alts-table-empty { text-align: center; color: hsl(var(--muted-foreground)); }
.tf-alts-editor-form { display: grid; gap: 22px; margin-top: 24px; }
.tf-alts-form-section { padding: 24px; }
.tf-alts-form-section > p { margin-top: 8px; }
.tf-alts-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.tf-alts-field-full { grid-column: 1 / -1; }
.tf-alts-form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.tf-alts-errors { margin: 22px 0; padding: 18px 20px; border: 1px solid hsl(var(--destructive) / .35); border-radius: 8px; color: hsl(var(--destructive)); background: hsl(var(--destructive) / .035); }
.tf-alts-errors h3 { font-size: 14px; }
.tf-alts-errors ul { margin: 8px 0 0; padding-left: 20px; list-style: disc; font-size: 13px; line-height: 1.7; }
.tf-alts-info { padding: 14px 18px; border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--muted) / .5); font-size: 13px; }
.tf-alts-admin-entries { margin-top: 40px; padding-top: 28px; border-top: 1px solid hsl(var(--border)); scroll-margin-top: 80px; }

@media (max-width: 1050px) {
    .tf-alts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tf-alts-detail-layout { grid-template-columns: minmax(0, 1fr) 230px; gap: 24px; }
    .tf-alts-entry-heading { flex-wrap: wrap; }
    .tf-alts-visit { margin-left: 39px; }
}
@media (max-width: 800px) {
    .tf-alts-detail-layout { display: flex; flex-direction: column; }
    .tf-alts-sidebar { position: static; width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
    .tf-alts-main { width: 100%; }
    .tf-alts-contents ol { max-height: 185px; }
    .tf-alts-target { padding: 20px; }
    .tf-alts-section-heading { align-items: flex-start; flex-wrap: wrap; }
    .tf-alts-form-grid { grid-template-columns: minmax(0, 1fr); }
    .tf-alts-field-full { grid-column: auto; }
    .tf-alts-admin-filters .tf-alts-field:first-child { min-width: 180px; }
}
@media (max-width: 560px) {
    .tf-alts-shell { padding: 24px 16px; }
    .tf-alts-hero .tf-alts-shell { padding-top: 34px; padding-bottom: 30px; }
    .tf-alts-lead { font-size: 15px; }
    .tf-alts-eyebrow { font-size: 10px; }
    .tf-alts-search { gap: 8px; padding-left: 12px; }
    .tf-alts-search > svg { display: none; }
    .tf-alts-search input { font-size: 14px; }
    .tf-alts-search .tf-alts-button { padding: 9px 12px; }
    .tf-alts-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .tf-alts-guide-card { padding: 22px; }
    .tf-alts-sidebar { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .tf-alts-target { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; }
    .tf-alts-target .tf-alts-logo { grid-column: 1; grid-row: 1 / span 3; }
    .tf-alts-target .tf-alts-eyebrow { grid-column: 2; margin: 2px 0 4px; }
    .tf-alts-target h2, .tf-alts-target .tf-alts-domain { grid-column: 2; }
    .tf-alts-target .tf-alts-button { grid-column: 1 / -1; margin-top: 18px; }
    .tf-alts-contents { padding: 18px 20px; }
    .tf-alts-contents ol { display: flex; flex-wrap: wrap; gap: 3px 10px; max-height: 140px; }
    .tf-alts-contents a { padding: 6px; }
    .tf-alts-contents > p { font-size: 11px; }
    .tf-alts-entry { padding: 20px 17px; }
    .tf-alts-entry-heading { gap: 10px; }
    .tf-alts-entry-heading .tf-alts-logo { width: 44px; height: 44px; flex-basis: 44px; }
    .tf-alts-entry-title h3 { font-size: 20px; }
    .tf-alts-rank { width: 22px; height: 22px; flex-basis: 22px; font-size: 11px; }
    .tf-alts-entry-title { flex-basis: calc(100% - 88px); }
    .tf-alts-visit { width: 100%; margin: 8px 0 0; }
    .tf-alts-tagline { margin-top: 16px; }
    .tf-alts-empty { padding: 32px 18px; }
    .tf-alts-empty h1 { font-size: 28px; }
    .tf-alts-admin .tf-alts-section-heading > .tf-alts-actions { width: 100%; }
    .tf-alts-admin-filters { align-items: stretch; }
    .tf-alts-admin-filters > .tf-alts-field { width: 100%; }
    .tf-alts-admin-filters .tf-alts-text-link { margin: 0; }
    .tf-alts-form-section { padding: 18px; }
    .tf-alts-form-actions > .tf-alts-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .tf-alts-button, .tf-alts-guide-card { transition: none; }
}
