:root {
    --tcd-ink: #17151f;
    --tcd-muted: #686674;
    --tcd-soft: #f7f7f4;
    --tcd-surface: rgba(255, 255, 255, 0.86);
    --tcd-surface-solid: #ffffff;
    --tcd-line: rgba(23, 21, 31, 0.1);
    --tcd-line-strong: rgba(23, 21, 31, 0.18);
    --tcd-accent: #0f766e;
    --tcd-accent-soft: rgba(15, 118, 110, 0.1);
    --tcd-violet: #7B2CBF;
    --tcd-radius: 8px;
    --tcd-radius-sm: 6px;
    --tcd-radius-pill: 999px;
    --tcd-radius-circle: 50%;
    --tcd-shadow-soft: 0 16px 45px rgba(23, 21, 31, 0.07);
    --tcd-shadow-lift: 0 24px 70px rgba(23, 21, 31, 0.12);
}

body {
    font-family: 'Lexend', ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--tcd-ink);
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfbf8 48%, #f6f7f4 100%);
    text-rendering: geometricPrecision;
}

.body {
    min-height: 100vh;
}

.auth-body {
    background: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--tcd-ink);
    font-weight: 640;
    line-height: 1.08;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(38px, 5vw, 68px);
}

.headline-gradient {
    display: inline;
    color: transparent;
    background: linear-gradient(90deg, #4f7cff 0%, #7b61ff 30%, #d94f70 58%, #ee6540 78%, #f28a32 100%);
    background-size: 180% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: headlineGradientShift 9s ease infinite;
}

.site-gradient-logo {
    display: block;
    flex: 0 0 auto;
    width: 171px;
    aspect-ratio: 171.22938 / 54.61721;
    background: linear-gradient(90deg, #4f7cff 0%, #7b61ff 30%, #d94f70 58%, #ee6540 78%, #f28a32 100%);
    background-size: 180% 100%;
    -webkit-mask: url('../images/logo/thecolor-design-logo-primary.svg') center / contain no-repeat;
    mask: url('../images/logo/thecolor-design-logo-primary.svg') center / contain no-repeat;
    animation: headlineGradientShift 9s ease infinite;
}

.site-gradient-logo-mobile {
    width: 168px;
}

@keyframes headlineGradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

h2 {
    font-size: clamp(30px, 3.2vw, 48px);
}

h3 {
    font-size: clamp(22px, 2vw, 30px);
}

p {
    color: var(--tcd-muted);
    line-height: 1.68;
}

a {
    color: var(--tcd-ink);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

a:hover {
    color: var(--tcd-accent);
}

.btn,
button {
    letter-spacing: 0;
}

.btn {
    border-radius: var(--tcd-radius-pill);
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    border-color: var(--tcd-ink) !important;
    background: var(--tcd-ink) !important;
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(23, 21, 31, 0.16);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: #000 !important;
    background: #000 !important;
    box-shadow: 0 18px 34px rgba(23, 21, 31, 0.22);
}

.py-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.py-7 {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
}

.py-9 {
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
}

.p-9 {
    padding: 5rem 7rem 5rem 7rem!important;
}

/*NAVBAR*/
.brand-wordmark {
    color: var(--tcd-ink);
    font-size: 24px;
    font-weight: 860;
    line-height: 1;
    text-decoration: none;
}

.scroll-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
    transform: translateY(0);
    transition: transform 0.4s ease-in-out;
    box-shadow: 0 1px 0 rgba(23, 21, 31, 0.08);
}

/* Hidden state */
.scroll-navbar.nav-hidden {
    transform: translateY(-100%);
}

/* Push content down so nav doesn't overlap */
body::before {
    content: '';
    display: block;
    height: 72px;
}

/* MOBILE VIEW */
/* Hamburger Styles */
.mobile-menu-toggle {
    position: relative;
    z-index: 1002;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(23, 21, 31, 0.08);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 6px 18px rgba(23, 21, 31, 0.06);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
    border-color: rgba(123, 97, 255, 0.28);
    background: #fff;
    outline: none;
}

.glass-navbar {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background 0.3s ease;
}

.main-header .navbar {
    min-height: 72px;
    border-bottom: 1px solid rgba(23, 21, 31, 0.08);
}

.main-header .nav-link {
    position: relative;
    color: rgba(23, 21, 31, 0.72);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.main-header .nav-link:hover {
    color: var(--tcd-ink);
    text-decoration: none !important;
}

.main-header .nav-link::after {
    content: '';
    position: absolute;
    right: 0.5rem;
    bottom: 0.12rem;
    left: 0.5rem;
    height: 2px;
    background: var(--tcd-violet);
    border-radius: 999px;
    opacity: 0;
    transform: scaleX(0.35);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-header .nav-link.is-active {
    color: var(--tcd-ink);
}

.main-header .nav-link.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.main-header .nav-link:hover::after {
    opacity: 0;
    transform: scaleX(0.35);
}

.main-header .nav-item:hover .nav-link::after {
    opacity: 0;
    transform: scaleX(0.35);
}

.main-header .nav-user-divider {
    position: relative;
    margin-left: 10px;
    padding-left: 24px;
}

.main-header .nav-user-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 24px;
    background: rgba(23, 21, 31, 0.12);
    transform: translateY(-50%);
}

.main-header .nav-credit-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid rgba(23, 21, 31, 0.08);
    border-radius: var(--tcd-radius-pill);
    background: rgba(23, 21, 31, 0.035);
    color: var(--tcd-ink);
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.main-header .nav-credit-pill:hover {
    border-color: rgba(23, 21, 31, 0.16);
    background: rgba(23, 21, 31, 0.06);
    color: var(--tcd-ink);
    transform: translateY(-1px);
}

.main-header .nav-credit-pill span {
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.main-header .nav-credit-pill small {
    color: rgba(23, 21, 31, 0.58);
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
    text-transform: uppercase;
}

.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--tcd-ink);
    margin: 4px 0;
    transition: transform 0.28s ease, opacity 0.2s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Fullscreen Nav */
.mobile-fullscreen-nav {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    justify-content: flex-end;
    padding: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.mobile-fullscreen-nav.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(23, 21, 31, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mobile-nav-content {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 360px;
    width: 100%;
    min-height: calc(100dvh - 20px);
    padding: 18px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 70px rgba(23, 21, 31, 0.2);
    transform: translateX(26px);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-fullscreen-nav.active .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.mobile-nav-content .logo {
    display: inline-flex;
    align-items: center;
}

.mobile-nav-content .logo .site-gradient-logo {
    display: block;
    width: 150px;
}

.mobile-nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(23, 21, 31, 0.08);
    border-radius: 50%;
    background: rgba(23, 21, 31, 0.035);
    color: var(--tcd-ink);
    font-size: 25px;
    line-height: 1;
}

.mobile-nav-kicker {
    margin: 30px 0 12px;
    color: rgba(23, 21, 31, 0.46);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.mobile-nav-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.mobile-nav-content ul li {
    margin: 3px 0;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav-content ul li a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 17px;
    color: var(--tcd-ink);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.mobile-nav-content ul li a:hover {
    background: rgba(23, 21, 31, 0.035);
    color: var(--tcd-violet);
}

.mobile-nav-content ul li a.is-active {
    color: var(--tcd-violet);
    background: rgba(123, 97, 255, 0.1);
}

.mobile-fullscreen-nav.active .mobile-nav-content ul li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-fullscreen-nav.active .mobile-nav-content ul li:nth-child(1) { transition-delay: 0.06s; }
.mobile-fullscreen-nav.active .mobile-nav-content ul li:nth-child(2) { transition-delay: 0.1s; }
.mobile-fullscreen-nav.active .mobile-nav-content ul li:nth-child(3) { transition-delay: 0.14s; }
.mobile-fullscreen-nav.active .mobile-nav-content ul li:nth-child(4) { transition-delay: 0.18s; }

.mobile-nav-footer {
    display: grid;
    gap: 9px;
    margin-top: auto;
    padding-top: 24px;
}

.mobile-nav-credit,
.mobile-nav-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid rgba(23, 21, 31, 0.08);
    border-radius: 13px;
    background: rgba(23, 21, 31, 0.025);
    color: var(--tcd-ink);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.mobile-nav-credit span {
    color: var(--tcd-violet);
    font-size: 19px;
    font-weight: 850;
}

.mobile-nav-credit small {
    color: rgba(23, 21, 31, 0.54);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.mobile-nav-account::after {
    content: '\2192';
    color: var(--tcd-violet);
    font-size: 18px;
}

.mobile-nav-content .btn-primary {
    color: white;
    border: none;
    padding: 13px 18px;
    border-radius: var(--tcd-radius-pill);
    font-weight: 750;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(123, 97, 255, 0.2);
}

.mobile-nav-content .btn-primary:hover {
    color: #fff;
}

body.mobile-nav-open {
    overflow: hidden;
}

body.mobile-nav-open .scroll-navbar.nav-hidden {
    transform: translateY(0);
}



/*END NAVBAR*/


.section-palette-preview h1, .section-contrast-test h1{
    font-size: 2.2rem;
}

section {
    position: relative;
}

.section-website-mockup,
.section-color-roles,
.section-main-color-details,
.section-support-color-details,
.section-neutral-color-details,
.section-contrast-test,
.section-color-rule,
.section-export-handoff {
    background: var(--tcd-surface-solid);
}

.section-website-mockup > .container-lg,
.section-color-roles > .container-lg,
.section-main-color-details > .container-lg,
.section-contrast-test > .container-lg,
.section-color-rule > .container-lg,
.section-export-handoff > .container-lg {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border: 1px solid rgba(23, 21, 31, 0.08);
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 20px 64px rgba(23, 21, 31, 0.065);
}

.section-title-block {
    max-width: 760px;
    margin: 0 auto 2.25rem;
}

.section-title-block h2 {
    color: var(--tcd-ink);
    margin-bottom: 0.65rem !important;
    font-size: clamp(26px, 2.4vw, 38px);
    font-weight: 760;
}

.section-title-block p {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    color: var(--tcd-muted);
    font-size: 15px;
}

.website-browser-frame {
    width: 100%;
    margin: 0 auto;
    border: 1px solid rgba(23, 21, 31, 0.08);
    border-radius: 26px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(23, 21, 31, 0.08);
}

.website-browser-bar {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) 78px;
    align-items: center;
    gap: 14px;
    min-height: 42px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--tcd-line);
    background: rgba(255, 255, 255, 0.82);
}

.website-browser-controls {
    display: flex;
    align-items: center;
    gap: 7px;
}

.website-browser-controls span {
    width: 10px;
    height: 10px;
    border-radius: var(--tcd-radius-circle);
}

.website-browser-controls span:nth-child(1) {
    background: #ff5f57;
}

.website-browser-controls span:nth-child(2) {
    background: #ffbd2e;
}

.website-browser-controls span:nth-child(3) {
    background: #28c840;
}

.website-browser-address {
    min-width: 0;
    padding: 6px 12px;
    border: 1px solid rgba(23, 21, 31, 0.08);
    border-radius: var(--tcd-radius-pill);
    background: rgba(23, 21, 31, 0.04);
    color: var(--tcd-muted);
    font-size: 12px;
    font-weight: 650;
    text-align: center;
}

.website-snippet {
    padding: 42px;
    text-align: left;
    overflow: hidden;
}

.website-snippet-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.website-snippet-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    font-size: 15px;
    font-weight: 750;
}

.website-snippet-logo {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: var(--tcd-radius-sm);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.website-snippet-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    font-weight: 700;
}

.website-snippet-nav a,
.website-snippet-link {
    text-decoration: none;
}

.website-snippet-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
    gap: 34px;
    align-items: center;
}

.website-snippet-kicker {
    display: inline-flex;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.website-snippet-copy h3 {
    max-width: 560px;
    margin-bottom: 10px;
    font-size: clamp(34px, 4.2vw, 58px);
    line-height: 0.98;
}

.website-snippet-copy p {
    max-width: 560px;
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.65;
}

.website-snippet-link {
    font-size: 14px;
    font-weight: 750;
}

.website-snippet-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.website-snippet-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 38px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--tcd-radius-pill);
    font-size: 13px;
    font-weight: 750;
}

.website-snippet-button-outline {
    background: transparent;
}

.website-illustration-panel {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    border: 1px solid;
    border-radius: var(--tcd-radius);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.28));
}

.website-illustration-panel::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: var(--tcd-radius);
    background:
        linear-gradient(90deg, rgba(23, 21, 31, 0.05) 1px, transparent 1px),
        linear-gradient(180deg, rgba(23, 21, 31, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.42;
}

.website-chart-illustration {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 500px);
    height: 100%;
    min-height: 340px;
    margin: 0 auto;
}

.chart-card-bg {
    fill: rgba(255, 255, 255, 0.74);
    stroke: var(--preview-border);
    stroke-width: 2;
    filter: drop-shadow(0 18px 28px rgba(23, 21, 31, 0.1));
}

.chart-header-lines path {
    fill: none;
    stroke: var(--preview-text);
    stroke-linecap: round;
    stroke-width: 10;
    opacity: 0.3;
}

.chart-ring {
    fill: rgba(255, 255, 255, 0.86);
    stroke: var(--preview-border);
    stroke-width: 2;
}

.chart-slice {
    stroke: rgba(255, 255, 255, 0.86);
    stroke-width: 4;
}

.slice-one {
    fill: var(--preview-primary);
}

.slice-two {
    fill: var(--preview-logo);
}

.slice-three {
    fill: var(--preview-secondary);
}

.slice-four {
    fill: var(--preview-link);
}

.chart-hole {
    fill: var(--preview-bg, #fff);
    stroke: var(--preview-border);
    stroke-width: 2;
}

.chart-total {
    fill: var(--preview-headline);
    font-size: 28px;
    font-weight: 850;
}

.chart-label {
    fill: var(--preview-text);
    font-size: 13px;
    font-weight: 700;
    opacity: 0.72;
}

.chart-legend rect:nth-child(1) {
    fill: var(--preview-primary);
}

.chart-legend rect:nth-child(2) {
    fill: var(--preview-logo);
}

.chart-legend rect:nth-child(3) {
    fill: var(--preview-secondary);
}

.chart-legend rect:nth-child(4) {
    fill: var(--preview-link);
}


.website-mini-card {
    filter: drop-shadow(0 14px 22px rgba(23, 21, 31, 0.1));
}

.website-mini-card rect {
    fill: rgba(255, 255, 255, 0.82);
    stroke: var(--preview-border);
}

.website-mini-card path {
    fill: none;
    stroke: var(--preview-icon);
    stroke-linecap: round;
    stroke-width: 4;
}

.website-mini-card circle {
    fill: var(--preview-link);
}

.card-one {
    transform: translate(54px, 66px);
}

.card-two {
    transform: translate(344px, 98px);
}

.website-role-specimen {
    display: grid;
    gap: 16px;
    margin-top: 26px;
}

.website-icon-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 12px;
    width: 100%;
}

.website-preview-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 74px;
    border-radius: var(--tcd-radius);
    background: rgba(255, 255, 255, 0.38);
}

