/* One search box for everything — js/tf-omni.js. Used on search.html and on
   the email / username / phone pages. */

@view-transition {
    navigation: auto;
}

.tfo {
    --tfo-red: #cf362d;
    --tfo-red-soft: rgba(207, 54, 45, 0.14);
    --tfo-bg: #121212;
    --tfo-bg-2: #181818;
    --tfo-line: #262626;
    --tfo-line-2: #333;
    --tfo-text: #ededed;
    --tfo-dim: #8f8f8f;
    --tfo-dimmer: #6b6b6b;
    --tfo-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    width: min(760px, calc(100vw - 48px));
    margin: 0 auto;
    text-align: left;
    font-family: inherit;
    color: var(--tfo-text);
    z-index: 5;
}
.tfo *,
.tfo *::before,
.tfo *::after {
    box-sizing: border-box;
}
.tfo-ic {
    width: 16px;
    height: 16px;
    flex: none;
}

/* ---------------------------------------------------------------- the box */
.tfo-box {
    position: relative;
    view-transition-name: tfo-box;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 14px 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)) var(--tfo-bg);
    border: 1px solid var(--tfo-line);
    border-radius: 18px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 20px 50px -20px rgba(0, 0, 0, 0.8);
    transition:
        border-color 0.2s ease,
        box-shadow 0.25s ease,
        padding 0.3s var(--tfo-ease);
}
.tfo.is-focused .tfo-box {
    border-color: #3a3a3a;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 0 0 4px rgba(255, 255, 255, 0.035),
        0 20px 50px -20px rgba(0, 0, 0, 0.8);
}

.tfo-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
}
.tfo-lead {
    display: none;
    color: var(--tfo-dimmer);
}
.tfo-input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 4px;
    background: transparent !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--tfo-text) !important;
    font: inherit;
    font-size: 16px;
    letter-spacing: -0.005em;
}
.tfo-input::placeholder {
    color: var(--tfo-dimmer);
    opacity: 1;
}
.tfo-clear {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 0;
    background: transparent;
    color: var(--tfo-dimmer);
    cursor: pointer;
}
.tfo-clear[hidden] {
    display: none;
}
.tfo-clear:hover {
    color: var(--tfo-text);
    background: #222;
}

.tfo-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.tfo-spacer {
    flex: 1;
}

