/* ---------------------------------------------------------------------------
   Platform tools (tools.html, js/tf-tools.js). Same tokens as the free tools
   (css/free-tools.css): neutral dark surfaces, the red accent, green / amber /
   red only for result states. Everything is `tt-` prefixed because the page
   also carries Webflow, Tailwind and Geist class names; css/main.css styles
   every input[type=text] and submit button globally, so those are reset here.
   --------------------------------------------------------------------------- */

.tt {
    --tt-bg: #0b0b0b;
    --tt-raised: hsla(0, 0%, 100%, 0.024);
    --tt-raised-2: hsla(0, 0%, 100%, 0.05);
    --tt-raised-3: hsla(0, 0%, 100%, 0.08);
    --tt-border: hsla(0, 0%, 100%, 0.12);
    --tt-border-soft: hsla(0, 0%, 100%, 0.07);
    --tt-border-strong: hsla(0, 0%, 100%, 0.22);
    --tt-fg: #ededed;
    --tt-muted: #a1a1a1;
    --tt-faint: #7d7d7d;
    --tt-accent: #cf362d;
    --tt-accent-hover: #e0473d;
    --tt-accent-text: #f0786f;
    --tt-good: #4ade80;
    --tt-warn: #fbbf24;
    --tt-bad: #f87171;
    --tt-info: #7cb4ff;
    --tt-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    /* cards and panels: the flat near-black of the Popular row */
    --tt-surface: var(--tt-raised);
    width: 100%;
    max-width: var(--tf-page-max, 1120px);
    min-height: 70vh;
    margin: 0 auto;
    padding: 56px 16px 48px;
    box-sizing: border-box;
    color: var(--tt-fg);
    text-align: left;
}

.tt *,
.tt *::before,
.tt *::after {
    box-sizing: border-box;
}

.tt [hidden] {
    display: none !important;
}

.tt button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

/* ---- catalog hero ----------------------------------------------------------- */
.tt-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 44px;
}

.tt-hero-text {
    max-width: 640px;
}

.tt-hero h1 {
    margin: 0;
    font-size: var(--tf-h1, clamp(2rem, 4vw, 3rem));
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.tt-hero p {
    margin: 14px 0 0;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--tt-muted);
}

.tt-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.tt-hero-stat {
    padding: 5px 11px;
    border: 1px solid var(--tt-border);
    border-radius: 999px;
    background: var(--tt-raised);
    font-size: 13px;
    color: var(--tt-muted);
}

.tt-hero-stat strong {
    color: var(--tt-fg);
    font-weight: 600;
}

.tt-search {
    display: flex;
    flex: 0 1 380px;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 12px 0 14px;
    border: 1px solid var(--tt-border);
    border-radius: 12px;
    background: var(--tt-raised);
    color: var(--tt-faint);
    transition: border-color 0.15s, background 0.15s;
}

.tt-search:focus-within {
    border-color: var(--tt-border-strong);
    background: var(--tt-raised-2);
}

.tt .tt-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
    color: var(--tt-fg);
}

.tt-search input::-webkit-search-cancel-button {
    filter: invert(0.6);
}

.tt-kbd {
    padding: 1px 7px;
    border: 1px solid var(--tt-border);
    border-radius: 6px;
    font-family: var(--tt-mono);
    font-size: 12px;
    color: var(--tt-faint);
}

/* ---- sections --------------------------------------------------------------- */
.tt-block {
    margin-top: 40px;
}

.tt-h2 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.tt-cats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.tt-cat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--tt-border-soft);
    border-radius: 16px;
    background: var(--tt-surface);
    text-align: left;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.tt-cat:hover {
    border-color: var(--tt-border-strong);
    background: var(--tt-raised-2);
    transform: translateY(-2px);
}

.tt-cat.is-active {
    border-color: rgba(207, 54, 45, 0.6);
    box-shadow: 0 0 0 1px rgba(207, 54, 45, 0.25) inset;
}

.tt-cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--tt-border);
    border-radius: 10px;
    background: var(--tt-raised-2);
    color: var(--tt-accent-text);
}

.tt-cat-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tt-cat-name {
    font-size: 16px;
    font-weight: 600;
}

.tt-cat-count {
    font-size: 13px;
    color: var(--tt-muted);
}

.tt-cat-go {
    position: absolute;
    top: 20px;
    right: 18px;
    color: var(--tt-faint);
    transition: transform 0.15s, color 0.15s;
}

.tt-cat:hover .tt-cat-go {
    color: var(--tt-fg);
    transform: translateX(2px);
}

.tt-all-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.tt-all-head .tt-h2 {
    margin: 0;
}

.tt-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tt .tt-pill {
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    font-size: 13px;
    color: var(--tt-muted);
    transition: color 0.15s, background 0.15s;
}

.tt .tt-pill:hover {
    color: var(--tt-fg);
}

