/* common_header styles */
:root{
			--brand-blue:#3399ff;
			--brand-white:#ffffff;
		}
		body{
			background-color:var(--brand-white);
		}
		.uk-section,
		.uk-section-muted,
		.uk-section-default{
			background-color:var(--brand-white);
		}
		.page-hero{
			background-color:var(--brand-blue);
			color:var(--brand-white);
			padding:60px 0 80px;
			margin-bottom:40px;
		}
		.page-hero__badge{
			display:inline-flex;
			align-items:center;
			padding:4px 12px;
			border-radius:999px;
			background-color:rgba(255,255,255,0.2);
			font-size:12px;
			letter-spacing:.08em;
			text-transform:uppercase;
		}
		.page-hero__meta{
			display:flex;
			flex-wrap:wrap;
			gap:16px;
			margin-top:16px;
			color:rgba(255,255,255,0.9);
			font-size:13px;
		}
		.page-hero__actions{
			display:flex;
			flex-wrap:wrap;
			gap:12px;
			margin-top:24px;
		}
		.page-hero__actions .uk-button-primary,
		.cta-panel .uk-button-primary{
			background-color:var(--brand-white);
			color:var(--brand-blue);
			border:none;
		}
		.page-hero__actions .uk-button-default,
		.cta-panel .uk-button-default{
			border-color:var(--brand-white);
			color:var(--brand-white);
		}
		.brand-panel{
			background-color:var(--brand-white);
			border:2px solid var(--brand-blue);
			border-radius:24px;
			box-shadow:none;
		}
		.cta-panel{
			border-radius:24px;
			background-color:var(--brand-blue);
			color:var(--brand-white);
			padding:48px;
			box-shadow:none;
		}
		.feature-icon{
			background-color:var(--brand-white);
			border:1px solid var(--brand-blue);
			color:var(--brand-blue);
		}
		.workflow-step__badge{
			background-color:var(--brand-blue);
			color:var(--brand-white);
		}
		.spotlight-card{
			background-color:var(--brand-white);
			border:2px solid var(--brand-blue);
			color:inherit;
			box-shadow:none;
		}
		.uk-card-primary,
		.uk-section-primary{
			background-color:var(--brand-blue);
			color:var(--brand-white);
		}
		.uk-button-primary,
		.uk-button-secondary{
			background-color:var(--brand-blue);
			border-color:var(--brand-blue);
		}
		@media (max-width:960px){
			.page-hero{
				padding:48px 0 32px;
			}
		}

/* home_index styles */
.metric-card{
        background:#fff;
        border:1px solid #e2e8f0;
        border-radius:16px;
        padding:20px;
        box-shadow:0 15px 30px rgba(15,23,42,0.08);
        height:100%;
    }
    .metric-card__label{
        font-size:12px;
        letter-spacing:.15em;
        text-transform:uppercase;
        color:#94a3b8;
        margin-bottom:6px;
    }
    .metric-card__value{
        font-size:28px;
        font-weight:600;
        color:#0f172a;
    }
    .metric-card__hint{
        font-size:13px;
        color:#64748b;
        margin-top:4px;
    }
    .section-eyebrow{
        font-size:12px;
        text-transform:uppercase;
        letter-spacing:.2em;
        color:#22d3ee;
    }
    .feature-card{
        background:#fff;
        border-radius:16px;
        border:1px solid #e2e8f0;
        padding:24px;
        box-shadow:0 20px 45px rgba(15,23,42,0.08);
        height:100%;
    }
    .feature-icon{
        width:42px;
        height:42px;
        border-radius:999px;
        background:#fff;
        border:1px solid #39f;
        color:#39f;
        display:inline-flex;
        align-items:center;
        justify-content:center;
        margin-bottom:12px;
    }
    .spotlight-card{
        border-radius:24px;
        overflow:hidden;
        background:#fff;
        color:inherit;
        box-shadow:none;
        border:2px solid #39f;
    }
    .spotlight-media{
        min-height:260px;
        background-size:cover;
        background-position:center;
    }
    .spotlight-card .uk-card-body{
        padding:40px;
    }
    .template-card{
        border:1px solid #e2e8f0;
        border-radius:18px;
        padding:24px;
        display:flex;
        flex-direction:column;
        gap:12px;
        box-shadow:0 20px 45px rgba(15,23,42,0.08);
    }
    .template-card__type{
        font-size:12px;
        font-weight:600;
        letter-spacing:.15em;
        color:#94a3b8;
        text-transform:uppercase;
    }
    .template-card__cta{
        margin-top:auto;
    }
    .workflow-step{
        background:#fff;
        border-radius:20px;
        border:1px solid #e2e8f0;
        padding:24px;
        height:100%;
        box-shadow:0 20px 40px rgba(15,23,42,0.08);
    }
    .workflow-step__badge{
        width:44px;
        height:44px;
        border-radius:50%;
        background:#39f;
        color:#fff;
        font-weight:600;
        display:flex;
        align-items:center;
        justify-content:center;
        margin-bottom:12px;
    }
    .seo-article p{
        font-size:15px;
        color:#475569;
    }
    @media (max-width:640px){
        .spotlight-card .uk-card-body{
            padding:24px;
        }
        .cta-panel{
            padding:32px;
        }
    }