.website-preview-icon svg {
    display: block;
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.website-border-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.website-border-card {
    display: grid;
    align-content: start;
    min-height: 128px;
    padding: 16px;
    border: 1px solid;
    border-radius: var(--tcd-radius);
    background: rgba(255, 255, 255, 0.34);
}

.website-border-card span {
    font-size: 13px;
    font-weight: 850;
    line-height: 1.2;
}

.website-border-card p {
    margin: 9px 0 0;
    font-size: 13px;
    line-height: 1.55;
}

.website-role-divider {
    height: 1px;
    margin: 12px 0 0;
}

.section-palette-preview {
    display: flex;
    align-items: flex-start;
    min-height: auto;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden;
}

.section-palette-versions {
    height: 0;
    padding: 0 !important;
    overflow: visible;
}

.palette-hero {
    position: relative;
    width: 100%;
}

.palette-hero-swipe-hint {
    display: none;
}

.palette-hero-header {
    max-width: 760px;
    margin-top: 24px;
    margin-bottom: 0;
}

.palette-hero-eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--tcd-muted);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: uppercase;
}

.section-palette-preview .palette-hero-title {
    max-width: 860px;
    margin-bottom: 10px;
    font-size: clamp(28px, 3vw, 42px);
}

.palette-hero-description {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--tcd-muted);
    font-size: clamp(15px, 1vw, 18px);
}

.palette-hero-canvas {
    display: flex;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    height: calc(100vh - 72px);
    min-height: 520px;
    border-top: 1px solid var(--tcd-line);
    border-bottom: 1px solid var(--tcd-line);
    border-radius: 0;
    overflow: hidden;
    background: var(--tcd-surface-solid);
    box-shadow: 0 24px 70px rgba(23, 21, 31, 0.08);
}

.palette-hero-group {
    position: relative;
    display: flex;
    min-width: 0;
}

.palette-hero-group-main {
    flex: 1.4 1 0;
}

.palette-hero-group-support {
    flex: 1.05 1 0;
}

