/* Main styles for SiteMaker PHP */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--editor-font-family, 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    background: #f9fafb;
    color: #333;
    height: var(--app-height);
    overflow: hidden;
}

/* Ensure the editor uses the same font everywhere, overriding Tailwind's font-sans */
html,
body,
body.font-sans,
.font-sans,
.font-display {
    font-family: var(--editor-font-family, 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
}

:root {
    --app-height: 100vh;
    --topbar-height: 60px;
    --bottombar-height: 50px;
    --browser-chrome-height: 48px;
}

@supports (height: 100dvh) {
    :root {
        --app-height: 100dvh;
    }
}

body.sidebar-open {
    overflow: hidden;
}

/* Layout */
.editor-container {
    display: flex;
    height: calc(var(--app-height) - var(--topbar-height) - var(--bottombar-height));
}

/* Sidebar */
.sidebar {
    width: 256px;
    background: white;
    color: #1f2937;
    display: flex;
    flex-direction: column;
    height: calc(var(--app-height) - var(--topbar-height) - var(--bottombar-height));
    border-right: 1px solid #e5e7eb;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 13px;
    line-height: 1.5;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar .btn {
    font-size: 13px;
    font-weight: 500;
}

/* Sidebar collapsed state when chat is open */
.sidebar.collapsed {
    transform: translateX(-256px);
    margin-left: -256px;
}

.sidebar-header {
    padding: 1rem;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar h1 {
    font-size: 1rem;
    font-weight: 700;
    color: #4f46e5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar h1 .logo-image {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.sidebar h1 span {
    color: #4f46e5;
}

/* Project Section */
.project-section {
    padding: 1rem;
    padding-bottom: 0.5rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.project-header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.project-header-actions .btn-icon-neutral {
    padding: 0.25rem 0.55rem;
    font-size: 13px;
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.project-header-actions .btn-icon-neutral:hover {
    background: #e5e7eb;
    color: #374151;
}

.project-header h3 {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: 0.02em;
}

/* Pages list */
.pages-section {
    padding: 1rem;
    padding-bottom: 0.5rem;
}

.pages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

#pages-header-toggle:focus {
    outline: 2px solid #c7d2fe;
    outline-offset: 2px;
}

.pages-header h3 {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: 0.02em;
}

.pages-header-left,
.apps-header-left,
.components-header-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pages-header-right,
.apps-header-right,
.components-header-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.section-count-badge {
    min-width: 26px;
}

/* Components list */
.components-section {
    padding: 0 1rem 1rem 1rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
}

.components-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

#components-header-toggle:focus {
    outline: 2px solid #c7d2fe;
    outline-offset: 2px;
}

.components-header h3 {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: 0.02em;
}

.components-header-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.components-header-right {
    display: flex;
    align-items: center;
}

.components-section.collapsed .components-list {
    display: none;
}

.pages-section.collapsed .pages-list {
    display: none;
}

.apps-section.collapsed .apps-list {
    display: none;
}

.media-section {
    padding: 0 1rem 1rem 1rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
}

.media-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.media-header h3 {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: 0.02em;
}

.media-link {
    color: inherit;
    text-decoration: none;
}

.media-link:hover h3 {
    color: #4f46e5;
}

.media-count-badge {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.media-drop-zone {
    display: block;
}

.brain-machine-section {
    padding: 0 1rem 1rem 1rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
}

.brain-machine-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.brain-machine-header-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.brain-machine-header h3 {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: 0.02em;
}

.brain-machine-title-link {
    color: inherit;
    text-decoration: none;
}

.brain-machine-title-link:hover {
    color: #4f46e5;
}

.brain-machine-help-trigger {
    width: 16px;
    height: 16px;
    border-radius: 9999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.brain-machine-help-trigger:hover {
    border-color: #94a3b8;
    color: #475569;
}

.brain-machine-help-trigger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #c7d2fe;
}

.brain-machine-status-indicator {
    --brain-machine-status-rgb: 99, 102, 241;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.brain-machine-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgb(var(--brain-machine-status-rgb));
    box-shadow: 0 0 0 3px rgba(var(--brain-machine-status-rgb), 0.18);
    transform-origin: center;
}

.brain-machine-status-indicator.is-loading {
    --brain-machine-status-rgb: 99, 102, 241;
}

.brain-machine-status-indicator.is-running {
    --brain-machine-status-rgb: 16, 185, 129;
}

.brain-machine-status-indicator.is-running .brain-machine-status-dot {
    animation: none;
}

.brain-machine-status-indicator.is-stopped,
.brain-machine-status-indicator.is-disabled {
    --brain-machine-status-rgb: 100, 116, 139;
}

.brain-machine-status-indicator.is-error {
    --brain-machine-status-rgb: 239, 68, 68;
}

.brain-machine-status-indicator.is-pending {
    --brain-machine-status-rgb: 245, 158, 11;
}

@keyframes brain-machine-status-heartbeat {
    0%,
    50%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 3px rgba(var(--brain-machine-status-rgb), 0.18);
    }
    10% {
        transform: scale(1.35);
        box-shadow: 0 0 0 6px rgba(var(--brain-machine-status-rgb), 0.28);
    }
    20% {
        transform: scale(0.92);
        box-shadow: 0 0 0 2px rgba(var(--brain-machine-status-rgb), 0.12);
    }
    30% {
        transform: scale(1.2);
        box-shadow: 0 0 0 5px rgba(var(--brain-machine-status-rgb), 0.24);
    }
    40% {
        transform: scale(1);
        box-shadow: 0 0 0 3px rgba(var(--brain-machine-status-rgb), 0.18);
    }
}

.brain-machine-panel {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
    padding: 0.625rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.brain-machine-loading {
    font-size: 12px;
    color: #64748b;
}

.brain-machine-error {
    font-size: 12px;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 0.4rem 0.5rem;
}

.brain-machine-disabled-state {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.brain-machine-disabled-btn {
    width: 100%;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    border-radius: 0.625rem;
    padding: 0.45rem 0.6rem;
    cursor: not-allowed;
}

.brain-machine-enable-link {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 0.625rem;
    padding: 0.45rem 0.6rem;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.brain-machine-enable-link {
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #4338ca;
}

.brain-machine-enable-link:hover {
    background: #e0e7ff;
    border-color: #a5b4fc;
    color: #3730a3;
}

.brain-machine-env-pill {
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #4338ca;
    border-radius: 9999px;
    padding: 0.08rem 0.42rem;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.01em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.16s ease;
}

.brain-machine-env-pill:hover {
    border-color: #a5b4fc;
    background: #e0e7ff;
    color: #3730a3;
}

.brain-machine-env-pill:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #c7d2fe;
}

.brain-machine-metric-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.brain-machine-resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.1rem;
}

.brain-machine-resource-item {
    display: flex;
    justify-content: center;
    padding: 0;
    min-width: 0;
}

.brain-machine-resource-copy {
    min-width: 0;
    text-align: center;
}

.brain-machine-resource-value {
    display: block;
    font-size: 12px;
    line-height: 1.1;
    color: #0f172a;
    font-weight: 500;
    white-space: nowrap;
}

.brain-machine-resource-label {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.1;
    color: #64748b;
    white-space: nowrap;
}

.brain-machine-metric-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.brain-machine-metric-item-chart {
    display: block;
}

.brain-machine-metric-label {
    font-size: 10px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    font-weight: 700;
    flex-shrink: 0;
}

.brain-machine-metric-item-chart .brain-machine-metric-label {
    display: block;
    margin-bottom: 0.25rem;
}

.brain-machine-metric-value {
    font-size: 12px;
    line-height: 1.3;
    color: #1f2937;
    font-weight: 600;
    text-align: right;
    min-width: 0;
}

.brain-machine-metric-chart {
    width: 100%;
    color: #1f2937;
    font-size: 12px;
}

.brain-machine-inline-status {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.brain-machine-inline-status.is-running {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #15803d;
}

.brain-machine-inline-status.is-stopped {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #475569;
}

.brain-machine-inline-status.is-failed {
    background: #fee2e2;
    border-color: #fecaca;
    color: #b91c1c;
}

.brain-machine-inline-status.is-pending {
    background: #fef3c7;
    border-color: #fde68a;
    color: #b45309;
}

.brain-machine-generated-at {
    font-size: 11px;
    color: #64748b;
}

.brain-machine-section .brain-machine-usage {
    width: 100%;
    min-width: 0;
    max-width: none;
}

.brain-machine-section .brain-machine-usage-text {
    font-size: 11px;
    line-height: 1.2;
    color: #475569;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.brain-machine-section .brain-machine-usage-percent {
    color: #64748b;
    font-weight: 600;
    margin-left: 0;
}

.brain-machine-section .brain-machine-usage-track {
    position: relative;
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    cursor: help;
    outline: none;
}

.brain-machine-section .brain-machine-usage-track:focus-visible {
    box-shadow: 0 0 0 2px #c7d2fe;
}

.brain-machine-section .brain-machine-usage-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width 0.18s ease;
}

.brain-machine-section .brain-machine-usage-fill.is-low {
    background: #10b981;
}

.brain-machine-section .brain-machine-usage-fill.is-medium {
    background: #f59e0b;
}

.brain-machine-section .brain-machine-usage-fill.is-high {
    background: #ef4444;
}

.brain-machine-section .brain-machine-usage-fill.is-unknown {
    background: #94a3b8;
}

.brain-machine-section .brain-machine-load-display {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #1f2937;
    font-size: 12px;
    font-weight: 600;
}

.brain-machine-section .brain-machine-load-pie {
    --load-percent: 0;
    --load-color: #10b981;
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 999px;
    background: conic-gradient(var(--load-color) calc(var(--load-percent) * 1%), #e2e8f0 0);
}

.brain-machine-section .brain-machine-load-pie::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 999px;
    background: #ffffff;
}

.brain-machine-section .brain-machine-load-pie.is-medium {
    --load-color: #f59e0b;
}

.brain-machine-section .brain-machine-load-pie.is-high {
    --load-color: #ef4444;
}

.brain-machine-section .brain-machine-load-pie.is-unknown {
    background: repeating-conic-gradient(#cbd5e1 0deg 14deg, #e2e8f0 14deg 28deg);
}

.brain-machine-sidebar-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 12050;
    width: 15rem;
    max-width: min(15rem, calc(100vw - 16px));
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #ffffff;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    line-height: 1.4;
    white-space: pre-line;
    color: #475569;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-2px);
    transition: opacity 0.12s ease, visibility 0.12s ease, transform 0.12s ease;
}

.brain-machine-sidebar-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.media-access-strip {
    margin-bottom: 0.5rem;
}

.media-access-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.media-access-list::-webkit-scrollbar {
    display: none;
}

.media-access-item {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.media-access-item.is-processing {
    cursor: default;
}

.media-access-item.is-processing::before {
    opacity: 1;
}

.media-access-item.is-processing::after {
    opacity: 0;
}

.media-access-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
    display: block;
}

.media-access-icon {
    font-size: 13px;
}

.media-access-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    opacity: 0;
    transition: opacity 0.16s ease;
    pointer-events: none;
}

.media-access-item::after {
    content: '\f0c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    color: #ffffff;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.16s ease, transform 0.16s ease;
    text-shadow: 0 2px 6px rgba(15, 23, 42, 0.35);
    pointer-events: none;
}

.media-access-item:hover {
    border-color: #c7d2fe;
    color: #4f46e5;
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.12);
}

.media-access-item:focus-visible {
    outline: 2px solid #c7d2fe;
    outline-offset: 2px;
}

.media-access-item:hover::before,
.media-access-item:focus-visible::before {
    opacity: 1;
}

.media-access-item:hover::after,
.media-access-item:focus-visible::after {
    opacity: 0.8;
}

.media-access-item:hover::after,
.media-access-item:focus-visible::after {
    transform: translate(-50%, -50%) scale(1);
}

.media-access-item.is-processing:hover::after,
.media-access-item.is-processing:focus-visible::after {
    opacity: 0;
}

.media-access-item.is-processing:hover::before,
.media-access-item.is-processing:focus-visible::before {
    opacity: 1;
}

.media-access-processing-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    color: #ffffff;
    font-size: 12px;
    opacity: 0.8;
    text-shadow: 0 2px 6px rgba(15, 23, 42, 0.35);
    pointer-events: none;
}

.media-access-tooltip {
    position: fixed;
    z-index: 1400;
    width: 220px;
    max-width: 240px;
    padding: 0.55rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    transition: opacity 0.16s ease, transform 0.16s ease;
    pointer-events: none;
    visibility: hidden;
}

.media-access-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.media-access-tooltip-media {
    width: 100%;
    height: 128px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media-access-tooltip-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-access-tooltip-icon {
    font-size: 30px;
    color: #64748b;
}

.media-access-tooltip-name {
    margin-top: 0.45rem;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-access-loading,
.media-access-empty,
.media-access-error {
    font-size: 11px;
    color: #94a3b8;
    padding: 0.1rem 0;
}

.media-global-drop-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.08);
    border: 2px dashed rgba(79, 70, 229, 0.45);
    color: #4f46e5;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    pointer-events: all;
}

.media-global-drop-overlay-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1.1rem;
    border-radius: 9999px;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.18);
}