/* home_generate styles */
.hero-grid{
        align-items: stretch;
        flex-wrap: wrap;
    }
    .hero-grid__primary{
        max-width: 680px;
    }
    .hero-grid__panel{
        width: 100%;
        flex: 1 1 320px;
        min-width: 290px;
        max-width: 520px;
    }
    @media (min-width: 960px){
        .hero-grid__panel{
            flex: 0 0 360px;
            max-width: 380px;
        }
        .hero-grid__primary{
            max-width: none;
            padding-right: 40px;
        }
    }
    @media (min-width: 1200px){
        .hero-grid__panel{
            flex: 0 0 420px;
            max-width: 440px;
        }
        .hero-grid__primary{
            padding-right: 48px;
        }
    }
    @media (min-width: 1600px){
        .hero-grid__panel{
            flex: 0 0 500px;
            max-width: 520px;
        }
        .hero-grid__primary{
            padding-right: 64px;
        }
    }
    .brand-panel--selector{
        background: #ffffff;
        border: 1px solid #e2e8f0;
        box-shadow: 0 10px 30px -10px rgba(15,23,42,0.08);
        border-radius: 16px;
        padding: 20px; /* Added padding explicitly */
    }
    .template-panel{
        display: flex;
        flex-direction: column;
        gap: 18px;
    }
    .template-panel__header{
        display: flex;
        gap: 12px;
        align-items: flex-start;
    }
    .template-panel__icon{
        width: 48px;
        height: 48px;
        border-radius: 16px;
        background: rgba(30,135,240,0.1);
        color: #1e87f0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .template-panel__eyebrow{
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #2563eb;
        margin: 0;
    }
    .template-panel__title{
        font-size: 20px;
        font-weight: 600;
        color: #0f172a;
        margin-bottom: 2px;
    }
    .template-panel__subtitle{
        margin: 0;
        color: #64748b;
        font-size: 14px;
    }
    .template-panel__select{
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .template-panel__select-wrap{
        position: relative;
        background: #fff;
        border-radius: 14px;
        padding: 10px 14px;
        border: 1px solid #e2e8f0;
        display: flex;
        flex-direction: column;
        gap: 6px;
        box-shadow: inset 0 1px 2px rgba(15,23,42,0.05);
    }
    .template-panel__select-chip{
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        font-weight: 500;
        color: #475569;
        background: rgba(71,85,105,0.08);
        padding: 3px 10px;
        border-radius: 999px;
        max-width: 100%;
    }
    .template-panel__select-chip::before{
        content: '';
        display: block;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #10b981;
        box-shadow: 0 0 0 6px rgba(16,185,129,0.2);
    }
    .template-panel__select-wrap .uk-select{
        border: none;
        padding: 0;
        background: transparent;
        font-size: 16px;
        font-weight: 600;
        color: #0f172a;
        height: auto;
        box-shadow: none;
        appearance: none;
    }
    .template-panel__select-wrap .uk-select:focus{
        box-shadow: none;
    }
    .template-panel__select-arrow{
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        color: #94a3b8;
    }
    .template-panel__meta{
        margin-top: 4px;
    }
    .template-panel__meta > div{
        padding: 12px;
        border-radius: 12px;
        border: 1px dashed rgba(15,23,42,0.12);
        background: rgba(241,245,249,0.6);
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-height: 92px;
    }
    .template-panel__meta-label{
        font-size: 12px;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: #94a3b8;
    }
    .template-panel__meta-value{
        font-size: 16px;
        color: #0f172a;
        font-weight: 600;
        line-height: 1.2;
    }
    .template-panel__actions{
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
    }
    .template-panel__actions .uk-button-text{
        font-weight: 600;
        color: #2563eb;
        padding-left: 0;
    }
    .template-panel__actions .uk-text-meta{
        flex: 1 1 180px;
    }
    @media (max-width: 960px){
        .brand-panel--selector{
            box-shadow: 0 15px 30px -10px rgba(15,23,42,0.2);
        }
        .template-panel__actions{
            flex-direction: column;
            align-items: flex-start;
        }
        .hero-grid__primary{
            padding-right: 0;
        }
    }
    #canvasWrap{
        background: #fff;
        padding: 16px;
        border-radius: 8px;
        min-height: 400px;
        overflow: auto;
    }
    #canvasWrap .page-preview{
        margin-bottom: 32px;
        box-shadow: 0 10px 40px rgba(15,23,42,0.15);
        border-radius: 8px;
        background: #fff;
        display: inline-block;
    }
    .opacity-row{
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .opacity-row input[type=range]{
        flex: 1;
    }
    #customSizeFields .uk-input{
        width: 100%;
    }
    .settings-note{
        font-size: 12px;
        color: #94a3b8;
    }
    .editor-params-card{
        background: #ffffff;
        border: 1px solid #e2e8f0;
        box-shadow: 0 10px 30px -10px rgba(15,23,42,0.08);
        border-radius: 16px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 20px; /* Added explicit padding */
    }
    .editor-export-panel{
        position: relative;
        overflow: hidden;
    }
   
    .editor-export-panel__buttons{
        margin-top: 14px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .editor-export-panel__dual{
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .export-btn{
        display: flex;
        gap: 12px;
        align-items: center;
        justify-content: flex-start;
        border-radius: 12px;
        padding: 12px 14px;
        border: 1px solid rgba(148,163,184,0.3);
        background: rgba(255,255,255,0.95);
        transition: all 0.2s ease;
        text-align: left;
        min-height: auto;
        width: 100%;
    }
    .export-btn--primary{
        background: #2563eb;
        border-color: transparent;
        box-shadow: 0 4px 12px -4px rgba(37,99,235,0.5);
        color: #fff;
        justify-content: space-between;
    }
    .export-btn__icon{
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: rgba(15,23,42,0.06);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: inherit;
        flex-shrink: 0;
    }
    .export-btn--primary .export-btn__icon{
        background: rgba(255,255,255,0.15);
    }
    .export-btn__content{
        flex: 1;
        text-align: left;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .export-btn__title{
        font-weight: 600;
        font-size: 14px;
        color: inherit;
        line-height: 1.2;
        white-space: normal; /* Allow wrap */
    }
    .export-btn__hint{
        font-size: 12px;
        color: rgba(15,23,42,0.6);
        white-space: normal; /* Allow wrap */
        line-height: 1.3;
        display: block;
    }
    .export-btn--primary .export-btn__hint{
        color: rgba(255,255,255,0.7);
    }
    .export-btn__chevron{
        color: inherit;
        opacity: 0.8;
    }
    .export-btn:hover{
        background: #fff;
        border-color: #cbd5e1;
        box-shadow: 0 4px 12px rgba(15,23,42,0.05);
        transform: translateY(-1px);
    }
    .export-btn--primary:hover{
        background: #1750cd;
        border-color: #1750cd;
    }
    .editor-form-section{
        background: #f8fafc;
        border: 1px solid #f1f5f9;
        border-radius: 12px;
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .editor-form-section__header{
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        gap: 12px;
        border-bottom: 1px solid rgba(226,232,240,0.6);
        padding-bottom: 10px;
    }
    .editor-form-section__eyebrow{
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #94a3b8;
        margin: 0;
    }
    .editor-form-section__title{
        margin: 2px 0 0;
        font-size: 16px;
        font-weight: 600;
        color: #0f172a;
    }
    .editor-form-section__group{
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .editor-form-section__grid{
        margin-top: 8px;
    }
    .editor-color-control{
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        padding: 14px;
    }
    .editor-color-control--compact{
        padding: 12px;
    }
    .editor-color-control__head{
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
    }
    .editor-color-control__value{
        font-family: "SFMono-Regular", Menlo, Consolas, monospace;
        font-size: 12px;
        color: #475569;
        background: rgba(15,23,42,0.05);
        padding: 2px 8px;
        border-radius: 999px;
    }
    .editor-color-control__field{
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        border: 1px dashed rgba(148,163,184,0.6);
        background: rgba(255,255,255,0.9);
        padding: 6px;
    }
    .editor-color-control__input{
        width: 56px;
        height: 36px;
        border: none;
        padding: 0;
        background: transparent;
        cursor: pointer;
    }
    .editor-color-control__input::-webkit-color-swatch{
        border-radius: 10px;
        border: none;
    }
    .color-presets{
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-top: 10px;
    }
    .color-presets--compact{
        margin-top: 6px;
    }
    .color-presets__chip{
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: 2px solid #fff;
        box-shadow: 0 0 0 1px rgba(15,23,42,0.15);
        background: var(--chip-color,#000);
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .color-presets__chip.is-active{
        box-shadow: 0 0 0 2px #2563eb;
        transform: translateY(-1px);
    }
    .editor-template-card{
        background: #ffffff;
        border: 1px solid #e2e8f0;
        box-shadow: 0 10px 30px -10px rgba(15,23,42,0.08);
        border-radius: 16px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .editor-template-card__header{
        display: flex;
        justify-content: space-between;
        gap: 16px;
        flex-wrap: wrap;
        border-bottom: 1px solid rgba(226,232,240,0.8);
        padding-bottom: 12px;
    }
    .editor-template-card__eyebrow{
        font-size: 11px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #94a3b8;
        margin: 0;
    }
    .editor-template-card__title{
        font-size: 20px;
        font-weight: 600;
        color: #0f172a;
        margin-top: 4px;
    }
    .editor-template-card__desc{
        font-size: 13px;
        color: #64748b;
        margin: 4px 0 0;
        max-width: 480px;
    }
    .editor-template-card__chip{
        background: rgba(15,23,42,0.04);
        border-radius: 14px;
        padding: 8px 14px;
        text-align: center;
        min-width: 96px;
        display: flex;
        flex-direction: column;
        gap: 2px;
        color: #0f172a;
        font-weight: 600;
    }
    .editor-template-card__chip span{
        font-size: 22px;
        line-height: 1;
    }
    .editor-template-card__chip small{
        font-size: 11px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #94a3b8;
    }
    .editor-template-card__body{
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .editor-template-controls{
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .editor-template-controls.is-empty{
        gap: 0;
    }
    .editor-empty-state{
        border: 1px dashed rgba(148,163,184,0.8);
        border-radius: 16px;
        padding: 32px;
        text-align: center;
        color: #94a3b8;
        font-size: 14px;
        background: rgba(248,250,252,0.6);
    }
    .control-row{
        background: #f8fafc;
        border-radius: 14px;
        border: 1px solid rgba(148,163,184,0.25);
        padding: 14px 16px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .control-row--color{
        background: transparent;
        border: none;
        padding: 0;
    }
    .control-row + .control-row{
        margin-top: 4px;
    }
    .control-row__head{
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }
    .control-row__label{
        font-size: 13px;
        font-weight: 600;
        color: #0f172a;
        margin: 0;
    }
    .control-row__value{
        font-size: 12px;
        font-family: "SFMono-Regular", Menlo, Consolas, monospace;
        color: #475569;
        background: rgba(15,23,42,0.06);
        padding: 2px 8px;
        border-radius: 999px;
    }
    .control-inline{
        display:flex;
        gap:12px;
        align-items:center;
    }
    .control-inline--range input[type=range]{
        flex: 1;
    }
    .control-number{
        max-width: 90px;
    }
    .control-row--color .editor-color-control{
        margin: 0;
    }
    .opacity-row--enhanced{
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 12px;
        background: #f8fafc;
    }
    .opacity-row__value{
        font-weight: 600;
    }
    .editor-switch{
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 16px;
        border: 1px solid #e2e8f0;
        border-radius: 5px;
        background: #fff;
    }
    .editor-switch input[type=checkbox]{
        margin-left: auto;
    }
    .editor-switch--compact{
        padding: 10px 14px;
    }
    .editor-color-control__label{
        font-size: 13px;
        font-weight: 600;
        color: #0f172a;
    }
    .editor-color-control--interactive{
        background: #f8fafc;
    }
    @media (max-width: 640px){
        .editor-export-panel__header{
            flex-direction: column;
        }
        .editor-export-panel__dual{
            grid-template-columns: 1fr;
        }
    }
