/* ── Forge header (matches Pulse / Scout dark header pattern) ────────────── */
/* Accent: midnight blue — distinct from Pulse (violet) and Scout (teal)      */
.forge-header {
    background: linear-gradient(140deg, #1a0012 0%, #2d0a1e 55%, #1a000e 100%);
    border-bottom: 1px solid rgba(244, 63, 94, 0.20);
    position: relative;
    margin: -60px 0 -90px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.forge-header::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -120px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.10) 0%, transparent 65%);
    pointer-events: none;
}

.forge-header .back-to-store-btn {
    display: inline-flex !important;
    width: auto;
    align-self: flex-start;
}

.forge-header__body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    /* padding: 20px 0 32px; */
}

.forge-header__badge {
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fda4af;
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.28);
    border-radius: 999px;
    padding: 3px 10px;
    margin-bottom: 10px;
}

.forge-header__title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.forge-header__subtitle {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.50);
    max-width: 520px;
    line-height: 1.6;
    margin: 0;
}

.forge-header__chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 4px;
}

.forge-header__chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
}

.forge-header__chip--soon {
    color: rgba(253, 164, 175, 0.9);
    border-color: rgba(244, 63, 94, 0.3);
    background: rgba(244, 63, 94, 0.08);
}

/* ── Forge body — dark canvas below header ───────────────────────────────── */
.forge-body {
    min-height: calc(100vh - 300px);
    padding: 60px 0;
}

.forge-body .generate-hero-row {
    position: static;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 56px;
    border-radius: 0;
}

/* ── generate-page: stretch children full-width for Forge layout ─────────── */
.generate-page {
    background: rgb(20 0 14);
    align-items: stretch;
    margin-bottom: -96px;
}

/* ─────────────────────────────────────────────────────────────────────────── */

.generate-hero-row{
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    padding: 48px 0 38px 0;
    /* min-height: 480px; */
    margin: calc(-1 * var(--notification-height)) -30px 40px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    column-gap: 36px;
}

/* Title row: back button left, title optically centered */
.generate-hero-header{
    display: flex;
    align-items: center;
    width: calc(100% - 48px);
    max-width: 1080px;
    margin: calc(var(--notification-height) + 32px) auto 32px;
}

/* Zero out the base margin-bottom so it doesn't break the flex row */
.generate-hero-header .back-to-store-btn{
    margin-bottom: 0;
    flex-shrink: 0;
}

.generate-hero-title{
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    flex: 1;
    text-align: center;
}

/* Card: overrides the full-bleed positioning, caps width, adds radius */
.generate-page .generate-hero-row{
    position: static;
    left: auto;
    transform: none;
    width: calc(100% - 48px);
    max-width: 1080px;
    margin: 0 auto;
    padding: 80px 40px;
    border-radius: 20px;
}


.generate-hero-text{
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
    text-align-last: left;
}

.generate-hero-left{
    max-width: 260px;
    min-width: 200px;
}

.generate-hero-right{
    min-width: 520px;
    max-width: 560px;
    width: 100%;
    margin-right: -5px;
}