.palette-hero-group-label {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    padding: 6px 9px;
    border-radius: var(--tcd-radius-pill);
    background: rgba(255, 255, 255, 0.42);
    color: rgba(23, 21, 31, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
}

.palette-hero-color {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 22px 14px;
    cursor: pointer;
    transition: flex 0.26s ease, filter 0.18s ease;
}

.palette-hero-color:hover {
    flex-grow: 1.16;
    filter: saturate(1.04);
}

.palette-hero-color::before {
    content: attr(data-role-label);
    position: absolute;
    left: 50%;
    top: 72px;
    padding: 6px 9px;
    border-radius: var(--tcd-radius-pill);
    background: rgba(255, 255, 255, 0.48);
    color: inherit;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.palette-hero-color:hover::before,
.palette-hero-color:focus-within::before {
    opacity: 0.9;
    transform: translateX(-50%) translateY(0);
}

.palette-hero-color-name,
.palette-hero-color-hex {
    display: block;
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.18);
}

.palette-hero-color-name {
    font-size: clamp(17px, 1.5vw, 24px);
    font-weight: 760;
    line-height: 1.08;
}

.palette-hero-color-hex {
    opacity: 0;
    transform: translateY(4px);
    font-size: 14px;
    font-weight: 720;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.palette-hero-color:hover .palette-hero-color-hex,
.palette-hero-color:focus-within .palette-hero-color-hex {
    opacity: 0.9;
    transform: translateY(0);
}

.palette-hero-color-actions {
    position: absolute;
    bottom: 92px;
    left: 50%;
    display: flex;
    flex-direction: column;
    gap: 7px;
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.palette-hero-color-action {
    position: relative;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(23, 21, 31, 0.08);
    border-radius: 50%;
    background: #fff;
    color: #1f1f1f;
    cursor: pointer;
    place-items: center;
    box-shadow: 0 8px 18px rgba(23, 21, 31, 0.16);
    transition: background 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.palette-hero-color-action svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.palette-hero-color:hover .palette-hero-color-actions,
.palette-hero-color:focus-within .palette-hero-color-actions {
    opacity: 0.9;
    transform: translateX(-50%) translateY(0);
}

.palette-hero-color-action:hover,
.palette-hero-color-action:focus-visible {
    background: #fff;
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
    transform: scale(1.06);
}

.palette-hero-color-action.is-disabled {
    cursor: not-allowed;
    opacity: 0.34;
}

.color-box {
    height: 410px;
    border-radius: 0;
    flex: 1; /* ensures equal width inside the flex row */
    min-width: 0; /* prevent overflow from long names */
    text-align: center;
    word-break: break-word;
}
.color-group {
    border: 1px solid var(--tcd-line);
    border-radius: var(--tcd-radius);
    background-color: var(--tcd-surface-solid);
    box-shadow: var(--tcd-shadow-soft);
    overflow: hidden;
}
.color-group h6 {
    font-weight: 700;
    font-size: 1rem;
}

.palette-color-details-stack {
    display: grid;
    gap: 34px;
    margin-top: 34px;
    text-align: center;
}

.palette-color-detail-group {
    display: grid;
    gap: 15px;
    padding: 20px;
    border: 1px solid rgba(23, 21, 31, 0.07);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 14px 34px rgba(23, 21, 31, 0.045);
}

.palette-color-detail-heading {
    display: grid;
    justify-items: start;
    gap: 6px;
    padding: 2px 4px 0;
    text-align: left;
}

.palette-color-detail-heading h3 {
    margin: 0;
    color: var(--tcd-ink);
    font-size: clamp(19px, 2vw, 25px);
    font-weight: 800;
    line-height: 1.02;
}

.palette-color-detail-heading p {
    max-width: 650px;
    margin: 0;
    color: var(--tcd-muted);
    font-size: 14px;
    line-height: 1.55;
}

.palette-color-reference-grid {
    display: grid;
    gap: 14px;
}

.palette-color-reference-grid-1 {
    grid-template-columns: 1fr;
}

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

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

.palette-color-reference-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(23, 21, 31, 0.075);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(23, 21, 31, 0.045);
    text-align: left;
}

.palette-color-reference-swatch {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
    padding: 18px;
}

.palette-color-reference-swatch strong {
    max-width: 100%;
    font-size: clamp(21px, 2vw, 29px);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.palette-color-reference-topline {
    display: flex;
    min-height: 27px;
}

.palette-color-reference-label {
    padding: 5px 9px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--tcd-radius-pill);
    font-size: 11px;
    font-weight: 800;
    opacity: 0.86;
}

.palette-color-reference-body {
    display: grid;
    gap: 13px;
    padding: 17px;
}

.palette-color-reference-roles,
.palette-color-reference-description {
    margin: 0;
}

.palette-color-reference-roles {
    color: var(--tcd-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.palette-color-reference-roles small {
    display: block;
    margin-bottom: 3px;
    color: rgba(23, 21, 31, 0.42);
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
}

.palette-color-reference-description {
    width: 100%;
    color: rgba(23, 21, 31, 0.7);
    font-size: 13px;
    line-height: 1.55;
}

.palette-color-reference-codes {
    display: grid;
    gap: 6px;
    margin-top: 2px;
}

.palette-color-code-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 28px;
    gap: 8px;
    align-items: center;
    min-height: 36px;
    padding: 5px 7px 5px 10px;
    background: #f6f6f8;
    border: 1px solid rgba(23, 21, 31, 0.055);
    border-radius: 8px;
}

.palette-color-code-row small {
    color: rgba(23, 21, 31, 0.44);
    font-size: 9px;
    font-weight: 850;
}

.palette-color-code-row code {
    overflow: hidden;
    color: #403c48;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.palette-color-code-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 26px;
    padding: 0;
    color: #8a8791;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.palette-color-code-copy:hover {
    background: rgba(23, 21, 31, 0.055);
}

.palette-color-code-copy svg {
    width: 15px;
    height: 15px;
}

.palette-color-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    text-align: left;
}

.palette-color-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(23, 21, 31, 0.08);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(23, 21, 31, 0.055);
}

.palette-color-card-swatch {
    height: 64px;
}

.palette-color-card-body {
    display: grid;
    gap: 9px;
    padding: 14px;
}

.palette-color-card-title {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.palette-color-card-title h4 {
    margin: 0;
    color: var(--tcd-ink);
    font-size: 16px;
    line-height: 1.2;
}

.palette-color-card-title span {
    flex: 0 0 auto;
    color: var(--tcd-muted);
    font-size: 11px;
    font-weight: 700;
}

.palette-color-hex {
    justify-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--tcd-ink);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.palette-color-card-body p {
    margin: 0;
    color: var(--tcd-muted);
    font-size: 13px;
    line-height: 1.45;
}

.palette-color-role-chips {
    color: var(--tcd-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
}

.palette-color-more {
    padding-top: 2px;
    overflow: hidden;
}

.palette-color-more summary {
    width: fit-content;
    color: var(--tcd-ink);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.palette-color-more summary::-webkit-details-marker {
    display: none;
}

.palette-color-more-content {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.palette-color-more[open] .palette-color-more-content {
    opacity: 1;
    transform: translateY(0);
}

.palette-color-values {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.palette-color-values button {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(23, 21, 31, 0.08);
    border-radius: var(--tcd-radius-sm);
    background: rgba(23, 21, 31, 0.03);
    color: var(--tcd-ink);
    font-size: 12px;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
}

.palette-color-values span {
    color: var(--tcd-muted);
    font-weight: 650;
}

.palette-info-panel {
    background: var(--tcd-surface-solid);
    border: 1px solid rgba(23, 21, 31, 0.08);
    border-radius: var(--tcd-radius);
    padding: 26px;
    box-shadow: 0 14px 34px rgba(23, 21, 31, 0.07);
}

.palette-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border: 1px solid rgba(23, 21, 31, 0.06);
    border-radius: var(--tcd-radius-pill);
    padding: 3px 9px;
    color: rgba(23, 21, 31, 0.58);
    background: rgba(23, 21, 31, 0.025);
    font-size: 11px;
    font-weight: 600;
}

.palette-roles-shell {
    display: grid;
    gap: 28px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.palette-role-group {
    display: grid;
    gap: 14px;
    padding: 24px;
    border: 0;
    border-radius: 26px;
    background: transparent;
}

.palette-role-group + .palette-role-group {
    padding-top: 0;
}

.palette-role-group h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 850;
    line-height: 1.2;
}

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

.palette-button-combo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.button-role-combo-card {
    padding: 14px;
    border: 1px solid rgba(23, 21, 31, 0.08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(23, 21, 31, 0.06);
}

.button-role-combo-label {
    display: block;
    color: var(--tcd-ink);
    font-size: 13px;
    font-weight: 800;
}

.button-role-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 82px;
    margin: 10px 0;
    border-radius: 12px;
    background: rgba(23, 21, 31, 0.035);
}

.button-role-preview button {
    min-width: 142px;
    min-height: 38px;
    padding: 9px 15px;
    border: 1px solid;
    border-radius: var(--tcd-radius-pill);
    font-size: 11px;
    font-weight: 800;
}

.button-combo-role-row {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 9px 0;
    border-top: 1px solid rgba(23, 21, 31, 0.07);
}

.button-combo-role-row .role-swatch {
    width: 18px;
    height: 18px;
}

.button-combo-role-name {
    display: grid;
    gap: 2px;
    color: var(--tcd-ink);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}

.button-combo-role-name small {
    overflow: hidden;
    color: var(--tcd-muted);
    font-size: 10px;
    font-weight: 550;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.button-combo-role-row .role-change-button {
    grid-column: auto;
    justify-self: end;
}

.button-combo-role-row .role-color-popover {
    top: calc(100% + 4px);
    left: 0;
    right: 0;
}

.role-row {
    position: relative;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px 10px;
    align-items: start;
    min-height: 122px;
    padding: 13px;
    border: 1px solid rgba(23, 21, 31, 0.08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(23, 21, 31, 0.06);
}

.role-swatch {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--tcd-radius-circle);
}

.role-name {
    display: grid;
    gap: 2px;
    font-weight: 600;
    color: var(--tcd-ink);
    line-height: 1.15;
}

.role-name small {
    color: var(--tcd-muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
}

.role-color {
    grid-column: 2 / -1;
    justify-self: start;
    color: var(--tcd-muted);
    font-size: 12px;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.role-change-button {
    grid-column: 2 / -1;
    justify-self: start;
    height: 26px;
    padding: 0 10px;
    border: 1px solid rgba(23, 21, 31, 0.1);
    border-radius: var(--tcd-radius-pill);
    background: #fff;
    color: var(--tcd-ink);
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.role-change-button:hover,
.editable-role-row.is-open .role-change-button {
    border-color: rgba(23, 21, 31, 0.22);
    background: rgba(23, 21, 31, 0.04);
}

.role-color-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    z-index: 20;
    display: none;
    max-height: 260px;
    overflow: auto;
    padding: 8px;
    border: 1px solid rgba(23, 21, 31, 0.1);
    border-radius: var(--tcd-radius);
    background: #fff;
    box-shadow: 0 18px 42px rgba(23, 21, 31, 0.14);
}

.editable-role-row.is-open .role-color-popover {
    display: grid;
    gap: 6px;
}

.role-color-choice {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 8px;
    border: 0;
    border-radius: var(--tcd-radius-sm);
    background: transparent;
    color: var(--tcd-ink);
    text-align: left;
    cursor: pointer;
}

.role-color-choice:hover {
    background: rgba(23, 21, 31, 0.05);
}

.role-choice-swatch {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--tcd-radius-circle);
}

.role-color-choice span:last-child {
    display: grid;
    gap: 2px;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
}

.role-color-choice small {
    color: var(--tcd-muted);
    font-size: 11px;
    font-weight: 600;
}

.handoff-code {
    min-height: 260px;
    max-height: 360px;
    overflow: auto;
    margin: 0;
    padding: 16px;
    border-radius: 20px;
    background: #171717;
    color: #f7f7f7;
    font-size: 12px;
    line-height: 1.6;
    cursor: pointer;
}

.handoff-panel {
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    gap: 10px;
}

.handoff-panel h4 {
    margin: 0;
}

.handoff-panel p {
    margin: 0;
    color: rgba(23, 21, 31, 0.62);
    font-size: 13px;
    line-height: 1.5;
}

.handoff-panel > span {
    display: inline-flex;
    width: fit-content;
    padding: 5px 9px;
    border: 1px solid rgba(123, 97, 255, 0.16);
    border-radius: var(--tcd-radius-pill);
    background: rgba(123, 97, 255, 0.055);
    color: #6552cf;
    font-size: 11px;
    font-weight: 760;
    line-height: 1.1;
}

.export-handoff-actions {
    display: flex;
    justify-content: center;
    margin: -0.75rem 0 2rem;
}

.explore-palettes-page {
    background: var(--tcd-soft);
}

.my-palettes-page {
    background: #fff;
}

.my-palettes-hero {
    display: grid;
    justify-items: center;
    gap: 22px;
    margin-bottom: 34px;
    text-align: center;
}

.my-palettes-hero h1 {
    margin: 0;
    color: var(--tcd-ink);
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.96;
}

.my-palettes-toggle {
    display: inline-flex;
    padding: 4px;
    border: 1px solid rgba(23, 21, 31, 0.08);
    border-radius: var(--tcd-radius-pill);
    background: rgba(23, 21, 31, 0.035);
}

.my-palettes-toggle button {
    min-height: 36px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--tcd-radius-pill);
    background: transparent;
    color: var(--tcd-muted);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.my-palettes-toggle button.active {
    background: #fff;
    color: var(--tcd-ink);
    box-shadow: 0 8px 22px rgba(23, 21, 31, 0.08);
}

.my-palettes-search-wrap {
    width: min(100%, 430px);
}

.my-palettes-search {
    width: 100%;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(23, 21, 31, 0.08);
    border-radius: var(--tcd-radius-pill);
    background: rgba(23, 21, 31, 0.025);
    color: var(--tcd-ink);
    font-size: 15px;
    outline: none;
    text-align: center;
}

.my-palettes-search:focus {
    border-color: rgba(23, 21, 31, 0.16);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(23, 21, 31, 0.04);
}

.inspiration-hero {
    margin-bottom: 36px;
}

.inspiration-hero #explore-status {
    margin-top: -8px;
}

.inspiration-tag-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    max-width: 620px;
}

.inspiration-tag-filter button {
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid rgba(23, 21, 31, 0.06);
    border-radius: var(--tcd-radius-pill);
    background: rgba(23, 21, 31, 0.018);
    color: rgba(23, 21, 31, 0.54);
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.inspiration-tag-filter button:hover {
    transform: translateY(-1px);
    border-color: rgba(23, 21, 31, 0.1);
    background: rgba(23, 21, 31, 0.035);
    color: var(--tcd-ink);
}

.inspiration-tag-filter button.active {
    border-color: rgba(23, 21, 31, 0.12);
    background: rgba(23, 21, 31, 0.075);
    color: var(--tcd-ink);
}

.my-palettes-library {
    display: grid;
    gap: 22px;
}

.my-palettes-panel {
    display: none;
}

.my-palettes-panel.active {
    display: block;
}

.my-palettes-page .inspiration-palette-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.my-palettes-section {
    display: grid;
    gap: 18px;
}

.my-palettes-section + .my-palettes-section {
    margin-top: 56px;
}

.my-palettes-section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.my-palettes-section-header h2 {
    margin: 0 0 6px;
    font-size: clamp(22px, 2vw, 30px);
}

.my-palettes-section-header p {
    margin: 0;
    color: var(--tcd-muted);
    font-size: 14px;
}

.my-palettes-section-header > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(23, 21, 31, 0.08);
    border-radius: var(--tcd-radius-pill);
    background: rgba(23, 21, 31, 0.03);
    color: var(--tcd-muted);
    font-size: 13px;
    font-weight: 750;
}

.explore-search-input {
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(23, 21, 31, 0.08);
    border-radius: 14px;
    padding: 0 12px;
    color: var(--tcd-ink);
    background: rgba(23, 21, 31, 0.02);
    font-size: 14px;
    outline: none;
}

.explore-search-input:focus {
    border-color: rgba(23, 21, 31, 0.18);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(23, 21, 31, 0.04);
}

.explore-filter-panel .form-select {
    min-height: 40px;
    padding: 0 34px 0 12px;
    border: 1px solid rgba(23, 21, 31, 0.08);
    border-radius: 14px;
    background-color: rgba(23, 21, 31, 0.02);
    color: var(--tcd-ink);
    font-size: 14px;
    font-weight: 650;
    box-shadow: none;
}

.explore-filter-panel .form-select:focus {
    border-color: rgba(23, 21, 31, 0.18);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(23, 21, 31, 0.04);
}

.explore-palettes-page {
    background: #fff;
}

.explore-page-heading {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 34px;
}

.explore-page-heading h1 {
    max-width: 720px;
    margin: 0 0 8px;
    color: var(--tcd-ink);
    font-size: clamp(34px, 5vw, 64px);
    line-height: 0.96;
    letter-spacing: 0;
}

.explore-page-heading p {
    max-width: 620px;
    margin: 0;
    color: var(--tcd-muted);
    font-size: 16px;
    line-height: 1.55;
}

#explore-status {
    flex: 0 0 auto;
    color: var(--tcd-muted);
    font-size: 13px;
    font-weight: 700;
}

.explore-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.explore-filters {
    position: sticky;
    top: 24px;
}

.explore-filter-panel {
    background: #fff;
    border: 1px solid rgba(23, 21, 31, 0.06);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 14px 36px rgba(23, 21, 31, 0.045);
}

.explore-filter-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.explore-filter-topbar h2 {
    margin: 0;
    color: var(--tcd-ink);
    font-size: 14px;
    font-weight: 800;
}

.explore-filter-label {
    display: block;
    margin-bottom: 7px;
    color: var(--tcd-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.active-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.active-filter-chip {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 26px;
    border: 1px solid rgba(23, 21, 31, 0.08);
    border-radius: var(--tcd-radius-pill);
    padding: 4px 9px;
    color: var(--tcd-ink);
    background: rgba(23, 21, 31, 0.035);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.active-filter-chip:hover {
    border-color: rgba(23, 21, 31, 0.14);
    background: rgba(23, 21, 31, 0.055);
}

.color-family-swatches {
    display: grid;
    grid-template-columns: repeat(6, 26px);
    gap: 8px;
}

.color-family-swatch {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: var(--tcd-radius-circle);
    box-shadow: 0 0 0 1px rgba(18, 18, 18, 0.16);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.color-family-swatch:hover,
.color-family-swatch:focus {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(23, 21, 31, 0.08);
    outline: none;
}

.color-family-swatch.active {
    transform: scale(1.06);
    box-shadow: 0 0 0 3px rgba(23, 21, 31, 0.18), 0 6px 14px rgba(18, 18, 18, 0.08);
}

.color-family-swatch-light {
    box-shadow: 0 0 0 1px rgba(18, 18, 18, 0.22), inset 0 0 0 1px rgba(18, 18, 18, 0.08);
}

.color-family-swatch-light.active {
    box-shadow: 0 0 0 3px rgba(23, 21, 31, 0.18), inset 0 0 0 1px rgba(18, 18, 18, 0.12);
}

.inspiration-palette-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.inspiration-palette-card {
    min-width: 0;
}

.inspiration-palette-card.is-entering {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.34s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.inspiration-palette-card.is-entering.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.explore-load-sentinel {
    width: 100%;
    height: 1px;
}

#explore-loader {
    min-height: 76px;
}

#explore-loader .loader-dots::before,
#explore-loader .loader-dots::after {
    background: #7B61FF;
}

.inspiration-palette-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.inspiration-palette-cover {
    position: relative;
    display: flex;
    height: 210px;
    overflow: hidden;
    border-radius: 24px;
    background: #f7f7f7;
    box-shadow: 0 20px 52px rgba(23, 21, 31, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.inspiration-palette-card:hover .inspiration-palette-cover {
    transform: translateY(-4px);
    box-shadow: 0 32px 76px rgba(23, 21, 31, 0.14);
}

.inspiration-palette-cover > span {
    flex: 1 1 0;
    min-width: 0;
}

.inspiration-palette-tags {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    pointer-events: none;
}

.inspiration-palette-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--tcd-radius-pill);
    background: rgba(255, 255, 255, 0.36);
    color: rgba(23, 21, 31, 0.82);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.pricing-page {
    background: #fff;
}

.pricing-hero {
    padding: 132px 0 52px;
    text-align: center;
}

.pricing-kicker {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--tcd-muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.pricing-hero h1 {
    max-width: 860px;
    margin: 0 auto 18px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.94;
}

.pricing-hero p {
    max-width: 690px;
    margin: 0 auto;
    font-size: 17px;
}

.pricing-plans-section,
.pricing-conversion-section,
.pricing-faq-section,
.pricing-final-cta {
    padding: 34px 0;
}

.pricing-paid-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.pricing-checkout-notice {
    max-width: 760px;
    margin: 0 auto 18px;
    padding: 14px 18px;
    border: 1px solid rgba(23, 21, 31, 0.08);
    border-radius: 18px;
    background: #fff;
    color: var(--tcd-muted);
    text-align: center;
    font-size: 14px;
    font-weight: 650;
    box-shadow: 0 14px 40px rgba(23, 21, 31, 0.06);
}

.account-subscription-notice {
    max-width: 760px;
    margin: 0 auto 18px;
    padding: 14px 18px;
    border: 1px solid rgba(123, 44, 191, 0.18);
    border-radius: 18px;
    background: rgba(123, 44, 191, 0.06);
    color: var(--tcd-ink);
    text-align: center;
    font-size: 14px;
    line-height: 1.55;
    box-shadow: 0 14px 40px rgba(23, 21, 31, 0.05);
}

.account-subscription-notice strong {
    display: block;
    margin-bottom: 2px;
}

.pricing-checkout-form {
    margin: 0;
}

.pricing-checkout-form .btn,
.pricing-plan-card > .btn,
.pricing-plan-card > button.btn {
    width: 100%;
}

.pricing-plan-card,
.pricing-free-card,
.pricing-value-grid article,
.pricing-final-panel,
.pricing-faq-list details {
    border: 1px solid rgba(23, 21, 31, 0.08);
    background: #fff;
    box-shadow: 0 18px 56px rgba(23, 21, 31, 0.06);
}

.pricing-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 24px;
    border-radius: 26px;
    overflow: hidden;
}

.pricing-plan-card::before {
    content: "";
    display: block;
    height: 9px;
    margin: -24px -24px 22px;
    background: linear-gradient(90deg, #7dd3fc, #99f6e4, #bef264);
}

.pricing-plan-card:nth-child(2)::before {
    background: linear-gradient(90deg, #c084fc, #fb7185, #facc15);
}

.pricing-plan-card:nth-child(3)::before {
    background: linear-gradient(90deg, #818cf8, #22d3ee, #a3e635);
}

.pricing-plan-card.is-featured {
    border-color: rgba(23, 21, 31, 0.2);
    background:
        linear-gradient(180deg, rgba(23, 21, 31, 0.035), rgba(255, 255, 255, 0) 34%),
        #fff;
    box-shadow: 0 28px 80px rgba(23, 21, 31, 0.13);
}

.pricing-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: var(--tcd-radius-pill);
    background: var(--tcd-ink);
    color: #fff;
    font-size: 11px;
    font-weight: 850;
}

.pricing-plan-head {
    padding-right: 94px;
}

.pricing-plan-head h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.pricing-plan-head p {
    min-height: 78px;
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin: 26px 0 18px;
    color: var(--tcd-ink);
    font-size: 58px;
    font-weight: 820;
    line-height: 1;
}

.pricing-plan-card .pricing-price {
    color: var(--tcd-violet);
}

.pricing-price span {
    font-size: 22px;
}

.pricing-price small {
    margin-left: 5px;
    color: var(--tcd-muted);
    font-size: 14px;
    font-weight: 750;
}

.pricing-btn-secondary {
    border: 1px solid rgba(23, 21, 31, 0.1);
    background: rgba(23, 21, 31, 0.035);
    color: var(--tcd-ink);
}

.pricing-btn-secondary:hover {
    border-color: rgba(23, 21, 31, 0.18);
    background: rgba(23, 21, 31, 0.065);
    color: var(--tcd-ink);
}

.pricing-feature-list,
.pricing-free-card ul {
    display: grid;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.pricing-feature-list li,
.pricing-free-card li {
    position: relative;
    padding-left: 18px;
    color: var(--tcd-muted);
    font-size: 13px;
    line-height: 1.45;
}

.pricing-free-card li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: var(--tcd-radius-circle);
    background: var(--tcd-ink);
}

.pricing-feature-list li {
    display: flex;
    gap: 8px;
    padding-left: 0;
}

.pricing-feature-marker {
    flex: 0 0 14px;
    color: #1f9d63;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
}

.pricing-feature-list .is-unavailable {
    color: rgba(119, 117, 128, 0.62);
}

.pricing-feature-list .is-unavailable .pricing-feature-marker {
    color: rgba(119, 117, 128, 0.5);
}

.pricing-free-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(23, 21, 31, 0.075);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.pricing-free-feature-group {
    align-self: start;
    min-height: 100%;
    padding: 16px 18px;
}

.pricing-free-feature-group + .pricing-free-feature-group {
    border-left: 1px solid rgba(23, 21, 31, 0.075);
}

.pricing-free-feature-group strong {
    display: block;
    color: var(--tcd-ink);
    font-size: 13px;
    line-height: 1.45;
}

.pricing-free-feature-group strong span {
    color: var(--tcd-violet);
    font-size: 18px;
}

.pricing-free-feature-group small {
    display: block;
    margin-top: 2px;
    color: var(--tcd-muted);
    font-size: 12px;
}

.pricing-free-feature-group ul {
    margin-top: 10px;
}

.pricing-free-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr) auto;
    gap: 24px;
    align-items: stretch;
    margin-top: 18px;
    padding: 22px 24px;
    border-radius: 24px;
    background: rgba(23, 21, 31, 0.025);
}

.pricing-free-summary {
    align-self: center;
}

.pricing-free-card > .btn {
    align-self: center;
}

.pricing-free-card h2 {
    margin: 0 0 6px;
    font-size: 30px;
}

.pricing-free-card p {
    margin: 0;
    font-size: 14px;
}

.pricing-free-card ul {
    grid-template-columns: 1fr;
    margin: 10px 0 0;
}

.pricing-value-panel {
    padding: 34px;
    border: 1px solid rgba(23, 21, 31, 0.08);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 56px rgba(23, 21, 31, 0.06);
}

.pricing-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 28px;
    align-items: end;
    margin-bottom: 22px;
}

.pricing-section-heading h2 {
    margin: 0;
}

.pricing-section-heading p {
    margin: 0;
}

.pricing-value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.pricing-value-grid article {
    padding: 22px;
    border-radius: 22px;
}

.pricing-value-grid span {
    display: inline-flex;
    margin-bottom: 38px;
    color: rgba(23, 21, 31, 0.32);
    font-size: 12px;
    font-weight: 850;
}

.pricing-value-grid h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.pricing-value-grid p {
    margin: 0;
    font-size: 14px;
}

.pricing-faq-layout {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 650px);
    gap: 34px;
    align-items: start;
    justify-content: center;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 34px;
    border: 1px solid rgba(23, 21, 31, 0.08);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 56px rgba(23, 21, 31, 0.06);
}

.pricing-faq-layout h2 {
    margin: 0 0 10px;
}

.pricing-faq-layout p {
    margin: 0;
}

.pricing-faq-list {
    display: grid;
    gap: 10px;
}

.pricing-faq-list details {
    border: 1px solid rgba(23, 21, 31, 0.07);
    border-radius: 18px;
    padding: 18px 20px;
    background: rgba(23, 21, 31, 0.018);
    box-shadow: none;
}

.pricing-faq-list summary {
    color: var(--tcd-ink);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.pricing-faq-list details p {
    margin-top: 12px;
    font-size: 14px;
}

.pricing-final-cta {
    padding-bottom: 84px;
}

.pricing-final-panel {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border-radius: 28px;
    text-align: center;
    border-color: rgba(124, 58, 237, 0.18);
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.66)),
        linear-gradient(120deg, #f4e8ff, #d9fff4, #fff4c7, #e6ebff, #ffe4ee);
    background-size: 100% 100%, 320% 320%;
    background-position: 0 0, 0% 50%;
    box-shadow: 0 26px 86px rgba(76, 29, 149, 0.12);
    animation: pricingGradientFlow 16s ease infinite;
}

@keyframes pricingGradientFlow {
    0% {
        background-position: 0 0, 0% 50%;
    }

    50% {
        background-position: 0 0, 100% 50%;
    }

    100% {
        background-position: 0 0, 0% 50%;
    }
}

.pricing-final-panel h2 {
    max-width: 780px;
    margin: 0 auto 12px;
}

.pricing-final-panel p {
    max-width: 620px;
    margin: 0 auto 24px;
}

.pricing-final-panel div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.pricing-final-panel .pricing-btn-secondary {
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(14px);
}

.pricing-scroll-panel {
    will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
    .headline-gradient,
    .site-gradient-logo,
    .pricing-final-panel,
    .default-marketing-final-panel {
        animation: none;
    }
}

.default-palette-marketing {
    overflow: hidden;
    padding: 18px 0 72px;
}

.default-marketing-section {
    overflow: hidden;
    padding: 34px 0;
}

.default-marketing-final {
    padding-bottom: 72px;
}

.default-marketing-reveal {
    will-change: transform, opacity;
}

.default-marketing-process-panel,
.default-marketing-feature-panel,
.default-marketing-final-panel {
    border: 1px solid rgba(23, 21, 31, 0.08);
    border-radius: 30px;
    box-shadow: 0 22px 68px rgba(23, 21, 31, 0.07);
}

.default-marketing-process-panel,
.default-marketing-feature-panel {
    padding: 34px;
    background: #fff;
}

.default-marketing-bridge {
    padding: 4px 0 12px;
}

.default-marketing-bridge-panel {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(300px, 1.15fr);
    gap: 14px 34px;
    align-items: center;
    padding: 28px 34px;
    background: linear-gradient(112deg, rgba(175, 160, 255, .2), rgba(255, 255, 255, .96) 48%, rgba(123, 97, 255, .12));
    border: 1px solid rgba(123, 97, 255, .16);
    border-radius: 26px;
    box-shadow: 0 16px 45px rgba(48, 37, 102, .07);
}

.default-marketing-bridge-panel span {
    color: var(--tcd-muted);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.default-marketing-bridge-panel h2 {
    margin: 7px 0 0;
    color: var(--tcd-ink);
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: 0;
}

.default-marketing-bridge-panel p {
    margin: 0;
    color: var(--tcd-muted);
    font-size: 14px;
    line-height: 1.65;
}

.default-marketing-bridge-panel ul {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 7px;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
}

.default-marketing-bridge-panel li {
    padding: 5px 10px;
    color: rgba(36, 33, 47, .76);
    font-size: 10px;
    font-weight: 800;
    background: rgba(255, 255, 255, .62);
    border: 1px solid rgba(123, 97, 255, .16);
    border-radius: 999px;
}

.default-marketing-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.3fr);
    gap: 10px 30px;
    align-items: end;
    margin-bottom: 26px;
}

.default-marketing-heading > span,
.default-marketing-final-panel > span {
    color: var(--tcd-muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.default-marketing-heading h2 {
    grid-column: 1;
    margin: 0;
    color: var(--tcd-ink);
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 820;
    line-height: 0.98;
}

.default-marketing-heading p {
    grid-column: 2;
    grid-row: 1 / span 2;
    max-width: 620px;
    margin: 0;
    color: var(--tcd-muted);
    font-size: 16px;
    line-height: 1.65;
}

.default-marketing-step-grid,
.default-marketing-feature-grid {
    display: grid;
    gap: 14px;
}

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

.default-marketing-step-grid article,
.default-marketing-feature-grid article {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(23, 21, 31, 0.07);
    border-radius: 20px;
    background: rgba(23, 21, 31, 0.018);
}

.default-marketing-step-grid article {
    min-height: 210px;
    padding: 22px;
}

.default-marketing-step-grid article::before {
    content: "";
    display: block;
    height: 7px;
    margin: -22px -22px 22px;
    background: linear-gradient(90deg, #7dd3fc, #99f6e4, #bef264);
}

.default-marketing-step-grid article:nth-child(2)::before {
    background: linear-gradient(90deg, #c084fc, #fb7185, #facc15);
}

.default-marketing-step-grid article:nth-child(3)::before {
    background: linear-gradient(90deg, #818cf8, #22d3ee, #a3e635);
}

.default-marketing-step-grid span {
    display: block;
    margin-bottom: 42px;
    color: rgba(23, 21, 31, 0.34);
    font-size: 12px;
    font-weight: 850;
}

.default-marketing-step-grid h3,
.default-marketing-feature-grid h3 {
    margin: 0 0 8px;
    color: var(--tcd-ink);
    font-size: 20px;
    font-weight: 820;
}

.default-marketing-step-grid p,
.default-marketing-feature-grid p {
    margin: 0;
    color: var(--tcd-muted);
    font-size: 13px;
    line-height: 1.58;
}

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

.default-marketing-feature-grid article {
    min-height: 194px;
    padding: 20px;
    background: #fff;
}

.default-marketing-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 30px;
    border-radius: 14px;
    background: rgba(124, 58, 237, 0.08);
    color: #7c3aed;
}

.default-marketing-feature-grid article:nth-child(3n + 2) .default-marketing-feature-icon {
    background: rgba(15, 118, 110, 0.09);
    color: #0f766e;
}

.default-marketing-feature-grid article:nth-child(3n + 3) .default-marketing-feature-icon {
    background: rgba(37, 99, 235, 0.09);
    color: #2563eb;
}

.default-marketing-feature-icon svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.default-marketing-final-panel {
    position: relative;
    overflow: hidden;
    padding: 50px 34px;
    border-color: rgba(124, 58, 237, 0.18);
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.58)),
        linear-gradient(120deg, #f4e8ff, #d9fff4, #fff4c7, #e6ebff, #ffe4ee);
    background-size: 100% 100%, 320% 320%;
    background-position: 0 0, 0% 50%;
    box-shadow: 0 26px 86px rgba(76, 29, 149, 0.12);
    text-align: center;
    animation: pricingGradientFlow 16s ease infinite;
}

.default-marketing-final-panel h2 {
    max-width: 800px;
    margin: 12px auto;
    color: var(--tcd-ink);
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 840;
    line-height: 0.98;
}

.default-marketing-final-panel p {
    max-width: 650px;
    margin: 0 auto 24px;
    color: var(--tcd-muted);
    font-size: 16px;
    line-height: 1.65;
}

.default-marketing-final-panel .btn {
    min-height: 46px;
    padding: 11px 18px;
}

.site-footer {
    padding: 42px 0 28px;
    background:
        linear-gradient(135deg, rgba(123, 44, 191, 0.08), rgba(15, 118, 110, 0.06) 42%, rgba(255, 255, 255, 0) 72%),
        #fff;
}

.site-footer-account-access,
.site-footer-verify-email {
    margin-top: 0;
    padding-top: 28px;
    border-top: 0;
    background: #fff;
}

.site-footer-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
    gap: 34px;
    padding: 30px;
    border: 1px solid rgba(23, 21, 31, 0.08);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 26px 80px rgba(23, 21, 31, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-footer-brand p {
    max-width: 440px;
    margin: 16px 0 22px;
    font-size: 15px;
}

.site-footer-logo {
    display: block;
    width: min(190px, 70vw);
}

.site-footer-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.site-footer-links div {
    display: grid;
    align-content: start;
    gap: 9px;
}

.site-footer-links h6 {
    margin: 0 0 5px;
    color: rgba(23, 21, 31, 0.48);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.site-footer-links a,
.site-footer-links span {
    color: var(--tcd-ink);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.site-footer-links a:hover {
    color: var(--tcd-violet);
}

.site-footer-bottom {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 4px 0;
    color: var(--tcd-muted);
    font-size: 12px;
    font-weight: 650;
}

.auth-page,
.account-page {
    min-height: 100vh;
    background: #fff;
}

.auth-page {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 76px);
    padding: 92px 20px 44px;
}

.auth-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 440px);
    gap: 34px;
    align-items: center;
    width: min(100%, 1040px);
}

.auth-copy span,
.account-hero span,
.account-card-kicker {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--tcd-muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.auth-copy h1 {
    max-width: 540px;
    margin: 0 0 14px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.94;
}

.auth-copy p {
    max-width: 500px;
    margin: 0;
    font-size: 16px;
}

.auth-copy-state {
    display: none;
    opacity: 0;
    transform: translateY(8px);
}

.auth-copy-state.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: authFormIn 0.18s ease;
}

.auth-card,
.account-card {
    border: 1px solid rgba(23, 21, 31, 0.08);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(23, 21, 31, 0.08);
}

.auth-card {
    display: grid;
    gap: 10px;
    padding: 24px;
}

.auth-combo-card {
    gap: 18px;
}

.auth-toggle {
    justify-self: center;
    margin-bottom: 2px;
}

.auth-form {
    display: none;
    gap: 10px;
    opacity: 0;
    transform: translateY(8px);
}

.auth-form.active {
    display: grid;
    opacity: 1;
    transform: translateY(0);
    animation: authFormIn 0.18s ease;
}

@keyframes authFormIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card label {
    color: var(--tcd-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-card input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(23, 21, 31, 0.08);
    border-radius: 16px;
    background: rgba(23, 21, 31, 0.025);
    color: var(--tcd-ink);
    outline: none;
}

.auth-card input:focus {
    border-color: rgba(23, 21, 31, 0.18);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(23, 21, 31, 0.04);
}

.auth-card .auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 10px;
    color: rgba(23, 21, 31, 0.62);
    font-size: 13px;
    font-weight: 700;
    text-transform: none;
    cursor: pointer;
}

.auth-card .auth-check input {
    flex: 0 0 auto;
    width: 17px;
    min-height: 17px;
    height: 17px;
    margin: 0;
    padding: 0;
    border-radius: 5px;
    accent-color: #6e44ff;
}

.auth-card .auth-check a {
    color: var(--tcd-ink);
    font-weight: 850;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.auth-card .btn {
    margin-top: 8px;
}

.auth-alert {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(180, 40, 40, 0.14);
    border-radius: 16px;
    background: rgba(180, 40, 40, 0.055);
}

.auth-success {
    padding: 12px;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 16px;
    background: rgba(15, 118, 110, 0.065);
}

.auth-alert p,
.auth-success p,
.auth-switch {
    margin: 0;
    font-size: 13px;
}

.auth-alert p {
    color: #8b2727;
}

.auth-success p {
    color: #0f554f;
}

.auth-switch {
    margin-top: 6px;
    text-align: center;
}

.account-hero {
    padding: 132px 0 38px;
    text-align: center;
}

.account-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(42px, 7vw, 76px);
}

.account-hero p {
    margin: 0;
}

.account-content {
    padding: 22px 0 82px;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.account-card {
    padding: 24px;
}

.account-card h2 {
    margin: 0 0 10px;
    font-size: 30px;
}

.account-card p {
    min-height: 76px;
    margin: 0 0 20px;
    font-size: 14px;
}

.account-plan-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.account-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: var(--tcd-radius-pill);
    background: rgba(23, 21, 31, 0.055);
    color: rgba(23, 21, 31, 0.62);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.account-status-active,
.account-status-trialing {
    background: rgba(15, 118, 110, 0.1);
    color: #0f766e;
}

.account-status-past_due,
.account-status-unpaid {
    background: rgba(245, 158, 11, 0.12);
    color: #a16207;
}

.account-status-canceled,
.account-status-incomplete_expired {
    background: rgba(159, 18, 57, 0.1);
    color: #9f1239;
}

.account-credit-meter {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(20, 184, 166, 0.08));
}

.account-credit-meter div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.account-credit-meter strong {
    color: var(--tcd-ink);
    font-size: 34px;
    line-height: 1;
}

.account-credit-meter span,
.account-credit-meter small {
    color: var(--tcd-muted);
    font-size: 12px;
    font-weight: 750;
}

.account-credit-track {
    height: 8px;
    overflow: hidden;
    border-radius: var(--tcd-radius-pill);
    background: rgba(23, 21, 31, 0.08);
}

.account-credit-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7c3aed, #14b8a6);
}

.account-feature-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 20px;
}

.account-feature-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: var(--tcd-radius-pill);
    background: rgba(23, 21, 31, 0.045);
    color: rgba(23, 21, 31, 0.42);
    font-size: 11px;
    font-weight: 800;
}

.account-feature-row span.is-available {
    background: rgba(23, 21, 31, 0.08);
    color: var(--tcd-ink);
}

.account-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.account-stat-grid div {
    padding: 14px;
    border-radius: 18px;
    background: rgba(23, 21, 31, 0.035);
}

.account-stat-grid strong,
.account-stat-grid span {
    display: block;
}

.account-stat-grid strong {
    color: var(--tcd-ink);
    font-size: 28px;
    line-height: 1;
}

.account-stat-grid span {
    margin-top: 6px;
    color: var(--tcd-muted);
    font-size: 12px;
    font-weight: 750;
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
}

.account-delete-trigger {
    border: 0;
    background: transparent;
    color: rgba(119, 117, 128, 0.82);
    font-size: 13px;
}

.account-delete-trigger:hover {
    color: #b91c1c;
}

.explore-palette-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.explore-palette-card {
    min-width: 0;
    background: var(--tcd-surface-solid);
    border: 1px solid var(--tcd-line);
    border-radius: var(--tcd-radius);
    overflow: hidden;
    box-shadow: var(--tcd-shadow-soft);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.explore-palette-card:hover {
    transform: translateY(-3px);
    border-color: var(--tcd-line-strong);
    box-shadow: var(--tcd-shadow-lift);
}

.explore-palette-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.explore-palette-strip {
    display: flex;
    height: 150px;
}

.explore-palette-strip span {
    flex: 1 1 0;
}

.explore-palette-card-body {
    padding: 22px;
}

.explore-palette-card h3 {
    margin-bottom: 10px;
    color: var(--tcd-ink);
    font-size: 20px;
    line-height: 1.25;
}

.explore-palette-card p {
    min-height: 66px;
    margin-bottom: 18px;
    color: var(--tcd-muted);
    font-size: 14px;
    line-height: 1.55;
}

.explore-palette-mini-swatches {
    display: flex;
    gap: 6px;
}

.explore-palette-mini-swatches span {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--tcd-radius-circle);
}

.explore-palette-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    color: var(--tcd-muted);
    font-size: 12px;
    font-weight: 700;
}

.explore-palette-stats span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    background: rgba(23, 21, 31, 0.025);
    border: 1px solid rgba(23, 21, 31, 0.06);
    border-radius: var(--tcd-radius-pill);
}

.site-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer-legal a {
    color: var(--tcd-muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.site-footer-legal a:hover {
    color: var(--tcd-violet);
}

.site-footer-legal button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--tcd-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.site-footer-legal button:hover {
    color: var(--tcd-violet);
}

.cookie-consent-banner {
    position: fixed;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 100000;
    display: flex;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.cookie-consent-banner.is-open {
    opacity: 1;
    pointer-events: none;
    transform: translateY(0);
}

.cookie-consent-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(760px, 100%);
    padding: 15px 16px 15px 18px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 54px rgba(23, 21, 31, 0.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    pointer-events: none;
    touch-action: pan-y;
}

.cookie-consent-panel strong {
    display: block;
    color: var(--tcd-ink);
    font-size: 14px;
}

.cookie-consent-panel p {
    margin: 3px 0 0;
    color: var(--tcd-muted);
    font-size: 12px;
    line-height: 1.45;
}

.cookie-consent-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    pointer-events: auto;
}

.cookie-consent-actions .btn {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: auto;
}

@media (max-width: 640px) {
    .cookie-consent-banner {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .cookie-consent-panel {
        display: grid;
        gap: 12px;
        padding: 15px;
        border-radius: 16px;
    }

    .cookie-consent-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

.legal-page {
    background: #fff;
}

.legal-hero {
    padding: 118px 0 44px;
    text-align: center;
}

.legal-hero span,
.legal-document header span {
    color: var(--tcd-muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.legal-hero h1 {
    margin: 8px 0 10px;
    color: var(--tcd-ink);
    font-size: clamp(46px, 7vw, 82px);
    line-height: .96;
}

.legal-hero p {
    max-width: 690px;
    margin: 0 auto 10px;
}

.legal-hero small {
    color: var(--tcd-muted);
    font-weight: 700;
}

.legal-content {
    padding: 12px 0 74px;
}

.legal-draft-note {
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(161, 98, 7, .16);
    border-radius: 16px;
    background: rgba(245, 158, 11, .07);
}

.legal-draft-note strong {
    color: #8a5a00;
    font-size: 14px;
}

.legal-draft-note p {
    margin: 4px 0 0;
    color: rgba(97, 62, 0, .78);
    font-size: 13px;
    line-height: 1.55;
}

.legal-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.legal-sidebar {
    position: sticky;
    top: 92px;
    padding: 15px;
    border: 1px solid rgba(23, 21, 31, .075);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(23, 21, 31, .045);
}

.legal-sidebar nav {
    display: grid;
    gap: 4px;
}

.legal-sidebar a {
    padding: 8px 9px;
    color: var(--tcd-muted);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    border-radius: 8px;
}

.legal-sidebar a:hover {
    color: var(--tcd-violet);
    background: rgba(123, 44, 191, .055);
}

.legal-documents {
    display: grid;
    gap: 18px;
}

.legal-document {
    padding: 28px;
    border: 1px solid rgba(23, 21, 31, .075);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(23, 21, 31, .05);
}

.legal-document header {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(23, 21, 31, .075);
}

.legal-document h2 {
    margin: 6px 0 8px;
    color: var(--tcd-ink);
    font-size: clamp(30px, 4vw, 45px);
}

.legal-document header p {
    max-width: 780px;
    margin: 0;
    color: var(--tcd-muted);
}

.legal-document section {
    padding-top: 21px;
}

.legal-document h3 {
    margin: 0 0 8px;
    color: var(--tcd-ink);
    font-size: 19px;
}

.legal-document p,
.legal-document li {
    color: rgba(23, 21, 31, .7);
    font-size: 14px;
    line-height: 1.7;
}

.legal-document p {
    margin: 0 0 9px;
}

.legal-document ul {
    margin: 0;
    padding-left: 20px;
}

.legal-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(23, 21, 31, .075);
    border-radius: 12px;
}

.legal-document table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.legal-document th,
.legal-document td {
    padding: 12px;
    color: rgba(23, 21, 31, .7);
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(23, 21, 31, .065);
}

.legal-document th {
    color: var(--tcd-ink);
    background: rgba(23, 21, 31, .025);
}

.legal-document tr:last-child td {
    border-bottom: 0;
}

.mobile-prompt-section {
    display: none;
}

@media (max-width: 767px) {
    .scroll-navbar,
    .scroll-navbar.nav-hidden {
        transform: translateY(0);
    }

    .section-palette-preview {
        align-items: flex-start;
        min-height: auto;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .palette-hero-header {
        margin-top: 18px;
        margin-bottom: 0;
    }

    .section-palette-preview .palette-hero-title {
        font-size: clamp(28px, 9vw, 40px);
    }

    .palette-hero-canvas {
        flex-direction: column;
        height: calc(100vh - 72px);
        height: calc(100svh - 72px);
        min-height: 0;
        touch-action: pan-y;
    }

    .palette-hero-swipe-hint {
        position: absolute;
        left: 50%;
        bottom: 18px;
        z-index: 4;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 30px;
        padding: 0 14px;
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.26);
        box-shadow: 0 10px 28px rgba(23, 21, 31, 0.1);
        color: rgba(23, 21, 31, 0.66);
        font-size: 10px;
        font-weight: 750;
        line-height: 1;
        pointer-events: none;
        transform: translateX(-50%);
        white-space: nowrap;
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }

    .palette-hero-group {
        display: contents;
    }

    .palette-hero-group-main,
    .palette-hero-group-support {
        flex: none;
    }

    .palette-hero-color {
        flex: 1 1 0;
        min-height: 0;
        align-items: center;
        justify-content: center;
        padding: 14px 16px;
        text-align: center;
    }

    .palette-hero-color-name {
        text-transform: uppercase;
    }

    .palette-hero-color:hover {
        flex-grow: 1;
    }

    .palette-hero-color::before,
    .palette-hero-color-hex,
    .palette-hero-color-actions {
        display: none !important;
    }

    .mobile-prompt-section {
        display: block;
        padding: 18px 12px 6px;
        background: #fff;
    }

    .mobile-camera-action {
        display: inline-flex !important;
    }

    .mobile-prompt-anchor {
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
    }

    .mobile-prompt-anchor .prompt-box {
        position: relative;
        bottom: auto !important;
        left: auto;
        width: 100%;
        transform: none;
    }

    .mobile-prompt-anchor .prompt-box.is-auto-hidden {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .palette-info-panel {
        padding: 22px;
    }

    .default-marketing-reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .developer-handoff-grid,
    .default-marketing-bridge,
    .default-marketing-features {
        display: none;
    }

    .brand-viz-why p,
    .brand-viz-print p {
        display: none;
    }

    .section-website-mockup > .container-lg,
    .section-color-roles > .container-lg,
    .section-main-color-details > .container-lg,
    .section-contrast-test > .container-lg,
    .section-color-rule > .container-lg,
    .section-export-handoff > .container-lg {
        padding: 24px;
        border-radius: 26px;
    }

    .website-browser-frame {
        border-radius: 22px;
    }

    .website-browser-bar {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 10px;
        padding: 8px 10px;
    }

    .website-browser-spacer {
        display: none;
    }

    .website-browser-address {
        padding: 6px 10px;
    }

    .website-snippet {
        padding: 22px;
    }

    .website-snippet-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 24px;
    }

    .website-snippet-hero {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .website-snippet-copy h3 {
        font-size: clamp(30px, 10vw, 42px);
    }

    .website-snippet-actions {
        gap: 8px;
    }

    .website-illustration-panel,
    .website-chart-illustration {
        min-height: 280px;
    }

    .website-role-specimen {
        grid-template-columns: 1fr;
    }

    .website-border-card-grid {
        grid-template-columns: 1fr;
    }

    .website-preview-icon {
        min-height: 58px;
    }

    .website-snippet-button {
        height: 36px;
        padding: 0 14px;
    }

    .palette-roles-shell {
        gap: 20px;
        width: 100%;
        padding: 0;
    }

    .section-color-roles > .container-lg {
        padding: 18px;
    }

    .palette-role-group {
        padding: 0;
    }

    .palette-role-card-grid,
    .palette-button-combo-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .role-row {
        grid-template-columns: 20px minmax(0, 1fr);
        min-height: auto;
        width: 100%;
        padding: 15px;
    }

    .palette-color-card-grid {
        grid-template-columns: 1fr;
    }

    .palette-color-reference-grid {
        grid-template-columns: 1fr;
    }

    .default-palette-marketing {
        padding-bottom: 42px;
    }

    .default-marketing-section {
        padding: 20px 0;
    }

    .default-marketing-final {
        padding-bottom: 42px;
    }

    .default-marketing-process-panel,
    .default-marketing-feature-panel {
        padding: 22px;
        border-radius: 26px;
    }

    .default-marketing-bridge {
        padding: 0 0 8px;
    }

    .default-marketing-bridge-panel {
        display: block;
        padding: 24px 22px;
        border-radius: 22px;
    }

    .default-marketing-bridge-panel h2 {
        margin-top: 8px;
        font-size: 31px;
    }

    .default-marketing-bridge-panel p {
        margin-top: 14px;
    }

    .default-marketing-bridge-panel ul {
        margin-top: 16px;
    }

    .default-marketing-heading {
        display: block;
        margin-bottom: 20px;
    }

    .default-marketing-heading h2 {
        margin-top: 8px;
        font-size: clamp(34px, 10vw, 48px);
    }

    .default-marketing-heading p {
        margin-top: 14px;
        font-size: 15px;
    }

    .default-marketing-step-grid,
    .default-marketing-feature-grid {
        grid-template-columns: 1fr;
    }

    .default-marketing-step-grid article,
    .default-marketing-feature-grid article {
        min-height: 0;
    }

    .default-marketing-step-grid span {
        margin-bottom: 24px;
    }

    .default-marketing-feature-icon {
        margin-bottom: 20px;
    }

    .default-marketing-final-panel {
        padding: 38px 22px;
        border-radius: 26px;
    }

    .default-marketing-final-panel h2 {
        font-size: clamp(38px, 11vw, 52px);
    }

    .role-color {
        grid-column: 2 / -1;
        text-align: left;
    }

    .role-change-button {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .role-color-popover {
        left: 12px;
        right: 12px;
        width: auto;
    }

    .explore-layout {
        grid-template-columns: 1fr;
    }

    .explore-page-heading {
        display: block;
        margin-bottom: 24px;
    }

    .explore-page-heading h1 {
        font-size: clamp(34px, 13vw, 52px);
    }

    #explore-status {
        display: inline-flex;
        margin-top: 14px;
    }

    .explore-filters {
        position: static;
    }

    .inspiration-palette-grid {
        grid-template-columns: 1fr;
    }

    .my-palettes-page .inspiration-palette-grid {
        grid-template-columns: 1fr;
    }

    .inspiration-palette-cover {
        height: 210px;
        border-radius: 20px;
    }

    .pricing-hero {
        padding-top: 108px;
    }

    .pricing-paid-grid,
    .pricing-value-grid,
    .pricing-section-heading,
    .pricing-faq-layout,
    .pricing-free-card {
        grid-template-columns: 1fr;
    }

    .pricing-plan-head {
        padding-right: 0;
    }

    .pricing-plan-head p {
        min-height: auto;
    }

    .pricing-free-card ul,
    .pricing-free-groups {
        grid-template-columns: 1fr;
    }

    .pricing-free-feature-group + .pricing-free-feature-group {
        border-top: 1px solid rgba(23, 21, 31, 0.075);
        border-left: 0;
    }

    .pricing-free-card {
        align-items: stretch;
    }

    .auth-panel,
    .account-grid,
    .site-footer-panel,
    .site-footer-links {
        grid-template-columns: 1fr;
    }

    .auth-page {
        place-items: start center;
        min-height: auto;
        padding: 92px 18px 42px;
    }

    .auth-card {
        width: 100%;
    }

    .site-footer-panel {
        padding: 22px;
        border-radius: 24px;
    }

    .site-footer-bottom {
        display: grid;
    }

    .explore-palette-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .palette-color-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .palette-color-reference-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .my-palettes-page .inspiration-palette-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-paid-grid,
    .pricing-value-grid {
        grid-template-columns: 1fr;
    }

    .pricing-free-card,
    .pricing-section-heading,
    .pricing-faq-layout {
        grid-template-columns: 1fr;
    }

    .account-grid {
        grid-template-columns: 1fr;
    }

    .site-footer-panel {
        grid-template-columns: 1fr;
    }
}

.d-flex .color-box:not(:last-child) {
    margin-right: 0;
}

.d-flex .color-box:first-child {
    border-top-left-radius: var(--tcd-radius-sm);
    border-bottom-left-radius: var(--tcd-radius-sm);
}
.d-flex .color-box:last-child {
    border-top-right-radius: var(--tcd-radius-sm);
    border-bottom-right-radius: var(--tcd-radius-sm);
}

.prompt-box {
    position: fixed;
    bottom: 300px;
    left: 50%;
    transform: translateX(-50%);
    transition: bottom 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, transform 0.3s ease;

    background-color: white;
    color: #15002b;
    border: 0;
    width: 85%;
    min-height: 0;
    max-width: 800px;
    border-radius: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 30px;
    z-index: 1000;
    overflow: hidden; /* Important to keep the progress line within bounds */

    /*transition: opacity 0.3s ease;*/
    pointer-events: auto;
}

.prompt-box.is-auto-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(14px);
}

.prompt-box.is-prompt-ready {
    animation: prompt-ready-pulse 0.75s ease-out 2;
    box-shadow: 0 10px 34px rgba(123, 97, 255, 0.22);
}

.prompt-box.is-prompt-ready .btn-prompt-primary {
    background: #7B61FF;
    box-shadow: 0 8px 20px rgba(123, 97, 255, 0.34);
    transform: translateY(-1px);
}

.prompt-box.is-thinking {
    box-shadow: 0 14px 42px rgba(123, 97, 255, 0.18), 0 4px 20px rgba(0, 0, 0, 0.08);
}

.prompt-thinking {
    display: grid;
    gap: 8px;
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: max-height 0.24s ease, margin-top 0.24s ease, opacity 0.2s ease, transform 0.2s ease;
}

.prompt-box.is-thinking .prompt-thinking {
    max-height: 58px;
    margin-top: 12px;
    opacity: 1;
    transform: translateY(0);
}

.prompt-thinking-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: rgba(23, 21, 31, 0.58);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.1;
}

.prompt-thinking-copy span {
    color: rgba(23, 21, 31, 0.48);
}

.prompt-thinking-copy strong {
    min-width: 132px;
    color: #7B61FF;
    font-size: 11px;
    font-weight: 850;
    text-align: right;
}

.prompt-thinking-bar {
    position: relative;
    height: 9px;
    overflow: hidden;
    border: 1px solid rgba(123, 97, 255, 0.12);
    border-radius: var(--tcd-radius-pill);
    background: rgba(23, 21, 31, 0.045);
}

.prompt-thinking-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
    opacity: 0;
    transform: translateX(-100%);
}

.prompt-box.is-thinking .prompt-thinking-bar::after {
    opacity: 1;
    animation: prompt-thinking-sheen 1.55s ease-in-out infinite;
}

.prompt-thinking-bar span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 8%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4f7cff 0%, #7B61FF 34%, #d94f70 64%, #f28a32 100%);
    background-size: 180% 100%;
    box-shadow: 0 0 20px rgba(123, 97, 255, 0.34);
    animation: headlineGradientShift 4s ease infinite;
}

@keyframes prompt-thinking-sheen {
    0% {
        transform: translateX(-100%);
    }
    65%,
    100% {
        transform: translateX(100%);
    }
}

@keyframes prompt-ready-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(123, 97, 255, 0.42);
    }
    100% {
        box-shadow: 0 10px 34px rgba(123, 97, 255, 0.22), 0 0 0 8px rgba(123, 97, 255, 0);
    }
}

.prompt-box.is-docked {
    padding-bottom: 42px;
}

.prompt-palette-strip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    height: 22px;
    overflow: visible;
    border-radius: 0 0 28px 28px;
    background: #f0f0f0;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.prompt-box.is-docked .prompt-palette-strip {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.prompt-palette-strip-color {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}

.prompt-palette-strip-color::after {
    content: "";
    position: absolute;
    inset: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0.8;
}
.palette-color-editor {
    position: fixed;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 32px);
    padding: 10px;
    border: 1px solid rgba(21, 0, 43, 0.1);
    border-radius: var(--tcd-radius-pill);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
    z-index: 1100;
}
.palette-color-editor-name {
    display: block;
    max-width: 150px;
    overflow: hidden;
    color: #4b4b4b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.palette-color-editor-hex {
    display: block;
    margin-top: 2px;
    color: #8a8a8a;
    font-size: 11px;
    line-height: 1;
}
#palette-color-picker {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: var(--tcd-radius-circle);
    background: transparent;
    cursor: pointer;
}
#palette-color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}
#palette-color-picker::-webkit-color-swatch {
    border: 2px solid #fff;
    border-radius: var(--tcd-radius-circle);
    box-shadow: 0 0 0 1px rgba(21, 0, 43, 0.14);
}
.palette-color-update {
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--tcd-radius-pill);
    background: #1f1f1f;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.palette-color-restore {
    height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--tcd-radius-pill);
    background: rgba(23, 21, 31, 0.06);
    color: var(--tcd-ink);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.palette-color-restore:hover {
    background: rgba(23, 21, 31, 0.1);
}
.palette-color-update:disabled {
    opacity: 0.65;
    cursor: default;
}

