/* ==========================================================================
   1. DESIGN SYSTEM TOKENS
   ========================================================================== */
@font-face {
    font-family: 'PeydaWebVF';
    src: url('/static/fonts/PeydaWebVF.woff2?v=1') format('woff2-variations'),
         url('/static/fonts/PeydaWebVF.woff?v=1') format('woff-variations');
    font-style: normal;
    font-weight: 100 950;
    font-display: swap;
}

:root {
    color-scheme: light;
    --nav-content-inset: 1rem;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    /* Core Canvas & Surfaces (HSL format for easy opacity handling) */
    --background: 0 0% 100%;
    --foreground: 222.2 47.4% 11.2%;

    --card: 0 0% 100%;
    --card-foreground: 222.2 47.4% 11.2%;

    /* Neutral shadcn primary */
    --primary: #1B71FF;
    --primary-foreground: #ffffff;

    /* Muted & Secondary Elements */
    --muted: 0 0% 95.5%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --sidebar: 0 0% 100%;

    /* Borders & Dividers */
    --border: 214.3 31.8% 88.5%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 72% 51%;
    --input: 214.3 31.8% 88.5%;
    --ring: #1B71FF;
    --radius: 0.75rem;
    --radius-control: 0.625rem;
    --radius-sm: 0.5rem;
    --wave-1: #f8fafc;
    --wave-2: #a9c6f5;
    --wave-3: #527fc9;
    --wave-4: #b5a8ef;
    --wave-5: #80c7e8;
}

/* ==========================================================================
   2. BASE & RESET STYLES
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    flex-direction: column;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'PeydaWebVF', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: hsl(var(--foreground));
    font-weight: 600;
}

/* ==========================================================================
   3. LAYOUT & POSITIONING UTILITIES
   ========================================================================== */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.w-full {
    width: 100%;
}

/* ==========================================================================
   4. SPACING UTILITIES (Padding & Gaps)
   ========================================================================== */
.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.p-4 {
    padding: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-6 {
    padding-inline: 1.5rem;
}

/* ==========================================================================
   5. COMPONENT & COLOR UTILITIES
   ========================================================================== */
.bg-background {
    background-color: hsl(var(--background));
}

.text-foreground {
    color: hsl(var(--foreground));
}

.text-muted {
    color: hsl(var(--muted-foreground));
}

.border-b {
    border-bottom: 1px solid hsl(var(--border));
}

.card {
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
}

/* ==========================================================================
   6. CUSTOM COMPONENTS 
   ========================================================================== */

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-inline: clamp(1rem, -4rem + 25vw, 32rem);
    border-inline: 1px solid hsl(var(--border));

    & section {
        width: 100%;
        position: relative;
        border-inline: 1px solid hsl(var(--border));
        border-bottom: 1px solid hsl(var(--border));
        display: flex;
        gap: 1.5rem;
        margin: 0;
    }


}

body > main {
    flex: 1 0 auto;
}

main section.hero {
    display: grid;
    place-items: center;
    isolation: isolate;
    height: clamp(24rem, calc(100svh - 20rem), 40rem);
    background-color: hsl(var(--background));
}

section.features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;

    .features-card {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.4rem;
        min-width: 0;
        min-height: 20rem;
        padding: 1rem;
        position: relative;
        border-right: 1px solid hsl(var(--border));
        direction: rtl;
        text-align: right;
        transition: color 250ms ease-out;

        .feature-progress {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background-color: hsl(var(--border));
            opacity: 0;
            transform: scaleX(0);
            transform-origin: left center;
        }

        &:last-child {
            border-left: none;
        }
    }
}

#growth-section {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    padding: clamp(1.25rem, 4vw, 3rem);
}

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

.growth-eyebrow {
    margin-bottom: 0.8rem;
    color: var(--wave-4);
    font-size: 0.9rem;
    font-weight: 600;
}

.growth-copy h2 {
    max-width: 16ch;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.18;
}

.growth-copy > p:last-child {
    max-width: 38rem;
    margin-top: 1rem;
    color: hsl(var(--muted-foreground));
    font-size: 1.05rem;
    line-height: 1.75;
}

.growth-chart-panel {
    position: relative;
    min-width: 0;
    padding-block: 0.5rem;
}

.growth-chart-stat {
    position: absolute;
    z-index: 1;
    top: 7%;
    left: 4%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    direction: ltr;
    pointer-events: none;
}

.growth-chart-stat strong {
    color: var(--wave-4);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1;
}

.growth-chart-stat span {
    color: hsl(var(--muted-foreground));
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
}

.growth-chart {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.growth-chart-area {
    fill: url(#growth-area-gradient);
    opacity: 0.55;
}

.growth-chart-line {
    fill: none;
    stroke: url(#growth-line-gradient);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.growth-chart-endpoint {
    fill: var(--wave-4);
    stroke: hsl(var(--background));
    stroke-width: 3;
}

.growth-chart-labels text {
    fill: hsl(var(--muted-foreground));
    font-family: 'PeydaWebVF', sans-serif;
    font-size: 13px;
    text-anchor: middle;
}

#pricing-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.pricing-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.pricing-heading-copy {
    min-width: 0;
}

.pricing-heading-copy h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.15;
}

.pricing-heading-copy p {
    margin-top: 0.5rem;
    color: hsl(var(--muted-foreground));
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: 100%;
}

.pricing-card {
    display: grid;
    grid-template-rows: auto auto auto minmax(min-content, 1fr) auto;
    align-content: start;
    gap: 0.85rem;
    min-width: 0;
    min-height: 25rem;
    padding: 1.25rem;
    border-right: 1px solid hsl(var(--border));
}

.pricing-card:last-child {
    border-left: 0;
}

.pricing-card-featured {
    position: relative;
    z-index: 1;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--secondary));
}

.pricing-plan-heading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.25rem;
}

.pricing-plan-mark {
    --plan-icon-color: var(--wave-1);
    display: inline-flex;
    flex: 0 0 2.25rem;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background-color: var(--plan-icon-color);
}

.pricing-plan-mark.tone-1 {
    --plan-icon-color: var(--wave-2);
}

.pricing-plan-mark.tone-2 {
    --plan-icon-color: var(--wave-3);
}

.pricing-plan-mark.tone-3 {
    --plan-icon-color: var(--wave-4);
}

.pricing-plan-mark-growth {
    background: transparent;
}