.components-list {
    list-style: none;
}

.component-item {
    padding: 0.5rem;
    background: transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.component-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.component-name-text {
    display: inline-block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.component-usage-badge {
    min-width: 28px;
    padding: 0.15rem 0.55rem;
    border-radius: 9999px;
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
}

.component-item:hover {
    background: #f3f4f6;
}

.component-item.active {
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 600;
}

/* Micro-Apps section */
.apps-section {
    padding: 0 1rem 1rem 1rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
}

.apps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

#apps-header-toggle:focus {
    outline: 2px solid #c7d2fe;
    outline-offset: 2px;
}

.apps-header h3 {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: 0.02em;
}

.apps-list {
    list-style: none;
}

.empty-state {
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    padding: 0.5rem 0;
    text-align: left;
}

.app-item {
    padding: 0.5rem;
    background: transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.app-item:hover {
    background: #f3f4f6;
}

.component-usage-dialog {
    max-height: 90vh;
}

.component-usage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.component-usage-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.component-usage-label {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.02em;
}

.component-usage-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.component-usage-close {
    border: none;
    background: transparent;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px 8px;
}

.component-usage-body {
    padding: 20px 24px 24px 24px;
}

.component-usage-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.component-usage-chip {
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.component-usage-hint {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

.component-usage-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.component-usage-page {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.component-usage-page:hover {
    border-color: #c7d2fe;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.07);
    transform: translateY(-1px);
}

.component-usage-page-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.component-usage-page-subtitle {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #6b7280;
}

.component-usage-page .component-usage-arrow {
    color: #4f46e5;
    font-weight: 700;
    font-size: 16px;
}

.component-usage-empty {
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    color: #6b7280;
    padding: 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 10px;
}

.status-badge {
    font-size: 0.65rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.delete-app-btn {
    background: none;
    border: none;
    color: #4f46e5;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.delete-app-btn:hover {
    background: #eef2ff;
}

.form-field-item {
    margin-bottom: 0.75rem;
}

.app-type-card {
    width: 100%;
    padding: 1rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.app-type-card:not([disabled]):hover {
    border-color: #4f46e5;
    background: #fafafa;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* App selection modal */
.app-selection-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: all 0.3s ease;
    text-align: left;
    cursor: pointer;
    outline: none;
}

.app-selection-card:hover {
    border-color: var(--app-accent-border, #e0e7ff);
    box-shadow: 0 20px 40px rgba(var(--app-accent-shadow-rgb, 99, 102, 241), 0.1);
    transform: translateY(-4px);
}

.app-selection-card:focus-visible {
    border-color: var(--app-accent, #4f46e5);
    box-shadow: 0 0 0 3px rgba(var(--app-accent-shadow-rgb, 99, 102, 241), 0.2);
}

.app-selection-card.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.app-selection-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--app-accent, #4f46e5);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 22px rgba(var(--app-accent-shadow-rgb, 99, 102, 241), 0.2);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.app-selection-card:hover .app-selection-icon {
    transform: scale(1.08);
}

.app-selection-card.is-disabled .app-selection-icon,
.app-selection-card.is-disabled .app-selection-icon img,
.app-selection-card.is-disabled .app-selection-icon-mark {
    filter: grayscale(1);
    opacity: 0.7;
}

.app-selection-icon img,
.app-selection-icon .app-selection-icon-mark {
    width: 24px;
    height: 24px;
}

.app-selection-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    transition: color 0.2s ease;
}

.app-selection-card:hover .app-selection-card-title {
    color: var(--app-accent, #4f46e5);
}

.app-selection-card-desc {
    margin: 0 0 1.5rem;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

.app-install-btn {
    margin-top: auto;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 0;
    border-radius: 0.75rem;
    border: 2px solid #f1f5f9;
    background: transparent;
    color: #475569;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.app-install-btn:not(:disabled):hover {
    border-color: var(--app-accent, #4f46e5);
    color: var(--app-accent, #4f46e5);
    background: var(--app-accent-light, #eef2ff);
}

.app-install-btn i {
    transition: transform 0.2s ease;
}

.app-install-btn:not(:disabled):hover i {
    transform: rotate(90deg);
}

.app-install-btn:disabled {
    cursor: not-allowed;
}

.pages-list {
    list-style: none;
}

.page-folder {
    margin-bottom: 0.25rem;
}

.page-folder-header {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    transition: background 0.2s;
}

.page-folder-header:hover {
    background: #f3f4f6;
}

.page-folder.collapsed > .page-children {
    display: none;
}

.page-children {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.folder-caret {
    display: inline-block;
    margin-left: auto;
    text-align: right;
}

.folder-caret {
    color: #6b7280;
    font-size: 20px;
    transition: transform 0.15s ease;
}

.page-folder:not(.collapsed) .folder-caret {
    transform: rotate(90deg);
}

.folder-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.4rem;
    color: #6b7280;
    font-size: 15px;
}

.page-item {
    padding: 0.5rem;
    background: transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.page-item:hover {
    background: #f3f4f6;
}

.page-item.active {
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 600;
}

.page-item.dragging {
    opacity: 0.7;
    background: #e5e7eb;
    cursor: grabbing;
}

.page-item.initial-generating-locked {
    cursor: not-allowed;
}

.page-item-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    min-width: 0; /* Allow text truncation */
    cursor: grab;
    user-select: none;
}

.page-item-left:active {
    cursor: grabbing;
}

.page-indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    color: #10b981;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.page-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #f0f0f0;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.page-item.generating {
    background: #fffbeb;
}

.page-item.generating:hover {
    background: #fef3c7;
}

.page-item.initial-generating-locked {
    pointer-events: none;
    opacity: 0.6;
}
.page-item.initial-generating-locked * {
    pointer-events: none;
}

#add-page-btn.initial-generating-locked,
#add-app-btn.initial-generating-locked {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

#add-page-btn.agentic-locked,
.restore-checkpoint-btn.agentic-locked {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

/* AI Chat - Now moved to footer */
.ai-section {
    display: none; /* Will be replaced by footer AI chat */
}

/* AI Chat Footer */
.ai-chat-footer {
    position: fixed;
    bottom: 0;
    left: 256px;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 1rem;
    z-index: 30;
    transition: all 0.3s ease;
}

/* Collapsed State - Trigger Button */
.ai-trigger-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    margin: 0 auto;
}

/* Hidden because chat is controlled via top bar */
.ai-trigger-button {
    display: none !important;
}

.ai-trigger-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ai-trigger-button i {
    font-size: 1.125rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.1); }
}

/* Expanded Container */
.ai-expanded-container {
    animation: slideUp 0.3s ease-out;
}

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

/* Quick Actions Grid */
.ai-quick-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.ai-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ai-action-btn:hover {
    border-color: #4f46e5;
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.ai-action-btn[data-action="custom"] {
    border-color: #4f46e5;
    background: #eef2ff;
    color: #4f46e5;
}

.ai-action-btn[data-action="custom"]:hover {
    background: #4f46e5;
    color: white;
}

.ai-action-btn i {
    font-size: 1rem;
}

/* Close Expanded Button */
.ai-close-expanded {
    position: absolute;
    top: -2rem;
    right: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

.ai-close-expanded:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}

/* Cancel Button for Custom Prompt */
.ai-cancel-btn {
    padding: 0.5rem 0.75rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-cancel-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.ai-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.ai-page-select {
    flex-shrink: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    font-weight: 500;
    max-width: 150px;
}

.ai-page-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ai-model-button {
    flex-shrink: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.ai-model-button:hover {
    border-color: #4f46e5;
    background: #f9fafb;
}

.ai-model-button:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.ai-model-button i {
    color: #4f46e5;
}

.model-cost-badge {
    background: #eef2ff;
    color: #4f46e5;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ai-input {
    flex: 1;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    color: #1f2937;
    font-size: 14px;
}

.ai-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.ai-submit {
    padding: 0.5rem 1rem;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-submit:hover {
    background: #4338ca;
}

.ai-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f9fafb;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 20px 20px;
    overflow: hidden;
    transition: margin-right 0.3s ease;
}

.canvas-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    color: #94a3b8;
    overflow: hidden;
    padding-bottom: var(--bottombar-height);
    background: transparent;
    width: 100%;
    position: relative;
}

.custom-scrollbar::-webkit-scrollbar {
    width: var(--scrollbar-size, 8px);
    height: var(--scrollbar-size, 8px);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb-color, #cbd5e1);
    border-radius: var(--scrollbar-thumb-radius, 9999px);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover-color, var(--scrollbar-thumb-color, #cbd5e1));
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: var(--scrollbar-track-color, transparent);
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Toolbar */
.global-topbar {
    position: sticky;
    top: 0;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--topbar-height);
    padding: 0 20px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-left {
    flex: 1;
}

.topbar-right {
    flex: 1;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.topbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-logo-image {
    height: 36px;
    width: auto;
    object-fit: contain;
}

/* Hide editor-only topbar controls while browsing templates (preserve layout) */
body.templates-mode #topbar-projects-btn,
body.templates-mode .mode-switch,
body.templates-mode .topbar-right > * {
    display: none !important;
}

/* Hide editor-only controls when project is unliked (server-detected) */
body.editor-unliked-mode #sidebar,
body.editor-unliked-mode #topbar-projects-btn,
body.editor-unliked-mode .mode-switch,
body.editor-unliked-mode #history-btn,
body.editor-unliked-mode #topbar-analytics-btn,
body.editor-unliked-mode #email-management-btn,
body.editor-unliked-mode #deploy-btn,
body.editor-unliked-mode #topbar-ai-chat-btn {
    display: none !important;
}

body.editor-unliked-mode #templates-back-link {
    display: inline-flex !important;
}

.topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #374151;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.topbar-btn i {
    font-size: 0.95rem;
}

.topbar-btn:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
    color: #4f46e5;
}

.topbar-btn-primary {
    background: linear-gradient(to right, #4f46e5, #6366f1);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.18);
}

.topbar-btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 12px 26px rgba(99, 102, 241, 0.22);
}

.topbar-primary-btn {
    background: #6366f1;
    color: #ffffff;
    border: 1px solid #6366f1;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.18);
}

.topbar-primary-btn:hover {
    background: #4f46e5;
}

#topbar-ai-chat-btn {
    position: relative;
    overflow: hidden;
    gap: 0.6rem;
    background: linear-gradient(120deg, #4f46e5 0%, #6366f1 55%, #7c3aed 100%);
    border-color: #4f46e5;
    box-shadow: 0 10px 22px rgba(99, 102, 241, 0.28);
    color: #ffffff;
}

#topbar-ai-chat-btn:hover {
    background: linear-gradient(120deg, #4338ca 0%, #5b61f0 55%, #6d28d9 100%);
    color: #ffffff;
}

#topbar-ai-chat-btn .topbar-ai-mark {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

#topbar-ai-chat-btn .topbar-ai-label {
    white-space: nowrap;
}

#topbar-ai-chat-btn .topbar-ai-label-short {
    display: none;
    white-space: nowrap;
}

#topbar-ai-chat-btn .topbar-ai-mark-svg {
    width: 14px;
    height: 14px;
}

#topbar-ai-chat-btn::after {
    content: "";
    position: absolute;
    top: -140%;
    left: -80%;
    width: 60%;
    height: 380%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(-220%) rotate(12deg);
    opacity: 0;
    pointer-events: none;
    filter: blur(0.2px);
    animation: topbar-ai-flash 2.6s ease-in-out infinite;
}

@keyframes topbar-ai-flash {
    0%,
    60% {
        transform: translateX(-220%) rotate(12deg);
        opacity: 0;
    }
    66% {
        opacity: 0.75;
    }
    100% {
        transform: translateX(220%) rotate(12deg);
        opacity: 0;
    }
}

.btn-sidebar-toggle {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1f2937;
}

.btn-sidebar-toggle:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.topbar-icon-btn {
    padding: 8px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #64748b;
    transition: all 0.2s ease;
}

.topbar-icon-btn:hover {
    background: #f8fafc;
    color: #4f46e5;
}

.topbar-icon-btn i {
    font-size: 0.95rem;
}

.topbar-analytics-btn {
    gap: 0.45rem;
}

.topbar-live-visitors-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    padding: 2px 6px;
    border-radius: 6px;
    background: #dcfce7;
    color: #15803d;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    transition: all 0.2s ease;
}

.topbar-live-visitors-badge.is-zero {
    background: #e2e8f0;
    color: #64748b;
}

.topbar-primary-btn {
    background: #6366f1;
    color: #ffffff;
    border: 1px solid #6366f1;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.18);
}

.topbar-primary-btn:hover {
    background: #4f46e5;
}

.topbar-control-btn {
    height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
}

.topbar-device-toggle {
    background: #f3f4f6;
    padding: 0.25rem;
    border-radius: 0.5rem;
    display: inline-flex;
    gap: 0.25rem;
}

/* Mode switch + device group styling (from design) */
.mode-switch {
    background: #f8fafc;
    padding: 3px;
    border-radius: 6px;
    display: flex;
    border: 1px solid #e2e8f0;
    gap: 4px;
}

.mode-switch button {
    border: none;
    background: transparent;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.global-topbar .mode-switch button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.global-topbar .mode-switch .mode-switch-icon {
    display: none;
    font-size: 0.9rem;
}

.mode-switch button.active {
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mode-switch button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.device-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.device-group button {
    border: none;
    background: transparent;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
}

.device-group button i {
    font-size: 15px;
}

.device-group button.active {
    background: #ffffff;
    color: #4f46e5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.zoom-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.zoom-group .zoom-toggle-btn.active {
    background: #ffffff;
    color: #4f46e5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.zoom-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
    transform: scaleX(0.85);
    transform-origin: left center;
    transition: max-width 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.zoom-group.is-open .zoom-actions {
    max-width: 120px;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: scaleX(1);
}

.zoom-group .zoom-action-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.toolbar-left {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.toolbar-right {
    display: flex;
    gap: 1rem;
}

.device-toggle {
    display: flex;
    gap: 0.25rem;
    background: #f3f4f6;
    padding: 0.25rem;
    border-radius: 0.5rem;
}

.device-btn {
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.device-btn:hover {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
}

.device-btn svg {
    width: 20px;
    height: 20px;
}

.device-btn i {
    font-size: 1rem;
}

.device-btn.active {
    background: #4f46e5;
    color: white;
}

/* Preview */
.preview-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    padding: 1rem;
    position: relative;
    overflow: auto;
}

.preview-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: clamp(1024px, 92%, 100%);
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.preview-iframe-stage {
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

/* Browser Chrome */
.browser-chrome {
    height: var(--browser-chrome-height);
    background: #1f2937;
    border-bottom: 1px solid #374151;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    flex-shrink: 0;
}

.browser-chrome-url,
#preview-url,
#template-preview-url {
    flex: 1;
    min-width: 0;
    margin-left: 1rem;
    color: #e5e7eb;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* fallback */
    -webkit-mask-image: linear-gradient(90deg, #fff calc(100% - 96px), transparent);
    mask-image: linear-gradient(90deg, #fff calc(100% - 96px), transparent);
}

.browser-chrome-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.browser-chrome-dot {
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    display: inline-block;
}

.browser-chrome-dot.dot-red { background: #ef4444; }
.browser-chrome-dot.dot-yellow { background: #f59e0b; }
.browser-chrome-dot.dot-green { background: #10b981; }

.browser-chrome-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.preview-open-btn {
    margin-left: 0;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-open-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.preview-open-btn i {
    font-size: 14px;
}

.preview-auth-wrapper {
    position: relative;
}

.preview-auth-btn.is-active {
    color: #ffffff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.55), 0 0 10px rgba(59, 130, 246, 0.35);
}

.preview-auth-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    max-width: 280px;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35);
    z-index: 25;
}

.preview-auth-menu.hidden {
    display: none;
}

.preview-auth-option {
    width: 100%;
    border: none;
    background: transparent;
    color: #e5e7eb;
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.preview-auth-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.preview-auth-option.active {
    background: rgba(59, 130, 246, 0.2);
    color: #ffffff;
}

.preview-auth-option.disabled {
    opacity: 0.5;
    cursor: default;
}

.preview-auth-option-sub {
    font-size: 0.75rem;
    color: #9ca3af;
}

.preview-auth-option-muted > span {
    font-size: 0.75rem;
    color: #9ca3af;
}

.preview-wrapper.mobile {
    max-width: 375px;
}

.preview-wrapper.tablet {
    max-width: 768px;
}

.preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.editor-container .preview-wrapper.desktop-zoomed .preview-iframe {
    position: absolute;
    top: var(--desktop-preview-offset-y, 0px);
    left: var(--desktop-preview-offset-x, 0px);
    width: var(--desktop-preview-width, 1280px);
    height: var(--desktop-preview-height, 960px);
    transform: scale(var(--desktop-preview-scale, 1));
    transform-origin: top left;
}

/* Loading state */
.loading-overlay {
    position: absolute;
    top: var(--browser-chrome-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(249, 250, 251, 0.78);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-overlay.active {
    display: flex;
}

.loading-overlay.minimized {
    background: transparent;
    backdrop-filter: none;
    pointer-events: none;
}

.loading-overlay.minimized .loading-card {
    display: none;
}

.loading-minimize-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.loading-minimize-btn:hover {
    color: #0f172a;
    border-color: #cbd5f5;
    box-shadow: 0 6px 16px -10px rgba(15, 23, 42, 0.35);
}

.loading-overlay.agentic-active .loading-minimize-btn {
    display: inline-flex;
}

.loading-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 18px 36px -22px rgba(15, 23, 42, 0.45), 0 10px 24px -16px rgba(15, 23, 42, 0.15);
    padding: 1.5rem 1.75rem;
    min-width: 320px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    font-family: var(--editor-font-family, 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
}

.loading-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.35);
    animation: loading-flash 1.2s ease-in-out infinite;
}

.loading-logo-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 80%);
    transform: translateX(-30%);
    animation: loading-shine 2.4s ease-in-out infinite;
}

.loading-logo-mark {
    width: 26px;
    height: 26px;
    position: relative;
    z-index: 1;
}

.loading-status {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: -0.01em;
    text-align: center;
}

.loading-status-line {
    text-align: center;
}

#ai-status-text .counter-line {
    margin-top: 0.35rem;
    font-size: 13px;
}

#ai-status-text .agentic-counter-line {
    margin-top: 0.75rem;
}

/* Code counter */
.code-counter {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.25rem;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
}

.counter-line {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.4rem;
    line-height: 1.3;
}

.counter-value {
    color: #4f46e5;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.counter-label {
    color: #475569;
    font-weight: 500;
}

.counter-line.muted .counter-label {
    color: #94a3b8;
    font-weight: 400;
}

@keyframes loading-flash {
    0% { transform: translateY(0) scale(0.96); opacity: 0.78; }
    50% { transform: translateY(-1px) scale(1.05); opacity: 1; }
    100% { transform: translateY(0) scale(0.96); opacity: 0.78; }
}

@keyframes loading-shine {
    0% { transform: translateX(-40%); }
    50% { transform: translateX(40%); }
    100% { transform: translateX(-40%); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Element selection styles (injected into iframe) */
[data-hover="true"] {
    outline: 1px dashed rgba(102, 126, 234, 0.45) !important;
    outline-offset: -1px !important;
    cursor: pointer !important;
}

[data-selected="true"] {
    outline: 2px solid rgba(102, 126, 234, 0.55) !important;
    outline-offset: -2px !important;
}

/* Publish modal */
.publish-modal {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.publish-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid var(--pm-color-border, #e5e7eb);
    border-radius: 14px;
    padding: 16px 18px;
}

.publish-summary-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--pm-color-heading, #111827);
}

.publish-summary-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.publish-summary-meta {
    margin: 0;
    font-size: 12px;
    color: var(--pm-color-muted, #6b7280);
    line-height: 1.4;
    align-self: stretch;
}

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

@media (min-width: 960px) {
    .publish-summary-actions {
    }

    .publish-summary-meta {
        text-align: center;
    }
}

.publish-panel {
    background: #ffffff;
    border: 1px solid var(--pm-color-border, #e5e7eb);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.publish-inline-status {
    margin-bottom: 12px;
}

.publish-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.publish-panel h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--pm-color-heading, #111827);
}

.publish-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
}

.publish-badge-success {
    background: #dcfce7;
    color: #166534;
}

.publish-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.publish-badge-neutral {
    background: #e5e7eb;
    color: #475569;
}

.publish-badge-ssl {
    background: #ecfeff;
    color: #0e7490;
}

.publish-muted {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--pm-color-muted, #6b7280);
}

.publish-domain-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--pm-color-border, #e5e7eb);
    border-radius: 12px;
    padding: 10px 12px;
    background: #f8fafc;
}

.publish-domain-pill span {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.publish-wobbio-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(135deg, #eef4ff 0%, #f8faff 48%, #ffffff 100%);
    border-color: #c7d2fe;
    box-shadow: 0 14px 26px rgba(79, 70, 229, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.publish-wobbio-card:hover {
    transform: translateY(-1px);
    border-color: #a5b4fc;
    box-shadow: 0 18px 34px rgba(79, 70, 229, 0.16);
}

.publish-wobbio-card > * {
    position: relative;
    z-index: 2;
}

.publish-wobbio-card-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.publish-wobbio-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(26px);
    opacity: 0.5;
}

.publish-wobbio-orb-a {
    width: 170px;
    height: 170px;
    top: -72px;
    right: -52px;
    background: radial-gradient(circle at 35% 35%, rgba(99, 102, 241, 0.55) 0%, rgba(99, 102, 241, 0) 72%);
    animation: publish-wobbio-float-a 12s ease-in-out infinite;
}

.publish-wobbio-orb-b {
    width: 190px;
    height: 190px;
    left: -72px;
    bottom: -96px;
    background: radial-gradient(circle at 60% 40%, rgba(168, 85, 247, 0.45) 0%, rgba(168, 85, 247, 0) 70%);
    animation: publish-wobbio-float-b 15s ease-in-out infinite;
}

.publish-wobbio-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(99, 102, 241, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(99, 102, 241, 0.16) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.2;
    -webkit-mask-image: radial-gradient(circle at 70% 20%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 46%, transparent 78%);
    mask-image: radial-gradient(circle at 70% 20%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 46%, transparent 78%);
    animation: publish-wobbio-grid-drift 22s linear infinite;
}

.publish-wobbio-watermark {
    position: absolute;
    right: 22px;
    top: 50%;
    width: 160px;
    height: 160px;
    border-radius: 34px;
    transform: translateY(-50%) rotate(-8deg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(100, 116, 139, 0.38);
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    opacity: 0.32;
}

.publish-wobbio-watermark svg {
    width: 94px;
    height: 94px;
}

@keyframes publish-wobbio-float-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-12px, 14px) scale(1.08); }
}

@keyframes publish-wobbio-float-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(16px, -10px) scale(0.94); }
}

@keyframes publish-wobbio-grid-drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(26px, 26px); }
}

.publish-wobbio-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.publish-wobbio-title-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.28);
    flex-shrink: 0;
}

.publish-wobbio-card h4 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    color: #111827;
    letter-spacing: -0.01em;
}

.publish-wobbio-reasons {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
}

.publish-wobbio-reasons li {
    display: grid;
    grid-template-columns: 16px 1fr;
    align-items: center;
    column-gap: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: #1f2937;
}

.publish-wobbio-bullet {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(145deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.publish-wobbio-bullet i {
    color: #ffffff;
    font-size: 7px;
    line-height: 1;
}

.publish-wobbio-reason-text {
    min-width: 0;
}

.publish-wobbio-link {
    margin-top: 16px;
    width: fit-content;
    border-color: #c7d2fe;
    background: linear-gradient(90deg, #ffffff 0%, #eef2ff 100%);
    color: #3730a3;
    font-weight: 700;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.publish-wobbio-link:hover {
    transform: translateY(-1px);
    border-color: #a5b4fc;
    box-shadow: 0 10px 22px rgba(99, 102, 241, 0.18);
    color: #312e81;
}

.publish-wobbio-link-row {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.publish-wobbio-link-row .publish-wobbio-link {
    margin-top: 0;
}

.publish-wobbio-link-manage {
    background: linear-gradient(90deg, #ffffff 0%, #f8fafc 100%);
    color: #334155;
}

.publish-wobbio-link-manage:hover {
    color: #0f172a;
}

@media (prefers-reduced-motion: reduce) {
    .publish-wobbio-orb-a,
    .publish-wobbio-orb-b,
    .publish-wobbio-grid {
        animation: none;
    }
}

@media (max-width: 640px) {
    .publish-wobbio-watermark {
        width: 126px;
        height: 126px;
        right: 12px;
        border-radius: 26px;
        opacity: 0.26;
    }

    .publish-wobbio-watermark svg {
        width: 72px;
        height: 72px;
    }
}

.publish-add-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.publish-input-wrap {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.publish-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.publish-domain-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.publish-domain-empty {
    margin-top: 12px;
    padding: 12px;
    border: 1px dashed var(--pm-color-border, #e5e7eb);
    border-radius: 12px;
    background: #f8fafc;
    font-size: 12px;
    color: var(--pm-color-muted, #6b7280);
}

.publish-domain-card {
    border: 1px solid var(--pm-color-border, #e5e7eb);
    border-radius: 14px;
    padding: 14px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.publish-domain-card-primary {
    border-width: 2px;
    border-color: var(--pm-color-primary, #4f46e5);
}

.publish-domain-card-focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18), 0 16px 36px rgba(79, 70, 229, 0.16);
    animation: publish-domain-card-focus-pulse 1.2s ease-out 1;
}

@keyframes publish-domain-card-focus-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.36), 0 16px 36px rgba(79, 70, 229, 0.16);
    }
    100% {
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18), 0 16px 36px rgba(79, 70, 229, 0.16);
    }
}

.publish-domain-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.publish-domain-title {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.publish-domain-name {
    font-weight: 700;
    font-size: 15px;
    color: #111827;
}

.publish-domain-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.publish-domain-icon-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.publish-domain-icon-btn svg {
    width: 16px;
    height: 16px;
}

.publish-domain-manage {
    color: var(--pm-color-primary, #4f46e5);
}

.publish-domain-remove.publish-domain-icon-btn:hover {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
}

.publish-domain-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #6b7280;
    align-items: center;
}

.publish-domain-meta span {
    font-weight: 600;
    color: #111827;
}

.publish-domain-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 8px 10px;
}

.publish-domain-recommendation {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 9px 10px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 12px;
    line-height: 1.45;
}

.publish-domain-recommendation svg {
    flex: 0 0 auto;
    margin-top: 1px;
    color: #2563eb;
}

.publish-domain-recommendation a {
    color: #3730a3;
    font-weight: 700;
    text-decoration: none;
}

.publish-domain-recommendation a:hover {
    text-decoration: underline;
}

.publish-domain-recommendation-register {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #065f46;
}

.publish-domain-recommendation-register svg {
    color: #059669;
}

.publish-domain-recommendation-register a {
    color: #047857;
}

.publish-routing-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.publish-routing-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.publish-routing-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--pm-color-border, #e5e7eb);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    color: #111827;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.publish-routing-option input {
    width: 14px;
    height: 14px;
    accent-color: var(--pm-color-primary, #4f46e5);
    cursor: pointer;
}

.publish-routing-option input:checked + span {
    font-weight: 600;
}

.publish-routing-option:hover {
    border-color: #cbd5f5;
    background: #f3f5ff;
}

.publish-routing-option.is-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.publish-routing-option.is-disabled input {
    cursor: not-allowed;
}

.publish-routing-option.is-disabled:hover {
    border-color: var(--pm-color-border, #e5e7eb);
    background: #f8fafc;
}

.publish-dns {
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.publish-dns-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.publish-dns-title {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.publish-dns-note {
    font-size: 11px;
    color: var(--pm-color-muted, #6b7280);
}

.publish-dns-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.publish-dns-table th {
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    padding: 6px 8px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.publish-dns-table td {
    padding: 8px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    color: #111827;
}

.publish-dns-table tr:last-child td {
    border-bottom: none;
}

.publish-dns-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 11px;
    color: #0f172a;
    word-break: break-all;
}

.publish-dns-status {
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.publish-dns-status.pending {
    color: #b45309;
}

.publish-dns-status.verified {
    color: #15803d;
}

.publish-dns-status.required {
    color: #1d4ed8;
}

.publish-dns-status.optional {
    color: #6b7280;
}

.publish-email-toggle {
    background: none;
    border: none;
    color: var(--pm-color-primary, #4f46e5);
    font-size: 12px;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.publish-email-records {
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    padding: 10px;
    background: #f8fafc;
}

.publish-email-note {
    margin: 0 0 8px;
    font-size: 11px;
    color: var(--pm-color-muted, #6b7280);
}

.publish-email-records.hidden {
    display: none;
}

.publish-modal .pm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Element edit popup */
.element-edit-popup {
    position: absolute;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 1rem;
    box-sizing: border-box;
    z-index: 1000;
    min-width: 300px;
    width: 360px;
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: none;
}

.element-edit-popup.active {
    display: block;
}

.element-inline-text-actions {
    position: absolute;
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 0;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1100;
}

.element-inline-text-actions.active {
    display: inline-flex;
}

.element-edit-tabs {
    display: flex;
    gap: 0.25rem;
    background: #f3f4f6;
    padding: 0.25rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.element-edit-tab {
    flex: 1;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.element-edit-tab.active {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.element-edit-tab.is-hidden {
    display: none;
}

.element-edit-tab:disabled,
.element-edit-tab.disabled {
    cursor: not-allowed;
    color: #9ca3af;
}

.element-edit-panel {
    display: none;
}

.element-edit-panel.active {
    display: block;
}

.edit-prompt-field {
    position: relative;
    margin-bottom: 0.5rem;
}

.element-edit-panel-ai.is-dragover .edit-prompt-input {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.18);
}

.edit-text-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    height: 42px;
    min-height: 42px;
    max-height: 126px;
    line-height: 1.4;
    resize: none;
    overflow-y: auto;
    transition: border-color 0.2s, height 0.1s ease;
}

.edit-text-input:disabled {
    background: #f9fafb;
    color: #9ca3af;
}

.edit-text-helper {
    font-size: 11px;
    color: #6b7280;
    margin-top: -0.25rem;
    margin-bottom: 0.5rem;
}

.edit-text-helper.is-warning {
    color: #b45309;
}

.edit-image-helper {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.edit-image-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 0.5rem;
}

.edit-image-empty {
    display: none;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    padding: 0.75rem 0.25rem;
    border: 1px dashed #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.edit-image-empty.active {
    display: block;
}

.edit-image-item {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.45rem;
    background: #fff;
}

.edit-image-thumb {
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    flex-shrink: 0;
    line-height: 0;
    appearance: none;
    position: relative;
    transition: all 0.2s ease;
}

.edit-image-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.edit-image-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    opacity: 0;
    transition: opacity 0.16s ease;
    pointer-events: none;
}

.edit-image-thumb::after {
    content: '\f06e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    color: #ffffff;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.16s ease, transform 0.16s ease;
    text-shadow: 0 2px 6px rgba(15, 23, 42, 0.35);
    pointer-events: none;
}

.edit-image-thumb:hover {
    border-color: #c7d2fe;
    color: #4f46e5;
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.12);
}

.edit-image-thumb:focus-visible {
    outline: 2px solid #c7d2fe;
    outline-offset: 2px;
}

.edit-image-thumb:hover::before,
.edit-image-thumb:focus-visible::before {
    opacity: 1;
}

.edit-image-thumb:hover::after,
.edit-image-thumb:focus-visible::after {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
}

.edit-image-info {
    min-width: 0;
}

.edit-image-title {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
    margin: 0;
}

.edit-image-source {
    font-size: 11px;
    color: #6b7280;
    margin: 0.1rem 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.edit-image-action {
    font-size: 11px;
    padding: 0.3rem 0.55rem;
}

.element-image-preview-modal {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.element-image-preview-stage {
    max-height: min(72vh, 900px);
    overflow: auto;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
    padding: 0.4rem;
}

.element-image-preview-stage img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.element-image-preview-label {
    font-size: 12px;
    color: #6b7280;
}

.element-image-preview-url-input {
    font-size: 12px;
}

.element-edit-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.edit-files-actions {
    right: 8px;
}

.edit-files-btn {
    flex-shrink: 0;
}

.edit-files-count {
    font-size: 10px;
    color: #9ca3af;
}

.edit-files-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
    margin-bottom: 0.5rem;
}

.edit-files-selected:empty {
    display: none;
}

.element-edit-mode-options {
    margin-bottom: 0.5rem;
}

.element-edit-mode-options .chat-mode-toolbar {
    justify-content: flex-start;
}

.element-edit-mode-options .chat-mode-option:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.element-edit-mode-options .chat-mode-option.is-unavailable {
    opacity: 0.6;
    cursor: not-allowed;
}

.edit-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    font-size: 11px;
    color: #374151;
}

.edit-file-chip i {
    font-size: 11px;
    color: #6b7280;
}

.edit-file-remove {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
}

.edit-file-remove:hover {
    color: #ef4444;
}

.prompt-file-picker {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prompt-file-picker-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.prompt-file-picker-path {
    font-size: 12px;
    color: #6b7280;
    background: #f8fafc;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.prompt-file-picker-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prompt-file-action-btn {
    padding: 0.4rem;
    width: 32px;
    height: 32px;
    justify-content: center;
}

.prompt-file-picker-list {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: auto;
    max-height: 320px;
    background: #ffffff;
}

.prompt-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
}

.prompt-file-item:last-child {
    border-bottom: none;
}

.prompt-file-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #111827;
}

.prompt-file-preview {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 32px;
}

.prompt-file-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.prompt-file-icon {
    font-size: 14px;
    color: #94a3b8;
}

.prompt-file-meta {
    font-size: 11px;
    color: #6b7280;
    margin-left: 6px;
}

.prompt-file-open {
    font-size: 12px;
    padding: 0.25rem 0.5rem;
}

.prompt-file-empty,
.prompt-file-loading {
    padding: 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
}

/* Mobile Sidebar Toggle */
.mobile-sidebar-toggle {
    display: none; /* Hidden by default on desktop */
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 50;
    background: white;
    padding: 0.5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: none;
    color: #6b7280;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.mobile-sidebar-toggle:hover {
    color: #4f46e5;
}

.templates-view {
    display: none;
    background: #f9fafb;
    padding: 0 1rem 1rem;
    flex: 1;
    min-height: 0;
}

.templates-view.active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    min-height: 0;
}

.templates-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.templates-view-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #111827;
    font-size: 1.15rem;
    font-weight: 600;
}

.templates-view-title i {
    color: #a855f7;
}

.templates-mode .templates-view-header {
    display: none;
}

.template-preview-pane {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    min-height: 0;
    min-width: 0;
}

.template-preview-pane.hidden-section {
    display: none;
}

.template-preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.template-preview-container {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    padding: 1rem;
    min-width: 0;
    position: relative;
    overflow: auto;
}

.template-preview-container .preview-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1024px;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.template-preview-container .preview-iframe-stage {
    flex: 1;
    min-height: 0;
}

/* Ensure full-height layout in templates mode */
body.templates-mode {
    display: flex;
    flex-direction: column;
    height: var(--app-height);
    overflow: hidden;
}

body.templates-mode .templates-view {
    flex: 1;
    min-height: 0;
}

body.templates-mode .template-preview-pane {
    flex: 1;
    min-height: 0;
}

body.templates-mode .template-preview-container {
    flex: 1;
    height: auto;
    min-height: 0;
    padding-bottom: calc(var(--bottombar-height) + 1rem);
}

body.templates-mode .template-preview-container .preview-wrapper {
    height: 100%;
    flex: 1;
}

/* Avoid footer overlap in templates mode previews */
body.templates-mode .preview-container {
    padding-bottom: calc(var(--bottombar-height) + 1rem);
}

body.templates-mode .preview-wrapper {
    max-height: calc(var(--app-height) - var(--topbar-height) - var(--bottombar-height) - 2rem);
}

.templates-filter-trigger {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
}

.templates-filter-trigger:hover {
    border-color: #a5b4fc;
}

.templates-filter-trigger[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.templates-filter-icon {
    color: #94a3b8;
}

.templates-filter-icon.is-open {
    color: #6366f1;
}

.templates-filter-dropdown {
    background-color: #ffffff;
    border-color: rgba(148, 163, 184, 0.4);
    color: #334155;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.templates-filter-options {
    max-height: 280px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.templates-filter-option {
    color: inherit;
}

.templates-filter-option[data-selected="true"] {
    background-color: #eef2ff;
    color: #4338ca;
    font-weight: 600;
}

.templates-filter-option:not([data-selected="true"]):hover {
    background-color: #f8fafc;
    color: #0f172a;
}

.templates-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #111827;
    border-radius: 10px;
    padding: 0.45rem 0.85rem;
    cursor: pointer;
    box-shadow: 0 6px 16px -10px rgba(15, 23, 42, 0.25);
}

.templates-back-btn:hover {
    background: #f3f4f6;
}

.templates-status {
    padding: 0.75rem 0;
    color: #4b5563;
    font-size: 0.95rem;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(299px, 1fr));
    gap: 1.1rem;
    overflow-y: auto;
    padding: 0.25rem 0 0.5rem;
}

#pagination-dots {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

#pagination-dots .pagination-dots-track {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.template-pagination-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: #cbd5e1;
    transition: background-color 180ms ease;
}

.template-pagination-dot:hover {
    background-color: #94a3b8;
}

.pagination-indicator {
    position: absolute;
    top: 50%;
    left: 0;
    width: 1rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    box-shadow: 0 6px 12px rgba(79, 70, 229, 0.25);
    transform: translate3d(0, -50%, 0);
    transition: transform 440ms ease-out, opacity 180ms ease-out;
    pointer-events: none;
    will-change: transform;
}

.pagination-indicator.no-transition {
    transition: none;
}

.template-card-frame {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: #000;
    z-index: 0;
    isolation: isolate;
}

.template-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}

.template-card-viewport {
    position: absolute;
    top: 0;
    left: 0;
    width: 400%;
    height: 400%;
    transform: scale(0.25);
    transform-origin: top left;
    pointer-events: none;
    z-index: 1;
}

.template-card-iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    pointer-events: none;
    overflow: hidden;
    scrollbar-width: none;
    background: #000;
    opacity: 0;
    transition: opacity 200ms ease-in-out;
    z-index: 1;
}

.template-card-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 300ms ease;
    transform: translateZ(0);
    z-index: 2;
    pointer-events: none;
}

.template-card-action {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.9) translateZ(0);
    transition: opacity 300ms ease, transform 300ms ease;
    z-index: 3;
}

.template-card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    transform: translateZ(0);
    z-index: 4;
}

.template-card-frame:hover .template-card-overlay {
    opacity: 1;
}

.template-card-frame:hover .template-card-action {
    opacity: 1;
    transform: scale(1) translateZ(0);
}

.template-card-iframe[data-loaded="true"] {
    opacity: 1;
}

.template-card-iframe::-webkit-scrollbar {
    display: none;
}

.template-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px -14px rgba(15, 23, 42, 0.25);
}

.template-iframe-wrap {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: #f3f4f6;
}

.template-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 400%;
    height: 400%;
    transform: scale(0.25);
    transform-origin: top left;
    border: none;
    pointer-events: none;
}

.template-meta {
    display: none;
}

.hidden-section {
    display: none !important;
}

.templates-topbar {
    display: none;
}

.templates-mode .templates-topbar {
    display: flex;
}

.templates-list .device-group {
    display: none !important;
}

.btn-outline-purple {
    background: #ffffff;
    border: 1px solid #4f46e5;
    color: #4f46e5;
    border-radius: 8px;
    padding: 9px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none;
    min-height: 36px;
}

.btn-outline-purple:hover {
    background: #eef2ff;
    color: #4f46e5;
}

.template-actions {
    display: flex;
    justify-content: center;
    padding: 0.75rem 0.75rem 0.9rem;
}

.template-view-btn {
    width: 100%;
}

/* Sidebar Footer - User Profile */
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    background: white;
    margin-top: auto;
}

.user-profile {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    background: #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.user-avatar i {
    color: #4f46e5;
    font-size: 0.875rem;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-plan {
    font-size: 0.75rem;
    color: #6b7280;
}

.credits-section {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    background: #f9fafb;
    min-height: 80px;
}

.credits-section.credits-low {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.credits-section.credits-low .credits-value {
    color: #fca5a5;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.credits-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.credits-label {
    color: #6b7280;
    font-size: 0.875rem;
}

.credits-value {
    color: #1f2937;
    font-weight: 600;
}

.credits-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.credits-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.credits-section.credits-low .credits-progress {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

/* Footer Bar */
.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottombar-height);
    background: #f9fafb;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.02);
    z-index: 1000;
}

.footer-bar.cta-visible {
    background: transparent;
    border-top: none;
    box-shadow: none;
    height: var(--bottombar-height);
    padding: 0 20px;
    bottom: 8px;
}

.footer-bar.regen-visible {
    background: transparent;
    border-top: none;
    box-shadow: none;
    height: var(--bottombar-height);
    padding: 0 20px;
    bottom: 8px;
}

.footer-default {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.footer-cta {
    display: none;
    width: 100%;
    justify-content: center;
    padding: 8px 1.25rem 0;
}

.footer-regenerate {
    display: none;
    width: 100%;
    justify-content: center;
    padding: 8px 1.25rem 0;
}

.footer-cta-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 480px;
}

.footer-cta-actions.single-btn {
    max-width: fit-content;
    width: auto;
}

.footer-cta-btn {
    padding: 0.6rem 1rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1 1 0;
    min-height: 52px;
}

.footer-cta-actions.single-btn .footer-cta-btn {
    flex: 0 0 auto;
    min-width: 250px;
}

.footer-cta-btn span {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.footer-cta-btn span small {
    font-weight: 400;
    font-size: 0.68rem;
    color: #6b7280;
    margin-top: 1px;
    line-height: 1.1;
}

.footer-cta-btn.footer-cta-primary span small {
    color: inherit;
}

.footer-cta-primary {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.25), 0 4px 6px -2px rgba(79, 70, 229, 0.2);
}

.footer-cta-primary:hover {
    background: #4338ca;
    border-color: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 12px 20px -3px rgba(67, 56, 202, 0.28), 0 6px 10px -4px rgba(67, 56, 202, 0.25);
}

.footer-cta-secondary {
    background: #ffffff;
    color: #1f2937;
    border-color: #e5e7eb;
    box-shadow: 0 6px 12px -4px rgba(15, 23, 42, 0.08);
}

.footer-cta-secondary:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
    border-color: #c7d2fe;
    color: #4f46e5;
}

@media (max-width: 640px) {
    .footer-cta-actions {
        max-width: 340px;
    }
    .footer-cta-btn span {
        display: none;
    }
    .footer-cta-btn {
        padding: 0.7rem 0.9rem;
        min-height: auto;
    }
}

.footer-bar.cta-visible .footer-default {
    display: none;
}

.footer-bar.cta-visible .footer-cta {
    display: flex;
}

.footer-bar.regen-visible .footer-default {
    display: none;
}

.footer-bar.regen-visible .footer-regenerate {
    display: flex;
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-bar .user-profile {
    margin-bottom: 0;
    gap: 0.625rem;
    padding: 0.35rem 0.45rem;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.footer-bar .user-profile:not(.menu-open):hover {
    background: #eef2ff;
    border-color: #e0e7ff;
    box-shadow: 0 10px 20px -10px rgba(79, 70, 229, 0.25);
    transform: none;
}

.footer-bar .user-name {
    font-size: 13px;
    font-weight: 600;
}

.footer-bar .user-plan {
    font-size: 11px;
}

.footer-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    user-select: none;
}

.footer-logo.footer-logo-mobile {
    display: none;
}

.footer-agentic-pill {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #dbeafe;
    background: #eef2ff;
    color: #1e293b;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.footer-agentic-pill:hover {
    transform: translateY(-1px);
    border-color: #c7d2fe;
    box-shadow: 0 14px 26px -18px rgba(79, 70, 229, 0.35);
}

.footer-agentic-pill-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
    transform-origin: center;
}

.footer-agentic-pill-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 10px;
    color: #6366f1;
}

.footer-agentic-pill-status {
    font-size: 12px;
    color: #0f172a;
}

body.agentic-processing-active .footer-agentic-pill-dot {
    animation: footer-agentic-heartbeat 1.6s ease-in-out infinite;
}

@keyframes footer-agentic-heartbeat {
    0%,
    50%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
    }
    10% {
        transform: scale(1.35);
        box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.28);
    }
    20% {
        transform: scale(0.92);
        box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
    }
    30% {
        transform: scale(1.2);
        box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.24);
    }
    40% {
        transform: scale(1);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
    }
}

body.agentic-overlay-active .footer-logo,
body.agentic-processing-active .footer-logo {
    display: none;
}

body.agentic-overlay-active .footer-agentic-pill,
body.agentic-processing-active .footer-agentic-pill {
    display: inline-flex;
}

.footer-avatar {
    width: 32px;
    height: 32px;
    background-color: #e0e7ff;
    color: #4f46e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.footer-user {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.footer-user .name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}

.footer-user .plan {
    font-size: 11px;
    color: #6b7280;
}

.footer-cart-button {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.footer-cart-button.is-hidden {
    display: none;
}

.footer-cart-button:hover,
.footer-cart-button:focus-visible {
    color: #4f46e5;
    border-color: #c7d2fe;
    background: #eef2ff;
    box-shadow: 0 12px 24px -18px rgba(79, 70, 229, 0.45);
    transform: translateY(-1px);
    outline: none;
}

.footer-cart-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #4f46e5;
    color: #fff;
    border: 2px solid #f9fafb;
    font-size: 9px;
    line-height: 1;
    font-weight: 800;
    align-items: center;
    justify-content: center;
    display: none;
}

.footer-cart-badge.is-visible {
    display: flex;
}

.footer-cart-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 0.75rem;
    padding: 0.375rem 0.625rem;
    border-radius: 0.5rem;
    background: #1e293b;
    color: #fff;
    font-size: 11px;
    line-height: 1rem;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 10px 20px -12px rgba(15, 23, 42, 0.7);
}

.footer-cart-button:hover .footer-cart-tooltip,
.footer-cart-button:focus-visible .footer-cart-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.footer-credits {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9fafb;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.footer-credits.is-loading {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.footer-credits .label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.footer-credits-label-icon,
.footer-storage-label-icon {
    display: none;
    align-items: center;
    justify-content: center;
    width: 14px;
    color: #64748b;
}

.footer-credits #footer-credits-value {
    color: #1f2937;
    font-weight: 600;
}

.footer-credits #footer-storage-value {
    color: #1f2937;
    font-weight: 600;
}

.footer-credits-separator {
    width: 1px;
    height: 16px;
    background: #e2e8f0;
    display: inline-block;
}

.footer-credits .track {
    width: 60px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.footer-credits .fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.footer-credits.credits-low {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
}

.footer-credits.credits-low .label span {
    color: #dc2626;
}

.footer-credits.credits-low .fill {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}
/* Responsive */
@media (max-width: 768px) {
    .mobile-sidebar-toggle {
        display: flex;
    }

    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        z-index: 40;
        height: calc(var(--app-height) - var(--topbar-height) - var(--bottombar-height));
        top: var(--topbar-height);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .ai-chat-footer {
        left: 0;
    }

    .ai-trigger-button {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .ai-quick-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ai-action-btn {
        width: 100%;
        justify-content: center;
    }

    :root {
        --topbar-height: 64px;
        --bottombar-height: 50px;
    }

    .global-topbar {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 0 1rem;
        gap: 0.65rem;
        height: var(--topbar-height);
    }

    .topbar-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .topbar-logo-image {
        height: 30px;
    }

    .topbar-actions-left,
    .topbar-actions-right {
        width: 100%;
        justify-content: center;
    }

    .topbar-actions-right {
        flex-wrap: wrap;
    }

    .footer-bar {
        grid-template-columns: 1fr;
        height: var(--bottombar-height);
        padding: 0.5rem 1rem;
        row-gap: 0.35rem;
    }

    .footer-left,
    .footer-right {
        justify-content: center;
    }

    .footer-bar .footer-user {
        display: none;
    }

    .footer-center .footer-logo {
        display: none;
    }

    .footer-logo.footer-logo-mobile {
        display: inline-flex;
    }

    .footer-credits .label {
        gap: 4px;
    }

    .footer-credits {
        gap: 6px;
    }

    .footer-logo-text {
        display: none;
    }

    body.agentic-overlay-active .footer-logo.footer-logo-mobile,
    body.agentic-processing-active .footer-logo.footer-logo-mobile,
    body.agentic-overlay-active .footer-cart-button,
    body.agentic-processing-active .footer-cart-button,
    body.agentic-overlay-active .footer-credits,
    body.agentic-processing-active .footer-credits {
        display: none;
    }

    .toolbar {
        padding: 0.75rem 1rem;
        padding-left: 3.5rem;
    }

    .preview-container {
        padding: 0.5rem;
    }
}

@media (max-width: 500px) {
    .footer-right {
        gap: 0.5rem;
    }

    .footer-credits {
        padding: 6px 10px;
    }

    .footer-credits-label-icon,
    .footer-storage-label-icon {
        display: inline-flex;
    }

    .footer-credits-label-text,
    .footer-storage-label-text {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

@media (max-width: 1024px) {
    .global-topbar .topbar-right {
        gap: 8px;
    }

    .global-topbar .topbar-right .topbar-icon-btn {
        padding: 6px;
    }

    #topbar-ai-chat-btn .topbar-ai-label {
        display: none;
    }

    #topbar-ai-chat-btn .topbar-ai-label-short {
        display: inline-flex;
    }

    #topbar-analytics-btn .topbar-live-visitors-badge {
        display: none;
    }

    #topbar-projects-btn span,
    #deploy-btn span {
        display: none;
    }

    #topbar-projects-btn,
    #deploy-btn {
        padding: 8px 10px;
    }
}