.manual-color-note-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.manual-color-note-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.manual-color-note-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 21, 31, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.manual-color-note-dialog {
    position: relative;
    width: min(520px, 100%);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 28px 80px rgba(23, 21, 31, 0.22);
    transform: translateY(10px) scale(0.98);
    transition: transform 0.18s ease;
}

.manual-color-note-modal.is-open .manual-color-note-dialog {
    transform: translateY(0) scale(1);
}

.manual-color-note-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--tcd-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.manual-color-note-dialog h3 {
    margin: 0 0 8px;
    color: var(--tcd-ink);
    font-size: 28px;
}

.manual-color-note-dialog p {
    margin: 0 0 20px;
    color: var(--tcd-muted);
    font-size: 14px;
    line-height: 1.6;
}

.manual-color-note-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.manual-color-note-skip,
.manual-color-note-primary {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--tcd-radius-pill);
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.manual-color-note-skip {
    background: rgba(23, 21, 31, 0.06);
    color: var(--tcd-ink);
}

.manual-color-note-primary {
    background: var(--tcd-ink);
    color: #fff;
}

.delete-palette-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.delete-palette-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.delete-palette-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 16, 24, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.delete-palette-dialog {
    position: relative;
    width: min(440px, 100%);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 86px rgba(23, 21, 31, 0.24);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.2s ease;
}