.typing-grid.pricing-typing-grid {
    width: 100%;
    height: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.pricing-typing-grid .typing-square {
    width: 100%;
    height: 100%;
    background-color: var(--wave-4);
}

.pricing-typing-grid .typing-square:first-child {
    background-color: #fff;
}

.pricing-plan-icon {
    color: color-mix(in srgb, var(--plan-icon-color) 48%, #000);
    font-size: 1.65rem;
    font-weight: 700;
}

.pricing-plan-heading h3 {
    font-size: 1.125rem;
    line-height: 1.3;
}

.pricing-description {
    min-height: 2.8em;
    color: hsl(var(--muted-foreground));
    font-size: 0.9rem;
    line-height: 1.5;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    min-height: 2.75rem;
    margin: 0;
    white-space: nowrap;
}

.pricing-amount span:first-child {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    line-height: 1;
}

.pricing-amount span+span {
    color: hsl(var(--muted-foreground));
    font-size: 0.9rem;
}

.pricing-includes {
    display: grid;
    align-content: start;
    gap: 0.75rem;
    margin: 0;
    padding: 1rem 0 0;
    border-top: 1px solid hsl(var(--border));
    list-style: none;
    color: hsl(var(--muted-foreground));
}

.pricing-includes li {
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr);
    align-items: start;
    gap: 0.6rem;
    min-width: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.pricing-includes li::before {
    display: grid;
    place-items: center;
    width: 1rem;
    height: 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 50%;
    color: var(--primary);
    content: "✓";
    font-size: 0.65rem;
    font-weight: 700;
}

.pricing-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    margin-top: 0.25rem;
    padding: 0.65rem 1rem;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}

.pricing-cta:hover {
    border-color: var(--primary);
}

.pricing-cta-primary {
    border-color: var(--primary);
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.pricing-cta-primary:hover {
    background-color: color-mix(in srgb, var(--primary) 88%, #000);
    border-color: color-mix(in srgb, var(--primary) 88%, #000);
}

.pricing-cta:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

@media (max-width: 900px) {

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

@media (max-width: 600px) {

    section.features,
    .pricing-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pricing-card {
        min-height: 23rem;
        border-right: 0;
        border-bottom: 1px solid hsl(var(--border));
    }

    .pricing-card:last-child {
        border-bottom: 0;
    }

    .pricing-card-featured {
        border: 1px solid hsl(var(--border));
    }

    section.features .features-card {
        border-right: 0;
        border-bottom: 1px solid hsl(var(--border));
    }

    section.features .features-card:last-child {
        border-bottom: 0;
    }
}

section.features:not(.blog-post-grid) > .features-card:first-child,
.pricing-grid > .pricing-card:first-child {
    border-right: 0;
}

section.features:not(.blog-post-grid) > .features-card:last-child,
.pricing-grid > .pricing-card:last-child {
    border-left: 1px solid hsl(var(--border));
}

.features-illustration {
    display: block;
    width: min(100%, 18rem);
    height: 18rem;
    margin-inline: auto;
    color: hsl(var(--border));
    opacity: 0.35;
    transition: color 250ms ease-out, opacity 250ms ease-out;

    g {
        stroke: currentColor;
    }
}

.features-card.is-active .features-illustration {
    color: var(--primary);
    opacity: 1;
}

.features-card.is-active .feature-progress {
    background-color: var(--primary);
}

.features-card h3 {
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
    line-height: 1.3;
    transition: color 250ms ease-out;
}

#features .features-card:not(.is-active) h3 {
    color: hsl(var(--muted-foreground));
}

.features-card p {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

.blog-post-grid {
    flex: 1 0 auto;
    grid-auto-rows: auto;
    align-items: start;
}

.blog-page {
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
}

.blog-page > .blog-intro {
    display: block;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: hsl(var(--card));
}

.post-page {
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
}

.post-article-section {
    flex: 1 0 auto;
    display: block;
    padding: 0;
}

.post-article-header {
    position: relative;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-bottom: 1px solid hsl(var(--border));
    background: hsl(var(--card));
}

.post-article-header h1 {
    max-width: 52rem;
    margin-top: 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.9rem;
}

.post-meta time {
    direction: rtl;
    unicode-bidi: isolate;
}

.post-article > .post-image-section {
    display: block;
    width: 100%;
    height: clamp(8rem, 18vw, 12rem);
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid hsl(var(--border));
}

.post-hero-placeholder {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    margin: 0;
    padding: 0;
    border: 0;
}

.post-hero-placeholder span {
    width: clamp(1rem, 3vw, 2rem);
    height: clamp(1rem, 3vw, 2rem);
}

.post-content {
    width: min(100%, 52rem);
    margin-inline: auto;
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 1.5rem);
    direction: rtl;
    text-align: right;
    font-size: 1.05rem;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.post-content > * + * {
    margin-block-start: 1.25rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-block-start: 2.25rem;
    line-height: 1.4;
}

.post-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.post-content h3 { font-size: 1.35rem; }
.post-content h4 { font-size: 1.15rem; }

.post-content ul,
.post-content ol {
    padding-inline-start: 1.5rem;
}

.post-content li + li {
    margin-block-start: 0.4rem;
}

.post-content a {
    color: var(--primary);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.post-content blockquote {
    padding: 0.75rem 1rem;
    border-inline-start: 3px solid var(--primary);
    background: hsl(var(--card));
    color: hsl(var(--muted-foreground));
}

.post-content pre {
    max-width: 100%;
    padding: 1rem;
    overflow-x: auto;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    direction: ltr;
    text-align: right;
    line-height: 1.6;
}

.post-content :not(pre) > code {
    padding: 0.12em 0.35em;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    direction: ltr;
    unicode-bidi: isolate;
}

.post-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.post-content th,
.post-content td {
    padding: 0.65rem 0.85rem;
    border: 1px solid hsl(var(--border));
    text-align: right;
}

.post-content th {
    background: hsl(var(--card));
}

.post-content img {
    display: block;
    max-width: 100%;
    height: auto;
}

.post-content hr {
    border: 0;
    border-top: 1px solid hsl(var(--border));
}

.blog-post-grid .blog-post-card:first-of-type {
    border-right: 0;
}

section.features.blog-post-grid > .blog-post-card:last-child {
    border-left: 1px solid hsl(var(--border));
    border-bottom: 1px solid hsl(var(--border));
}

.blog-post-card {
    min-height: 0;
    max-height: 24rem;
    border-bottom: 1px solid hsl(var(--border));
}

.blog-post-card h3 {
    color: hsl(var(--foreground));
}

.blog-post-title a {
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: color 150ms ease;
}

.blog-post-title a:hover {
    color: var(--primary);
}

.blog-post-image-placeholder {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: repeat(2, 0.65rem);
    grid-template-rows: repeat(2, 0.65rem);
    place-content: center;
    gap: 0.25rem;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 0.25rem;
    background-color: hsl(var(--secondary));
    background-image: linear-gradient(135deg, hsl(var(--secondary)), hsl(var(--muted)));
}

.blog-post-image-placeholder span {
    background: var(--wave-1);
    opacity: 0.65;
}

.blog-post-image-placeholder span:nth-child(2) { background: var(--wave-2); }
.blog-post-image-placeholder span:nth-child(3) { background: var(--wave-3); }
.blog-post-image-placeholder span:nth-child(4) { background: var(--wave-4); }

.blog-post-link h3 {
    overflow-wrap: anywhere;
}

.blog-post-excerpt {
    display: -webkit-box;
    overflow: hidden;
    color: hsl(var(--muted-foreground));
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.blog-post-read {
    display: inline-flex;
    align-self: stretch;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: auto;
    color: var(--wave-4);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.blog-empty {
    grid-column: 1 / -1;
    padding: 2rem;
    color: hsl(var(--muted-foreground));
}

.hero-content {
    width: min(48rem, calc(100% - 2rem));
    padding: clamp(1.5rem, 5vw, 3.5rem);
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
    text-align: center;
}

html.hero-motion-pending .hero-content {
    visibility: hidden;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.75rem);
    line-height: 1.1;
}

.hero-content h1 .hero-bot-avatar {
    display: inline-flex;
    flex: 0 0 1em;
    width: 1em;
    height: 0.98em;
    margin-inline: 0.16em;
    gap: 0.24em;
    border-radius: 27% 27% 24% 24% / 30% 30% 26% 26%;
    vertical-align: middle;
    will-change: transform;
}

.hero-content h1 .hero-bot-avatar .bot-avatar-eye {
    width: 0.12em;
    height: 0.38em;
    border-radius: 1em;
    will-change: transform;
}

.hero-content p {
    max-width: 38rem;
    margin: 1rem auto 0;
    color: hsl(var(--muted-foreground));
    font-size: clamp(1rem, 2vw, 1.125rem);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid hsl(var(--border));
    background-color: var(--primary);
    color: var(--primary-foreground);
    font-weight: 600;
    text-decoration: none;
}

.hero-cta:hover {
    filter: brightness(0.9);
}

.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-inline: clamp(1rem, -4rem + 25vw, 32rem);
    border-inline: 1px solid hsl(var(--border));
    border-bottom: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
}

.innernav {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "brand links login";
    align-items: center;
    width: 100%;
    max-width: 80rem;
    min-height: 4rem;
    padding: 0.65rem var(--nav-content-inset);
    border-inline: 1px solid hsl(var(--border));
}

.nav-brand {
    display: flex;
    align-items: center;
    justify-self: start;
    grid-area: brand;
}

.nav-brand img {
    display: block;
    width: 2rem;
    height: 2rem;
}

.nav-links {
    grid-area: links;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.8rem, 2vw, 1.5rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-login {
    display: flex;
    align-items: center;
    justify-self: end;
    grid-area: login;
}

.nav .nav-login-button {
    text-decoration: none;
}

.dashboard-nav .nav-user,
.dashboard-nav .dashboard-account-identity {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.dashboard-nav .nav-user-icon,
.dashboard-nav .dashboard-user-avatar {
    display: grid;
    flex: 0 0 2.25rem;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
    font-size: 1.1rem;
}

.dashboard-nav .nav-user-details {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
    color: hsl(var(--foreground));
    font-size: 0.8rem;
    line-height: 1.25;
}

.dashboard-nav .nav-user-details strong,
.dashboard-nav .nav-user-details span {
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-nav .nav-user-details span {
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
}

.dashboard-nav .dashboard-desktop-account {
    display: flex;
    align-items: center;
}

.dashboard-nav .ui-dropdown-trigger {
    width: 2.5rem;
    min-width: 2.5rem;
    height: 2.5rem;
    min-height: 2.5rem;
    padding: 0;
    border-radius: var(--radius-control);
}

.dashboard-nav .dashboard-account-sheet-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.5rem;
    padding: 0.75rem;
    border: 1px solid hsl(var(--border));
}

.dashboard-nav .dashboard-account-menu-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 15rem;
    padding: 0.75rem;
    border-bottom: 1px solid hsl(var(--border));
}

.dashboard-nav .dashboard-account-menu-profile .nav-user-details {
    flex: 1;
    text-align: right;
}

.dashboard-nav .dashboard-account-menu-profile .nav-user-details strong,
.dashboard-nav .dashboard-account-menu-profile .nav-user-details span {
    max-width: 13rem;
}

.dashboard-nav .dashboard-account-logout {
    width: 100%;
    justify-content: flex-start;
    border-radius: var(--radius-control);
    text-align: start;
}

.dashboard-nav .dashboard-account-sheet-logout {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-control);
}

.dashboard-nav .nav-logout-form {
    margin: 0;
}

.dashboard-nav .nav-links a[aria-current="page"],
.dashboard-nav .mobile-menu-links a[aria-current="page"] {
    color: hsl(var(--foreground));
}

.nav-menu-toggle,
.mobile-menu {
    display: none;
}

/* Corner Bolts */
.bolt {
    z-index: 2000;
    position: absolute;

    /* Lock them to the bottom edge */
    bottom: -7px;

    width: 14px;
    height: 14px;
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--background));
}

.bolt-sec {
    z-index: 999;
    position: absolute;

    /* Lock them to the bottom edge */
    top: -7px;

    width: 14px;
    height: 14px;
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--background));
}

.bolt-left {
    inset-inline-start: -7px;
}

.bolt-right {
    inset-inline-end: -7px;
}


.chat-demo-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 28rem;
    padding: 1rem;
}

.chat-demo-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

#chat-demo-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
    gap: clamp(1.5rem, 5vw, 4rem);
}