.tfo-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--tfo-dim);
    font: inherit;
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
}
.tfo-chip[hidden] {
    display: none;
}
button.tfo-chip {
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}
button.tfo-chip:hover,
button.tfo-chip[aria-expanded='true'] {
    background: #1f1f1f;
    color: var(--tfo-text);
}
.tfo-type.is-detected {
    color: var(--tfo-text);
    background: #1c1c1c;
    border-color: var(--tfo-line-2);
}
.tfo-type.is-detected .tfo-ic:first-child,
.tfo-type.is-manual .tfo-ic:first-child {
    color: #ff6b61;
}
.tfo-type.is-manual {
    color: var(--tfo-text);
    background: var(--tfo-red-soft);
    border-color: rgba(207, 54, 45, 0.45);
    padding-right: 4px;
}
.tfo-caret {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}
.tfo-type-x {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    color: var(--tfo-dim);
}
.tfo-type-x:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--tfo-text);
}
.tfo-type-x .tfo-ic {
    width: 13px;
    height: 13px;
}
.tfo-pulse {
    animation: tfo-pop 0.35s var(--tfo-ease);
}
@keyframes tfo-pop {
    0% {
        transform: scale(0.92);
        opacity: 0.4;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.tfo-quota {
    color: #c9c9c9;
}
.tfo-quota .tfo-ic {
    color: var(--tfo-dim);
}
.tfo-quota--free .tfo-ic {
    color: #f5d984;
}
.tfo-quota--empty {
    color: #ff8a80;
}
.tfo-quota--empty .tfo-ic {
    color: #ff8a80;
}
.tfo-quota--out .tfo-ic {
    color: var(--tfo-dim);
}

.tfo-kbd {
    display: inline-grid;
    place-items: center;
    height: 22px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid var(--tfo-line-2);
    color: var(--tfo-dimmer);
    opacity: 0;
    transform: translateX(4px);
    transition:
        opacity 0.2s ease,
        transform 0.2s var(--tfo-ease);
}
.tfo-kbd .tfo-ic {
    width: 13px;
    height: 13px;
}
.tfo.has-value .tfo-kbd {
    opacity: 1;
    transform: none;
}
@media (pointer: coarse) {
    .tfo-kbd {
        display: none;
    }
}

.tfo-go {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    border: 0;
    background: #3a3a3a;
    color: #cfcfcf;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}
.tfo-go .tfo-ic {
    width: 18px;
    height: 18px;
}
.tfo.has-value .tfo-go {
    background: var(--tfo-red);
    color: #fff;
    box-shadow: 0 6px 18px -6px rgba(207, 54, 45, 0.7);
}
/* Hover stays in place: only the red deepens (empty box: a red tint).
   main.css slides every button[type=submit] 5px on hover; not this one. */
.tfo button.tfo-go,
.tfo button.tfo-go:hover,
.tfo button.tfo-go:active {
    transform: none;
}
.tfo .tfo-go:hover {
    background: rgba(207, 54, 45, 0.22) !important;
    color: #ff8a80;
}
.tfo.has-value .tfo-go:hover {
    background: #dc4136 !important;
    box-shadow:
        0 0 0 3px rgba(207, 54, 45, 0.18),
        0 6px 18px -6px rgba(207, 54, 45, 0.7);
}
.tfo.has-value .tfo-go:active {
    background: #b52e26 !important;
}

/* ------------------------------------------------------------- under row */
.tfo-under {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 4px 0;
    min-height: 40px;
    transition:
        opacity 0.25s ease,
        transform 0.3s var(--tfo-ease);
}
.tfo-canvas-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 320px;
    height: 30px;
    padding: 0 10px 0 8px;
    margin-left: -8px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--tfo-dim);
    font: inherit;
    font-size: 13.5px;
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}
.tfo-canvas-btn:hover,
.tfo-canvas-btn[aria-expanded='true'] {
    background: #161616;
    color: var(--tfo-text);
}
.tfo-canvas-btn.is-set {
    color: var(--tfo-text);
}
.tfo-canvas-btn.is-set .tfo-ic:first-child {
    color: #ff6b61;
}
.tfo-cv-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tfo-note {
    color: var(--tfo-dimmer);
    font-size: 13px;
    text-align: right;
}
.tfo-note a {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #bdbdbd;
    text-decoration: none;
    transition: color 0.15s ease;
}
.tfo-note a:hover {
    color: #fff;
}
.tfo-out {
    width: 13px;
    height: 13px;
}

/* ------------------------------------------------------------ popovers */
.tfo-pop-host {
    position: relative;
}
.tfo-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 40;
    width: 300px;
    max-height: min(440px, 70vh);
    overflow: auto;
    padding: 6px;
    background: #141414;
    border: 1px solid var(--tfo-line-2);
    border-radius: 14px;
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.85);
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
    transform-origin: top left;
    transition:
        opacity 0.16s ease,
        transform 0.2s var(--tfo-ease);
}
.tfo-menu.is-open {
    opacity: 1;
    transform: none;
}
.tfo-mh,
.tfo-sh {
    padding: 10px 10px 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tfo-dimmer);
}
.tfo-mi {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #cfcfcf;
    font: inherit;
    font-size: 13.5px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.tfo-mi:hover,
.tfo-mi:focus-visible {
    background: #1f1f1f;
    color: #fff;
    outline: none;
}
.tfo-mi > .tfo-ic:first-child {
    color: var(--tfo-dim);
}
.tfo-mi[aria-checked='true'] > .tfo-ic:first-child {
    color: #ff6b61;
}
.tfo-mi-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.tfo-mi-main b {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tfo-mi-main small {
    color: var(--tfo-dimmer);
    font-size: 12px;
}
.tfo-tick {
    color: #ff6b61;
}
.tfo-mscroll {
    max-height: 200px;
    overflow: auto;
}
.tfo-mi-link {
    margin-top: 4px;
    border-top: 1px solid var(--tfo-line);
    border-radius: 0 0 9px 9px;
}
.tfo-mempty {
    padding: 10px;
    color: var(--tfo-dim);
    font-size: 13px;
    line-height: 1.45;
}
.tfo-mempty a {
    color: #fff;
}

/* --------------------------------------------------------- suggestions */
.tfo-suggest {
    position: absolute;
    left: -1px;
    right: -1px;
    top: calc(100% + 8px);
    z-index: 30;
    padding: 6px;
    background: #141414;
    border: 1px solid var(--tfo-line-2);
    border-radius: 14px;
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.85);
    opacity: 0;
    transform: translateY(-4px);
    transition:
        opacity 0.16s ease,
        transform 0.2s var(--tfo-ease);
}
.tfo-suggest.is-open {
    opacity: 1;
    transform: none;
}
.tfo-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
}
.tfo-opt.is-active {
    background: #1f1f1f;
}
.tfo-opt-none {
    cursor: default;
    color: var(--tfo-dim);
}
.tfo-opt-ic {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 9px;
    background: var(--tfo-red-soft);
    color: #ff7a70;
}
.tfo-opt-ic--recent,
.tfo-opt-ic--canvas {
    background: #1c1c1c;
    color: #bdbdbd;
}
.tfo-opt-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.tfo-opt-main b {
    font-weight: 500;
    font-size: 14px;
    color: #f2f2f2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tfo-opt-main small {
    font-size: 12.5px;
    color: var(--tfo-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tfo-badge {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid var(--tfo-line-2);
    color: var(--tfo-dim);
    font-size: 11.5px;
    font-weight: 500;
}
.tfo-badge.is-free {
    color: #86efac;
    border-color: rgba(134, 239, 172, 0.25);
    background: rgba(134, 239, 172, 0.06);
}

/* ------------------------------------------------- terms, errors, gate */
.tfo-tos {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 10px 4px 0;
    color: var(--tfo-dim);
    font-size: 13px;
    cursor: pointer;
    transition:
        opacity 0.4s ease,
        transform 0.4s var(--tfo-ease);
}
.tfo-tos[hidden] {
    display: none;
}
.tfo-tos input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--tfo-red);
    flex: none;
}
.tfo-tos a {
    color: #d6d6d6;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.tfo-tos--done {
    opacity: 0;
    transform: translateY(-4px);
}
.tfo-msg {
    margin: 10px 4px 0;
    font-size: 13.5px;
    color: var(--tfo-dim);
    animation: tfo-in 0.25s var(--tfo-ease);
}
.tfo-msg[hidden] {
    display: none;
}
.tfo-msg--error {
    color: #ff8a80;
}
.tfo-msg--gate {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(207, 54, 45, 0.35);
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(207, 54, 45, 0.12), rgba(207, 54, 45, 0.03));
    color: var(--tfo-text);
}
.tfo-msg--gate > .tfo-ic {
    width: 20px;
    height: 20px;
    color: #ff7a70;
}
.tfo-gate-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
}
.tfo-gate-text b {
    font-weight: 600;
}
.tfo-gate-text small {
    color: var(--tfo-dim);
    font-size: 12.5px;
}
.tfo-gate-actions {
    display: flex;
    gap: 8px;
}
.tfo-btn {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px;
    border-radius: 9px;
    border: 1px solid var(--tfo-line-2);
    color: #e5e5e5;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    background: #161616;
}
.tfo-btn:hover {
    border-color: #4a4a4a;
    color: #fff;
}
.tfo-btn--primary {
    background: #ededed;
    border-color: #ededed;
    color: #0a0a0a;
}
.tfo-btn--primary:hover {
    background: #fff;
    color: #000;
}