.delete-palette-modal.is-open .delete-palette-dialog {
    transform: translateY(0) scale(1);
}

.delete-palette-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 15px;
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
}

.delete-palette-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.delete-palette-icon .material-symbols-outlined {
    font-size: 25px;
}

.delete-palette-dialog h3 {
    margin: 0 0 8px;
    color: var(--tcd-ink);
    font-size: 26px;
    font-weight: 840;
}

.delete-palette-dialog p {
    margin: 0;
    color: var(--tcd-muted);
    font-size: 14px;
    line-height: 1.6;
}

.delete-palette-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 22px;
}

.delete-palette-cancel,
.delete-palette-confirm {
    min-height: 40px;
    padding: 0 15px;
    border: 0;
    border-radius: var(--tcd-radius-pill);
    font-size: 13px;
    font-weight: 800;
}

.delete-palette-cancel {
    background: rgba(23, 21, 31, 0.06);
    color: var(--tcd-ink);
}

.delete-palette-confirm {
    background: #dc2626;
    color: #fff;
}

.delete-palette-confirm:hover {
    background: #b91c1c;
}

.delete-palette-confirm:disabled {
    cursor: wait;
    opacity: 0.72;
}

.delete-account-dialog form {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.delete-account-dialog label {
    color: var(--tcd-ink);
    font-size: 13px;
    font-weight: 800;
}

.delete-account-dialog input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(23, 21, 31, 0.14);
    border-radius: 12px;
    background: #fff;
    color: var(--tcd-ink);
}