.chat-demo-copy h2 {
    max-width: 14ch;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.1;
}

.chat-demo-copy p {
    max-width: 36rem;
    margin-top: 1rem;
    color: hsl(var(--muted-foreground));
    font-size: 1.05rem;
    line-height: 1.7;
}

.chat-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    height: 28rem;
    margin: 0;
    padding: 1.5rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%);
    mask-image: linear-gradient(to bottom, transparent, #000 12%);
}

#faq-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin: 0;
}

.section-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid hsl(var(--border));
}

.section-title-row h2 {
    min-width: 0;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.15;
}

.section-pixel-grid {
    display: grid;
    flex: 0 0 70px;
    grid-template-columns: repeat(7, 10px);
    grid-template-rows: repeat(5, 10px);
    gap: 0;
    width: 70px;
    height: 50px;
}

.section-pixel {
    width: 10px;
    height: 10px;
    opacity: 0.22;
}

.section-pixel.tone-0 {
    background: var(--wave-1);
    opacity: 1;
}

.section-pixel.tone-1 {
    background: var(--wave-2);
    opacity: 1;
}

.section-pixel.tone-2 {
    background: var(--wave-3);
    opacity: 1;
}

.section-pixel.tone-3 {
    background: var(--wave-4);
    opacity: 1;
}

.section-pixel.tone-4 {
    background: var(--wave-5);
    opacity: 1;
}

.section-pixel.hot {
    background: #fff;
    opacity: 1;
}

.faq-list {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin: 0;
    padding: 0;
}

.faq-item {
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid hsl(var(--border));
}

.faq-item:last-child {
    border-bottom: 0;
}

.faq-item h3 {
    margin: 0;
    font-size: inherit;
    font-weight: 500;
}

.faq-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-height: 4.75rem;
    margin: 0;
    padding: 1.25rem;
    border: 0;
    background: transparent;
    color: hsl(var(--foreground));
    font: inherit;
    text-align: right;
    cursor: pointer;
}

.faq-trigger:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -3px;
}

.faq-toggle {
    position: relative;
    display: block;
    flex: 0 0 1rem;
    width: 1rem;
    height: 1rem;
    color: hsl(var(--foreground));
}

.faq-toggle::before,
.faq-toggle::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.875rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
    transform: translate(-50%, -50%);
}

.faq-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
    width: 100%;
    overflow: hidden;
}

.faq-answer-inner {
    padding: 0 1.25rem 1.25rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
}

.chat-list.is-overflowing {
    justify-content: flex-end;
}

.bubble {
    flex: 0 0 auto;
    max-width: 82%;
    padding: 0.75rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
}

.bubble[data-from="user"] {
    align-self: flex-start;
    border-bottom-right-radius: 0.15rem;
    background-color: hsl(var(--foreground));
    color: hsl(var(--background));
}

.bubble[data-from="bot"] {
    align-self: flex-end;
    border-bottom-left-radius: 0.15rem;
    background-color: hsl(var(--muted));
    color: hsl(var(--foreground));
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.bot-avatar {
    display: inline-flex;
    flex: 0 0 1.5rem;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-sm);
    background-color: var(--primary);
}

.bot-avatar-eye {
    width: 2px;
    height: 0.45rem;
    border-radius: 2px;
    background-color: var(--primary-foreground);
}

.bubble-text {
    min-width: 0;
}

.bubble[hidden],
.typing[hidden] {
    display: none !important;
}