.tt .tt-pill.is-active {
    border-color: var(--tt-border);
    background: #ededed;
    color: #0b0b0b;
    font-weight: 500;
}

/* ---- popular row ------------------------------------------------------------ */
.tt-popular {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.tt-pop {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--tt-border-soft);
    border-radius: 12px;
    background: var(--tt-raised);
    color: var(--tt-fg);
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}

.tt-pop:hover {
    border-color: var(--tt-border-strong);
    background: var(--tt-raised-2);
    color: var(--tt-fg);
}

.tt-pop-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tt-pop-name {
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tt-pop-sub {
    font-size: 12px;
    color: var(--tt-faint);
}

.tt-chips-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.tt-chip-archive {
    border-color: rgba(251, 191, 36, 0.35);
    color: var(--tt-warn);
}

/* ---- tool cards ------------------------------------------------------------- */
.tt-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tt-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--tt-border-soft);
    border-radius: 16px;
    background: var(--tt-surface);
    color: var(--tt-fg);
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.tt-card:hover {
    border-color: var(--tt-border-strong);
    background: var(--tt-raised-2);
    transform: translateY(-2px);
    color: var(--tt-fg);
}

.tt-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.tt-chip {
    padding: 3px 9px;
    border: 1px solid var(--tt-border);
    border-radius: 999px;
    font-size: 12px;
    color: var(--tt-muted);
}

.tt-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.tt-card p {
    display: -webkit-box;
    margin: 0 0 14px;
    overflow: hidden;
    /* Three lines: at two, most descriptions lost the half that says what
       the lookup returns (UX audit 2026-11-18). */
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 14px;
    line-height: 1.55;
    color: var(--tt-muted);
}

.tt-card-ins {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.tt-in {
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--tt-raised-2);
    font-size: 12px;
    color: #cfcfcf;
}

.tt-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--tt-border-soft);
}

.tt-card-count {
    font-size: 13px;
    color: var(--tt-faint);
}

.tt-card-go {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    background: #ededed;
    font-size: 13px;
    font-weight: 500;
    color: #0b0b0b;
    transition: background 0.15s;
}

.tt-card:hover .tt-card-go {
    background: #fff;
}

.tt-empty {
    padding: 48px 16px;
    border: 1px dashed var(--tt-border);
    border-radius: 16px;
    text-align: center;
    color: var(--tt-muted);
}

/* ---- logos ------------------------------------------------------------------ */
.tt-logo {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border: 1px solid var(--tt-border);
    border-radius: 12px;
    background: #151515;
}

.tt-logo img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.tt-logo-letter {
    font-size: 18px;
    font-weight: 600;
    color: var(--tt-muted);
}

.tt-logo-lg {
    width: 64px;
    height: 64px;
    border-radius: 16px;
}

.tt-logo-lg img {
    width: 38px;
    height: 38px;
}

.tt-logo-sm {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.tt-logo-sm img {
    width: 18px;
    height: 18px;
}

.tt-logo-sm .tt-logo-letter {
    font-size: 13px;
}

/* ---- one tool --------------------------------------------------------------- */
.tt-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--tt-faint);
}

.tt-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tt-muted);
    text-decoration: none;
}

.tt-back:hover {
    color: var(--tt-fg);
}

.tt-crumb-sep {
    color: var(--tt-border-strong);
}

.tt-crumb-here {
    color: var(--tt-fg);
}

.tt-tool-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.tt-tool-title h1 {
    margin: 0;
    font-size: clamp(1.75rem, 3.6vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.tt-tool-title p {
    margin: 6px 0 4px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--tt-muted);
}

.tt-tool-site {
    font-size: 13px;
    color: var(--tt-faint);
    text-decoration: none;
}

.tt-tool-site:hover {
    color: var(--tt-fg);
}

.tt-label {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tt-faint);
}

.tt-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tt .tt-type {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid var(--tt-border);
    border-radius: 10px;
    background: var(--tt-raised);
    font-size: 13px;
    color: var(--tt-muted);
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.tt .tt-type:hover {
    border-color: var(--tt-border-strong);
    color: var(--tt-fg);
}

.tt .tt-type.is-active {
    border-color: rgba(207, 54, 45, 0.65);
    background: rgba(207, 54, 45, 0.1);
    color: var(--tt-fg);
}

.tt-type-in {
    font-weight: 500;
    color: var(--tt-fg);
}

.tt-type-arrow {
    color: var(--tt-faint);
}

.tt-type.is-active .tt-type-arrow {
    color: var(--tt-accent-text);
}

.tt-io {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    margin: 22px 0 18px;
}

.tt-io-cell {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--tt-border-soft);
    border-radius: 12px;
    background: var(--tt-raised);
}

.tt-io-icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--tt-raised-2);
    color: var(--tt-muted);
}

.tt-io-out .tt-io-icon {
    color: var(--tt-accent-text);
}

