@font-face {
    font-family: "Blackout Midnight";
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src:
        url("https://cdn.jsdelivr.net/fontsource/fonts/blackout-midnight@latest/latin-400-normal.woff2") format("woff2"),
        url("https://cdn.jsdelivr.net/fontsource/fonts/blackout-midnight@latest/latin-400-normal.woff") format("woff");
}

:root {
    --tf-bg: #0b0b0d;
    --tf-bg-surface: #14141a;
    --tf-text: #f5f7fb;
    --tf-text-muted: #abb2c5;
    --tf-text-soft: #cfd3de;
    --tf-accent: #7d5cff;
    --tf-accent-soft: #b49cff;
    --tf-line: rgba(255, 255, 255, 0.09);
    --tf-success: #77dda4;
    --tf-info: #9fc4ff;
    --tf-danger: #ff9090;
    --tf-shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.42);
    --tf-shadow-md: 0 18px 48px rgba(0, 0, 0, 0.28);
    --tf-radius-md: 24px;
    --tf-radius-lg: 32px;
    --tf-container: min(1180px, calc(100vw - 2rem));
    --tf-header-height: 84px;
    --tf-interactive-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --tf-shell-x: clamp(1rem, 2.5vw, 1.5rem);
    --tf-shell-y: clamp(1.5rem, 3vw, 2rem);
    --tf-font-display: "Blackout Midnight", "Arial Black", sans-serif;
    color-scheme: dark;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    color: var(--tf-text);
    line-height: 1.6;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(125, 92, 255, 0.18), transparent 26%),
        radial-gradient(circle at 85% 20%, rgba(90, 131, 255, 0.12), transparent 18%),
        linear-gradient(180deg, #09090b 0%, #0c0d11 44%, #0a0b0f 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 78%);
    opacity: 0.36;
}

a {
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

code {
    font-family: "Cascadia Code", "Consolas", monospace;
    font-size: 0.92em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

:focus-visible {
    outline: 2px solid var(--tf-accent-soft);
    outline-offset: 3px;
}

h1,
h2,
h3,
h4,
p,
ul {
    margin-top: 0;
}

p:last-child,
ul:last-child {
    margin-bottom: 0;
}

.tf-site {
    min-height: 100vh;
}

.tf-container {
    width: var(--tf-container);
    margin: 0 auto;
}

.tf-site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 900;
    background: rgba(10, 11, 15, 0.74);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.tf-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    min-height: var(--tf-header-height);
    padding: 1rem 0;
}

.tf-brand-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 0 0 auto;
}

.tf-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--tf-font-display);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.tf-brand-logo {
    width: auto;
    height: 2rem;
    max-width: 9rem;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(125, 92, 255, 0.2));
    flex: 0 0 auto;
}

.tf-brand-copy {
    display: grid;
    gap: 0.05rem;
}

.tf-brand-text {
    font-size: 1em;
    line-height: 1;
    white-space: nowrap;
}

.tf-brand-host,
.tf-top-note {
    color: var(--tf-text-muted);
    font-size: 0.82rem;
}

.tf-top-note {
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tf-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-left: auto;
    flex: 1 1 auto;
    min-width: 0;
}

.tf-site-nav,
.tf-topbar-actions,
.tf-actions,
.tf-section-heading,
.tf-page-header,
.tf-tool-card-top,
.tf-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.tf-topbar-actions,
.tf-actions,
.tf-header-actions {
    flex-wrap: wrap;
}

.tf-site-nav {
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1.2rem;
}

.tf-site-nav a {
    color: var(--tf-text-soft);
    font-weight: 600;
    padding: 0.65rem 0.4rem;
    transition: color 180ms ease;
}

.tf-nav-menu {
    position: relative;
}

.tf-nav-menu-toggle {
    background: transparent;
    border: 0;
    color: var(--tf-text-soft);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    list-style: none;
    padding: 0.65rem 0.4rem;
    transition: color 180ms ease;
}

.tf-nav-menu-toggle::after {
    border-bottom: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    content: "";
    display: inline-block;
    height: 0.42rem;
    margin-top: -0.15rem;
    transform: rotate(45deg);
    transition: transform 180ms ease;
    width: 0.42rem;
}

.tf-nav-menu-toggle[aria-expanded="true"]::after {
    transform: rotate(225deg);
}

.tf-nav-menu-toggle:hover,
.tf-nav-menu-toggle:focus-visible,
.tf-nav-menu-toggle[aria-expanded="true"] {
    color: var(--tf-text);
}

.tf-nav-submenu {
    background: rgba(11, 18, 28, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.28);
    display: grid;
    gap: 0.15rem;
    min-width: 11rem;
    padding: 0.45rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.25rem);
    transition:
        opacity 160ms ease,
        transform 160ms ease;
    z-index: 920;
}

.tf-nav-submenu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.tf-nav-submenu a {
    border-radius: 0.35rem;
    padding: 0.6rem 0.75rem;
    white-space: nowrap;
}

.tf-nav-submenu a:hover,
.tf-nav-submenu a:focus-visible,
.tf-nav-submenu a.active {
    background: rgba(255, 255, 255, 0.08);
}

.tf-site-nav a:hover,
.tf-site-nav a:focus-visible,
.tf-site-nav a.active {
    color: var(--tf-text);
}

.tf-header-icon-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    flex: 0 0 auto;
}

.tf-account-toggle,
.tf-app-launcher-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    color: var(--tf-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition:
        transform 180ms var(--tf-interactive-ease),
        border-color 180ms ease,
        background 180ms ease;
}

.tf-account-toggle:hover,
.tf-account-toggle:focus-visible,
.tf-account-toggle[aria-expanded="true"],
.tf-app-launcher-toggle:hover,
.tf-app-launcher-toggle:focus-visible,
.tf-app-launcher-toggle[aria-expanded="true"] {
    transform: translateY(-1px);
    border-color: rgba(180, 156, 255, 0.5);
    background: linear-gradient(180deg, rgba(125, 92, 255, 0.18), rgba(255, 255, 255, 0.04));
}

.tf-account-toggle svg,
.tf-app-launcher-toggle svg,
.tf-account-modal-close svg,
.tf-account-modal-avatar svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
}

.tf-header-strip {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tf-header-strip-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0 1rem;
}

.tf-strip-label,
.tf-panel-label,
.tf-field label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--tf-accent-soft);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tf-app-nav {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 0.8rem;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    padding: 0.1rem 0 0.35rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.tf-app-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.6rem;
    min-height: 2.45rem;
    padding: 0.58rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--tf-line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--tf-text-soft);
    font-size: 0.95rem;
    white-space: nowrap;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms var(--tf-interactive-ease);
}

.tf-app-link:hover,
.tf-app-link:focus-visible,
.tf-app-link.active {
    color: var(--tf-text);
    border-color: rgba(180, 156, 255, 0.26);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.tf-btn {
    --interactive-x: 50%;
    --interactive-y: 50%;
    --interactive-glow-opacity: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.4rem;
    padding: 0.95rem 1.45rem;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    background:
        radial-gradient(circle at var(--interactive-x) var(--interactive-y), rgba(255, 255, 255, var(--interactive-glow-opacity)), transparent 42%),
        linear-gradient(135deg, rgba(125, 92, 255, 1), rgba(177, 120, 255, 0.92));
    box-shadow: 0 16px 40px rgba(125, 92, 255, 0.28);
    transition: transform 180ms var(--tf-interactive-ease), box-shadow 180ms var(--tf-interactive-ease), border-color 180ms ease;
}

.tf-btn-header {
    min-height: 2.8rem;
    padding: 0.75rem 1.2rem;
    font-size: 0.95rem;
}

.tf-btn:hover,
.tf-btn:focus-visible {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 20px 46px rgba(125, 92, 255, 0.38);
}

.tf-btn:disabled {
    cursor: wait;
    opacity: 0.75;
    transform: none;
}

.tf-btn.disabled {
    opacity: 0.55;
    pointer-events: none;
    transform: none;
}

.tf-btn-secondary {
    background:
        radial-gradient(circle at var(--interactive-x) var(--interactive-y), rgba(255, 255, 255, var(--interactive-glow-opacity)), transparent 44%),
        rgba(255, 255, 255, 0.03);
    box-shadow: none;
}

.tf-btn-danger {
    border-color: rgba(255, 144, 144, 0.34);
    color: #ffdada;
}

.tf-btn-danger:hover,
.tf-btn-danger:focus-visible {
    border-color: rgba(255, 144, 144, 0.62);
    box-shadow: 0 18px 42px rgba(255, 86, 86, 0.16);
}

.tf-user-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2.55rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--tf-text-muted);
}