.delete-account-dialog input:focus {
    border-color: var(--tcd-violet);
    box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.12);
    outline: 0;
}

.delete-account-alert {
    margin-top: 16px;
}

.account-delete-confirm {
    border: 0;
    background: #dc2626;
    color: #fff;
}

.account-delete-confirm:hover {
    background: #b91c1c;
    color: #fff;
}

.footer-zone {
    position: relative; /* Ensure offset().top works properly */
}

/*Image drag & drop*/
.prompt-box.drag-over {
    border: 2px dashed #c7c7c7;
    /*background-color: #e8feff;*/
}

.drag-area {
    height:64px;
    display: flex;
    align-items: center;/* vertical centering */
    justify-content: flex-start;
}
.drag-area p {
    color: #15002b;
    font-size:16px;
    font-family: ui-sans-serif,-apple-system,system-ui,Segoe UI,Helvetica,Apple Color Emoji,Arial,sans-serif,Segoe UI Emoji,Segoe UI Symbol;
}

.image-preview {
    position: relative;
    display: inline-block;
}

.image-preview img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--tcd-radius);
    display: block;
}

#remove-image {
    position: absolute;
    top: -8px;
    right: -11px;
    background: #fff;
    color: #000;
    border-radius: var(--tcd-radius-circle);
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    width: 22px;
    height: 22px;
    text-align: center;
    line-height: 12px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}