@media (max-width: 1120px) {
    #deploy-btn span {
        display: none;
    }

    #deploy-btn {
        padding: 8px 10px;
    }
}

@media (max-width: 640px) {
    .global-topbar .device-group {
        display: none;
    }

    .global-topbar .topbar-left,
    .global-topbar .topbar-right {
        flex: 0 1 auto;
        min-width: 0;
    }

    .global-topbar .topbar-right {
        gap: 6px;
        flex-wrap: nowrap;
    }

    .global-topbar .topbar-right .topbar-btn {
        padding: 6px 8px;
    }

    .global-topbar .mode-switch button {
        padding: 6px 8px;
    }

    .global-topbar .mode-switch .mode-switch-label {
        display: none;
    }

    .global-topbar .mode-switch .mode-switch-icon {
        display: inline-flex;
    }
}
/* ===================================
   AGENTIC AI STYLES
   =================================== */

/* Agentic Mode Checkbox */
.agentic-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.agentic-checkbox:hover {
    background: #e9ecef;
}

.agentic-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.agentic-checkbox .checkbox-label {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
}

.agentic-checkbox .agentic-icon {
    color: #6c5ce7;
    font-size: 14px;
}

.agentic-checkbox input[type="checkbox"]:checked ~ .checkbox-label {
    color: #6c5ce7;
    font-weight: 600;
}