.tf-account-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
    background: rgba(4, 5, 9, 0.82);
    backdrop-filter: blur(18px);
}

.tf-account-modal {
    position: relative;
    width: min(22rem, calc(100vw - 2rem));
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(18, 19, 28, 0.98), rgba(10, 11, 16, 0.98)),
        radial-gradient(circle at top right, rgba(125, 92, 255, 0.16), transparent 42%);
    box-shadow: var(--tf-shadow-lg);
}

.tf-account-modal-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--tf-text-soft);
}

.tf-account-modal-user {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 0;
}

.tf-account-modal-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(125, 92, 255, 0.16);
    color: var(--tf-accent-soft);
}

.tf-account-modal-copy {
    display: grid;
    gap: 0.2rem;
}

.tf-account-modal-copy strong {
    font-size: 1rem;
}

.tf-account-modal-copy span {
    color: var(--tf-text-muted);
    font-size: 0.92rem;
}

.tf-account-modal-actions {
    display: grid;
    gap: 0.75rem;
}

.tf-account-modal-action {
    width: 100%;
}

.tf-app-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: calc(var(--tf-header-height) + 1rem) 1rem 1.5rem;
    overflow: hidden;
    background: rgba(4, 5, 9, 0.82);
    backdrop-filter: blur(18px);
}

.tf-app-modal {
    position: relative;
    width: min(54rem, calc(100vw - 2rem));
    max-height: min(46rem, calc(100vh - var(--tf-header-height) - 2rem));
    display: grid;
    align-content: start;
    grid-auto-rows: max-content;
    gap: 1.1rem;
    padding: 1.35rem;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(18, 19, 28, 0.98), rgba(10, 11, 16, 0.98)),
        radial-gradient(circle at top right, rgba(125, 92, 255, 0.18), transparent 38%);
    box-shadow: var(--tf-shadow-lg);
    scrollbar-width: thin;
}

.tf-app-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-right: 3rem;
}

.tf-app-modal-head h2 {
    margin: 0.35rem 0 0;
    font-size: 1.45rem;
    line-height: 1.15;
}

.tf-app-search {
    position: relative;
    display: block;
}

.tf-app-search svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    width: 1.15rem;
    height: 1.15rem;
    color: var(--tf-text-muted);
    fill: currentColor;
    transform: translateY(-50%);
    pointer-events: none;
}

.tf-app-search .tf-input {
    padding-left: 3rem;
}

.tf-app-modal-section {
    display: grid;
    gap: 0.75rem;
}

.tf-app-modal-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--tf-text-soft);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tf-app-modal-section-title small {
    color: var(--tf-text-muted);
    font-size: 0.78rem;
}

.tf-app-modal-grid,
.tf-app-modal-list {
    display: grid;
    gap: 0.75rem;
}

.tf-app-modal-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tf-app-modal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tf-app-modal-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    min-height: 4.25rem;
    padding: 0.85rem;
    border: 1px solid var(--tf-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--tf-text);
    text-align: left;
    transition:
        transform 180ms var(--tf-interactive-ease),
        border-color 180ms ease,
        background-color 180ms ease;
}

.tf-app-modal-item:hover,
.tf-app-modal-item:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(180, 156, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.tf-app-modal-item-compact {
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    min-height: 7.5rem;
    text-align: center;
}

.tf-app-modal-item-compact span {
    font-weight: 800;
    line-height: 1.2;
}

.tf-app-modal-item-copy {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.tf-app-modal-item-copy strong {
    font-size: 0.98rem;
    line-height: 1.25;
}

.tf-app-modal-item-copy small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--tf-text-muted);
    font-size: 0.82rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tf-app-modal-empty {
    padding: 1rem;
    border: 1px solid var(--tf-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--tf-text-muted);
}

.tf-site-main {
    position: relative;
    padding-top: var(--tf-header-height);
}

.tf-page-shell {
    width: min(1400px, 100%);
    max-width: 100vw;
    margin: 0 auto;
    padding: var(--tf-shell-y) var(--tf-shell-x) 5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.tf-public-delivery-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tf-page-header,
.tf-panel,
.tf-form-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(180, 156, 255, 0.1), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
    border: 1px solid var(--tf-line);
    border-radius: var(--tf-radius-md);
    box-shadow: var(--tf-shadow-md);
    backdrop-filter: blur(14px);
}

.tf-page-header,
.tf-panel,
.tf-form-card {
    padding: 1.5rem;
}

.tf-page-header {
    align-items: flex-end;
}

.tf-page-header-copy {
    max-width: 52rem;
    min-width: 0;
}

.tf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--tf-accent-soft);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.tf-eyebrow::before {
    content: "";
    width: 2.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tf-accent-soft));
}

.tf-page-header h1,
.tf-home-copy h1,
.tf-auth-copy h1,
.tf-section-heading h2 {
    margin: 0.8rem 0 1rem;
    font-family: var(--tf-font-display);
    line-height: 0.98;
    letter-spacing: -0.015em;
    font-weight: 400;
}

.tf-page-header h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.tf-section-heading h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.tf-muted,
.tf-header-copy,
.tf-home-intro {
    color: var(--tf-text-muted);
}

.tf-grid {
    display: grid;
    gap: 1rem;
    min-width: 0;
    max-width: 100%;
}

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

.tf-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tf-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    min-width: 0;
    max-width: 100%;
}

.tf-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
    gap: 1rem;
    min-width: 0;
    max-width: 100%;
}

.tf-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    padding: 1.5rem;
    border: 1px solid var(--tf-line);
    border-radius: var(--tf-radius-md);
    background:
        radial-gradient(circle at 18% 12%, rgba(180, 156, 255, 0.1), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
    box-shadow: var(--tf-shadow-md);
    backdrop-filter: blur(14px);
}

.tf-card h2,
.tf-card h3 {
    margin: 0.65rem 0 0;
}

.tf-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.tf-card-head > * {
    min-width: 0;
}

.tf-summary-list {
    display: grid;
    gap: 0.8rem;
    margin: 0;
}

.tf-summary-list > div {
    display: grid;
    gap: 0.2rem;
}

.tf-summary-list dt {
    color: var(--tf-text-muted);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tf-summary-list dd {
    margin: 0;
    color: var(--tf-text);
}

.tf-inline-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tf-stack,
.tf-form-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tf-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    min-width: 0;
    max-width: 100%;
}

.tf-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.tf-multi-select {
    width: 100%;
}

.tf-multi-select summary {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 3.4rem;
    padding-right: 3rem;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.tf-multi-select summary::-webkit-details-marker {
    display: none;
}

.tf-multi-select summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1.15rem;
    width: 0.65rem;
    height: 0.65rem;
    border-right: 2px solid var(--tf-text-muted);
    border-bottom: 2px solid var(--tf-text-muted);
    transform: translateY(-65%) rotate(45deg);
    transition: transform 180ms ease;
}

.tf-multi-select[open] summary::after {
    transform: translateY(-25%) rotate(-135deg);
}