.tt-io-k {
    margin-bottom: 2px;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tt-faint);
}

.tt-io-v {
    font-size: 14px;
    line-height: 1.45;
}

.tt-io-arrow {
    display: flex;
    align-items: center;
    color: var(--tt-faint);
}

.tt-form {
    margin: 0;
}

.tt-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 7px 7px 9px;
    border: 1px solid var(--tt-border);
    border-radius: 14px;
    background: #121212;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.tt-box:focus-within {
    border-color: var(--tt-border-strong);
    box-shadow: 0 0 0 4px hsla(0, 0%, 100%, 0.04);
}

.tt .tt-input,
.tt input[type='text'].tt-input {
    flex: 1;
    width: auto;
    transition: none;
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 0 4px;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--tt-fg);
}

.tt .tt-input::placeholder {
    color: var(--tt-faint);
    /* main.css sets every text input to 600; the example reads as a hint,
       not as typed text (UX feedback 2026-11-18). */
    font-weight: 400;
}

.tt .tt-submit,
.tt button[type='submit'].tt-submit {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 8px;
    width: auto;
    height: 42px;
    margin: 0;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: var(--tt-accent);
    box-shadow: none;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: background 0.15s;
}

.tt .tt-submit:hover {
    background: var(--tt-accent-hover);
}

.tt .tt-submit:disabled {
    opacity: 0.7;
    cursor: progress;
}

.tt-under {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--tt-faint);
}

.tt .tt-example {
    padding: 0;
    border: 0;
    background: none;
    color: var(--tt-faint);
}

.tt .tt-example:hover {
    color: var(--tt-fg);
}

.tt-example code {
    padding: 1px 6px;
    border-radius: 5px;
    background: var(--tt-raised-2);
    font-family: var(--tt-mono);
    font-size: 12px;
    color: #d7d7d7;
}

/* ---- results ---------------------------------------------------------------- */
.tt-results {
    margin-top: 28px;
}

.tt-res {
    display: grid;
    gap: 14px;
}

.tt-loading {
    padding: 22px;
    border: 1px solid var(--tt-border-soft);
    border-radius: 16px;
    background: var(--tt-raised);
}

.tt-load-top {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--tt-muted);
}

.tt-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--tt-border);
    border-top-color: var(--tt-accent-text);
    border-radius: 50%;
    animation: tt-spin 0.8s linear infinite;
}

@keyframes tt-spin {
    to {
        transform: rotate(360deg);
    }
}

.tt-skel {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.tt-skel-av {
    flex: none;
    width: 72px;
    height: 72px;
    border-radius: 50%;
}

.tt-skel-lines,
.tt-skel-rows {
    display: grid;
    flex: 1;
    gap: 10px;
    align-content: center;
}

.tt-skel-rows {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 8px;
}

.tt-skel-av,
.tt-skel-line {
    display: block;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, hsla(0, 0%, 100%, 0.04), hsla(0, 0%, 100%, 0.09), hsla(0, 0%, 100%, 0.04));
    background-size: 200% 100%;
    animation: tt-shimmer 1.3s ease-in-out infinite;
}

.tt-skel-av {
    height: 72px;
}

@keyframes tt-shimmer {
    from {
        background-position: 200% 0;
    }
    to {
        background-position: -200% 0;
    }
}

.tt-error,
.tt-notfound {
    display: flex;
    gap: 14px;
    padding: 20px;
    border: 1px solid rgba(248, 113, 113, 0.28);
    border-radius: 16px;
    background: rgba(248, 113, 113, 0.05);
}

.tt-notfound {
    border-color: var(--tt-border);
    background: var(--tt-raised);
}

.tt-error-icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--tt-raised-2);
    color: var(--tt-bad);
}

.tt-notfound .tt-error-icon {
    color: var(--tt-muted);
}

.tt-error strong,
.tt-notfound strong {
    font-size: 15px;
}

.tt-error p,
.tt-notfound p {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--tt-muted);
}

.tt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 14px;
    border-radius: 9px;
    background: #ededed;
    font-size: 13px;
    font-weight: 500;
    color: #0b0b0b;
    text-decoration: none;
}

.tt-btn:hover {
    background: #fff;
    color: #0b0b0b;
}

.tt-btn-ghost {
    flex: none;
    align-self: flex-start;
    margin: 0;
    border: 1px solid var(--tt-border);
    background: var(--tt-raised-2);
    color: var(--tt-fg);
}

.tt-btn-ghost:hover {
    border-color: var(--tt-border-strong);
    background: var(--tt-raised-3);
    color: var(--tt-fg);
}

.tt-profile {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--tt-border);
    border-radius: 18px;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(207, 54, 45, 0.09), transparent 55%),
        var(--tt-surface);
}

.tt-avatar {
    flex: none;
    width: 76px;
    height: 76px;
    border: 1px solid var(--tt-border);
    border-radius: 50%;
    background: #151515;
    object-fit: cover;
}