.agentic-checkbox input[type="checkbox"]:checked ~ .agentic-icon {
    animation: robot-pulse 1.5s infinite;
}

@keyframes robot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Continue Session Dropdown */
.continue-session-dropdown {
    padding: 6px 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
    font-size: 13px;
    color: #495057;
    cursor: pointer;
    max-width: 250px;
    transition: border-color 0.2s;
}

.continue-session-dropdown:hover {
    border-color: #6c5ce7;
}

.continue-session-dropdown:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

/* Checkpoint Stats */
.checkpoint-stats {
    font-size: 0.85em;
    color: #6c757d;
    margin-left: 4px;
}

.history-loading {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
}

.history-loading i {
    color: #6c5ce7;
    font-size: 24px;
}

/* Agentic Progress Modal */
.agentic-progress-container {
    padding: 20px 0;
}

.agentic-current-action-display {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 20px;
}

.spinner-icon {
    font-size: 48px;
    color: #6c5ce7;
    margin-bottom: 20px;
}

.current-action-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.action-count-text {
    font-size: 14px;
    color: #666;
}

.agentic-actions-log {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    background: #f8f9fa;
}

.agentic-action-item {
    padding: 10px;
    margin-bottom: 8px;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #6c5ce7;
    font-size: 13px;
}

.agentic-action-item .action-icon {
    color: #6c5ce7;
    margin-right: 8px;
}