.tf-multi-select-menu {
    display: grid;
    gap: 0.55rem;
    max-height: 16rem;
    margin-top: 0.75rem;
    padding: 0.8rem;
    overflow-y: auto;
    border: 1px solid var(--tf-line);
    border-radius: 18px;
    background: rgba(10, 11, 15, 0.84);
}

.tf-multi-select-option {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.6rem 0.7rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.tf-multi-select-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.tf-multi-select-option input {
    margin-top: 0.2rem;
    accent-color: var(--tf-accent);
    flex: 0 0 auto;
}

.tf-multi-select-meta {
    display: grid;
    gap: 0.12rem;
}

.tf-multi-select-meta strong {
    font-size: 0.96rem;
}

.tf-multi-select-meta span {
    color: var(--tf-text-muted);
    font-size: 0.82rem;
}

.tf-field-full {
    grid-column: 1 / -1;
}

.tf-input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border-radius: 16px;
    border: 1px solid var(--tf-line);
    background: rgba(10, 11, 15, 0.74);
    color: var(--tf-text);
    padding: 0.95rem 1rem;
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.tf-input:focus {
    border-color: rgba(180, 156, 255, 0.32);
    box-shadow: 0 0 0 3px rgba(125, 92, 255, 0.12);
    background: rgba(14, 15, 20, 0.9);
    outline: 0;
}

.tf-input::placeholder {
    color: #7e8495;
}

.tf-textarea {
    min-height: 160px;
    resize: vertical;
}

.tf-legal-template-textarea {
    min-height: 34rem;
}

.tf-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.tf-checkbox input {
    accent-color: var(--tf-accent);
}

.tf-delete-checkbox {
    color: var(--tf-text-muted);
    font-size: 0.9rem;
    letter-spacing: 0;
    text-transform: none;
}

.tf-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.tf-fieldset:disabled {
    opacity: 0.72;
}

.tf-error {
    color: var(--tf-danger);
}

.tf-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--tf-line);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tf-pill-neutral {
    color: var(--tf-text-muted);
}

.tf-pill-info {
    color: var(--tf-info);
}

.tf-pill-success {
    color: var(--tf-success);
}

.tf-pill-danger {
    color: var(--tf-danger);
}

.tf-panel h3,
.tf-form-card h2 {
    margin-bottom: 0.45rem;
    font-size: 1.22rem;
}

.tf-section-heading {
    align-items: flex-end;
}

.tf-section-heading-stack {
    align-items: center;
}

.tf-tool-card,
.tf-card-link {
    height: 100%;
    transition: transform 180ms var(--tf-interactive-ease), border-color 180ms ease, box-shadow 180ms ease;
}

.tf-tool-card:hover,
.tf-tool-card:focus-visible,
.tf-card-link:hover,
.tf-card-link:focus-visible,
.tf-panel:hover {
    transform: translateY(-2px);
    border-color: rgba(180, 156, 255, 0.22);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
}

.tf-tool-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}

.tf-tool-card-body {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
}

.tf-tool-launch {
    color: var(--tf-text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tf-tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.tf-tool-icon-image {
    width: 68%;
    height: 68%;
    object-fit: contain;
}

.tf-tool-icon-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tf-text-soft);
}

.tf-tool-icon-inline {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    flex: 0 0 auto;
}

.tf-tool-icon-inline .tf-tool-icon-image {
    width: 70%;
    height: 70%;
}

.tf-tool-icon-inline .tf-tool-icon-fallback {
    font-size: 0.68rem;
}

.tf-summary-card {
    min-height: 12.5rem;
}

.tf-stat-value {
    display: block;
    font-family: var(--tf-font-display);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1;
}

.tf-stat-label {
    display: block;
    margin-top: 0.45rem;
    color: var(--tf-text-muted);
    font-size: 0.92rem;
}

.tf-empty-state {
    align-items: flex-start;
}

.tf-home-hero {
    position: relative;
    min-height: calc(100svh - 7rem);
    margin: calc(-1 * var(--tf-shell-y)) calc(-1 * var(--tf-shell-x)) 0;
    padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 4.5rem);
    display: flex;
    align-items: center;
    overflow: clip;
}

.tf-home-media {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.tf-home-image-shell {
    position: absolute;
    inset: 8% 8% 10% 42%;
    border-radius: var(--tf-radius-lg);
    overflow: hidden;
    opacity: 0.34;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--tf-shadow-lg);
}

.tf-home-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.tf-home-grid,
.tf-home-glow {
    position: absolute;
    inset: 0;
}

.tf-home-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 78%);
}

.tf-home-glow-one {
    background: radial-gradient(circle at 22% 20%, rgba(125, 92, 255, 0.23), transparent 28%);
}

.tf-home-glow-two {
    background: radial-gradient(circle at 78% 28%, rgba(72, 130, 255, 0.16), transparent 22%);
}

.tf-home-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.82fr);
    align-items: end;
    gap: 2rem;
}

.tf-home-copy {
    max-width: 42rem;
}

.tf-home-copy h1,
.tf-auth-copy h1 {
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    text-wrap: balance;
}

.tf-home-intro {
    max-width: 42rem;
}

.tf-home-meta {
    list-style: none;
    padding: 0;
    margin: 1.6rem 0 0;
    display: grid;
    gap: 0.9rem;
    color: var(--tf-text-soft);
}

.tf-home-meta li {
    position: relative;
    padding-left: 1.35rem;
}

.tf-home-meta li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tf-accent), var(--tf-accent-soft));
    box-shadow: 0 0 16px rgba(125, 92, 255, 0.5);
}

.tf-home-panel {
    max-width: 24rem;
}

.tf-home-panel-block strong {
    display: block;
    margin: 0.9rem 0 0.6rem;
    font-size: 1.2rem;
}

.tf-home-panel-block p {
    color: var(--tf-text-muted);
}

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

.tf-home-tools-section {
    padding-top: 1.75rem;
}

.tf-home-tools-intro {
    max-width: 52rem;
    color: var(--tf-text-muted);
}

.tf-home-tools-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.tf-home-tool-feature,
.tf-home-tool-highlight {
    min-height: 100%;
}

.tf-home-tool-feature {
    display: grid;
    align-content: start;
    gap: 0.8rem;
    min-height: 15rem;
}

.tf-home-tool-feature h3,
.tf-home-tool-highlight h3 {
    margin: 0;
}

.tf-home-tool-feature p,
.tf-home-tool-highlight p,
.tf-home-highlight-list {
    color: var(--tf-text-muted);
}

.tf-home-tool-feature:nth-child(1),
.tf-home-tool-feature:nth-child(2),
.tf-home-tool-feature:nth-child(3) {
    grid-column: span 4;
}

.tf-home-tool-feature:nth-child(4),
.tf-home-tool-feature:nth-child(5),
.tf-home-tool-feature:nth-child(6),
.tf-home-tool-feature:nth-child(7) {
    grid-column: span 3;
}

.tf-home-tool-highlight {
    grid-column: 1 / -1;
    display: grid;
    align-content: start;
    gap: 1rem;
    background:
        radial-gradient(circle at top right, rgba(125, 92, 255, 0.2), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.tf-home-highlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.tf-home-highlight-list li {
    position: relative;
    padding-left: 1.25rem;
}

.tf-home-highlight-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tf-accent), var(--tf-accent-soft));
    box-shadow: 0 0 12px rgba(125, 92, 255, 0.4);
}

.tf-section {
    width: 100%;
    padding: 0.5rem 0 0;
}

.tf-feature-card {
    min-height: 14rem;
}

.tf-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
    align-items: start;
    gap: 1.5rem;
}

.tf-auth-copy {
    padding: clamp(0.75rem, 2vw, 1rem) 0;
}

.tf-auth-highlights {
    max-width: 36rem;
}

.tf-auth-card {
    max-width: 32rem;
}

.tf-auth-card-head {
    display: grid;
    gap: 0.35rem;
}