.typing {
    display: flex;
    flex: 0 0 auto;
    align-self: flex-end;
    padding: 0.5rem 0.25rem;
    animation: chat-typing-in 320ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

.typing-grid {
    display: grid;
    grid-template-columns: repeat(2, 8px);
    grid-template-rows: repeat(2, 8px);
    gap: 0;
}

.typing-square {
    width: 8px;
    height: 8px;
    background-color: hsl(var(--border));
    opacity: 1;
}

@keyframes chat-typing-in {
    from {
        opacity: 0;
        transform: translateY(0.5rem) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .typing {
        animation: none;
    }
}

@media (max-width: 760px) {
    .post-article-header {
        padding: 1.25rem 1rem;
    }

    .post-content {
        padding: 2rem 1rem;
        font-size: 1rem;
    }

    #growth-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
        padding: 1.25rem 1rem;
    }

    .growth-copy h2 {
        max-width: 20ch;
    }

    .growth-chart-labels text {
        font-size: 15px;
    }

    #chat-demo-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        padding: 1rem;
    }

    .chat-demo-copy {
        min-height: 0;
        padding: 0.5rem 0;
    }

    .chat-list {
        height: clamp(22rem, 75vw, 28rem);
        padding: 1rem;
    }

    .chat-demo-copy h2 {
        max-width: 18ch;
    }

    .section-title-row,
    .pricing-heading,
    .faq-trigger {
        padding-inline: 1rem;
    }

    .faq-answer-inner {
        padding-inline: 1rem;
    }
}

@media (max-width: 380px) {
    .chat-list {
        padding: 0.75rem;
    }

    .bubble {
        max-width: 94%;
        padding: 0.65rem 0.75rem;
    }
}



#diagonal-lines {
    min-height: 4rem;
    background-image: repeating-linear-gradient(45deg,
            transparent 0,
            transparent 9px,
            hsl(var(--border)) 9px,
            hsl(var(--border)) 10px);
}

#footer-section {
    display: block;
    position: relative;
    margin-inline: clamp(1rem, -4rem + 25vw, 32rem);
    padding: 0;
    border-inline: 1px solid hsl(var(--border));
    border-bottom: 1px solid hsl(var(--border));
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-footer {
    width: 100%;
}

.site-footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 1.25rem;
    border-bottom: 1px solid hsl(var(--border));
}

.site-footer-brand > a {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: hsl(var(--foreground));
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.site-footer-brand img {
    display: block;
    width: 2rem;
    height: 2rem;
}

.site-footer-brand p {
    margin-top: 0.35rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.9rem;
}

.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem 1.25rem;
}

.site-footer-nav a,
.site-footer-bottom a {
    color: hsl(var(--muted-foreground));
    font-size: 0.9rem;
    text-decoration: none;
}

.site-footer-nav a:hover,
.site-footer-bottom a:hover {
    color: hsl(var(--foreground));
}

.enamad-seal {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.enamad-seal img {
    display: block;
    width: auto;
    height: 4rem;
}

.site-footer a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.site-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .innernav {
        grid-template-columns: 1fr auto;
        grid-template-areas: "brand toggle";
        padding-inline: var(--nav-content-inset);
    }

    .nav-links,
    .nav-login {
        display: none;
    }

    .dashboard-nav .innernav {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "brand toggle";
    }

    .dashboard-nav .dashboard-desktop-account {
        display: none;
    }

    .nav-brand img {
        width: 1.75rem;
        height: 1.75rem;
    }

    .nav-menu-toggle {
        display: flex;
        grid-area: toggle;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        justify-self: end;
        gap: 5px;
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        border: 1px solid hsl(var(--border));
        background: transparent;
        color: hsl(var(--foreground));
        cursor: pointer;
    }

    .nav-menu-toggle span,
    .mobile-menu-close span {
        display: block;
        width: 1rem;
        height: 2px;
        background: currentColor;
    }

    .mobile-menu {
        display: flex;
        position: fixed;
        z-index: 2001;
        inset: 0;
        flex-direction: column;
        padding: max(1.25rem, env(safe-area-inset-top)) clamp(1rem, 6vw, 2rem) max(1.25rem, env(safe-area-inset-bottom));
        overflow-y: auto;
        background: hsl(var(--background));
    }

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

    .mobile-menu[hidden] {
        display: none !important;
    }

    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 2.75rem;
    }

    .mobile-menu-close {
        display: grid;
        place-items: center;
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        border: 1px solid hsl(var(--border));
        background: transparent;
        color: hsl(var(--foreground));
        cursor: pointer;
    }

    .mobile-menu-close span {
        grid-area: 1 / 1;
    }

    .mobile-menu-close span:first-child {
        transform: rotate(45deg);
    }

    .mobile-menu-close span:last-child {
        transform: rotate(-45deg);
    }

    .mobile-menu nav {
        margin-top: clamp(3rem, 12vh, 6rem);
    }

    .dashboard-nav .mobile-menu-account {
        display: grid;
        gap: 1rem;
        margin-top: auto;
        padding-top: 1.5rem;
        border-top: 1px solid hsl(var(--border));
    }

    .mobile-menu-links {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mobile-menu-item {
        border-bottom: 1px solid hsl(var(--border));
    }

    .mobile-menu-links a {
        display: block;
        padding: 1rem 0;
        color: hsl(var(--foreground));
        font-size: clamp(1.35rem, 6vw, 2rem);
        font-weight: 600;
        text-decoration: none;
    }

    .mobile-menu-links a:hover {
        color: var(--primary);
    }

    .mobile-menu-cta {
        margin-top: 2rem;
        padding-bottom: 1.5rem;
        border-bottom: 0;
    }

    .mobile-menu-cta .ui-button {
        width: 100%;
        justify-content: center;
        padding-block: 0.85rem;
    }

    .nav-menu-toggle:focus-visible,
    .mobile-menu-close:focus-visible,
    .mobile-menu a:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 4px;
    }

}

@media (max-width: 600px) {
    :root {
        --nav-content-inset: 0.5rem;
    }

    .site-footer-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .site-footer-nav {
        justify-content: flex-start;
        gap: 0.75rem 1rem;
    }
}
.dashboard-page {
    justify-content: flex-start;
}

.account-dashboard {
    min-height: 100vh;
    min-height: 100svh;
    color: hsl(var(--foreground));
    background: hsl(var(--background));
}

.account-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 5rem;
    padding: 0 clamp(1.25rem, 5vw, 4rem);
    border-bottom: 1px solid hsl(var(--border));
    background: hsl(var(--card));
}

.account-dashboard-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
}

.account-dashboard-brand img {
    display: block;
}

.account-dashboard-main {
    width: min(100% - 2rem, 68rem);
    margin-inline: auto;
    padding: clamp(3rem, 8vh, 6rem) 0;
}

.account-dashboard-heading {
    margin-bottom: 2rem;
}

.account-dashboard-eyebrow {
    margin: 0 0 0.75rem;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.account-dashboard-heading h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
}

.account-dashboard-heading > p:last-child {
    margin: 0.8rem 0 0;
    color: hsl(var(--muted-foreground));
    font-size: 1rem;
}

.account-profile-card {
    max-width: 42rem;
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    background: hsl(var(--card));
    box-shadow: 0 1.25rem 3rem hsl(0 0% 0% / 0.12);
}

.account-profile-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.account-profile-avatar {
    display: grid;
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid hsl(var(--border));
    border-radius: 50%;
    color: var(--primary);
    background: hsl(var(--background));
    font-size: 1.25rem;
}