.tt-avatar.tt-avatar-fallback img {
    width: 40px;
    height: 40px;
}

.tt-profile-info {
    flex: 1;
    min-width: 0;
}

.tt-profile-titleline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.tt-profile-title {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.tt-profile-sub {
    margin-top: 2px;
    overflow-wrap: anywhere;
    font-size: 14px;
    color: var(--tt-muted);
}

.tt-profile-desc {
    margin: 10px 0 0;
    overflow-wrap: anywhere;
    white-space: pre-line;
    font-size: 14px;
    line-height: 1.55;
    color: #cfcfcf;
}

.tt-badge {
    padding: 2px 8px;
    border: 1px solid var(--tt-border);
    border-radius: 999px;
    font-size: 12px;
    color: var(--tt-muted);
}

.tt-tone-good {
    border-color: rgba(74, 222, 128, 0.35);
    color: var(--tt-good);
}

.tt-tone-warn {
    border-color: rgba(251, 191, 36, 0.35);
    color: var(--tt-warn);
}

.tt-tone-bad {
    border-color: rgba(248, 113, 113, 0.4);
    color: var(--tt-bad);
}

.tt-tone-info {
    border-color: rgba(124, 180, 255, 0.35);
    color: var(--tt-info);
}

.tt-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.tt-stat {
    padding: 14px 16px;
    border: 1px solid var(--tt-border-soft);
    border-radius: 14px;
    background: var(--tt-raised);
}

.tt-stat-v {
    overflow-wrap: anywhere;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.tt-stat-k {
    margin-top: 2px;
    font-size: 12px;
    color: var(--tt-muted);
}

.tt-panel {
    min-width: 0;
    padding: 18px 20px;
    border: 1px solid var(--tt-border);
    border-radius: 16px;
    background: var(--tt-surface);
}

.tt-panel-h {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.tt-count {
    padding: 0 7px;
    border-radius: 999px;
    background: var(--tt-raised-2);
    font-size: 12px;
    font-weight: 500;
    color: var(--tt-muted);
}

.tt-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    margin: 0;
}

.tt-field {
    display: grid;
    grid-template-columns: minmax(110px, 38%) minmax(0, 1fr);
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--tt-border-soft);
}

.tt-field dt {
    font-size: 13px;
    color: var(--tt-muted);
}

.tt-field dd {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 14px;
}

.tt-field dd > :first-child {
    min-width: 0;
}

.tt-mono {
    font-family: var(--tt-mono);
    font-size: 13px;
}

.tt-vlist {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tt-vlink {
    color: #e6e6e6;
    text-decoration: underline;
    text-decoration-color: var(--tt-border-strong);
    text-underline-offset: 3px;
}

.tt-vlink:hover {
    color: #fff;
    text-decoration-color: var(--tt-fg);
}

.tt .tt-copy {
    display: inline-flex;
    flex: none;
    padding: 3px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--tt-faint);
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
}

.tt-field:hover .tt-copy,
.tt .tt-copy:focus-visible,
.tt .tt-copy.is-done {
    opacity: 1;
}

.tt .tt-copy:hover {
    color: var(--tt-fg);
}

.tt .tt-copy.is-done {
    color: var(--tt-good);
}

.tt-table-wrap {
    overflow-x: auto;
    margin: 0 -4px;
}

.tt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.tt-table th {
    padding: 6px 10px;
    border-bottom: 1px solid var(--tt-border);
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
    color: var(--tt-faint);
}

.tt-table td {
    max-width: 420px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--tt-border-soft);
    overflow-wrap: anywhere;
    vertical-align: top;
}

.tt-table tr:last-child td {
    border-bottom: 0;
}

.tt-table tbody tr:hover td {
    background: var(--tt-raised);
}

.tt .tt-more-btn {
    margin-top: 10px;
    padding: 6px 12px;
    border: 1px solid var(--tt-border);
    border-radius: 8px;
    background: var(--tt-raised);
    font-size: 13px;
    color: var(--tt-muted);
}

.tt .tt-more-btn:hover {
    color: var(--tt-fg);
}

.tt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tt-item {
    max-width: 100%;
    padding: 4px 10px;
    border: 1px solid var(--tt-border-soft);
    border-radius: 8px;
    background: var(--tt-raised);
    overflow-wrap: anywhere;
    font-size: 13px;
}