.agentic-action-item .action-time {
    float: right;
    color: #999;
    font-size: 11px;
}

.agentic-result {
    margin-top: 20px;
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
}

.agentic-result.error {
    background: #f8d7da;
    border-color: #f5c6cb;
}

.agentic-result h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
}

.agentic-result ul {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
}

/* Checkpoint Current Highlight */
.current-checkpoint {
    background: #f0fdf4 !important;
    border: 2px solid #22c55e !important;
}

/* Form Sections - Contact Form Plugin */
.form-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.form-section h4 {
    margin: 0 0 1.25rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    background: white;
    transition: all 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="url"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

/* Checkbox styling */
.form-group input[type="checkbox"] {
    margin-right: 0.5rem;
    width: auto;
    cursor: pointer;
}

.form-group label input[type="checkbox"] {
    vertical-align: middle;
}

/* Form group with checkbox label */
.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.form-group label:has(input[type="checkbox"]):hover {
    color: #111827;
}

/* Nested form group (like email-to-group) */
#cf-email-to-group {
    margin-left: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid #e5e7eb;
}

/* Toasts */
.wobbio-toast-stack {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10150;
    pointer-events: none;
}

.wobbio-toast {
    pointer-events: auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    min-width: 260px;
    max-width: 420px;
    color: #334155;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(12px);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.wobbio-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.wobbio-toast.is-hiding {
    opacity: 0;
    transform: translateY(12px);
}

.wobbio-toast__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wobbio-toast .footer-logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

.wobbio-toast .footer-logo-mark {
    width: 16px;
    height: 16px;
}

.wobbio-toast .footer-logo-icon:hover {
    transform: scale(1.05) rotate(3deg);
}

.wobbio-toast .footer-logo-icon:hover .footer-logo-shine {
    transform: translateY(0);
}

.wobbio-toast__message {
    flex: 1;
    color: #334155;
}

.wobbio-toast__close {
    border: none;
    background: transparent;
    color: #94a3b8;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.wobbio-toast__close:hover {
    background-color: #f1f5f9;
    color: #475569;
}

@media (max-width: 640px) {
    .wobbio-toast-stack {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .wobbio-toast {
        width: 100%;
        max-width: none;
    }
}