.account-profile-heading h2 {
    margin: 0;
    font-size: 1rem;
}

.account-profile-heading p {
    margin: 0.35rem 0 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.account-profile-details {
    display: grid;
    margin: 0;
    padding: 0 1.5rem;
}

.account-profile-details > div {
    display: grid;
    grid-template-columns: minmax(7rem, 0.45fr) minmax(0, 1fr);
    gap: 1rem;
    padding: 1.1rem 0;
}

.account-profile-details > div + div {
    border-top: 1px solid hsl(var(--border));
}

.account-profile-details dt {
    color: hsl(var(--muted-foreground));
}

.account-profile-details dd {
    overflow-wrap: anywhere;
    margin: 0;
    font-weight: 550;
}

@media (max-width: 600px) {
    .account-dashboard-header {
        min-height: 4.25rem;
        padding-inline: 1rem;
    }

    .account-dashboard-main {
        width: min(100% - 2rem, 68rem);
        padding-top: 3rem;
    }

    .account-profile-details > div {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
}

body:has(.account-dashboard) {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

.account-dashboard {
    --dashboard-sidebar-width: 16rem;
    display: grid;
    flex: 1 1 0;
    grid-template-columns: var(--dashboard-sidebar-width) minmax(0, 1fr);
    gap: 0.75rem;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0.75rem;
    overflow: hidden;
    background: hsl(var(--muted));
    transition: grid-template-columns 220ms var(--ease-out);
}

.dashboard-sidebar {
    z-index: 2;
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0.75rem;
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--sidebar));
}

.account-dashboard-brand {
    min-height: 2.75rem;
    gap: 0.75rem;
    padding-inline: 0.5rem;
    overflow: hidden;
    font-size: 1rem;
    white-space: nowrap;
}

.account-dashboard-brand img {
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
}

.dashboard-sidebar-nav {
    display: grid;
    align-content: start;
    gap: 0.3rem;
}

.dashboard-sidebar-label {
    margin: 0 0 0.35rem;
    padding-inline: 0.65rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    font-weight: 600;
}

.dashboard-sidebar-link {
    display: flex;
    min-height: 2.65rem;
    align-items: center;
    gap: 0.75rem;
    padding-inline: 0.7rem;
    overflow: hidden;
    border-radius: var(--radius-control);
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 150ms ease, color 150ms ease;
}

.dashboard-sidebar-link i {
    display: grid;
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 1.25rem;
    place-items: center;
    font-size: 1.125rem;
}

.dashboard-sidebar-link i {
    font-size: 1.25rem;
}

.dashboard-sidebar-link:hover {
    background: color-mix(in srgb, hsl(var(--foreground)) 5%, transparent);
}

.dashboard-sidebar-link[aria-current="page"] {
    background: hsl(var(--muted));
    color: var(--primary);
    box-shadow: 0 1px 2px hsl(var(--foreground) / 0.06);
}

.dashboard-inset {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--background));
    box-shadow: 0 1px 3px hsl(var(--foreground) / 0.04);
}

.dashboard-inset-header {
    display: flex;
    min-height: 3.75rem;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.85rem;
    padding-inline: 1.25rem;
    border-bottom: 1px solid hsl(var(--border));
    background: hsl(var(--card));
}

.dashboard-sidebar-trigger {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    background: transparent;
    color: hsl(var(--muted-foreground));
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

.dashboard-sidebar-trigger:hover {
    border-color: hsl(var(--border));
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
}

.dashboard-breadcrumb {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.6rem;
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    font-weight: 550;
}

.dashboard-breadcrumb::before {
    width: 1px;
    height: 1.25rem;
    background: hsl(var(--border));
    content: "";
}

.dashboard-sidebar-trigger:focus-visible,
.dashboard-sidebar-link:focus-visible,
.dashboard-account-signout:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.dashboard-account-menu {
    margin-inline-start: auto;
    flex: 0 0 auto;
}

.dashboard-account-menu .ui-dropdown-trigger {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
}

.dashboard-account-menu .ui-dropdown-trigger:hover {
    border-color: hsl(var(--border));
    background: hsl(var(--muted));
}

.dashboard-account-avatar {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid hsl(var(--border));
    border-radius: 50%;
    background: hsl(var(--muted));
    color: var(--primary);
    font-size: 1.2rem;
}

.dashboard-account-summary {
    display: grid;
    gap: 0.25rem;
    padding: 0.65rem 0.75rem;
    overflow: hidden;
}

.dashboard-account-summary strong,
.dashboard-account-summary span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-account-summary strong {
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    font-weight: 600;
}

.dashboard-account-summary span {
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
}

.dashboard-account-menu-divider {
    height: 1px;
    margin: 0.25rem 0;
    background: hsl(var(--border));
}

.dashboard-account-menu form {
    min-width: 0;
}

.dashboard-account-signout {
    justify-content: flex-start;
    gap: 0.6rem;
    color: hsl(var(--muted-foreground));
    text-align: start;
}

.dashboard-account-menu .dashboard-account-signout:hover:not(:disabled) {
    background: hsl(var(--destructive) / 0.1);
    color: hsl(var(--destructive));
}

.account-dashboard-main {
    display: block;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    margin: 0;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    overflow: auto;
    border: 0;
}

.account-dashboard-construction {
    display: grid;
    place-items: center;
    overflow: hidden;
}

.account-dashboard-user-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.account-dashboard-user-list > * {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.account-dashboard-main > * {
    width: min(100%, 58rem);
    margin-inline: auto;
}

.account-dashboard-user-list > .ui-data-table {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: none;
    flex: 1 1 0;
    align-self: stretch;
    margin: 0;
    border-radius: 0;
}

.account-dashboard-user-list .ui-data-table-toolbar {
    border-top: 0;
}

.dashboard-construction-title {
    margin: 0;
    color: hsl(var(--muted-foreground));
    font-size: 1.125rem;
    font-weight: 500;
    text-align: center;
}

.account-dashboard-heading {
    margin-bottom: 2rem;
}

.account-dashboard-heading h1 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.account-dashboard-heading > p:last-child {
    margin-top: 0.55rem;
    font-size: 0.9375rem;
}

.account-profile-card {
    max-width: 48rem;
    width: min(100%, 48rem);
    margin-inline: auto;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    display: block;
    position: relative;
    box-shadow: 0 1px 2px hsl(var(--foreground) / 0.04);
}

.dashboard-sidebar-backdrop {
    display: none;
}

.account-dashboard[data-sidebar-collapsed="true"] {
    --dashboard-sidebar-width: 3.25rem;
}

.account-dashboard[data-sidebar-collapsed="true"] .account-dashboard-brand,
.account-dashboard[data-sidebar-collapsed="true"] .dashboard-sidebar-link {
    justify-content: center;
    gap: 0;
    padding-inline: 0;
}

.account-dashboard[data-sidebar-collapsed="true"] .dashboard-sidebar-link {
    width: 2rem;
    height: 2rem;
    min-height: 2rem;
    justify-self: center;
    justify-content: center;
    gap: 0;
    padding: 0;
}

.account-dashboard[data-sidebar-collapsed="true"] .account-dashboard-brand > span,
.account-dashboard[data-sidebar-collapsed="true"] .dashboard-sidebar-label,
.account-dashboard[data-sidebar-collapsed="true"] .dashboard-sidebar-link > span {
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: opacity 120ms ease;
}

.account-dashboard[data-sidebar-collapsed="true"] .dashboard-sidebar {
    padding-inline: 0.3rem;
    gap: 0.75rem;
}

.account-dashboard[data-sidebar-collapsed="true"] .account-dashboard-brand {
    min-height: 2rem;
}

.account-dashboard[data-sidebar-collapsed="true"] .dashboard-sidebar-label {
    display: none;
}

@media (max-width: 767px) {
    .account-dashboard {
        display: block;
        padding: 0.5rem;
    }

    .dashboard-sidebar {
        position: fixed;
        inset: 0.5rem 0.5rem 0.5rem auto;
        z-index: 1002;
        width: min(17rem, calc(100vw - 2rem));
        box-shadow: 0 1.5rem 3rem hsl(var(--foreground) / 0.18);
        opacity: 0;
        transform: translateX(calc(100% + 0.75rem));
        transition: transform 220ms var(--ease-out), opacity 160ms ease;
    }

    .account-dashboard[data-sidebar-mobile-open="true"] .dashboard-sidebar {
        opacity: 1;
        transform: translateX(0);
    }

    .dashboard-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1001;
        display: block;
        border: 0;
        background: hsl(var(--foreground) / 0.28);
        opacity: 0;
        pointer-events: none;
        transition: opacity 160ms ease, visibility 160ms ease;
        visibility: hidden;
    }

    .account-dashboard[data-sidebar-mobile-open="true"] .dashboard-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
    }

    .dashboard-inset {
        width: 100%;
        height: 100%;
    }

    .dashboard-inset-header {
        min-height: 3.5rem;
        gap: 0.65rem;
        padding-inline: 0.75rem;
    }

    .account-dashboard-main:not(.account-dashboard-user-list) {
        padding: 1.5rem 1rem 2rem;
    }

    .account-profile-heading {
        padding: 1.1rem;
    }

    .account-profile-details {
        padding-inline: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .account-dashboard {
        transition-duration: 120ms;
    }

    .dashboard-sidebar {
        transition: opacity 120ms ease;
    }

    .dashboard-sidebar-backdrop {
        transition-duration: 120ms;
    }
}

.plan-group-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan-group-section { flex-direction: column; }
@media (max-width: 900px) { .plan-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plan-group-grid { grid-template-columns: minmax(0, 1fr); } }

main section.dashboard-usage {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 0;
}

main section.dashboard-bots {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 0;
}

.dashboard-requests {
    display: block;
    min-width: 0;
    margin-top: 0;
    padding: 0;
}

.dashboard-request-panel {
    min-height: 28rem;
    padding: 0;
    background: hsl(var(--background));
}

.dashboard-request-panel .ui-data-table {
    min-height: 28rem;
}

.dashboard-request-panel .ui-data-table-grid {
    min-width: 52rem;
}

.dashboard-usage-card {
    display: flex;
    min-width: 0;
    min-height: 9rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem;
    border-left: 1px solid hsl(var(--border));
    text-align: right;
}

.dashboard-usage-card:last-child {
    border-left: 0;
}

.dashboard-usage-card p {
    margin: 0;
    color: hsl(var(--muted-foreground));
}

.dashboard-usage-card strong {
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.dashboard-usage-card strong span {
    color: hsl(var(--muted-foreground));
    font-size: 0.8em;
    font-weight: 450;
}

.dashboard-bot-slot strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-bot-active {
    align-items: center;
    text-align: center;
    color: hsl(var(--foreground));
    text-decoration: none;
    cursor: pointer;
    transition: background-color 160ms ease;
}

.dashboard-bot-active:hover {
    background-color: hsl(var(--muted) / 0.45);
}

.dashboard-bot-active:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid var(--ring);
    outline-offset: -2px;
}

main section.dashboard-bot-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.25rem;
    border-bottom: 1px solid hsl(var(--border));
}