.tt-media {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.tt-media-item {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid var(--tt-border-soft);
    border-radius: 10px;
    background: #121212;
    aspect-ratio: 16 / 10;
    color: var(--tt-fg);
    text-decoration: none;
}

.tt-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.tt-media-item:hover img {
    transform: scale(1.03);
}

.tt-media-item.is-broken img {
    visibility: hidden;
}

.tt-media-cap {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 18px 8px 6px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    overflow: hidden;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tt-text {
    white-space: pre-line;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.6;
    color: #cfcfcf;
    max-height: 420px;
    overflow-y: auto;
}

.tt-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tt-linkchip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border: 1px solid var(--tt-border);
    border-radius: 9px;
    background: var(--tt-raised);
    font-size: 13px;
    color: var(--tt-fg);
    text-decoration: none;
}

.tt-linkchip:hover {
    border-color: var(--tt-border-strong);
    color: #fff;
}

.tt-notes {
    display: grid;
    gap: 6px;
    padding: 12px 16px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    background: rgba(251, 191, 36, 0.04);
}

.tt-note {
    display: flex;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #d6c69a;
}

.tt-note svg {
    flex: none;
    margin-top: 2px;
}

.tt-muted {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--tt-faint);
}

.tt-res-foot {
    font-size: 12px;
    color: var(--tt-faint);
}

.tt-more {
    margin-top: 56px;
}

/* ---- responsive ------------------------------------------------------------- */
@media (max-width: 1020px) {
    .tt-popular {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .tt-cats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .tt-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .tt-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .tt {
        padding-top: 32px;
    }
    .tt-hero {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    .tt-search {
        flex-basis: auto;
    }
    .tt-kbd {
        display: none;
    }
    .tt-io {
        grid-template-columns: minmax(0, 1fr);
    }
    .tt-io-arrow {
        justify-content: center;
        transform: rotate(90deg);
    }
    .tt-profile {
        flex-wrap: wrap;
    }
    .tt-btn-ghost {
        width: 100%;
        justify-content: center;
    }
    .tt-tool-head {
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .tt-grid,
    .tt-cats {
        grid-template-columns: minmax(0, 1fr);
    }
    .tt-cat {
        flex-direction: row;
        align-items: center;
    }
    .tt-cat-go {
        top: 50%;
        transform: translateY(-50%);
    }
    .tt-field {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }
    .tt-skel-rows {
        grid-template-columns: 1fr;
    }
    .tt .tt-submit span {
        display: none;
    }
    .tt .tt-submit {
        padding: 0 14px;
    }
    .tt-avatar {
        width: 60px;
        height: 60px;
    }
}

/* tools.html: the crawlable list the script replaces once the catalog loads */
.tt-static {
    margin-top: 32px;
    color: var(--tt-muted);
}

.tt-static h1 {
    color: var(--tt-fg);
    font-size: 2rem;
}

.tt-static h2 {
    margin-top: 28px;
    color: var(--tt-fg);
    font-size: 1.25rem;
}

.tt-static a {
    color: var(--tt-accent-text);
}


.tt-js .tt-static {
    display: none;
}

/* a colour value (e.g. Minecraft's locator bar colour) */
.tt-swatch {
    display: inline-block;
    flex: none;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    vertical-align: -2px;
    border: 1px solid var(--tt-border-strong);
    border-radius: 4px;
}

/* ---- service pages (<id>-lookup.html, tools/build-pages.mjs) -------------
   The search box comes first; the descriptive part (.tt-about) sits below
   the results, smaller and quieter. */
.tt.tt-svc {
    max-width: 960px;
    padding-top: 40px;
}

.tt-svc .tt-tool-head {
    margin-bottom: 22px;
}

.tt-svc .tt-tool-title p {
    max-width: 680px;
}

.tt-svc .tt-box {
    padding: 8px 8px 8px 10px;
    border-radius: 16px;
}

.tt-svc .tt .tt-input,
.tt-svc input[type='text'].tt-input {
    height: 48px;
    font-size: 16px;
}

.tt-svc .tt .tt-input::placeholder {
    font-size: 15px;
}

.tt-types-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 14px;
}

.tt-types-row .tt-label {
    margin: 0;
}

.tt-types-row .tt-types {
    gap: 6px;
}

.tt .tt-types-row .tt-type {
    gap: 6px;
    padding: 6px 11px;
    border-color: var(--tt-border-soft);
    border-radius: 999px;
    font-size: 12.5px;
}

.tt-types-row .tt-type-out {
    color: var(--tt-faint);
}

.tt-types-row .tt-type-out::before {
    content: '→ ';
}

.tt .tt-types-row .tt-type.is-active .tt-type-out {
    color: var(--tt-muted);
}

.tt .tt-types-row .tt-type.is-auto {
    border-color: rgba(74, 222, 128, 0.45);
    background: rgba(74, 222, 128, 0.07);
}

.tt-detected {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--tt-good);
}

.tt-out-line {
    color: var(--tt-muted);
}

.tt-svc .tt-results:not(:empty) {
    margin-top: 22px;
}

/* API request panel */
.tt-api {
    margin-top: 22px;
    border: 1px solid var(--tt-border-soft);
    border-radius: 14px;
    background: var(--tt-raised);
}

.tt-api[open] {
    border-color: var(--tt-border);
}

.tt-api-sum {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    cursor: pointer;
    list-style: none;
}

.tt-api-sum::-webkit-details-marker {
    display: none;
}

.tt-api-sum::after {
    content: '';
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-right: 1.6px solid var(--tt-faint);
    border-bottom: 1.6px solid var(--tt-faint);
    transform: rotate(45deg);
    transition: transform 0.15s;
}

.tt-api[open] .tt-api-sum::after {
    transform: rotate(225deg);
}

.tt-api-ic {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--tt-raised-2);
    color: var(--tt-accent-text);
}