/*END Image drag & drop*/

.prompt-box .icon-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    font-size: 1.2rem;
}
.prompt-box .icon-row .start-icons,
.prompt-box .icon-row .end-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}
.palette-version-toggle-slot {
    display: inline-flex;
}

.palette-version-toggle-slot:empty,
.palette-owner-toolbar-slot:empty {
    display: none;
}

.palette-owner-toolbar-slot {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.palette-owner-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 2px;
    padding-left: 8px;
    border-left: 1px solid rgba(23, 21, 31, 0.1);
}

.palette-owner-toolbar-slot.is-version-control-open {
    display: none;
}

.prompt-box a.owner-action-icon {
    color: #9a9a9a;
}

.prompt-box a.owner-action-icon svg {
    width: 19px;
    height: 19px;
}

.prompt-box a.owner-action-icon .prompt-icon-svg {
    width: 19px;
    height: 19px;
}

.prompt-box a.owner-action-icon.is-disabled {
    color: rgba(23, 21, 31, 0.24);
    pointer-events: none;
}

.prompt-box a.owner-action-icon[data-private-locked="1"] {
    color: rgba(23, 21, 31, 0.24);
    cursor: not-allowed;
    pointer-events: auto;
}

.prompt-box a.owner-action-icon[data-private-locked="1"]:hover {
    background: rgba(123, 97, 255, 0.08);
    color: rgba(123, 97, 255, 0.62);
}

.prompt-box a.owner-action-icon.is-danger {
    color: rgba(23, 21, 31, 0.32);
}

.prompt-box a.owner-action-icon.is-danger:hover {
    color: #9f1239;
    background: rgba(159, 18, 57, 0.1);
}

.owner-private-share-controls {
    display: inline-flex;
    align-items: center;
}

.owner-private-share-label {
    display: none;
}

.owner-private-share-controls.is-active {
    overflow: hidden;
    border: 1px solid rgba(123, 97, 255, 0.3);
    border-radius: var(--tcd-radius-pill);
    background: rgba(123, 97, 255, 0.07);
}

.prompt-box .owner-private-share-controls.is-active #owner-share-palette {
    width: auto;
    gap: 5px;
    padding: 0 8px;
    border-radius: 0;
    color: #6552cf;
}

.owner-private-share-controls.is-active .owner-private-share-label {
    display: inline;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.prompt-box a.owner-remove-share-link {
    width: 28px;
    height: 28px;
    border-left: 1px solid rgba(123, 97, 255, 0.22);
    border-radius: 0;
    color: rgba(23, 21, 31, 0.42);
    font-size: 20px;
    line-height: 1;
}

.prompt-box a.owner-remove-share-link:hover {
    color: #9f1239;
    background: rgba(159, 18, 57, 0.1);
}

.export-guide-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.export-guide-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.export-guide-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 21, 31, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.export-guide-dialog {
    position: relative;
    width: min(560px, 100%);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 28px 80px rgba(23, 21, 31, 0.22);
    transform: translateY(10px) scale(0.98);
    transition: transform 0.18s ease;
}

.export-guide-modal.is-open .export-guide-dialog {
    transform: translateY(0) scale(1);
}

.export-guide-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: var(--tcd-radius-circle);
    background: rgba(23, 21, 31, 0.06);
    color: var(--tcd-ink);
    font-size: 20px;
    line-height: 1;
}

.export-guide-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--tcd-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.export-guide-dialog h3 {
    margin: 0 40px 8px 0;
    font-size: 28px;
}

.export-guide-dialog p {
    max-width: 440px;
    margin: 0 0 20px;
    font-size: 14px;
}

.export-guide-options {
    display: grid;
    gap: 12px;
}

.export-guide-option {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    width: 100%;
    min-height: 92px;
    padding: 16px;
    border: 1px solid rgba(23, 21, 31, 0.08);
    border-radius: var(--tcd-radius);
    background: #fff;
    color: var(--tcd-ink);
    text-align: left;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(23, 21, 31, 0.06);
    cursor: pointer;
}

.export-guide-option:hover {
    color: var(--tcd-ink);
    border-color: rgba(23, 21, 31, 0.18);
}

.export-guide-option.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.export-guide-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--tcd-radius-circle);
    background: rgba(23, 21, 31, 0.05);
}

.export-guide-option-icon svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.export-guide-option strong,
.export-guide-option small {
    display: block;
}

.export-guide-option strong {
    font-size: 15px;
    font-weight: 850;
}

.export-guide-option small {
    margin-top: 4px;
    color: var(--tcd-muted);
    font-size: 12px;
    line-height: 1.35;
}

.prompt-mode-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(123, 97, 255, 0.18);
    border-radius: var(--tcd-radius-pill);
    background: rgba(123, 97, 255, 0.08);
    color: #6b52e5;
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.prompt-mode-switch b {
    margin-left: 6px;
    color: rgba(107, 82, 229, 0.72);
    font-size: 16px;
    font-weight: 600;
    line-height: 0.8;
}

.prompt-mode-switch[hidden] {
    display: none;
}

.prompt-mode-mobile-slot {
    display: none;
}

.prompt-mode-switch:hover,
.prompt-mode-switch:focus-visible {
    border-color: rgba(123, 97, 255, 0.34);
    background: rgba(123, 97, 255, 0.13);
    outline: none;
}
.palette-inspiration-hint {
    flex: 1 1 auto;
    min-width: 0;
    color: #8a8a8a;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}
.palette-inspiration-hint.is-loading {
    color: #4f4f4f;
}
.palette-version-floating {
    position: fixed;
    left: 50%;
    bottom: 478px;
    transform: translateX(-50%) translateY(6px);
    width: min(760px, calc(100% - 40px));
    z-index: 1002;
    opacity: 0;
    pointer-events: none;
    transition: bottom 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease, transform 0.18s ease;
}
.palette-version-floating.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.palette-version-floating.is-footer-hidden {
    opacity: 0;
    pointer-events: none;
}
.palette-version-floating.is-prompt-hidden {
    opacity: 0;
    pointer-events: none;
}
.palette-version-floating.no-motion {
    transition: opacity 0.3s ease;
}
.palette-version-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--tcd-radius-pill);
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}
.palette-version-title {
    position: relative;
    color: #59555f;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
.palette-version-title::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(4px);
    width: max-content;
    max-width: 240px;
    background: #15002b;
    color: #fff;
    border-radius: var(--tcd-radius);
    padding: 7px 9px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 1001;
}
.palette-version-title:hover::after,
.palette-version-title:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.palette-version-list {
    display: flex;
    align-items: center;
    gap: 6px;
}
.palette-version-pill {
    height: 30px;
    padding: 0 10px;
    border: 1px solid #e3e3e3;
    border-radius: var(--tcd-radius-pill);
    background: #f8f8f8;
    color: #4b4b4b;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.palette-version-pill.active {
    border-color: #1f1f1f;
    background: #1f1f1f;
    color: #fff;
}
.palette-version-keep {
    height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--tcd-radius-pill);
    background: rgba(123, 44, 191, 0.12);
    color: #5b238c;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.palette-version-keep:hover {
    background: rgba(123, 44, 191, 0.18);
}
.palette-version-keep:disabled {
    opacity: 0.6;
    cursor: default;
}
.my-palettes-page {
    background: #fbfbfc;
}
.prompt-input {
    font-size:16px;
    font-family: ui-sans-serif,-apple-system,system-ui,Segoe UI,Helvetica,Apple Color Emoji,Arial,sans-serif,Segoe UI Emoji,Segoe UI Symbol;

    border: none;
    width: 100%;
    color: #15002b;
    outline: none;
    resize: none;
    height: auto;
    overflow-y: auto;
    min-height: 2.5em;
    max-height: 6em;
}
.prompt-input.is-expanded {
    min-height: 7.5em;
    max-height: 10em;
}
.prompt-input::placeholder {
    color: #515151;
}
.prompt-box a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: var(--tcd-radius-pill);
    color: #9a9a9a;
    transition: background-color 0.2s;
}
.prompt-box a svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.prompt-icon-svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
    pointer-events: none;
}