.dashboard-bot-back {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.5rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
}

.dashboard-bot-back:hover {
    color: hsl(var(--foreground));
}

.dashboard-bot-header-main {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 1rem;
}

.dashboard-bot-header-avatar {
    display: grid;
    flex: 0 0 4rem;
    width: 4rem;
    height: 4rem;
    place-items: center;
    border: 1px solid hsl(var(--border));
}

.dashboard-bot-header-avatar .dashboard-bot-avatar {
    font-size: 2.75rem;
}

.dashboard-bot-header-copy {
    min-width: 0;
    flex: 1;
}

.dashboard-bot-header-copy h1 {
    overflow: hidden;
    margin: 0;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    text-overflow: ellipsis;
}

.dashboard-bot-header-copy p,
.dashboard-bot-telegram {
    margin: 0.35rem 0 0;
    color: hsl(var(--muted-foreground));
}

.dashboard-bot-telegram .is-connected {
    color: #07b86a;
}

.dashboard-bot-power-control {
    display: grid;
    justify-items: end;
    gap: 0.4rem;
}

.dashboard-bot-power-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dashboard-bot-power-actions .ui-dropdown-trigger {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    place-items: center;
}

.dashboard-bot-power-actions .ui-dropdown-trigger .ph {
    font-size: 1.2rem;
}

.dashboard-bot-toggle {
    gap: 0.5rem;
}

.dashboard-bot-toggle .ph-power {
    font-size: 1.15rem;
}

.dashboard-bot-toggle.is-live {
    border-color: #07b86a;
    color: #07b86a;
}

.dashboard-bot-toggle.is-inactive {
    color: hsl(var(--muted-foreground));
}

.dashboard-bot-toggle-feedback {
    color: hsl(var(--destructive));
    font-size: 0.75rem;
}

main section.dashboard-bot-settings {
    display: block;
    padding: 0;
}

.dashboard-bot-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 0;
    border-bottom: 1px solid hsl(var(--border));
}

.dashboard-bot-tab {
    display: flex;
    min-width: 0;
    min-height: 3.5rem;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border: 0;
    border-left: 1px solid hsl(var(--border));
    background: transparent;
    color: hsl(var(--muted-foreground));
    font: inherit;
    cursor: pointer;
}

.dashboard-bot-tab:last-child {
    border-left: 0;
}

.dashboard-bot-tab.is-selected {
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    position: relative;
    z-index: 1;
    margin-bottom: -1px;
    border-bottom: 1px solid hsl(var(--card));
}

.dashboard-bot-tab:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid var(--ring);
    outline-offset: -2px;
}

.dashboard-bot-tab-panel {
    padding: clamp(1rem, 3vw, 1.5rem);
    background: hsl(var(--card));
}

.dashboard-bot-tab-panel.dashboard-request-panel {
    min-height: 28rem;
    padding: 0;
    background: hsl(var(--background));
}

.dashboard-bot-tab-panel[hidden],
.dashboard-bot-notification-generate[hidden] {
    display: none !important;
}

.dashboard-bot-faq-panel,
.dashboard-bot-products-panel {
    display: grid;
    width: 100%;
    min-height: 32rem;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0;
    padding: 0;
}