@keyframes tfo-in {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.tfo-shake {
    animation: tfo-shake 0.4s ease;
}
@keyframes tfo-shake {
    20%,
    60% {
        transform: translateX(-5px);
    }
    40%,
    80% {
        transform: translateX(5px);
    }
}

/* ----------------------------------------------------- compact (running) */
.tfo--compact {
    width: min(980px, calc(100vw - 48px));
}
.tfo--compact .tfo-box {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 6px 6px 6px 14px;
    border-radius: 14px;
}
.tfo--compact .tfo-lead {
    display: inline-flex;
}
.tfo--compact .tfo-field {
    min-height: 40px;
}
.tfo--compact .tfo-input {
    height: 40px;
    font-size: 15px;
}
.tfo--compact .tfo-quota,
.tfo--compact .tfo-kbd,
.tfo--compact .tfo-spacer {
    display: none;
}
.tfo--compact .tfo-under {
    min-height: 0;
    padding-top: 6px;
}
.tfo--compact .tfo-note {
    display: none;
}

/* The page title folds away while a search runs, so the results come up. */
body.tfo-host h1.intro_title__TZuNV {
    max-height: 340px;
    transition:
        max-height 0.45s var(--tfo-ease),
        opacity 0.3s ease,
        padding 0.45s var(--tfo-ease),
        margin 0.45s var(--tfo-ease);
}
body.tfo-host.tfo-running h1.intro_title__TZuNV {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
}
/* The page's own form stays (it runs the search) but out of sight. */
body.tfo-host #outer,
body.tfo-host #tos_thing,
body.tfo-host #msg {
    display: none !important;
}