.mobile-camera-action {
    display: none !important;
}

.mobile-camera-action .material-symbols-rounded {
    font-size: 21px;
    line-height: 1;
}

@media (max-width: 767px) {
    .mobile-camera-action {
        display: inline-flex !important;
    }
}

#upload-image svg,
#upload-image .prompt-icon-svg {
    transform: translateY(-1px);
}

#save-palette.is-saved,
#save-palette.is-saved:hover,
#save-palette.is-saved:focus,
#save-palette.is-saved:active {
    color: #9a9a9a !important;
    background-color: rgba(123, 97, 255, 0.14);
}
.prompt-box a:hover {
    background-color: #e7e7e7;
    color: #555;
    cursor: pointer;
}
.prompt-box a[href="javascript:void(0)"] {
    cursor: pointer;
}
.prompt-box [data-tooltip] {
    position: relative;
}
.prompt-box [data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    background: #15002b;
    color: #fff;
    border-radius: var(--tcd-radius);
    padding: 6px 9px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 1001;
}
.prompt-box [data-tooltip]:hover::after,
.prompt-box [data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.btn-prompt-primary {
    background-color: #1f1f1f;
    color: white !important;
    border-radius: var(--tcd-radius-circle);
    width: 40px !important;
    height: 40px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.btn-prompt-primary .icon-default,
.btn-prompt-primary .icon-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    line-height: 0;
}

.prompt-box a:not(.btn-prompt-primary):focus,
.prompt-box a:not(.btn-prompt-primary):focus-visible,
.prompt-box a:not(.btn-prompt-primary):active {
    color: #7b61ff !important;
    background-color: rgba(123, 97, 255, 0.12);
}

.btn-prompt-primary:hover {
    background-color:#6f6f6f !important;
    color:#fff;
}

.btn-prompt-primary svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn-prompt-primary .prompt-icon-svg {
    width: 20px;
    height: 20px;
}

#send-prompt.disabled {
    pointer-events: none;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .color-box {
        height: 180px;
    }

    .prompt-box {
        bottom: 14px;
        width: calc(100% - 24px);
        border-radius: 24px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .prompt-box .icon-row {
        gap: 8px;
    }

    .prompt-mode-mobile-slot.has-edit-mode {
        display: flex;
        justify-content: flex-start;
        margin-top: 8px;
    }

    .prompt-box .icon-row .start-icons,
    .prompt-box .icon-row .end-icons {
        gap: 5px;
    }

    .prompt-thinking-copy {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .prompt-thinking-copy strong {
        min-width: 0;
        text-align: left;
    }

    .palette-owner-actions {
        gap: 2px;
        padding-left: 5px;
    }

    .palette-inspiration-hint {
        display: none !important;
    }

    .prompt-palette-strip {
        display: none;
    }

    .prompt-palette-strip::after {
        content: none;
    }

    .prompt-palette-strip-color {
        display: none;
    }

    .prompt-mode-switch {
        min-height: 24px;
        padding: 0 8px;
        font-size: 10px;
    }

    .palette-version-floating {
        bottom: 228px;
        width: calc(100% - 24px);
    }

    .palette-version-bar {
        justify-content: flex-start;
        overflow-x: auto;
        width: 100%;
        padding: 7px;
    }

    .palette-version-list {
        flex: 0 0 auto;
    }
}


/*LOADER START*/
/* HTML: <div class="loader"></div> */
.loader-dots {
    width: 24px;
    height: 24px;
    position: relative;
}

.loader-dots::before,
.loader-dots::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    transform: translateY(-50%);
    animation: loader-swap 0.6s infinite ease-in-out alternate;
}

.loader-dots::after {
    left: 14px;
    animation-delay: 0.3s;
}

.loader-dots::before {
    left: 1px;
}

@keyframes loader-swap {
    from {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
    to {
        transform: translateY(-50%) translateX(4px);
        opacity: 0.6;
    }
}
/*LOADER END*/


/*Popup Messages*/
.toast-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 26px;
    gap: 10px;
    align-items: center;
    width: min(390px, calc(100% - 28px));
    padding: 11px 11px 13px;
    border: 1px solid rgba(23, 21, 31, 0.09);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 46px rgba(23, 21, 31, 0.13);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(0.98);
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 9999;
}

.toast-container.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: rgba(123, 97, 255, 0.11);
    color: #7B61FF;
}

.toast-container.is-error .toast-icon {
    background: rgba(220, 38, 38, 0.09);
    color: #dc2626;
}

.toast-icon svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.toast-icon-error,
.toast-container.is-error .toast-icon-success {
    display: none;
}

.toast-container.is-error .toast-icon-error {
    display: block;
}

.toast-copy {
    min-width: 0;
}

.toast-title {
    display: block;
    margin-bottom: 2px;
    color: var(--tcd-ink);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.2;
}

.toast-bar {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0%;
    transition: width 5s linear;
}

.toast-message {
    color: var(--tcd-muted);
    font-size: 12px;
    line-height: 1.45;
}

.toast-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(23, 21, 31, 0.48);
    font-size: 20px;
    line-height: 1;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.toast-close:hover {
    background: rgba(23, 21, 31, 0.06);
    color: var(--tcd-ink);
}

@media (max-width: 767px) {
    .toast-container {
        right: 14px;
        bottom: 14px;
        left: 14px;
        width: auto;
    }
}
/*END Popup Messages*/



/*Contrast Ratio + Color Rule*/
.contrast-report-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    text-align: left;
}

.contrast-report-card,
.color-rule-card {
    background: #fff;
    border: 1px solid rgba(24, 24, 27, 0.08);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(15, 15, 15, 0.06);
}

.contrast-report-card {
    padding: 18px;
}

.contrast-button-card {
    display: grid;
    gap: 13px;
    padding: 14px;
}

.contrast-button-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 116px;
    padding: 18px;
    border: 1px solid rgba(24, 24, 27, 0.07);
    border-radius: 16px;
}

.contrast-button-preview button {
    width: min(100%, 190px);
    padding: 13px 16px;
    border: 1px solid;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.1;
}

.contrast-color-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.contrast-color-pair span {
    min-width: 0;
    padding: 10px;
    background: #f7f7f9;
    border: 1px solid rgba(24, 24, 27, 0.055);
    border-radius: 10px;
}

.contrast-color-pair small,
.contrast-color-pair b,
.contrast-color-pair code {
    display: block;
}

.contrast-color-pair small {
    color: rgba(23, 21, 31, 0.45);
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
    text-transform: uppercase;
}

.contrast-color-pair b {
    overflow: hidden;
    margin-top: 5px;
    color: var(--tcd-ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contrast-color-pair code {
    margin-top: 4px;
    color: var(--tcd-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.contrast-report-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0;
}

.contrast-report-label {
    display: block;
    color: var(--tcd-muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    margin-bottom: 4px;
}

.contrast-report-top strong {
    display: block;
    color: var(--tcd-ink);
    font-size: 28px;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1;
}

.contrast-status {
    border-radius: var(--tcd-radius-pill);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    padding: 7px 9px;
    white-space: nowrap;
}

.contrast-status.is-pass {
    background: rgba(15, 118, 110, 0.1);
    color: #0f766e;
}

.contrast-status.is-warn {
    background: rgba(180, 120, 0, 0.12);
    color: #8a5a00;
}

.contrast-status.is-fail {
    background: rgba(190, 18, 60, 0.1);
    color: #be123c;
}

.contrast-preview {
    display: grid;
    align-content: center;
    gap: 5px;
    min-height: 96px;
    padding: 16px;
    border-radius: var(--tcd-radius);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.contrast-preview span {
    font-size: 15px;
    font-weight: 850;
    line-height: 1.2;
}

.contrast-preview small {
    font-size: 12px;
    font-weight: 650;
    line-height: 1.3;
    opacity: 0.74;
}

.contrast-report-card p,
.color-rule-card p {
    color: var(--tcd-muted);
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
}

.color-rule-visual {
    display: grid;
    gap: 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: left;
}

.color-rule-bar {
    display: flex;
    height: 96px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(24, 24, 27, 0.08);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 15, 15, 0.06);
}

.color-rule-bar-group {
    display: flex;
    min-width: 0;
}

.color-rule-bar-group span {
    display: block;
    height: 100%;
}

.color-rule-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.color-rule-card {
    padding: 18px;
}

.color-rule-ellipse-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
}

.color-rule-ellipse-row i {
    display: block;
    width: 32px;
    height: 16px;
    border-radius: 999px;
    box-shadow: 0 5px 12px rgba(23, 21, 31, 0.08);
}

.color-rule-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-rule-card-head strong,
.color-rule-card-head span {
    display: block;
}

.color-rule-card-head strong {
    color: var(--tcd-ink);
    font-size: 16px;
    font-weight: 850;
    line-height: 1.2;
}

.color-rule-card-head span {
    color: var(--tcd-muted);
    font-size: 12px;
    font-weight: 750;
    margin-top: 2px;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .palette-role-card-grid,
    .palette-button-combo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 767px) {
    .legal-hero {
        padding: 92px 0 30px;
    }

    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        position: static;
    }

    .legal-sidebar nav {
        display: flex;
        flex-wrap: wrap;
    }

    .legal-document {
        padding: 20px;
    }

    .my-palettes-section-header {
        align-items: start;
        flex-direction: column;
    }

    .contrast-report-grid,
    .color-rule-card-grid {
        grid-template-columns: 1fr;
    }

    .color-rule-bar {
        height: 72px;
    }
}
/*END Contrast Ratio + Color Rule*/


/*Main Color Details*/

    .section-main-color-details .color-box{
        height: auto;
    }

/*END Main Color Details*/


/*Palette Gate Modal*/

.palette-gate-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(18, 16, 24, 0);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, background 0.22s ease;
}

.palette-gate-modal.is-open {
    opacity: 1;
    pointer-events: auto;
    background: rgba(18, 16, 24, 0.42);
    backdrop-filter: blur(14px);
}

.palette-gate-dialog {
    position: relative;
    width: min(480px, 100%);
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    background:
        radial-gradient(circle at 18% 8%, rgba(133, 92, 255, 0.20), transparent 34%),
        radial-gradient(circle at 86% 18%, rgba(36, 211, 164, 0.18), transparent 36%),
        #ffffff;
    box-shadow: 0 26px 90px rgba(20, 17, 34, 0.24);
    color: var(--tcd-ink);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.22s ease;
}

.palette-gate-modal.is-open .palette-gate-dialog {
    transform: translateY(0) scale(1);
}

.palette-gate-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(22, 20, 29, 0.06);
    color: rgba(22, 20, 29, 0.58);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.palette-gate-mark {
    display: flex;
    width: 74px;
    height: 42px;
    overflow: hidden;
    border-radius: 999px;
    box-shadow: 0 14px 26px rgba(33, 25, 52, 0.12);
}

.palette-gate-mark span {
    flex: 1;
}

.palette-gate-mark span:nth-child(1) {
    background: #7c5cff;
}

.palette-gate-mark span:nth-child(2) {
    background: #24d3a4;
}

.palette-gate-mark span:nth-child(3) {
    background: #ffbf47;
}

.palette-gate-dialog h2 {
    margin: 22px 0 10px;
    color: var(--tcd-ink);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.02;
}

.palette-gate-dialog p {
    max-width: 390px;
    margin: 0;
    color: var(--tcd-muted);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.65;
}

.palette-gate-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.palette-gate-primary,
.palette-gate-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.palette-gate-primary {
    background: var(--tcd-ink);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(20, 17, 34, 0.18);
}

.palette-gate-primary:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.palette-gate-secondary {
    background: rgba(22, 20, 29, 0.06);
    color: rgba(22, 20, 29, 0.68);
}

.palette-gate-secondary:hover {
    color: var(--tcd-ink);
}

@media (max-width: 575px) {
    .palette-gate-dialog {
        padding: 28px 22px;
        border-radius: 24px;
    }

    .palette-gate-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .palette-gate-primary,
    .palette-gate-secondary {
        width: 100%;
    }
}

/*END Palette Gate Modal*/