.dashboard-bot-faq-panel > .ui-data-table,
.dashboard-bot-products-panel > .ui-data-table {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

.dashboard-bot-faq-panel .ui-data-table-grid {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.dashboard-bot-products-panel .ui-data-table-grid {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.dashboard-bot-products-panel .ui-data-table-grid th:first-child,
.dashboard-bot-products-panel .ui-data-table-grid td:first-child {
    width: 28%;
}

.dashboard-bot-products-panel .ui-data-table-grid th:nth-child(2),
.dashboard-bot-products-panel .ui-data-table-grid td:nth-child(2) {
    width: 20%;
}

.dashboard-bot-products-panel .ui-data-table-grid td {
    height: auto;
    white-space: normal;
    overflow-wrap: anywhere;
    vertical-align: top;
}

.dashboard-bot-products-panel .ui-data-table-grid td > span,
.dashboard-bot-products-panel .ui-data-table-row-link {
    display: block;
    width: 100%;
    direction: rtl;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
}

.dashboard-bot-products-panel .ui-data-table-grid td:first-child > span,
.dashboard-bot-products-panel .ui-data-table-grid td:first-child .ui-data-table-row-link,
.dashboard-bot-products-panel .ui-data-table-grid td:nth-child(3) > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-bot-products-panel .ui-data-table-grid td:first-child > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-bot-faq-panel .ui-data-table-grid th:first-child,
.dashboard-bot-faq-panel .ui-data-table-grid td:first-child {
    width: 42%;
}

.dashboard-bot-faq-panel .ui-data-table-grid td {
    height: auto;
    white-space: normal;
    overflow-wrap: anywhere;
    vertical-align: top;
}

.dashboard-bot-faq-panel .ui-data-table-grid td:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-bot-faq-panel .ui-data-table-grid td > span,
.dashboard-bot-faq-panel .ui-data-table-row-link {
    display: block;
    width: 100%;
    direction: rtl;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
}

.dashboard-bot-faq-panel .ui-data-table-grid td:first-child > span,
.dashboard-bot-faq-panel .ui-data-table-grid td:first-child .ui-data-table-row-link,
.dashboard-bot-faq-panel .ui-data-table-grid td:nth-child(2) > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-bot-faq-panel .ui-data-table-grid td:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-bot-faq-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
}

.dashboard-bot-products-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
}

.dashboard-bot-products-heading h2 {
    margin: 0;
    font-size: 1.1rem;
}

.dashboard-bot-products-heading .ui-button {
    gap: 0.5rem;
}

.dashboard-bot-faq-heading h2 {
    margin: 0;
    font-size: 1.1rem;
}

.dashboard-bot-faq-heading .ui-button {
    gap: 0.5rem;
}

.dashboard-bot-faq-form textarea.ui-input {
    height: 12rem;
    min-height: 12rem;
}

.dashboard-bot-product-form textarea.ui-input {
    min-height: 10rem;
}

.dashboard-bot-faq-form-status,
.dashboard-bot-product-form-status {
    min-height: 1.5rem;
    margin: 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.dashboard-bot-faq-submit,
.dashboard-bot-product-submit {
    width: 100%;
}

.dashboard-bot-faq-edit-actions .ui-button {
    flex: 1 1 8rem;
}

.dashboard-bot-faq-edit-actions .dashboard-bot-faq-submit {
    width: auto;
}

.dashboard-bot-product-edit-actions .ui-button {
    flex: 1 1 8rem;
}

.dashboard-bot-product-edit-actions .dashboard-bot-product-submit {
    width: auto;
}

.dashboard-bot-reservation-panel {
    padding: 1.25rem;
}

.dashboard-bot-reservation-description {
    margin: 0 0 1rem;
    color: hsl(var(--muted-foreground));
}

.dashboard-bot-reservation-enabled,
.dashboard-bot-reservation-day-grid label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.dashboard-bot-reservation-enabled {
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-control);
    background: hsl(var(--card));
    font-weight: 600;
}

.dashboard-bot-reservation-enabled input,
.dashboard-bot-reservation-day-grid input {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    flex: 0 0 auto;
    place-content: center;
    width: 1rem;
    height: 1rem;
    margin: 0;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-control);
    background: hsl(var(--background));
    color: var(--primary-foreground);
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.dashboard-bot-reservation-enabled input:checked,
.dashboard-bot-reservation-day-grid input:checked {
    border-color: var(--primary);
    background: var(--primary);
}

.dashboard-bot-reservation-enabled input::after,
.dashboard-bot-reservation-day-grid input::after {
    width: 0.28rem;
    height: 0.52rem;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    content: "";
    transform: rotate(45deg) scale(0);
    transition: transform 140ms ease;
}

.dashboard-bot-reservation-enabled input:checked::after,
.dashboard-bot-reservation-day-grid input:checked::after {
    transform: rotate(45deg) scale(1);
}

.dashboard-bot-reservation-enabled input:focus-visible,
.dashboard-bot-reservation-day-grid input:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary) 38%, transparent);
    outline-offset: 2px;
}

.dashboard-bot-reservation-day-grid label {
    min-height: 2.75rem;
    justify-content: center;
    padding: 0.6rem 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-control);
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
    user-select: none;
}

.dashboard-bot-reservation-day-grid label:hover {
    border-color: color-mix(in srgb, var(--primary) 55%, hsl(var(--border)));
}

.dashboard-bot-reservation-day-grid label:has(input:checked) {
    border-color: color-mix(in srgb, var(--primary) 72%, hsl(var(--border)));
    background: color-mix(in srgb, var(--primary) 13%, hsl(var(--card)));
    color: var(--primary);
}

.dashboard-bot-reservation-day-grid label:has(input:focus-visible) {
    outline: 3px solid color-mix(in srgb, var(--primary) 38%, transparent);
    outline-offset: 2px;
}

.dashboard-bot-reservation-enabled input {
    position: relative;
    direction: ltr;
    width: 2.5rem;
    height: 1.4rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: hsl(var(--muted));
}

.dashboard-bot-reservation-enabled input::after {
    position: absolute;
    top: 50%;
    left: 0.16rem;
    width: 1.08rem;
    height: 1.08rem;
    border: 0;
    border-radius: 999px;
    background: hsl(var(--foreground));
    content: "";
    transform: translateY(-50%);
}

.dashboard-bot-reservation-enabled input:checked {
    background: var(--primary);
}

.dashboard-bot-reservation-enabled input:checked::after {
    transform: translate(1.1rem, -50%);
}

.dashboard-bot-reservation-weekdays {
    margin: 0 0 1.25rem;
    padding: 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-control);
}

.dashboard-bot-reservation-weekdays legend {
    padding: 0 0.35rem;
    color: hsl(var(--muted-foreground));
}

.dashboard-bot-reservation-day-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    gap: 0.85rem 1rem;
}

.dashboard-bot-reservation-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: 1rem;
}

.dashboard-bot-reservation-fields input[type="time"]::-webkit-calendar-picker-indicator {
    opacity: 0;
}

.dashboard-bot-reservation-panel .ui-input,
.dashboard-bot-reservation-panel .ui-input-group,
.dashboard-bot-reservation-panel .ui-button {
    border-radius: var(--radius-control);
}

.dashboard-bot-reservation-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-top: 1.25rem;
}

.dashboard-bot-reservation-submit {
    min-width: 10rem;
}