/* ------------------------------------------------------- leaving the page */
.tfo--leaving .tfo-under,
.tfo--leaving .tfo-tos {
    opacity: 0;
    transform: translateY(-4px);
}
html.tfo-nav .tfo-cards {
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.2s ease,
        transform 0.25s ease;
}
::view-transition-group(tfo-box) {
    animation-duration: 0.42s;
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.28s;
}

@media (prefers-reduced-motion: reduce) {
    .tfo *,
    .tfo-cards * {
        animation: none !important;
        transition: none !important;
    }
    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*) {
        animation: none !important;
    }
}

/* ------------------------------------------------------------- phones */
@media (max-width: 640px) {
    .tfo-box {
        padding: 10px 10px 10px;
        border-radius: 16px;
    }
    .tfo-input {
        font-size: 16px;
    }
    .tfo-under {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .tfo-note {
        text-align: left;
        padding-left: 2px;
    }
    .tfo-menu {
        width: min(300px, calc(100vw - 40px));
    }
    .tfo--compact .tfo-box {
        grid-template-columns: 1fr;
        padding: 8px 8px 8px 12px;
    }
}

/* ============================================================ search.html */
.tfo-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: min(1040px, calc(100vw - 48px));
    margin: 0 auto;
    text-align: left;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}
.tfo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 118px;
    padding: 16px 16px 14px;
    border: 1px solid #1f1f1f;
    border-radius: 16px;
    background: linear-gradient(180deg, #121212, #0d0d0d);
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    animation: tfo-card-in 0.5s var(--tfo-ease, ease) forwards;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}
.tfo-card:nth-child(2) {
    animation-delay: 0.04s;
}
.tfo-card:nth-child(3) {
    animation-delay: 0.08s;
}
.tfo-card:nth-child(4) {
    animation-delay: 0.12s;
}
.tfo-card:nth-child(5) {
    animation-delay: 0.16s;
}
.tfo-card:nth-child(6) {
    animation-delay: 0.2s;
}
.tfo-card:nth-child(7) {
    animation-delay: 0.24s;
}
.tfo-card:nth-child(8) {
    animation-delay: 0.28s;
}
@keyframes tfo-card-in {
    to {
        opacity: 1;
        transform: none;
    }
}
@media (hover: hover) {
    /* Nothing moves: the border, icon and link pick up the site's red. */
    .tfo-card:hover {
        border-color: rgba(207, 54, 45, 0.5);
        background: linear-gradient(180deg, #151212, #0e0d0d);
    }
    .tfo-card:hover .tfo-card-ic {
        color: #ff8a80;
        border-color: rgba(207, 54, 45, 0.4);
        background: rgba(207, 54, 45, 0.08);
    }
    .tfo-card:hover .tfo-card-go {
        color: #ff8a80;
    }
}
.tfo-card:focus-visible {
    outline: 2px solid #cf362d;
    outline-offset: 2px;
}
.tfo-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tfo-card-ic {
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #1b1b1b;
    border: 1px solid #262626;
    color: #ff7a70;
}
.tfo-card-ic svg {
    width: 16px;
    height: 16px;
}
.tfo-card b {
    font-size: 15px;
    font-weight: 600;
    color: #f2f2f2;
    letter-spacing: -0.01em;
}
.tfo-card p {
    margin: 0;
    color: #8f8f8f;
    font-size: 13px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tfo-card-go {
    transition: color 0.2s ease;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #c9c9c9;
    font-size: 13px;
    font-weight: 500;
}
.tfo-card-go svg {
    width: 14px;
    height: 14px;
}
.tfo-card-tag {
    margin-left: auto;
    font-size: 11px;
    font-weight: 500;
    color: #86efac;
    border: 1px solid rgba(134, 239, 172, 0.22);
    background: rgba(134, 239, 172, 0.05);
    border-radius: 999px;
    padding: 2px 7px;
}
@media (max-width: 900px) {
    .tfo-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 420px) {
    .tfo-card p {
        display: none;
    }
    .tfo-card {
        min-height: 0;
    }
}

/* -------------------------------------------- shielding from page styles
   The lookup pages style every input and button globally (css/test.css,
   css/email.css …); the box keeps its own look. */
.tfo .tfo-input,
.tfo .tfo-input::placeholder {
    text-align: left !important;
    font-weight: 400 !important;
    letter-spacing: normal;
}
.tfo .tfo-input {
    width: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
}
.tfo .tfo-go {
    background: #3a3a3a !important;
    padding: 0 !important;
}
.tfo.has-value .tfo-go {
    background: var(--tfo-red) !important;
}

/* search.html layout */
.tfo-page .tfo-hero-foot {
    width: 100%;
    padding-bottom: 8px;
}
.tfo-page .tfo-cards {
    margin-top: 72px;
    margin-bottom: 96px;
}
.tfo-noscript {
    color: #a1a1a1;
    margin: 0 0 12px;
}
.tfo-card > .tfo-card-tag {
    position: absolute;
    right: 14px;
    bottom: 13px;
    margin: 0;
}
.tfo .tfo-go {
    position: static !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 0 !important;
    margin: 0 !important;
    border-radius: 11px !important;
    border: 0 !important;
}
/* view-transition-name makes the box its own stacking context: keep its
   popovers above the row underneath. */
.tfo-box {
    z-index: 3;
}
.tfo-under {
    position: relative;
    z-index: 2;
}
@media (max-width: 640px) {
    .tfo .tfo-kbd {
        display: none;
    }
    .tfo-row {
        gap: 4px;
    }
    .tfo-quota {
        min-width: 0;
        padding: 0 6px;
    }
    .tfo-quota span {
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .tfo-card b {
        font-size: 14px;
    }
    .tfo-page .tfo-cards {
        margin-top: 48px;
    }
}

/* ------------------------------------------- round 2: calmer, aligned */
.tfo .tfo-input {
    padding: 0 10px !important;
    color: #ededed !important;
}
.tfo .tfo-input::placeholder {
    color: #6b6b6b !important;
    -webkit-text-fill-color: #6b6b6b;
    opacity: 1 !important;
}
.tfo .tfo-input::-webkit-input-placeholder {
    color: #6b6b6b !important;
}
.tfo-input:not(:placeholder-shown) {
    -webkit-text-fill-color: #ededed;
}
/* the input's text lines up with the icon of the first chip below it */
.tfo-box {
    padding-left: 14px;
}
.tfo--compact .tfo .tfo-input,
.tfo--compact .tfo-input {
    padding-left: 4px !important;
}
.tfo-card-ic {
    color: #bdbdbd;
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}
/* the quota chip is a link when there is something to do */
a.tfo-quota {
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}
a.tfo-quota:hover {
    background: #1f1f1f;
    color: #fff;
}
.tfo-quota .tfo-q-short {
    display: none;
}

@media (max-width: 640px) {
    .tfo,
    .tfo--compact,
    .tfo-cards {
        width: calc(100vw - 32px);
    }
    .tfo-box {
        padding: 8px 8px 8px 8px;
        gap: 2px;
    }
    .tfo-field {
        min-height: 40px;
    }
    .tfo .tfo-input {
        height: 40px;
        font-size: 16px; /* below 16px iOS zooms the page on focus */
    }
    .tfo-chip {
        height: 30px;
        padding: 0 8px;
        font-size: 13px;
    }
    .tfo-quota .tfo-q-long {
        display: none;
    }
    .tfo-quota .tfo-q-short {
        display: inline;
    }
    .tfo .tfo-go {
        width: 34px !important;
        height: 34px !important;
    }
    .tfo-under {
        padding-top: 8px;
    }
    .tfo-canvas-btn {
        margin-left: 0;
        padding-left: 6px;
    }
    .tfo-suggest,
    .tfo-menu {
        border-radius: 12px;
    }
    .tfo-opt {
        padding: 8px;
    }
    .tfo-badge {
        display: none;
    }
}
@media (max-width: 360px) {
    .tfo-type .tfo-type-label {
        max-width: 72px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* The cards follow their container (search.html pads the page by up to
   56px), not the window. */
.tfo-page .tfo-cards {
    width: 100%;
    max-width: 1040px;
}

/* Width follows the container, so the box lines up with the results under it. */
.tfo {
    width: min(760px, 100%);
}
.tfo--compact {
    width: min(980px, 100%);
}
@media (max-width: 640px) {
    .tfo,
    .tfo--compact {
        width: 100%;
    }
    /* compact bar on phones: input on top, chip left and button right below */
    .tfo--compact .tfo-spacer {
        display: block;
    }
}
.tfo-card-top {
    align-items: flex-start;
}
.tfo-card-top b {
    padding-top: 5px;
    line-height: 1.3;
}
/* Lookup pages put the idle box in a narrow column: size it from the screen
   (it stays centred); the compact bar follows the results width instead. */
.tfo--page:not(.tfo--compact) {
    width: min(760px, calc(100vw - 48px));
}
@media (max-width: 640px) {
    .tfo--page:not(.tfo--compact) {
        width: calc(100vw - 32px);
    }
}

/* search.html: room between the title's grid line and the box */
.tfo-page .tfo-hero-foot {
    padding-top: 32px;
}
@media (max-width: 640px) {
    .tfo-page .tfo-hero-foot {
        padding-top: 20px;
    }
}

/* The hero root clips its dashed frame with overflow: hidden, which also cut
   the type menu and the suggestions off at the hero's bottom edge (most
   visible on phones, where the hero ends right under the box). Clip only
   sideways, and keep the hero above the section that follows so an open menu
   lies over it. */
.intro_root__wSBQl:has(.tfo) {
    overflow-x: clip;
    overflow-y: visible;
    position: relative;
    z-index: 3;
}
/* …those dashed side lines reach --line-offset/2 past their box at the bottom,
   which the old clip hid: stop them at the box's bottom edge. */
.intro_root__wSBQl:has(.tfo) .intro_gridContainerLine__GHkon[data-offset] {
    max-height: calc(100% + var(--line-offset) / 2);
}
/* The dashed frame lies behind everything in the hero: the result cards,
   notices and the results bar below the box sat under its lines on phones. */
.intro_root__wSBQl:has(.tfo) .intro_gridContainerLine__GHkon,
.intro_root__wSBQl:has(.tfo) .intro_gridCircle__Hyh0y,
.intro_root__wSBQl:has(.tfo) .intro_gridLineBottom__z9ocp::after,
.intro_root__wSBQl:has(.tfo) .intro_gridLineTop__WIuPu::before {
    z-index: -1;
}