.tt-api-title {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: 14px;
}

.tt-api-title span {
    font-size: 12.5px;
    color: var(--tt-faint);
}

.tt-api-body {
    padding: 0 16px 16px;
}

.tt-api-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.tt .tt-api-tab {
    padding: 5px 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: none;
    font-size: 12.5px;
    color: var(--tt-faint);
}

.tt .tt-api-tab:hover {
    color: var(--tt-fg);
}

.tt .tt-api-tab.is-active {
    border-color: var(--tt-border-soft);
    background: var(--tt-raised-2);
    color: var(--tt-fg);
}

.tt-api-codebox {
    position: relative;
}

.tt-api-code {
    margin: 0;
    padding: 14px 44px 14px 14px;
    overflow-x: auto;
    border: 1px solid var(--tt-border-soft);
    border-radius: 10px;
    background: #070707;
    font-family: var(--tt-mono);
    font-size: 12.5px;
    line-height: 1.6;
    color: #d4d4d4;
    white-space: pre;
}

.tt-api-copy {
    position: absolute;
    top: 8px;
    right: 8px;
}

.tt-api-foot {
    margin: 10px 0 0;
    font-size: 12.5px;
    color: var(--tt-faint);
}

.tt-api-foot a {
    color: var(--tt-accent-text);
}

/* the descriptive part below the tool */
.tt-about {
    margin-top: 72px;
    padding-top: 8px;
    border-top: 1px solid var(--tt-border-soft);
}

.tt-about .tt-block {
    margin-top: 40px;
}

.tt-about .tt-h2 {
    font-size: 18px;
}

.tt-about-p {
    max-width: 760px;
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--tt-faint);
}

.tt-about-p a {
    color: var(--tt-muted);
}

.tt-lks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 12px;
}

/* One lookup: what it gives you first, then what it takes and returns, and
   a footer that runs the example. Rows use a label column so everything lines
   up; under 420px the label sits above its values. */
.tt-lk {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--tt-border-soft);
    border-radius: 16px;
    background: var(--tt-raised);
    text-align: left;
    transition: border-color 0.15s, background 0.15s;
}

.tt-lk:hover {
    border-color: var(--tt-border);
}

.tt-lk:target {
    border-color: rgba(207, 54, 45, 0.55);
}

.tt-lk-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 18px 18px 16px;
}

.tt-lk h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-align: left;
    color: var(--tt-fg);
}

.tt-lk-out {
    margin: -6px 0 2px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--tt-muted);
}

.tt-lk-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: baseline;
    gap: 10px;
}

.tt-lk-k {
    font-size: 12px;
    font-weight: 500;
    line-height: 26px;
    color: var(--tt-faint);
    white-space: nowrap;
}

.tt-lk-vals {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.tt-lk-pill {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border: 1px solid var(--tt-border);
    border-radius: 8px;
    background: var(--tt-raised-2);
    font-size: 13px;
    color: var(--tt-fg);
}

/* returned fields: quieter than the inputs (no border) */
.tt-lk-fields > span {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 9px;
    border-radius: 8px;
    background: hsla(0, 0%, 100%, 0.045);
    font-size: 12.5px;
    color: var(--tt-muted);
}

.tt-lk-fields > .tt-lk-more {
    background: none;
    padding: 0 4px;
    color: var(--tt-faint);
}

.tt-lk-hint {
    margin: 0;
    padding: 9px 11px;
    border-radius: 8px;
    background: hsla(0, 0%, 100%, 0.03);
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--tt-faint);
}

.tt-lk-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 12px 18px;
    border-top: 1px solid var(--tt-border-soft);
    background: hsla(0, 0%, 100%, 0.015);
    font-size: 13px;
    color: var(--tt-faint);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.tt-lk-ex {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.tt-lk-ex code {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: var(--tt-mono);
    font-size: 12.5px;
    color: var(--tt-muted);
}

.tt-lk-go {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: var(--tt-fg);
}

.tt-lk-go svg {
    transition: transform 0.15s;
}

.tt-lk-foot:hover {
    background: hsla(0, 0%, 100%, 0.05);
}

.tt-lk-foot:hover .tt-lk-go {
    color: var(--tt-accent-text);
}

.tt-lk-foot:hover .tt-lk-go svg {
    transform: translateX(3px);
}

@media (max-width: 420px) {
    .tt-lk-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .tt-lk-k {
        line-height: 1.4;
    }
}

/* Two columns of icon + text; an odd last tile takes the full row, so
   3, 4 or 5 tiles never leave a lonely card. One column on phones. */
.tt-hows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tt-how:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

@media (max-width: 640px) {
    .tt-hows {
        grid-template-columns: 1fr;
    }
}

.tt-how {
    display: flex;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--tt-border-soft);
    border-radius: 16px;
    background: var(--tt-raised);
    text-align: left;
}