.tf-ready-actions,
.tf-ready-alert-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.tf-ready-actions {
    margin-top: 0.75rem;
}

.tf-ready-paired-grid {
    align-items: start;
}

.tf-ready-paired-card {
    position: sticky;
    top: calc(var(--tf-header-height) + 5.25rem);
    align-self: start;
}

.tf-ready-metrics,
.tf-ready-alerts {
    display: grid;
    gap: 1rem;
}

.tf-ready-alert-actions {
    display: flex;
    justify-content: flex-start;
}

.tf-ready-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tf-ready-metric,
.tf-ready-alert,
.tf-ready-checkbox {
    display: grid;
    gap: 0.6rem;
    border-radius: 20px;
}

.tf-ready-metric {
    padding: 1.1rem;
    border: 1px solid var(--tf-line);
    background: rgba(255, 255, 255, 0.03);
}

.tf-ready-metric strong {
    font-size: 1.35rem;
}

.tf-ready-alert {
    padding: 1.1rem;
    border: 1px solid var(--tf-line);
    background: rgba(255, 255, 255, 0.03);
}

.tf-ready-alert-info {
    border-color: rgba(159, 196, 255, 0.25);
}

.tf-ready-alert-danger {
    border-color: rgba(255, 144, 144, 0.25);
}

.tf-ready-check-section {
    display: grid;
    gap: 0.85rem;
}

.tf-ready-history,
.tf-ready-history-item,
.tf-ready-history-meta {
    display: grid;
    gap: 0.75rem;
}

.tf-ready-history-item {
    padding: 1.1rem;
    border: 1px solid var(--tf-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
}

.tf-ready-history-meta {
    justify-items: end;
    text-align: right;
}

.tf-ready-checkbox {
    cursor: pointer;
}

.tf-ready-checkbox:hover {
    border-color: rgba(180, 156, 255, 0.22);
}

.tf-legal-meta,
.tf-legal-signature-meta,
.tf-billing-meta,
.tf-storage-meta,
.tf-quote-package-meta {
    display: grid;
    gap: 0.35rem;
}

.tf-legal-preview,
.tf-billing-summary {
    display: grid;
    gap: 1rem;
}

.tf-signing-layout {
    display: grid;
    gap: 1rem;
}

.tf-signing-overview {
    display: grid;
    gap: 1.2rem;
}

.tf-signing-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
    gap: 1rem;
    align-items: start;
}

.tf-signing-overview-grid-signed {
    grid-template-columns: minmax(0, 1fr);
}

.tf-signing-overview-grid-signed .tf-signing-quote-overview {
    padding-left: 0;
    border-left: 0;
}

.tf-signing-overview-section,
.tf-signing-overview-copy,
.tf-signing-breakdown {
    display: grid;
    gap: 0.85rem;
    min-width: 0;
}

.tf-signing-overview-copy h3 {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.2;
}

.tf-signing-summary-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem 1rem;
}

.tf-signing-summary-list > div {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
    padding-top: 0.85rem;
    border-top: 1px solid var(--tf-line);
}

.tf-signing-summary-list > div:nth-child(n + 3) {
    grid-column: 1 / -1;
}