.generate-wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.generate-step1-wrapper{
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* Flex row: inner sidebar | fields */
.generate-step1-body{
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.generate-inner-sidebar{
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    width: 66px;
    padding-top: 2px;
    overflow: hidden;
}

.generate-fields-col{
    flex: 1;
    min-width: 0;
    text-align: left;
}

/* ── Inner app selector buttons (light card bg) ───────────── */
.app-inner-btn{
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.04);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
    padding: 0;
}

.app-inner-btn:hover:not(:disabled){
    background: rgba(79, 70, 229, 0.07);
    transform: translateY(-1px);
}

.app-inner-btn.is-selected{
    border-color: #4f46e5;
    background: rgba(79, 70, 229, 0.10);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

.app-inner-btn.is-selected::after{
    content: "✓";
    position: absolute;
    top: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    display: grid;
    place-items: center;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    background: #4f46e5;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #f2f4ff;
    pointer-events: none;
    z-index: 2;
}

.app-inner-btn.is-disabled{
    opacity: 0.35;
    filter: grayscale(1);
    cursor: not-allowed;
}

.app-inner-thumb{
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.app-inner-label{
    font-size: 9px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
    text-align: center;
    line-height: 1;
}

.app-inner-btn.is-selected .app-inner-label{
    color: #4f46e5;
}

.app-inner-badge{
    position: absolute;
    top: 3px;
    left: 3px;
    font-size: 8px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 999px;
    background: #e9eef5;
    color: #5b6b7a;
    line-height: 1.4;
}
/* ── End inner app selector ───────────────────────────────── */

.generate-content{
    position: relative;
    background: #f2f4ff;
    padding: 20px 8px 0;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.generate-scrollable-content{
    padding: 0;
    box-sizing: border-box;
    position: relative;
    overflow-x: clip;
}

.generate-fixed-footer{
    background: #f2f4ff;
    padding: 14px 15px;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    border-radius: 0 0 12px 12px;
    margin-top: 20px;
}

.templates-button-combined{
    background-color: #31edb2;
    border: none;
    border-radius: 14px;
    color: lightseagreen;
    min-width: 100%;
    max-width: 100%;
    padding: 0 0 8px 0;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-shadow: none !important;
    transform: none !important;
    outline: none;
}
.templates-button-combined:focus,
.templates-button-combined:focus-visible,
.templates-button-combined:active {
    outline: none !important;
    box-shadow: none !important;
}

.templates-button-combined:hover{
    background-color: #ffba83;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
    color: #ff9138;
}

.templates-button-combined::before{
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.templates-button-combined:hover::before{
    opacity: 1;
}

.templates-thumb-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 3 / 1;
}

.templates-thumb-preview {
    border-radius: 14px;
    margin-top: 8px;
    filter: blur(5px);
    min-height: 180px;
}

.templates-thumb-skeleton {
    width: 68.945%;
    height: 100%;
    min-height: 180px;

    border-radius: 14px;
    margin-top: 8px;

    background: linear-gradient(
            90deg,
            #e0e0e0 0%,
            #ffffff 40%,
            #e0e0e0 100%
    );

    background-size: 300% 100%;
    animation: thumbShimmer 0.8s ease-in-out infinite;
}

@keyframes thumbShimmer {
    0% { background-position: -300% 0; }
    100% { background-position: 300% 0; }
}

.templates-default-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 10;
}

.generate-button{
    width: 100%;
    padding: 10px;
    background-color: #4f46e5;
    color: #fff;
    font-size: 0.95rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
    margin-bottom: 2px;
    position: relative;
    overflow: hidden;
}

/* Hover state */
.generate-button:hover:enabled, .generate-skip-icon:hover{
    background-color: #4338ca;
}

/* Disabled state */
.generate-button:disabled{
    opacity: 0.5;
    cursor: not-allowed;
}

.generate-skip-icon{
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: #4F46E5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.generate-skip-icon span{
    margin-right: 5px;
}

.generate-fixed-skip{
    background: #f2f4ff;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    box-sizing: border-box;
    border-radius: 12px 12px 0 0;
}

.generate-policy{
    font-size: 9px;
    font-weight: 600;
    color: #aaa;
    /* margin: -5px 0 -20px 0; */
    margin: 0;
    padding: 0;
}

/* Header */
.generate-content h2{
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: #333;
}

/* Textarea base */
.generate-textarea_brief,
.generate-textarea_audience {
    width: 100%;
    padding: 8px 12px;
    font-size: 1rem;
    border-radius: 10px;
    outline: none;
    box-sizing: border-box;
    border: 2px solid #FA2F9A;
    transition: border-color 0.25s ease;
}

/* Brief = 2 lines (NO resizing) */
.generate-textarea_brief {
    min-height: 60px;
    line-height: 1.4;
    resize: none;
}

/* Audience = 1 line */
.generate-textarea_audience {
    height: 32px;
    resize: none;
    margin-bottom: 16px;
}

/* When minimum word count reached → blue */
.generate-textarea_brief.filled,
.generate-textarea_audience.filled {
    border-color: #31EDB2;
}

/* Focus always blue */
.generate-textarea_brief:focus,
.generate-textarea_audience:focus {
    border-color: #31EDB2;
}

.generate-textarea_brief.invalid:focus{
    border-color: #FA2F9A;
}


.generate-version-number{
    position: fixed;
    bottom: 10px;
    right: 10px;
}

.generate-result-container{
    margin: 24px 0 auto 0;
}

.generate-result-wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    width: 100%;
}

.generate-result-buttons{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
    position: relative;
    width: 100%;
}

.generate-result-button{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(90deg, #10b981, #34d399);
    color: white !important;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.3s ease;
    width: 100%;
    max-width: 300px;
    height: 50px;
}

.generate-result-button:hover{
    background: linear-gradient(90deg, #059669, #2bb981);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    text-decoration: none;
}

.generate-success-icon{
    font-size: 14px;
    font-weight: 600;
}

.generate-copy-button{
    display: inline-block;
    background-color: #6b48ff;
    color: #ffffff !important;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    transition: background-color 0.2s ease;
    position: absolute;
    bottom: -8px;
    right: 32px !important;
    border: none;
}

.generate-copy-button:hover{
    background-color: #5a3ed6;
}

.generate-powered-text{
    font-size: 12px;
    font-weight: 600;
    color: #aaa;
    margin-top: 0;
    margin-bottom: 0;
}

/* Top-right floating reset icon */
.generate-reset-icon{
    position: absolute;
    top: 16px;
    right: 16px;
    background: white;
    border: none;
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    color: #374151;
    transition: background 0.2s, color 0.2s;
    z-index: 10;
}

.generate-reset-icon:hover{
    background: #f3f4f6;
    color: #111827;
}

.generate-reset-confirm{
    margin: -24px 30px 16px 30px;
    background: #fff;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
}

.generate-reset-actions{
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.generate-reset-cancel{
    background: #e5e7eb;
    color: #111;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.generate-reset-confirm-button{
    background: #ef4444;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.generate-loader-container{
    position: relative;
    width: 100%;
    height: 100%;
}

.generate-loader-overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
}

.generate-loader-wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.generate-loader-spinner{
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    will-change: transform;
}

.generate-head-spinner{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    max-width: 120px;
    margin: 0 auto;
    position: relative;
    transform: translateZ(0); /* iOS GPU fix */
    -webkit-transform: translate3d(0, 0, 0);
}

.generate-loader-text{
    font-size: 20px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 16px;
    text-align: center;
}

.generate-loader-sub{
    margin-top: 20px;
    text-align: center;
    width: 100%;
    font-size: 14px;
}

.generate-loader-sub h4{
    font-size: 14px;
    color: #111827;
    margin-bottom: 10px;
}

.generate-loader-resources{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.generate-loader-scaled{
    transform: scale(0.75);
    transform-origin: top center;
    display: inline-block;
    margin-bottom: -65px;
    width: 800px;
}

.generate-ready-animation{
    width: 200px;
    height: 200px;
    margin-bottom: 24px;
    justify-self: center;
}

.generate-select{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20,40 70,90 120,40' stroke='%232d4456' stroke-width='20' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    color: #2d4456 !important;
    font-family: "Lato", sans-serif !important;
    padding-right: 2rem; /* make space for the arrow */
}

/* customized skeleton for loader resources scaled down */
.generate-loader-scaled .loader-skeleton.skeleton-wrapper{
    display: flex;
    flex-direction: row;
    width: 100%;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 12px;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.generate-loader-scaled .rlv-left-col-wrapper{
    position: relative;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.generate-loader-scaled:hover{
    cursor: pointer;
    opacity: 0.90;
}

/* ADD: page header styles */
.generate-form-header{
    text-align: left;
    margin: 0 0 16px 0;
}

.generate-page-title{
    margin: 0 0 6px 0;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    color: #111827;
}

.generate-page-subtitle{
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* ADD: label + field helpers */
.generate-label{
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    font-weight: 700;
    font-size: 0.95rem;
    color: #111827;
    margin: 0 0 8px;
}

.generate-label-text{
    display: inline-flex;
    align-items: center;
}

.generate-label-note{
    font-size: 0.72rem;
    font-weight: 600;
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.generate-label-note.filled{
    color: #10b981;
}

.generate-label-note svg{
    width: 14px;
    height: 14px;
}

.generate-field{
    text-align: left;
}

.generate-field--count{
    position: relative;
}

.generate-field-count{
    position: absolute;
    right: 1px;
    top: 32px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    pointer-events: none;
    padding: 2px 6px;
    border-radius: 999px;
}

.generate-field-count.filled{
    color: #10b981;
}

.generate-field-count svg{
    width: 14px;
    height: 14px;
}

.generate-placeholders{
    display: flex;
    margin: 15px 0;
    flex-direction: column;
}

/* 3 dots animations */
.dot-animate{
    display: inline-block;
    margin-left: 4px;
}

.dot-animate span{
    display: inline-block;
    animation: blink 1.2s infinite;
    font-weight: bold;
    font-size: 1.2rem;
    color: #4f46e5;
}

.dot-animate span:nth-child(2){
    animation-delay: 0.2s;
}

.dot-animate span:nth-child(3){
    animation-delay: 0.4s;
}

@keyframes blink{
    0%{
        opacity: 0;
    }
    20%{
        opacity: 1;
    }
    100%{
        opacity: 0;
    }
}

/* END of 3 dots animations */

/* Personalized Options Panel */
.po-options-panel{
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 360px;
    margin: 60px auto 5px auto;
}

.po-option-group{
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: #f7f3ff;
    padding: 6px;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.po-option-group h4{
    font-size: 13px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
    text-align: left;
    line-height: 1.2;
}

.po-option-group label{
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #444;
    cursor: pointer;
    line-height: 1.2;
}

.po-option-group input[type="radio"],
.po-option-group input[type="checkbox"]{
    width: 12px;
    height: 12px;
    accent-color: #6b48ff;
    cursor: pointer;
    margin: 0;
}

.po-option-group select{
    width: 100%;
    padding: 4px;
    font-size: 12px;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" fill="none" stroke="%23555" stroke-width="2"><path d="M2 3l3 3 3-3"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.po-option-group input[type="range"]{
    width: 100%;
    height: 4px;
    background: #ddd;
    border-radius: 3px;
    outline: none;
    appearance: none;
    cursor: pointer;
    margin: 2px 0;
}

.po-option-group input[type="range"] + span{
    font-size: 12px;
    color: #555;
    margin-top: 1px;
    display: block;
    text-align: center;
}

.po-option-group input[type="text"]{
    width: 100%;
    padding: 4px;
    font-size: 12px;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

/* Text input focus state */
.po-option-group input[type="text"]:focus{
    outline: none;
    border-color: #6b48ff;
}

/* Ensure no overflow */
.po-options-panel *{
    box-sizing: border-box;
    word-wrap: break-word;
}

.generate-loader-timer{
    margin-bottom: 1rem;
    text-align: center;
}

/* Blur main UI when loader is active */
.blur-content {
    filter: blur(5px);
    pointer-events: none;   /*prevents clicks under loader */
    user-select: none;      /* prevents text selection under blur */
}


.countdown-text{
    font-size: 18px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.progress-bar-wrapper{
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    width: 200px;
    margin: 0 auto;
}

.progress-bar-track{
    width: 100%;
    height: 100%;
    background: #eee;
}

.progress-bar-fill{
    height: 100%;
    background: #6b48ff;
    transition: width 0.2s linear;
}

.version-number{
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    color: #888;
}

/* Styling for template gallery */

.template-modal-backdrop{
    position: fixed;
    inset: 0;
    /* keep modal clear of alert + navbar; honor safe areas */
    padding: calc(var(--notification-height) + var(--navbar-height)) 16px max(16px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-start; /* sit below bars */
    justify-content: center;
    overflow: auto; /* overlay scroll if card hits max-height */
    z-index: 9999;
}

.template-modal-card{
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: min(900px, 92vw);
    /* full viewport minus bars & paddings; prevents bottom cutoff */
    max-height: calc(
            100dvh - (var(--notification-height) + var(--navbar-height)) - 32px
            - env(safe-area-inset-bottom, 0px)
    );
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    padding: 20px 20px 28px;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* header/close fixed; grid scrolls */
}

.template-modal-title{
    font-size: 1.5rem;
    margin: 0 0 12px;
    text-align: center;
}

.template-modal-scroll{
    overflow: auto; /* inner scroll area */
    padding: 12px 16px 16px;
    box-sizing: border-box;
}

/* Template grid (single source of truth) */
.template-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    justify-items: center;
    padding: 20px 8px;
}

/* Card + anchored badge */
.template-card{
    position: relative; /* anchor for badge */
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    transform-origin: center;
}


.template-card.selected{
    border-color: #007bff;
    background: #f0f8ff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}


.template-card:hover{
    /* transform: translateY(-1px); */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transform: scale(1.04);
}


.template-badge{
    position: absolute;
    top: 6px;
    left: 6px;
    background: #10b981;
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .70rem;
    font-weight: 700;
    line-height: 1.6;
    z-index: 2;
}

.template-thumbnail{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0;
    filter: blur(6px);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.template-thumb-frame{
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    display: block;
}

.template-thumb-skeleton{
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(90deg, #eef1f7 25%, #f5f7fb 37%, #eef1f7 63%);
    background-size: 400% 100%;
    animation: tmplShimmer 1.2s ease-in-out infinite;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.template-thumb-frame.is-loaded .template-thumbnail{
    opacity: 1;
}

.template-thumb-frame.is-loaded .template-thumb-skeleton{
    opacity: 0;
}

.custom-placeholder{
    font-size: 2rem;
    color: #4f46e5;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-name{
    margin: 6px 0 0 0;
    font-size: 0.9rem;
    color: #333;
}

/* Close button stays visible */
.template-modal-close{
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.template-modal-close:hover{
    color: #111827;
}

/* ==== Template Carousel ==== */
.tmpl-wrapper{
    margin-top: 6px;
}

.tmpl-header{
    text-align: left;
    margin-bottom: 8px;
}

.tmpl-title{
    font-weight: 700;
    font-size: 14px;
    color: #111827;
}

.tmpl-subtitle{
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.tmpl-rail{
    position: relative;
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;
}

/* default: no scroll container; show full content */
.tmpl-viewport{
    overflow: visible;
}

/* only add horizontal scrolling (and hide scrollbar) when needed */
.tmpl-viewport--scroll{
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none; /* Firefox */
}

.tmpl-viewport--scroll::-webkit-scrollbar{
    display: none;
}

/* Chrome */

/* hide nav buttons altogether when not scrollable */
.tmpl-rail[data-scrollable="false"] .tmpl-nav{
    display: none;
}

.tmpl-track{
    display: flex;
    gap: 14px;
    padding: 6px 4px;
}

.tmpl-card{
    position: relative;
    width: 168px;
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 4px 4px 0 4px;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.tmpl-card:hover{
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
    border-color: #d1d5db;
}

.tmpl-card.is-selected{
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .15);
}

.tmpl-thumb{
    width: 100%;
    /* height: 96px; */
    object-fit: cover;
    border-radius: 8px;
    background: #f3f4f6;
}

.tmpl-name{
    margin-top: 2px;
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tmpl-badge{
    position: absolute;
    top: 8px;
    left: 8px;
    background: #10b981;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
}

.tmpl-nav{
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    cursor: pointer;
    opacity: .7;
    transition: opacity .15s ease, transform .15s ease;
}

.tmpl-nav:hover{
    opacity: 1;
    transform: translateY(-1px);
}

.tmpl-nav:disabled{
    opacity: .35;
    cursor: default;
}

.tmpl-nav--left{
    justify-self: start;
}

.tmpl-nav--right{
    justify-self: end;
}

.tmpl-empty{
    font-size: 12px;
    color: #6b7280;
    padding: 6px 0;
}

@keyframes tmpl-shimmer{
    0%{
        background-position: -200% 0;
    }
    100%{
        background-position: 200% 0;
    }
}

/* inline carousel skeleton (no horizontal scroll) */
.tmpl-skeleton{
    display: flex;
    gap: 12px;
    padding: 4px 0;
    overflow: hidden;
}

.tmpl-skel-card{
    width: 208px; /* match card width */
    height: 140px; /* match card height */
    border-radius: 12px;
    border: 1px solid #e6eaf1;
    background: linear-gradient(90deg, #eef1f7 25%, #f5f7fb 37%, #eef1f7 63%);
    background-size: 400% 100%;
    animation: tmplShimmer 1.2s ease-in-out infinite;
    box-sizing: border-box;
}

@keyframes tmplShimmer{
    0%{
        background-position: 100% 0;
    }
    100%{
        background-position: 0 0;
    }
}

/* Compact app picker */
.app-wrapper{
    margin-top: 6px;
}

.app-rail{
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-rail[data-scrollable="false"] .app-nav{
    display: none;
}

.app-nav{
    width: 28px;
    height: 28px;
    line-height: 28px;
    border: none;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
    font-size: 18px;
    opacity: .65;
    cursor: pointer;
    transition: opacity .15s ease, transform .15s ease;
}

.app-nav:disabled{
    opacity: .3;
    cursor: default;
}

.app-nav:hover:not(:disabled){
    opacity: 1;
    transform: translateY(-1px);
}

.app-viewport{
    overflow: visible;
}

.app-viewport--scroll{
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.app-viewport--scroll::-webkit-scrollbar{
    display: none;
}

.app-track{
    display: flex;
    gap: 12px;
    padding: 4px 2px;
    margin-bottom: 8px;
}

.app-card{
    position: relative;
    width: 84px;
    height: 84px;
    padding: 10px;
    border-radius: 14px;
    background: #fff;
    border: 2px solid transparent;
    display: grid;
    place-items: center;
    box-shadow: 0 1px 8px rgba(0, 0, 0, .06);
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.app-card:hover{
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}

.app-card.is-selected{
    border-color: #6f7cff;
    box-shadow: 0 0 0 4px rgba(111, 124, 255, .12);
}

.app-card.is-disabled{
    opacity: .45;
    filter: grayscale(1);
    cursor: not-allowed;
}

.app-thumb{
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.app-badge{
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #e9eef5;
    color: #5b6b7a;
}

/* show a checkmark on the selected template card (top-right) */
.tmpl-card.is-selected::after,
.app-card.is-selected::after{
    content: "✓";
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    background: #4f46e5;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff, 0 2px 4px rgba(0, 0, 0, .15);
    pointer-events: none;
    z-index: 2;
}

/* ── Forge light mode ────────────────────────────────────────────────────── */
html[data-theme="light"] .generate-page { background: #fff0f3; }
html[data-theme="light"] .generate-page .forge-header {
    background: linear-gradient(140deg, #ffe4e6 0%, #fecdd3 55%, #ffe4e6 100%);
    border-bottom-color: rgba(244, 63, 94, 0.30);
}
html[data-theme="light"] .generate-page .forge-header__badge {
    color: #be123c;
    background: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.30);
}
html[data-theme="light"] .generate-page .forge-header__title { color: #881337; }
html[data-theme="light"] .generate-page .forge-header__subtitle { color: rgba(136, 19, 55, 0.65); }
html[data-theme="light"] .generate-page .forge-header__chip { background: rgba(244, 63, 94, 0.08); color: rgba(136, 19, 55, 0.80); border-color: rgba(244, 63, 94, 0.20); }
html[data-theme="light"] .generate-page .forge-header__chip--soon { color: #be123c; border-color: rgba(244, 63, 94, 0.30); background: rgba(244, 63, 94, 0.08); }
html[data-theme="light"] .generate-page .generate-hero-text { color: rgba(136, 19, 55, 0.65); }

/* ── Forge HIW modal ─────────────────────────────────────────────────────── */
.forge-hiw-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.50);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.forge-hiw-btn:hover {
    background: rgba(244, 63, 94, 0.14);
    color: #fda4af;
    border-color: rgba(244, 63, 94, 0.35);
}

.forge-hiw-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 16px 40px;
    overflow-y: auto;
    backdrop-filter: blur(3px);
}

.forge-hiw-modal {
    background: #1a000e;
    border: 1px solid rgba(244, 63, 94, 0.22);
    border-radius: 16px;
    width: 100%;
    max-width: 780px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.60);
    overflow: hidden;
}

.forge-hiw-modal__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(244, 63, 94, 0.14);
    background: rgba(244, 63, 94, 0.06);
}

.forge-hiw-modal__icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    line-height: 1;
}

.forge-hiw-modal__title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 2px;
    letter-spacing: -0.01em;
}

.forge-hiw-modal__sub {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

.forge-hiw-modal__close {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.60);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: background 0.15s;
}
.forge-hiw-modal__close:hover { background: rgba(244, 63, 94, 0.22); color: #fff; }

.forge-hiw-modal__body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ── HIW sections ── */
.forge-hiw-section__title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f43f5e;
    margin: 0 0 12px;
}

.forge-hiw-section__text {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
    margin: 0;
}

/* ── Two-app grid ── */
.forge-hiw-apps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.forge-hiw-app-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(244, 63, 94, 0.14);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.forge-hiw-app-card__icon { font-size: 1.3rem; }

.forge-hiw-app-card__name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
}

.forge-hiw-app-card__desc {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.forge-hiw-app-card__tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    margin-top: 4px;
    align-self: flex-start;
}
.forge-hiw-app-card__tag--bg {
    background: rgba(244, 63, 94, 0.12);
    color: #fda4af;
    border: 1px solid rgba(244, 63, 94, 0.25);
}
.forge-hiw-app-card__tag--inline {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

/* ── Pass lists ── */
.forge-hiw-passes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.forge-hiw-passes--compact { gap: 7px; }

.forge-hiw-pass {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.87rem;
    color: rgba(255, 255, 255, 0.60);
    line-height: 1.55;
}

.forge-hiw-pass__num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(244, 63, 94, 0.18);
    border: 1px solid rgba(244, 63, 94, 0.35);
    color: #fda4af;
    font-size: 0.72rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    margin-top: 1px;
}

.forge-hiw-pass strong { color: rgba(255, 255, 255, 0.88); }

/* ── Models grid ── */
.forge-hiw-models-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.forge-hiw-model-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: 8px;
    padding: 10px 14px;
}

.forge-hiw-model-name {
    font-size: 0.80rem;
    font-weight: 700;
    color: #fda4af;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 120px;
}

.forge-hiw-model-uses {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

/* ── Code inline ── */
.forge-hiw-code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.80rem;
    background: rgba(244, 63, 94, 0.12);
    color: #fda4af;
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(244, 63, 94, 0.20);
}

/* ── Image sourcing chain ── */
.forge-hiw-img-chain {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.forge-hiw-img-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(244, 63, 94, 0.14);
    border-radius: 10px;
    padding: 12px 16px;
    text-align: center;
    min-width: 110px;
}

.forge-hiw-img-step--fallback {
    border-color: rgba(245, 158, 11, 0.25);
    background: rgba(245, 158, 11, 0.05);
}

.forge-hiw-img-step__num {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f43f5e;
    margin-bottom: 2px;
}

.forge-hiw-img-step--fallback .forge-hiw-img-step__num { color: #f59e0b; }

.forge-hiw-img-step strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
}

.forge-hiw-img-step__note {
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
}

.forge-hiw-img-arrow {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

/* ── Admin grid ── */
.forge-hiw-admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 4px;
}

.forge-hiw-admin-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(244, 63, 94, 0.14);
    border-radius: 10px;
    padding: 16px;
}

.forge-hiw-admin-card strong {
    display: block;
    font-size: 0.90rem;
    font-weight: 700;
    color: #fda4af;
    margin-bottom: 6px;
}

.forge-hiw-admin-card p {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.55;
    margin: 0;
}

/* ── Costs table ── */
.forge-hiw-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    margin-top: 4px;
}

.forge-hiw-table th {
    text-align: left;
    padding: 8px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.forge-hiw-table td {
    padding: 9px 12px;
    color: rgba(255, 255, 255, 0.60);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.45;
}

.forge-hiw-table tr:last-child td { border-bottom: none; }

.forge-hiw-table td:first-child {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.80);
    white-space: nowrap;
    width: 38%;
}

/* ── Light mode ── */
html[data-theme="light"] .generate-page .forge-hiw-btn {
    background: rgba(244, 63, 94, 0.10);
    color: #be123c;
    border-color: rgba(244, 63, 94, 0.28);
}
html[data-theme="light"] .generate-page .forge-hiw-btn:hover {
    background: rgba(244, 63, 94, 0.18);
    color: #881337;
}
html[data-theme="light"] .generate-page .forge-hiw-modal {
    background: #fff;
    border-color: rgba(244, 63, 94, 0.20);
}
html[data-theme="light"] .generate-page .forge-hiw-modal__header {
    background: rgba(244, 63, 94, 0.05);
    border-bottom-color: rgba(244, 63, 94, 0.12);
}
html[data-theme="light"] .generate-page .forge-hiw-modal__title { color: #881337; }
html[data-theme="light"] .generate-page .forge-hiw-modal__sub { color: rgba(136, 19, 55, 0.55); }
html[data-theme="light"] .generate-page .forge-hiw-modal__close { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.10); color: rgba(0,0,0,0.40); }
html[data-theme="light"] .generate-page .forge-hiw-modal__close:hover { background: rgba(244,63,94,0.12); color: #881337; }
html[data-theme="light"] .generate-page .forge-hiw-section__title { color: #be123c; }
html[data-theme="light"] .generate-page .forge-hiw-section__text { color: rgba(136, 19, 55, 0.65); }
html[data-theme="light"] .generate-page .forge-hiw-app-card { background: rgba(244, 63, 94, 0.04); border-color: rgba(244, 63, 94, 0.18); }
html[data-theme="light"] .generate-page .forge-hiw-app-card__name { color: #881337; }
html[data-theme="light"] .generate-page .forge-hiw-app-card__desc { color: rgba(136, 19, 55, 0.60); }
html[data-theme="light"] .generate-page .forge-hiw-pass { color: rgba(136, 19, 55, 0.60); }
html[data-theme="light"] .generate-page .forge-hiw-pass strong { color: rgba(136, 19, 55, 0.90); }
html[data-theme="light"] .generate-page .forge-hiw-pass__num { background: rgba(244,63,94,0.10); border-color: rgba(244,63,94,0.28); color: #be123c; }
html[data-theme="light"] .generate-page .forge-hiw-model-row { background: rgba(244, 63, 94, 0.04); border-color: rgba(244, 63, 94, 0.14); }
html[data-theme="light"] .generate-page .forge-hiw-model-name { color: #be123c; }
html[data-theme="light"] .generate-page .forge-hiw-model-uses { color: rgba(136, 19, 55, 0.60); }
html[data-theme="light"] .generate-page .forge-hiw-code { background: rgba(244,63,94,0.08); color: #be123c; border-color: rgba(244,63,94,0.20); }
html[data-theme="light"] .generate-page .forge-hiw-img-step { background: rgba(244, 63, 94, 0.04); border-color: rgba(244, 63, 94, 0.18); }
html[data-theme="light"] .generate-page .forge-hiw-img-step strong { color: #881337; }
html[data-theme="light"] .generate-page .forge-hiw-img-step__note { color: rgba(136, 19, 55, 0.50); }
html[data-theme="light"] .generate-page .forge-hiw-img-arrow { color: rgba(136, 19, 55, 0.25); }
html[data-theme="light"] .generate-page .forge-hiw-admin-card { background: rgba(244, 63, 94, 0.04); border-color: rgba(244, 63, 94, 0.16); }
html[data-theme="light"] .generate-page .forge-hiw-admin-card strong { color: #be123c; }
html[data-theme="light"] .generate-page .forge-hiw-admin-card p { color: rgba(136, 19, 55, 0.60); }
html[data-theme="light"] .generate-page .forge-hiw-table th { color: rgba(136, 19, 55, 0.45); border-bottom-color: rgba(244, 63, 94, 0.15); }
html[data-theme="light"] .generate-page .forge-hiw-table td { color: rgba(136, 19, 55, 0.65); border-bottom-color: rgba(244, 63, 94, 0.08); }
html[data-theme="light"] .generate-page .forge-hiw-table td:first-child { color: rgba(136, 19, 55, 0.88); }

@media (max-width: 600px) {
    .forge-hiw-apps-grid,
    .forge-hiw-admin-grid { grid-template-columns: 1fr; }
    .forge-hiw-img-chain { flex-direction: column; align-items: flex-start; }
    .forge-hiw-img-arrow { transform: rotate(90deg); }
    .forge-hiw-model-row { flex-direction: column; gap: 4px; }
    .forge-hiw-model-name { min-width: unset; }
}