.tt-how > div {
    min-width: 0;
}

.tt-how-ic {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--tt-border);
    border-radius: 10px;
    background: var(--tt-raised-2);
    color: var(--tt-accent-text);
}

.tt-how h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    color: var(--tt-fg);
}

.tt-how p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--tt-muted);
}

.tt-how-code {
    display: inline-block;
    max-width: 100%;
    margin-top: 10px;
    padding: 7px 9px;
    overflow-wrap: anywhere;
    border: 1px solid var(--tt-border-soft);
    border-radius: 8px;
    background: #070707;
    font-family: var(--tt-mono);
    font-size: 12px;
    line-height: 1.5;
    color: var(--tt-muted);
}

.tt-faq {
    display: grid;
    gap: 8px;
    max-width: 820px;
}

.tt-faq details {
    padding: 13px 16px;
    border: 1px solid var(--tt-border-soft);
    border-radius: 12px;
    background: var(--tt-raised);
}

.tt-faq summary {
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.tt-faq details p {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--tt-muted);
}

.tt-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    margin-top: 40px;
    padding: 20px 22px;
    border: 1px solid var(--tt-border-soft);
    border-radius: 16px;
    background: radial-gradient(120% 160% at 0% 0%, rgba(207, 54, 45, 0.1), transparent 60%), var(--tt-raised);
}

.tt-cta p {
    margin: 4px 0 0;
    max-width: 560px;
    font-size: 14px;
    color: var(--tt-muted);
}

.tt-cta .tt-btn {
    margin-top: 0;
}

.tt-btn-primary {
    border-color: transparent;
    background: var(--tt-accent);
    color: #fff;
}

.tt-btn-primary:hover {
    background: var(--tt-accent-hover);
    color: #fff;
}

@media (max-width: 560px) {
    .tt.tt-svc {
        padding-top: 24px;
    }
    .tt-svc .tt-tool-head {
        align-items: flex-start;
    }
    .tt-about {
        margin-top: 48px;
    }
}

/* ---- motion: small, quick, and off for reduced motion ----------------------
   Cards rise in once when a grid first renders (staggered, capped at ~0.3s),
   results fade in, buttons give a little on press. Nothing loops. */