.tf-signing-summary-list span,
.tf-signing-quote-metrics span {
    color: var(--tf-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.tf-signing-summary-list strong,
.tf-signing-summary-list small,
.tf-signing-summary-list p {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.tf-signing-summary-list small,
.tf-signing-summary-list p {
    color: var(--tf-text-soft);
}

.tf-signing-summary-list p {
    white-space: pre-wrap;
}

.tf-signing-quote-overview {
    padding-left: 1rem;
    border-left: 1px solid var(--tf-line);
}

.tf-signing-quote-total {
    display: block;
    font-family: var(--tf-font-display);
    font-size: 2.7rem;
    line-height: 1;
    letter-spacing: 0;
}

.tf-signing-quote-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.tf-signing-quote-metrics > div {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
    padding: 0.8rem;
    border: 1px solid var(--tf-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.tf-signing-quote-metrics strong {
    overflow-wrap: anywhere;
}

.tf-signing-breakdown-list {
    display: grid;
    gap: 0.55rem;
}

.tf-payment-priority {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.9rem;
    border: 1px solid rgba(245, 158, 11, 0.5);
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.1);
}

.tf-payment-priority div {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.tf-payment-priority span {
    color: var(--tf-text-muted);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.tf-payment-priority .tf-btn {
    justify-self: end;
    white-space: normal;
}

.tf-signing-breakdown-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: start;
    padding: 0.75rem 0;
    border-top: 1px solid var(--tf-line);
}

.tf-signing-breakdown-row:first-child {
    border-top: 0;
}

.tf-signing-breakdown-row div {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.tf-signing-breakdown-row span {
    color: var(--tf-text-muted);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.tf-signing-document {
    gap: 1.1rem;
}

.tf-signing-document-scroll {
    min-height: 20rem;
    max-height: min(58vh, 42rem);
    padding: 1.2rem;
    overflow-y: auto;
    border: 1px solid var(--tf-line);
    border-radius: 18px;
    background: rgba(5, 6, 10, 0.48);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.tf-signing-document-scroll:focus-visible {
    outline: 2px solid rgba(180, 156, 255, 0.5);
    outline-offset: 3px;
}

.tf-signing-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.tf-signing-panel-header .tf-btn {
    flex: 0 0 auto;
}

.tf-billing-amount {
    font-family: var(--tf-font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.tf-quote-package {
    width: 100%;
    text-align: left;
}

.tf-quote-package-active {
    border-color: rgba(180, 156, 255, 0.4);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(180, 156, 255, 0.16);
}

.tf-quote-lines {
    display: grid;
    gap: 0.75rem;
}

.tf-quote-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--tf-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.tf-quote-line span {
    display: block;
    color: var(--tf-text-muted);
    font-size: 0.88rem;
}

.tf-quote-notes {
    min-height: 8rem;
}

.tf-music-license-panel,
.tf-music-license-panel .tf-section-heading,
.tf-music-license-panel .tf-field,
.tf-music-license-panel .tf-input {
    min-width: 0;
    max-width: 100%;
}

.tf-music-license-panel {
    overflow: hidden;
}

.tf-music-license-panel h3,
.tf-music-license-panel p,
.tf-music-license-panel select,
.tf-music-license-panel option {
    overflow-wrap: anywhere;
}

.tf-music-license-panel input[type="file"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.tf-music-license-panel .tf-btn {
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.tf-legal-section {
    display: grid;
    gap: 0.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--tf-line);
}

.tf-legal-section:first-child {
    padding-top: 0;
    border-top: 0;
}

.tf-legal-rich {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    color: var(--tf-text-soft);
}

.tf-bookings-shell {
    display: grid;
    gap: 1rem;
}

.tf-bookings-calendar-head,
.tf-bookings-day-head,
.tf-bookings-timeline-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.tf-bookings-calendar-head {
    align-items: flex-start;
}

.tf-bookings-calendar-title {
    display: grid;
    gap: 0.35rem;
}

.tf-bookings-calendar-title p {
    margin: 0;
    max-width: 42rem;
}

.tf-bookings-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.75rem;
}

.tf-bookings-calendar-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(170px, 1fr);
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
}

.tf-bookings-weekday {
    padding: 0.25rem 0.5rem;
    color: var(--tf-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tf-bookings-day {
    min-height: 11.5rem;
    min-width: 0;
    padding: 0.9rem;
    border: 1px solid var(--tf-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    align-content: start;
    gap: 0.75rem;
}

.tf-bookings-day-compact {
    min-height: 9.25rem;
}

.tf-bookings-day-muted {
    opacity: 0.55;
}

.tf-bookings-day-today {
    border-color: rgba(180, 156, 255, 0.28);
    box-shadow: inset 0 0 0 1px rgba(180, 156, 255, 0.16);
}

.tf-bookings-day-items,
.tf-bookings-timeline,
.tf-bookings-meta-grid {
    display: grid;
    min-width: 0;
    gap: 0.75rem;
}

.tf-bookings-chip {
    display: grid;
    min-width: 0;
    gap: 0.2rem;
    padding: 0.75rem;
    border-radius: 16px;
    border: 1px solid var(--tf-line);
    background: rgba(255, 255, 255, 0.04);
    transition: transform 180ms var(--tf-interactive-ease), border-color 180ms ease, background-color 180ms ease;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tf-bookings-chip:hover,
.tf-bookings-chip:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(180, 156, 255, 0.24);
    background: rgba(255, 255, 255, 0.06);
}

.tf-bookings-chip span {
    color: var(--tf-text-muted);
    font-size: 0.83rem;
}

.tf-bookings-chip strong,
.tf-bookings-chip span {
    min-width: 0;
}

.tf-bookings-chip-success {
    border-color: rgba(119, 221, 164, 0.28);
}

.tf-bookings-chip-info {
    border-color: rgba(159, 196, 255, 0.28);
}

.tf-bookings-chip-danger {
    border-color: rgba(255, 144, 144, 0.28);
}

.tf-bookings-chip-active {
    border-color: rgba(180, 156, 255, 0.38);
    box-shadow: inset 0 0 0 1px rgba(180, 156, 255, 0.18);
    background: rgba(125, 92, 255, 0.08);
}

.tf-bookings-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tf-bookings-day-head-compact {
    align-items: flex-start;
}

.tf-bookings-day-label {
    display: grid;
    gap: 0.12rem;
}

.tf-bookings-day-weekday {
    color: var(--tf-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tf-bookings-timeline {
    position: relative;
}

.tf-bookings-timeline::before {
    content: "";
    position: absolute;
    left: 6.9rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 1px;
    background: linear-gradient(180deg, rgba(180, 156, 255, 0.35), rgba(255, 255, 255, 0.05));
}

.tf-bookings-timeline-item {
    position: relative;
    align-items: flex-start;
}

.tf-bookings-time {
    width: 6rem;
    flex: 0 0 auto;
    color: var(--tf-accent-soft);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tf-bookings-entry {
    flex: 1 1 auto;
    padding: 1rem 1rem 1rem 1.3rem;
    border: 1px solid var(--tf-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
}

.tf-bookings-entry::before {
    content: "";
    position: absolute;
    left: -0.46rem;
    top: 1.2rem;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    border: 2px solid rgba(180, 156, 255, 0.5);
    background: #0b0b0d;
    box-shadow: 0 0 0 6px rgba(125, 92, 255, 0.08);
}

.tf-storage-upload-button {
    position: relative;
}

.tf-storage-upload-button input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.tf-storage-upload-progress {
    display: grid;
    gap: 0.6rem;
}

.tf-storage-upload-progress-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.tf-storage-upload-progress-bar {
    height: 0.7rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tf-storage-upload-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #5dd6ff 0%, #7bf0c8 100%);
    transition: width 120ms linear;
}

.tf-storage-view-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.tf-storage-view-toolbar p {
    margin: 0.35rem 0 0;
}

.tf-storage-view-switcher {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

.tf-storage-view-button {
    min-height: 2.65rem;
    padding: 0.58rem 0.9rem;
    border: 1px solid var(--tf-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--tf-text-soft);
    font-weight: 800;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.tf-storage-view-button:hover,
.tf-storage-view-button:focus-visible,
.tf-storage-view-button.is-active {
    border-color: rgba(180, 156, 255, 0.34);
    background: rgba(125, 92, 255, 0.16);
    color: var(--tf-text);
}

.tf-storage-detail-list {
    display: grid;
    gap: 0.75rem;
}

.tf-storage-sow-sections,
.tf-storage-sow-section {
    display: grid;
    gap: 1rem;
}

.tf-storage-detail-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
}

.tf-storage-sow-detail-row {
    grid-template-columns: 7.5rem minmax(0, 1fr) auto;
}

.tf-storage-sow-preview {
    position: relative;
    display: block;
    width: 7.5rem;
    aspect-ratio: 16 / 10;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--tf-line);
    border-radius: 8px;
    background: rgba(5, 6, 8, 0.92);
    color: var(--tf-text-muted);
    cursor: pointer;
}

.tf-storage-sow-preview img,
.tf-storage-sow-preview video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tf-storage-sow-preview-empty {
    display: grid;
    place-items: center;
    color: var(--tf-text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tf-storage-detail-copy {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.tf-storage-detail-copy strong {
    overflow-wrap: anywhere;
    line-height: 1.25;
}

.tf-storage-row-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.tf-storage-preview-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.85rem;
}

.tf-storage-preview-tile {
    display: grid;
    align-content: start;
    gap: 0.7rem;
    padding: 0.75rem;
}

.tf-storage-preview-tile-media {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--tf-line);
    border-radius: 18px;
    background: rgba(5, 6, 8, 0.92);
}

.tf-storage-preview-tile-media img,
.tf-storage-preview-tile-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tf-storage-preview-tile-copy {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.tf-storage-preview-tile-copy strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.92rem;
    line-height: 1.25;
}

.tf-storage-preview-tile-copy span {
    color: var(--tf-text-muted);
    font-size: 0.78rem;
}

.tf-storage-preview-shell {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--tf-line);
    background: rgba(255, 255, 255, 0.03);
}

.tf-storage-video-player {
    position: relative;
    background: rgba(5, 6, 8, 0.92);
}

.tf-storage-quality-toggle {
    position: absolute;
    left: 0.65rem;
    top: 0.65rem;
    z-index: 2;
    display: inline-flex;
    gap: 0.2rem;
    padding: 0.2rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(8, 10, 16, 0.76);
    box-shadow: 0 0.7rem 1.5rem rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
}

.tf-storage-quality-button {
    min-height: 2rem;
    min-width: 4.7rem;
    padding: 0.38rem 0.65rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    transition: background-color 180ms ease, color 180ms ease;
}

.tf-storage-quality-button:hover,
.tf-storage-quality-button:focus-visible,
.tf-storage-quality-button.is-active {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.tf-storage-preview-download {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(8, 10, 16, 0.76);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 0.7rem 1.5rem rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.tf-storage-preview-download:hover,
.tf-storage-preview-download:focus-visible {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(20, 24, 35, 0.92);
    color: #fff;
    transform: translateY(-1px);
}

.tf-storage-preview {
    width: 100%;
    max-height: 28rem;
    object-fit: contain;
    background: rgba(5, 6, 8, 0.92);
}

.tf-storage-video-player .tf-storage-preview {
    display: block;
}

.tf-storage-editor-shell {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.tf-storage-editor-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: calc(var(--tf-header-height) + 1rem) 1rem 1.5rem;
    overflow: hidden;
    background: rgba(4, 5, 9, 0.82);
    backdrop-filter: blur(18px);
}

.tf-storage-editor-modal {
    position: relative;
    width: min(72rem, calc(100vw - 2rem));
    max-height: calc(100vh - var(--tf-header-height) - 2.5rem);
    max-height: calc(100dvh - var(--tf-header-height) - 2.5rem);
    overflow-y: auto;
    padding: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(18, 19, 28, 0.98), rgba(10, 11, 16, 0.98)),
        radial-gradient(circle at top right, rgba(125, 92, 255, 0.18), transparent 38%);
    box-shadow: var(--tf-shadow-lg);
    scrollbar-width: thin;
}

.tf-storage-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(20rem, 1.05fr);
    gap: 1.2rem;
    padding-right: 3rem;
}

.tf-storage-editor-layout h2 {
    margin: 0.35rem 0 0;
    font-size: 1.45rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.tf-storage-public-preview-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: calc(var(--tf-header-height) + 1rem) 1rem 1.5rem;
    overflow: hidden;
    background: rgba(4, 5, 9, 0.74);
    backdrop-filter: blur(20px);
}

.tf-storage-public-preview-modal {
    position: relative;
    width: min(72rem, calc(100vw - 2rem));
    max-height: calc(100vh - var(--tf-header-height) - 2.5rem);
    max-height: calc(100dvh - var(--tf-header-height) - 2.5rem);
    display: grid;
    gap: 1rem;
    overflow-y: auto;
    padding: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(18, 19, 28, 0.98), rgba(10, 11, 16, 0.98));
    box-shadow: var(--tf-shadow-lg);
    scrollbar-width: thin;
}

.tf-storage-public-preview-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-right: 3rem;
}

.tf-storage-public-preview-heading h2 {
    margin: 0.35rem 0 0;
    font-size: 1.45rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.tf-storage-public-preview-media {
    display: block;
    width: 100%;
    max-height: min(70vh, 42rem);
    object-fit: contain;
    border: 1px solid var(--tf-line);
    border-radius: 14px;
    background: rgba(5, 6, 8, 0.92);
}

.tf-music-player {
    width: 100%;
    min-height: 2.8rem;
    border-radius: 14px;
    border: 1px solid var(--tf-line);
    background: rgba(5, 6, 8, 0.92);
}

.tf-music-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tf-music-tag {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--tf-line);
    color: var(--tf-text-soft);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.78rem;
    font-weight: 700;
}

.tf-email-shell {
    display: grid;
    grid-template-columns: minmax(19rem, 0.32fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    min-width: 0;
}

.tf-email-sidebar,
.tf-email-main,
.tf-email-layout,
.tf-email-admin-panel {
    min-width: 0;
}

.tf-email-sidebar {
    position: sticky;
    top: calc(var(--tf-header-height) + 1rem);
    display: grid;
    gap: 1rem;
}

.tf-email-main,
.tf-email-admin-panel,
.tf-email-account-list,
.tf-email-message-list,
.tf-email-sent-list {
    display: grid;
    gap: 0.85rem;
}

.tf-email-account-button,
.tf-email-message-button {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 0.5rem;
    padding: 0.85rem;
    border: 1px solid var(--tf-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--tf-text);
    text-align: left;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms var(--tf-interactive-ease);
}

.tf-email-account-button {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.tf-email-account-button:hover,
.tf-email-account-button:focus-visible,
.tf-email-account-button.is-active,
.tf-email-message-button:hover,
.tf-email-message-button:focus-visible,
.tf-email-message-button.is-active {
    border-color: rgba(180, 156, 255, 0.32);
    background: rgba(255, 255, 255, 0.065);
    transform: translateY(-1px);
}

.tf-email-account-button strong,
.tf-email-message-button strong,
.tf-email-sent-list strong {
    display: block;
    overflow-wrap: anywhere;
    line-height: 1.25;
}

.tf-email-account-button small,
.tf-email-message-button small,
.tf-email-message-button span,
.tf-email-sent-list small,
.tf-email-sent-list span {
    display: block;
    color: var(--tf-text-muted);
    font-size: 0.84rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.tf-email-meta-grid,
.tf-email-message-head,
.tf-email-preview-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.tf-email-message-head,
.tf-email-preview-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tf-email-meta-grid span,
.tf-email-message-head span,
.tf-email-preview-meta span {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid var(--tf-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--tf-text-soft);
    overflow-wrap: anywhere;
}

.tf-email-meta-grid strong,
.tf-email-message-head strong,
.tf-email-preview-meta strong {
    color: var(--tf-accent-soft);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tf-email-layout {
    display: grid;
    grid-template-columns: minmax(18rem, 0.42fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.tf-email-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid var(--tf-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.tf-email-message-list {
    max-height: 30rem;
    overflow-y: auto;
    padding-right: 0.2rem;
    scrollbar-width: thin;
}

.tf-email-message-preview,
.tf-email-preview-body,
.tf-email-signature-preview {
    display: block;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--tf-line);
    border-radius: 16px;
    background: #fff;
    color-scheme: light;
}

.tf-email-message-preview {
    height: 32rem;
}

.tf-email-preview-body {
    height: min(62vh, 42rem);
    min-height: 28rem;
}

.tf-email-signature-preview {
    height: 16rem;
}

.tf-email-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.55rem;
    border: 1px solid var(--tf-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
}

.tf-email-editor-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    min-height: 2.35rem;
    padding: 0.4rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--tf-text);
    font-weight: 800;
}

.tf-email-editor-toolbar button:hover,
.tf-email-editor-toolbar button:focus-visible {
    border-color: rgba(180, 156, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
}

.tf-email-editor {
    min-height: 16rem;
    padding: 1rem;
    border: 1px solid var(--tf-line);
    border-radius: 16px;
    background: #fff;
    color: #14141a;
    overflow-y: auto;
    line-height: 1.55;
}

.tf-email-editor:empty::before {
    content: "Write your email...";
    color: #687084;
}

.tf-email-editor blockquote {
    margin: 0.75rem 0;
    padding-left: 1rem;
    border-left: 3px solid #7d5cff;
    color: #41475a;
}

.tf-email-attachment-list {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    gap: 0.45rem;
    min-height: 3.4rem;
}

.tf-email-attachment-list span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.3rem 0.65rem;
    border: 1px solid var(--tf-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--tf-text-soft);
    font-size: 0.82rem;
}

.tf-email-sent-list article {
    display: grid;
    gap: 0.2rem;
    padding: 0.85rem;
    border: 1px solid var(--tf-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
}

.tf-email-compose-backdrop,
.tf-email-preview-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: calc(var(--tf-header-height) + 1rem) 1rem 1.5rem;
    overflow: hidden;
    background: rgba(4, 5, 9, 0.82);
    backdrop-filter: blur(18px);
}

.tf-email-compose-backdrop {
    z-index: 1000;
}

.tf-email-preview-backdrop {
    z-index: 1100;
}

.tf-email-compose-modal,
.tf-email-preview-modal {
    position: relative;
    width: min(76rem, calc(100vw - 2rem));
    max-height: calc(100vh - var(--tf-header-height) - 2.5rem);
    max-height: calc(100dvh - var(--tf-header-height) - 2.5rem);
    display: grid;
    gap: 1rem;
    overflow-y: auto;
    padding: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(18, 19, 28, 0.98), rgba(10, 11, 16, 0.98));
    box-shadow: var(--tf-shadow-lg);
    scrollbar-width: thin;
}

.tf-email-compose-modal {
    width: min(68rem, calc(100vw - 2rem));
}

.tf-demo-hint-wrap,
.tf-demo-info,
.tf-demo-mini-hint {
    position: relative;
}

.tf-demo-hint-wrap {
    display: inline-flex;
}

.tf-demo-info {
    color: var(--tf-text-muted);
    cursor: help;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.tf-demo-mini-hint {
    align-items: center;
    background: rgba(180, 156, 255, 0.12);
    border: 1px solid rgba(180, 156, 255, 0.28);
    border-radius: 999px;
    color: var(--tf-accent-soft);
    cursor: help;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 900;
    height: 1.2rem;
    justify-content: center;
    letter-spacing: 0;
    line-height: 1;
    margin-left: 0.35rem;
    text-transform: none;
    width: 1.2rem;
}

.tf-demo-hint-wrap:hover,
.tf-demo-hint-wrap:focus-within,
.tf-demo-info:hover,
.tf-demo-info:focus-within,
.tf-demo-mini-hint:hover,
.tf-demo-mini-hint:focus-within {
    z-index: 260;
}

.tf-demo-hint-card {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.65rem);
    z-index: 120;
    width: min(18rem, calc(100vw - 2rem));
    max-width: max-content;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(180, 156, 255, 0.28);
    border-radius: 16px;
    background: rgba(10, 11, 15, 0.96);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
    color: var(--tf-text-soft);
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    text-align: left;
    text-transform: none;
    transform: translate(-50%, 0.35rem);
    transition: opacity 160ms ease, transform 160ms ease;
    white-space: normal;
}

.tf-demo-hint-card::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.42rem;
    width: 0.75rem;
    height: 0.75rem;
    border-right: 1px solid rgba(180, 156, 255, 0.28);
    border-bottom: 1px solid rgba(180, 156, 255, 0.28);
    background: rgba(10, 11, 15, 0.96);
    transform: translateX(-50%) rotate(45deg);
}

.tf-demo-hint-wrap:hover > .tf-demo-hint-card,
.tf-demo-hint-wrap:focus-within > .tf-demo-hint-card,
.tf-demo-info:hover > .tf-demo-hint-card,
.tf-demo-info:focus-within > .tf-demo-hint-card,
.tf-demo-mini-hint:hover > .tf-demo-hint-card,
.tf-demo-mini-hint:focus-within > .tf-demo-hint-card,
.tf-stage-chip:hover > .tf-demo-hint-card,
.tf-stage-chip:focus-visible > .tf-demo-hint-card {
    opacity: 1;
    transform: translate(-50%, 0);
}

.tf-header-actions .tf-demo-hint-wrap:last-child > .tf-demo-hint-card {
    right: 0;
    left: auto;
    transform: translate(0, 0.35rem);
}

.tf-header-actions .tf-demo-hint-wrap:last-child > .tf-demo-hint-card::after {
    right: 3rem;
    left: auto;
    transform: rotate(45deg);
}

.tf-header-actions .tf-demo-hint-wrap:last-child:hover > .tf-demo-hint-card,
.tf-header-actions .tf-demo-hint-wrap:last-child:focus-within > .tf-demo-hint-card {
    transform: translate(0, 0);
}

.tf-demo-locked-action:disabled {
    cursor: not-allowed;
}

.tf-generation-input-shell {
    --tf-generation-form-max-height: 260rem;
    display: grid;
    gap: 1rem;
    min-width: 0;
    max-width: 100%;
    transform-origin: top center;
}

.tf-generation-input-shell .tf-page-header {
    transition: transform 520ms var(--tf-interactive-ease), box-shadow 520ms var(--tf-interactive-ease), border-color 520ms ease;
}

.tf-generation-form-body {
    display: grid;
    gap: 1rem;
    max-height: var(--tf-generation-form-max-height);
    min-width: 0;
    max-width: 100%;
    opacity: 1;
    overflow: visible;
    transform: translateY(0) scale(1);
    transform-origin: top center;
    transition:
        max-height 620ms var(--tf-interactive-ease),
        opacity 260ms ease,
        transform 620ms var(--tf-interactive-ease);
}

.tf-generation-form-body > form {
    display: grid;
    gap: 1.5rem;
    min-width: 0;
    max-width: 100%;
}

.tf-generation-form-body > form > .tf-panel {
    z-index: 1;
}

.tf-generation-input-shell .tf-page-header:hover,
.tf-generation-input-shell .tf-page-header:focus-within,
.tf-generation-form-body > form > .tf-panel:hover,
.tf-generation-form-body > form > .tf-panel:focus-within {
    z-index: 300;
}

.tf-generation-form-body > form > .tf-actions {
    margin-top: 0.35rem;
    padding-top: 0.35rem;
}

.tf-generation-collapse-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 0;
    max-height: 0;
    padding: 0 1.1rem;
    overflow: hidden;
    border: 1px solid var(--tf-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
    opacity: 0;
    transform: translateY(-0.75rem) scale(0.98);
    transform-origin: top center;
    transition:
        max-height 520ms var(--tf-interactive-ease),
        padding 520ms var(--tf-interactive-ease),
        opacity 260ms ease,
        transform 520ms var(--tf-interactive-ease);
}

.tf-generation-collapse-summary strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.05rem;
}

.tf-generation-input-shell.is-generating .tf-page-header {
    border-color: rgba(180, 156, 255, 0.24);
    box-shadow: 0 24px 58px rgba(125, 92, 255, 0.16);
}

.tf-generation-input-shell.is-collapsed .tf-page-header {
    transform: translateY(0) scale(0.985);
    border-color: rgba(180, 156, 255, 0.28);
}

.tf-generation-input-shell.is-collapsed .tf-generation-form-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-1.2rem) scale(0.965);
}

.tf-generation-input-shell.is-collapsed .tf-generation-collapse-summary {
    max-height: 10rem;
    padding: 1rem 1.1rem;
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (max-width: 1100px) {
    .tf-header-right {
        gap: 1.2rem;
    }

    .tf-site-nav {
        gap: 1rem;
    }

    .tf-home-image-shell {
        inset: 11% 4% 13% 48%;
    }

    .tf-home-content {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
    }

    .tf-home-tool-feature:nth-child(1),
    .tf-home-tool-feature:nth-child(2),
    .tf-home-tool-feature:nth-child(3),
    .tf-home-tool-feature:nth-child(4),
    .tf-home-tool-feature:nth-child(5),
    .tf-home-tool-feature:nth-child(6),
    .tf-home-tool-feature:nth-child(7) {
        grid-column: span 6;
    }
}

@media (max-width: 900px) {
    .tf-grid-2,
    .tf-grid-3,
    .tf-toolbar,
    .tf-form-grid,
    .tf-signing-overview-grid,
    .tf-ready-metrics,
    .tf-bookings-meta-grid,
    .tf-home-content,
    .tf-auth-shell,
    .tf-home-tools-grid,
    .tf-email-shell,
    .tf-email-layout,
    .tf-email-meta-grid,
    .tf-email-message-head,
    .tf-email-preview-meta {
        grid-template-columns: 1fr;
    }

    .tf-email-sidebar {
        position: static;
    }

    .tf-home-tool-feature:nth-child(1),
    .tf-home-tool-feature:nth-child(2),
    .tf-home-tool-feature:nth-child(3),
    .tf-home-tool-feature:nth-child(4),
    .tf-home-tool-feature:nth-child(5),
    .tf-home-tool-feature:nth-child(6),
    .tf-home-tool-feature:nth-child(7),
    .tf-home-tool-highlight {
        grid-column: auto;
    }

    .tf-ready-history-meta {
        justify-items: start;
        text-align: left;
    }

    .tf-page-header,
    .tf-section-heading,
    .tf-header-strip-inner,
    .tf-storage-view-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .tf-storage-view-switcher {
        justify-content: flex-start;
        width: 100%;
    }

    .tf-storage-detail-row {
        grid-template-columns: 1fr;
    }

    .tf-storage-row-actions {
        justify-content: flex-start;
    }

    .tf-storage-preview-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .tf-storage-editor-layout {
        grid-template-columns: 1fr;
        padding-right: 0;
    }

    .tf-section-heading-stack {
        align-items: flex-start;
    }

    .tf-header-actions,
    .tf-actions,
    .tf-ready-actions {
        justify-content: flex-start;
    }

    .tf-home-hero {
        min-height: auto;
        padding-top: 2rem;
    }

    .tf-home-image-shell {
        inset: 8% 1rem 36% 1rem;
        opacity: 0.2;
    }

    .tf-home-panel,
    .tf-auth-card {
        max-width: none;
    }

    .tf-bookings-shell {
        grid-template-columns: 1fr;
    }

    .tf-ready-paired-card {
        position: static;
    }

    .tf-signing-quote-overview {
        padding-left: 0;
        padding-top: 1rem;
        border-left: 0;
        border-top: 1px solid var(--tf-line);
    }

    .tf-signing-summary-list,
    .tf-signing-quote-metrics {
        grid-template-columns: 1fr;
    }

    .tf-bookings-calendar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tf-app-modal-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tf-app-modal-list {
        grid-template-columns: 1fr;
    }

    .tf-bookings-calendar-strip {
        grid-auto-columns: minmax(15rem, 72vw);
    }

    .tf-bookings-day {
        min-height: 8.5rem;
    }
}

@media (max-width: 720px) {
    button,
    input,
    select,
    textarea {
        font-size: 16px;
    }

    .tf-generation-input-shell {
        --tf-generation-form-max-height: 420rem;
    }

    .tf-generation-form-body > form {
        gap: 1.65rem;
    }

    .tf-demo-hint-card {
        position: fixed;
        top: 5.25rem;
        right: 1rem;
        bottom: auto;
        left: 1rem;
        width: auto;
        max-width: none;
        transform: translateY(0.35rem);
    }

    .tf-demo-hint-card::after {
        display: none;
    }

    .tf-demo-hint-wrap:hover > .tf-demo-hint-card,
    .tf-demo-hint-wrap:focus-within > .tf-demo-hint-card,
    .tf-demo-info:hover > .tf-demo-hint-card,
    .tf-demo-info:focus-within > .tf-demo-hint-card,
    .tf-demo-mini-hint:hover > .tf-demo-hint-card,
    .tf-demo-mini-hint:focus-within > .tf-demo-hint-card,
    .tf-stage-chip:hover > .tf-demo-hint-card,
    .tf-stage-chip:focus-visible > .tf-demo-hint-card,
    .tf-header-actions .tf-demo-hint-wrap:last-child:hover > .tf-demo-hint-card,
    .tf-header-actions .tf-demo-hint-wrap:last-child:focus-within > .tf-demo-hint-card {
        transform: translateY(0);
    }

    .tf-page-shell {
        gap: 1rem;
        padding-bottom: 3.5rem;
    }

    .tf-page-header,
    .tf-panel,
    .tf-form-card {
        padding: 1.1rem;
        border-radius: 22px;
    }

    .tf-public-delivery-page {
        padding-top: clamp(1.25rem, 8vw, 3rem);
    }

    .tf-page-header h1 {
        font-size: 2.2rem;
    }

    .tf-section-heading h2 {
        font-size: 1.75rem;
        overflow-wrap: anywhere;
    }

    .tf-header-inner {
        align-items: center;
        text-align: left;
        padding: 0.9rem 0;
        gap: 0.9rem;
    }

    .tf-header-right {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        width: 100%;
        gap: 0.75rem;
    }

    .tf-brand-wrap {
        align-items: flex-start;
    }

    .tf-site-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 0.6rem;
        min-width: 0;
    }

    .tf-site-nav a {
        padding: 0.45rem 0.2rem;
        font-size: 0.96rem;
    }

    .tf-nav-menu-toggle {
        padding: 0.45rem 0.2rem;
        font-size: 0.96rem;
    }

    .tf-nav-submenu {
        left: 0;
        right: auto;
    }

    .tf-topbar-actions-desktop {
        display: none;
    }

    .tf-actions,
    .tf-header-actions,
    .tf-ready-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .tf-actions > *,
    .tf-header-actions > *,
    .tf-ready-actions > * {
        width: 100%;
    }

    .tf-header-actions .tf-btn,
    .tf-actions .tf-btn,
    .tf-ready-actions .tf-btn {
        width: 100%;
    }

    .tf-signing-document-scroll {
        min-height: 18rem;
        max-height: 52vh;
        padding: 1rem;
    }

    .tf-signing-panel-header {
        align-items: stretch;
        flex-direction: column;
    }

    .tf-signing-panel-header .tf-btn {
        width: 100%;
    }

    .tf-payment-priority,
    .tf-signing-breakdown-row {
        grid-template-columns: 1fr;
    }

    .tf-payment-priority {
        align-items: stretch;
    }

    .tf-payment-priority .tf-btn,
    .tf-signing-breakdown-row .tf-btn {
        width: 100%;
        justify-self: stretch;
    }

    .tf-signing-breakdown-row > .tf-stack {
        align-items: stretch;
    }

    .tf-music-license-panel {
        padding: 0.9rem;
        border-radius: 18px;
    }

    .tf-music-license-grid {
        gap: 0.85rem;
    }

    .tf-music-license-panel .tf-section-heading {
        gap: 0.6rem;
    }

    .tf-music-license-panel .tf-billing-amount,
    .tf-music-license-panel .tf-section-heading > strong {
        align-self: flex-start;
        font-size: 1.35rem;
        overflow-wrap: anywhere;
    }

    .tf-account-toggle {
        display: inline-flex;
    }

    .tf-app-modal-backdrop {
        align-items: stretch;
        justify-content: stretch;
        padding: 0.75rem;
        overflow: hidden;
    }

    .tf-app-modal {
        width: 100%;
        height: calc(100vh - 1.5rem);
        height: calc(100dvh - 1.5rem);
        max-height: calc(100vh - 1.5rem);
        max-height: calc(100dvh - 1.5rem);
        padding: 1.1rem;
        border-radius: 22px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .tf-app-modal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tf-app-modal-item-compact {
        min-height: 6.75rem;
    }

    .tf-home-copy h1,
    .tf-auth-copy h1 {
        font-size: clamp(2.4rem, 14vw, 4rem);
    }

    .tf-home-stats {
        grid-template-columns: 1fr;
    }

    .tf-bookings-calendar {
        grid-template-columns: 1fr;
    }

    .tf-bookings-calendar-strip {
        grid-auto-columns: minmax(13.5rem, 84vw);
    }

    .tf-bookings-weekday,
    .tf-bookings-timeline::before {
        display: none;
    }

    .tf-bookings-day {
        min-height: 6.5rem;
    }

    .tf-bookings-timeline-item {
        flex-direction: column;
    }

    .tf-bookings-time {
        width: auto;
    }

    .tf-bookings-entry {
        padding-left: 1rem;
    }

    .tf-bookings-entry::before {
        display: none;
    }

    .tf-storage-preview {
        max-height: 20rem;
    }

    .tf-storage-preview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .tf-storage-preview-tile {
        padding: 0.55rem;
    }

    .tf-storage-preview-tile .tf-btn {
        width: 100%;
        min-height: 2.55rem;
        padding: 0.55rem 0.65rem;
    }

    .tf-storage-editor-backdrop {
        align-items: stretch;
        justify-content: stretch;
        padding: calc(var(--tf-header-height) + 0.75rem) 0.75rem 0.75rem;
    }

    .tf-storage-public-preview-backdrop {
        align-items: stretch;
        justify-content: stretch;
        padding: calc(var(--tf-header-height) + 0.75rem) 0.75rem 0.75rem;
    }

    .tf-email-preview-backdrop {
        align-items: stretch;
        justify-content: stretch;
        padding: calc(var(--tf-header-height) + 0.75rem) 0.75rem 0.75rem;
    }

    .tf-storage-editor-modal,
    .tf-storage-public-preview-modal,
    .tf-email-preview-modal {
        width: 100%;
        max-height: calc(100vh - var(--tf-header-height) - 1.5rem);
        max-height: calc(100dvh - var(--tf-header-height) - 1.5rem);
        padding: 1.1rem;
        border-radius: 22px;
    }

    .tf-storage-public-preview-heading {
        flex-direction: column;
        padding-right: 3rem;
    }
}

@media (max-width: 560px) {
    .tf-page-header h1 {
        font-size: clamp(1.8rem, 11vw, 2.4rem);
    }

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

    .tf-brand {
        gap: 0.65rem;
    }

    .tf-brand-logo {
        height: 1.8rem;
    }

    .tf-account-modal-backdrop {
        padding: 0.75rem;
    }

    .tf-account-modal {
        width: calc(100vw - 1.5rem);
    }

    .tf-header-icon-actions {
        gap: 0.45rem;
    }

    .tf-account-toggle,
    .tf-app-launcher-toggle {
        width: 2.8rem;
        height: 2.8rem;
    }

    .tf-app-modal-grid {
        grid-template-columns: 1fr;
    }
}