.dashboard-bot-reservation-status {
    min-height: 1.5rem;
    margin: 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.dashboard-bot-notifications {
    display: grid;
    gap: 0.85rem;
}

.dashboard-bot-notifications h2 {
    margin: 0;
    font-size: 1.1rem;
}

.dashboard-bot-notifications-description,
.dashboard-bot-notifications-note,
.dashboard-bot-notification-key p {
    margin: 0;
    color: hsl(var(--muted-foreground));
    line-height: 1.8;
}

.dashboard-bot-notifications-note {
    padding: 0.85rem 1rem;
    border: 1px solid hsl(var(--border));
}

.dashboard-bot-notification-generate {
    justify-self: start;
    gap: 0.5rem;
}

.dashboard-bot-notification-key {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid hsl(var(--border));
}

.dashboard-bot-notification-key[hidden] {
    display: none !important;
}

.dashboard-bot-notification-command-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.dashboard-bot-notification-command-row code {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    overflow-wrap: anywhere;
    padding: 0.6rem 0.75rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 0.9rem;
}

.dashboard-bot-notification-copy {
    flex: 0 0 auto;
    border-radius: var(--radius-control);
}

.dashboard-bot-notification-expiry {
    font-size: 0.8rem;
}

.dashboard-bot-notification-open {
    justify-self: start;
    color: hsl(var(--foreground));
}

.dashboard-bot-notification-connected {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1rem;
    border: 1px solid #07b86a;
    color: #07b86a;
}

.dashboard-bot-notification-status {
    min-height: 1.25rem;
    margin: 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.dashboard-bot-notification-status.is-error {
    color: hsl(var(--destructive));
}

.dashboard-bot-settings-form {
    width: 100%;
}

.dashboard-bot-settings-form textarea.ui-input {
    height: 10rem;
    min-height: 10rem;
    resize: vertical;
}

.dashboard-bot-type-fieldset {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.dashboard-bot-type-fieldset legend {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.dashboard-bot-type-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border: 1px solid hsl(var(--border));
}

.dashboard-bot-type-card {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.dashboard-bot-type-card + .dashboard-bot-type-card {
    border-right: 1px solid hsl(var(--border));
}

.dashboard-bot-type-input {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    opacity: 0;
    cursor: inherit;
}

.dashboard-bot-type-card-content {
    position: relative;
    display: flex;
    min-height: 6.25rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.75rem;
    background: hsl(var(--background));
    color: hsl(var(--muted-foreground));
    text-align: center;
}

.dashboard-bot-type-radio {
    position: absolute;
    top: 0.75rem;
    inset-inline-start: 0.75rem;
    display: grid;
    width: 1rem;
    height: 1rem;
    place-items: center;
    border: 1px solid hsl(var(--muted-foreground));
    border-radius: 50%;
}

.dashboard-bot-type-radio::after {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--primary);
    content: "";
    transform: scale(0);
    transition: transform 120ms ease;
}

.dashboard-bot-type-card-content i {
    font-size: 1.25rem;
}

.dashboard-bot-type-input:checked + .dashboard-bot-type-card-content {
    background: color-mix(in srgb, var(--primary) 12%, hsl(var(--background)));
    color: var(--primary);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 55%, transparent);
}

.dashboard-bot-type-input:checked + .dashboard-bot-type-card-content .dashboard-bot-type-radio {
    border-color: var(--primary);
}

.dashboard-bot-type-input:checked + .dashboard-bot-type-card-content .dashboard-bot-type-radio::after {
    transform: scale(1);
}

.dashboard-bot-type-input:focus-visible + .dashboard-bot-type-card-content {
    outline: 2px solid var(--ring);
    outline-offset: -2px;
}

.dashboard-bot-settings-actions {
    display: grid;
    gap: 0.5rem;
}

.dashboard-bot-settings-actions .ui-button {
    width: 100%;
}

.dashboard-bot-avatar {
    position: relative;
    flex-basis: 1em;
    width: 1em;
    height: 0.98em;
    margin-inline: 0.16em;
    gap: 0.24em;
    border-radius: 27% 27% 24% 24% / 30% 30% 26% 26%;
    font-size: 2rem;
    vertical-align: middle;
    will-change: transform;
}

.dashboard-bot-avatar .bot-avatar-eye {
    width: 0.12em;
    height: 0.38em;
    border-radius: 1em;
    will-change: transform;
}

.dashboard-bot-avatar.is-dimmed {
    opacity: 0.24;
    filter: grayscale(0.65);
}

.dashboard-bot-avatar.is-sleeping .bot-avatar-eye {
    width: 0.14em;
    height: 0.06em;
    border-radius: 999px;
}

.dashboard-bot-empty {
    align-items: center;
    justify-content: center;
}

.dashboard-bot-placeholder {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.dashboard-bot-create-trigger {
    display: flex;
    min-height: 6rem;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border: 0;
    background: transparent;
    color: hsl(var(--muted-foreground));
    font: inherit;
    cursor: pointer;
    transition: color 150ms ease;
}

.dashboard-bot-create-trigger:hover,
.dashboard-bot-create-trigger:focus-visible {
    color: hsl(var(--foreground));
}

.dashboard-bot-create-trigger .ui-icon {
    font-size: 1.5rem;
}

.dashboard-bot-form {
    display: grid;
    gap: 1.25rem;
}

.dashboard-bot-form input.ui-input:not([type="radio"]):not([type="hidden"]),
.dashboard-bot-form select.ui-input,
.dashboard-bot-form textarea.ui-input {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-control);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font: inherit;
}

.dashboard-bot-form textarea.ui-input {
    height: 10rem;
    min-height: 10rem;
    resize: none;
}

.dashboard-bot-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    border: 0;
}

.dashboard-bot-colors legend {
    width: 100%;
    margin-bottom: 0.65rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.dashboard-bot-color-option {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.dashboard-bot-color-input {
    position: absolute;
    width: 1px;
    min-height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.dashboard-bot-color-swatch {
    display: block;
    width: 2rem;
    height: 2rem;
    border: 1px solid hsl(var(--border));
}

.dashboard-bot-color-input:checked + .dashboard-bot-color-swatch {
    outline: 2px solid hsl(var(--foreground));
    outline-offset: 3px;
}

.dashboard-bot-color-input:focus-visible + .dashboard-bot-color-swatch {
    box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px var(--primary);
}

.color-wave-1 { background: #80c7e8; }
.color-wave-2 { background: #b5a8ef; }
.color-wave-3 { background: #527fc9; }
.color-wave-4 { background: #a9c6f5; }
.color-wave-5 { background: #d5e4fb; }

.dashboard-bot-form ~ .ui-sheet-footer .ui-button,
.ui-sheet-footer .ui-button[form="dashboard-bot-create-form"] {
    width: 100%;
}

.dashboard-bot-form-status {
    min-height: 1.5rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

button[form="dashboard-bot-create-form"]:disabled {
    opacity: 0.6;
    cursor: wait;
}

@media (max-width: 600px) {
    .dashboard-bot-type-card-content {
        min-height: 4.75rem;
        gap: 0.25rem;
        padding: 0.4rem 0.2rem;
    }

    .dashboard-bot-type-card-content strong {
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .dashboard-bot-type-card-content i {
        font-size: 1rem;
    }

    .dashboard-bot-type-radio {
        top: 0.4rem;
        inset-inline-start: 0.4rem;
        width: 0.85rem;
        height: 0.85rem;
    }

    .dashboard-bot-type-radio::after {
        width: 0.42rem;
        height: 0.42rem;
    }

    main section.dashboard-usage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    main section.dashboard-bots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-usage-card:nth-child(2) {
        border-left: 0;
    }

    .dashboard-usage-card:nth-child(-n + 2) {
        border-bottom: 1px solid hsl(var(--border));
    }

    .dashboard-bot-slot:nth-child(2) {
        border-left: 0;
    }

    .dashboard-bot-slot:nth-child(-n + 2) {
        border-bottom: 1px solid hsl(var(--border));
    }
}
.dashboard-order-editor {
    gap: 1.25rem;
}

.dashboard-order-save {
    justify-self: start;
}