@keyframes tt-rise {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.tt-popular > *,
.tt-cats > *,
.tt-grid > *,
.tt-lks > *,
.tt-hows > * {
    animation: tt-rise 0.36s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.tt-popular > :nth-child(2),
.tt-cats > :nth-child(2),
.tt-grid > :nth-child(2),
.tt-lks > :nth-child(2),
.tt-hows > :nth-child(2) { animation-delay: 0.03s; }
.tt-popular > :nth-child(3),
.tt-cats > :nth-child(3),
.tt-grid > :nth-child(3),
.tt-lks > :nth-child(3),
.tt-hows > :nth-child(3) { animation-delay: 0.06s; }
.tt-popular > :nth-child(4),
.tt-cats > :nth-child(4),
.tt-grid > :nth-child(4),
.tt-lks > :nth-child(4),
.tt-hows > :nth-child(4) { animation-delay: 0.09s; }
.tt-popular > :nth-child(5),
.tt-cats > :nth-child(5),
.tt-grid > :nth-child(5),
.tt-lks > :nth-child(5) { animation-delay: 0.12s; }
.tt-popular > :nth-child(6),
.tt-cats > :nth-child(6),
.tt-grid > :nth-child(6),
.tt-lks > :nth-child(6) { animation-delay: 0.15s; }
.tt-popular > :nth-child(7),
.tt-cats > :nth-child(7),
.tt-grid > :nth-child(7) { animation-delay: 0.18s; }
.tt-popular > :nth-child(n + 8),
.tt-cats > :nth-child(n + 8),
.tt-grid > :nth-child(n + 8) { animation-delay: 0.21s; }

.tt-res,
.tt-results > *,
.ft-results > * {
    animation: tt-rise 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* after the first render (js/tf-tools.js) filtering doesn't replay it */
.tt-settled .tt-popular > *,
.tt-settled .tt-cats > *,
.tt-settled .tt-grid > * {
    animation: none;
}

/* press */
.tt-cat:active,
.tt-pop:active,
.tt-card:active,
.ft-more:active {
    transform: translateY(0) scale(0.985);
    transition-duration: 0.06s;
}

.tt .tt-submit:active,
.tt .tt-type:active,
.tt .tt-pill:active,
.tt-btn:active,
.tt .tt-copy:active {
    transform: scale(0.96);
}

.tt .tt-submit,
.tt .tt-type,
.tt .tt-pill,
.tt-btn {
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.08s;
}

/* the search icon wakes up with the box */
.tt-search svg {
    transition: color 0.15s, transform 0.2s;
}

.tt-search:focus-within svg {
    color: var(--tt-fg);
    transform: scale(1.06);
}

.tt-box:focus-within .tt-box-icon,
.tt-box:focus-within .ft-box-icon {
    transform: rotate(-6deg);
}

.tt-box-icon,
.ft-box-icon {
    transition: transform 0.2s;
}

/* card icons nudge on hover */
.tt-cat-icon,
.tt-pop .tt-logo {
    transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1.4), border-color 0.15s;
}

.tt-cat:hover .tt-cat-icon,
.ft-more:hover .tt-cat-icon,
.tt-pop:hover .tt-logo {
    transform: translateY(-1px) rotate(-4deg);
    border-color: var(--tt-border-strong);
}

/* FAQ: chevron instead of the browser triangle, answer fades in */
.tt-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
}

.tt-faq summary::-webkit-details-marker {
    display: none;
}

.tt-faq summary::after {
    content: '';
    flex: none;
    width: 7px;
    height: 7px;
    margin-right: 4px;
    border-right: 1.5px solid var(--tt-faint);
    border-bottom: 1.5px solid var(--tt-faint);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s, border-color 0.15s;
}

.tt-faq details[open] summary::after {
    transform: rotate(225deg) translateY(-2px);
}

.tt-faq details:hover summary::after {
    border-color: var(--tt-fg);
}

.tt-faq details {
    transition: border-color 0.15s, background 0.15s;
}

.tt-faq details:hover {
    border-color: var(--tt-border);
}

.tt-faq details[open] p {
    animation: tt-rise 0.25s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
    .tt *,
    .tt *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---- API snippets: syntax colours (js/tf-tools.js highlight) ------------- */
.tt-api-code .tk-c { color: #6b7280; font-style: italic; }
.tt-api-code .tk-s { color: #a5d6a7; }
.tt-api-code .tk-k { color: #f0786f; }
.tt-api-code .tk-f { color: #7cb4ff; }
.tt-api-code .tk-v { color: #e2b6ff; }
.tt-api-code .tk-u { color: #fbd38d; }
.tt-api-code .tk-b { color: #67e8f9; }
.tt-api-code .tk-n { color: #fbbf24; }

/* ---- signed out: the lookup asks for a free account ----------------------- */
.tt-gate {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid var(--tt-border);
    border-radius: 16px;
    background: radial-gradient(120% 140% at 0% 0%, rgba(207, 54, 45, 0.1), transparent 60%), var(--tt-raised);
}

.tt-gate-icon {
    flex: none;
}

.tt-gate-text strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.tt-gate-text p {
    margin: 6px 0 14px;
    max-width: 560px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--tt-muted);
}

.tt-gate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tt-gate-actions .tt-btn {
    margin-top: 0;
}

.tt .tt-hint-free {
    color: var(--tt-faint);
}

/* Phones: the lookup types are one row you swipe through instead of a
   column of nine chips pushing the result off screen. */
@media (max-width: 640px) {
    .tt-types-row .tt-types {
        flex-wrap: nowrap;
        width: calc(100% + 16px);
        margin-right: -16px;
        padding: 2px 16px 6px 0;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
        mask-image: linear-gradient(90deg, #000 85%, transparent);
    }
    .tt-types-row .tt-types::-webkit-scrollbar {
        display: none;
    }
    .tt .tt-types-row .tt-type {
        flex: none;
        white-space: nowrap;
    }
}

/* ---- adult sites (category "adult") --------------------------------------- */
.tt-chip-adult {
    border-color: rgba(248, 113, 113, 0.45) !important;
    color: #fca5a5 !important;
}

.tt-nsfw-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
    margin-bottom: 12px;
    padding: 10px 14px;
    border: 1px solid var(--tt-border-soft);
    border-radius: 12px;
    background: var(--tt-raised);
    font-size: 13px;
    color: var(--tt-muted);
}

.tt .tt-nsfw-show {
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--tt-border);
    border-radius: 8px;
    background: var(--tt-raised-2);
    font-size: 13px;
    color: var(--tt-fg);
}

.tt-res img {
    transition: filter 0.25s;
}

.tt-nsfw img.tt-avatar,
.tt-nsfw .tt-media img,
.tt-nsfw .tt-profile img {
    filter: blur(18px) saturate(0.6);
}

.tt-nsfw img.tt-avatar,
.tt-nsfw .tt-media img {
    clip-path: inset(0 round 12px);
}
