/* GForm Design System — Frontend-System tokens (Figtree + Phosphor Icons) */
:root {
    --color-primary: #686FFD;
    --color-primary-hover: #5F65E6;
    --color-primary-soft: #F0F1FF;
    --color-text: #191919;
    --color-text-muted: #656565;
    --color-border: #E8E8E8;
    --color-surface: #FFFFFF;
    --color-page: #FCFCFC;
    --color-error: #E02424;
    --color-success: #83A624;
    --color-warning: #FF6E00;
    --height-status: 23px;
    --height-pill: 27px;
    --height-field: 30px;
    --height-field-lg: 42px;
    --height-touch-min: 44px;
    --gf-font: 'Figtree', ui-sans-serif, system-ui, sans-serif;
    --gf-primary: var(--color-primary);
    --gf-primary-hover: var(--color-primary-hover);
    --gf-primary-soft: var(--color-primary-soft);
    --gf-primary-ring: rgba(104, 111, 253, 0.15);
    --gf-surface: var(--color-surface);
    --gf-surface-raised: #FAFAFA;
    --gf-surface-muted: var(--color-page);
    --gf-surface-sidebar: #121212;
    --gf-border: var(--color-border);
    --gf-border-subtle: var(--color-border);
    --gf-text: var(--color-text);
    --gf-text-secondary: #474747;
    --gf-text-muted: var(--color-text-muted);
    --gf-text-faint: #959595;
    --gf-success: var(--color-success);
    --gf-success-soft: #F8FBEE;
    --gf-warning: var(--color-warning);
    --gf-warning-soft: #FFF8E8;
    --gf-danger: var(--color-error);
    --gf-danger-soft: #FCE9E9;
    --gf-info: var(--color-primary);
    --gf-info-soft: var(--color-primary-soft);
    --gf-radius-sm: 4px;
    --gf-radius: 6px;
    --gf-radius-lg: 8px;
    --gf-radius-xl: 12px;
    --gf-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --gf-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --gf-shadow-input: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
    --gf-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.12);
    --gf-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --gf-shadow-sidebar: 4px 0 24px rgba(0, 0, 0, 0.14);
    --gf-transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --gf-sidebar-width: 16rem;
    --gf-sidebar-width-collapsed: 4.5rem;
    --gf-nav-height: 0px;
}

@media (max-width: 1440px) { html { font-size: 15px; } }
@media (max-width: 1280px) { html { font-size: 14px; } }
@media (max-width: 1024px) { html { font-size: 12px; } }
@media (max-width: 768px)  { html { font-size: 12px; } }

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--gf-font) !important;
    color: var(--gf-text);
    background: var(--gf-surface-muted);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Layout ── */
.gf-app-shell { min-height: 100vh; background: var(--gf-surface-muted); }
.gf-app { min-height: 100vh; background: var(--gf-surface-muted); }

/* Form builder — lock to viewport, scroll only inside canvas */
html:has(.gf-builder) {
    overflow: hidden;
    height: 100%;
}
html:has(.gf-builder) body {
    overflow: hidden;
    height: 100%;
}
.gf-app-shell:has(.gf-builder) {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
}
.gf-app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}
.gf-app-main:has(.gf-builder) {
    flex: 1;
    min-height: 0;
    height: auto;
    overflow: hidden;
}
@media (min-width: 768px) {
    .gf-app-main { margin-left: var(--gf-sidebar-width); transition: margin-left 250ms cubic-bezier(0.4, 0, 0.2, 1); }
    html.gf-sidebar-collapsed .gf-app-main { margin-left: var(--gf-sidebar-width-collapsed); }
}
.gf-app-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--gf-surface);
    border-bottom: 1px solid var(--gf-border);
}
.gf-main { flex: 1; }
.gf-main:has(.gf-builder) {
    overflow: hidden;
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}
.gf-app-main:has(.gf-builder) .gf-mobile-bar {
    flex-shrink: 0;
}
.gf-page { max-width: 1280px; margin: 0 auto; padding: 1rem; }
@media (min-width: 640px) { .gf-page { padding: 1.5rem; } }
@media (min-width: 1024px) { .gf-page { padding: 1.5rem; } }

/* ── Typography ── */
.gf-page-title { font-size: 1.125rem; font-weight: 400; letter-spacing: 0; color: var(--gf-text); line-height: 1.5; }
.gf-page-subtitle { font-size: 0.875rem; color: var(--gf-text-muted); margin-top: 0.25rem; line-height: 1.6; }
.gf-section-title { font-size: 0.625rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gf-text-faint); }

/* ── Cards ── */
.gf-card {
    background: var(--gf-surface);
    border: 1px solid var(--gf-border-subtle);
    border-radius: var(--gf-radius-lg);
    box-shadow: var(--gf-shadow-xs);
    transition: box-shadow var(--gf-transition), border-color var(--gf-transition);
}
.gf-card:hover { box-shadow: var(--gf-shadow-sm); }
.gf-card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gf-border-subtle); }
.gf-card-body { padding: 1.5rem; }

/* ── Stat Cards ── */
.gf-stat-card {
    background: var(--gf-surface);
    border: 1px solid var(--gf-border-subtle);
    border-radius: var(--gf-radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform var(--gf-transition), box-shadow var(--gf-transition);
}
.gf-stat-card:hover { transform: translateY(-1px); box-shadow: var(--gf-shadow); }
.gf-stat-icon {
    width: 2.75rem; height: 2.75rem;
    border-radius: var(--gf-radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; flex-shrink: 0;
}
.gf-stat-icon--primary { background: var(--gf-primary-soft); color: var(--gf-primary); }
.gf-stat-icon--success { background: var(--gf-success-soft); color: var(--gf-success); }
.gf-stat-icon--warning { background: var(--gf-warning-soft); color: var(--gf-warning); }
.gf-stat-icon--info { background: var(--gf-info-soft); color: var(--gf-info); }
.gf-stat-value { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--gf-text); }
.gf-stat-label { font-size: 0.8125rem; color: var(--gf-text-muted); margin-top: 0.25rem; }

/* ── Buttons ── */
.gf-btn, .ds-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
    font-family: var(--gf-font); font-size: 0.875rem; font-weight: 400;
    height: var(--height-field); padding: 0 1rem; border-radius: var(--gf-radius);
    border: 1px solid transparent; cursor: pointer;
    transition: all var(--gf-transition); white-space: nowrap; text-decoration: none;
    line-height: 1.25;
}
.gf-btn:focus-visible { outline: 2px solid var(--gf-primary); outline-offset: 2px; }
.gf-btn--primary { background: var(--gf-primary); color: #fff; border-color: var(--gf-primary); }
.gf-btn--primary:hover { background: var(--gf-primary-hover); border-color: var(--gf-primary-hover); color: #fff; }
.gf-btn--secondary { background: var(--gf-surface); color: var(--gf-text); border-color: var(--gf-border); }
.gf-btn--secondary:hover { background: var(--gf-surface-raised); border-color: var(--gf-border); color: var(--gf-text); }
.gf-btn--auth { background: var(--gf-text); color: var(--gf-surface); border-color: var(--gf-text); }
.gf-btn--auth:hover { background: #171717; border-color: #171717; color: var(--gf-surface); }
.gf-btn--ghost { background: transparent; color: var(--gf-text-secondary); border-color: transparent; }
.gf-btn--ghost:hover { background: var(--gf-surface-muted); color: var(--gf-text); }
.gf-btn--danger { background: var(--gf-danger-soft); color: var(--gf-danger); border-color: transparent; }
.gf-btn--danger:hover { background: #fee2e2; }
.gf-btn--success { background: var(--gf-success-soft); color: var(--gf-success); border-color: transparent; }
.gf-btn--success:hover { background: #dcfce7; }
.gf-btn--sm { font-size: 0.8125rem; height: var(--height-pill); padding: 0 0.625rem; }
.gf-btn--lg { font-size: 0.875rem; font-weight: 500; height: var(--height-field-lg); padding: 0 1rem; }
.gf-btn--icon { padding: 0.5rem; }

/* ── Badges ── */
.gf-badge {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
    padding: 0.2rem 0.625rem; border-radius: 9999px;
}
.gf-badge--active { background: var(--gf-success-soft); color: var(--gf-success); }
.gf-badge--draft { background: var(--gf-warning-soft); color: var(--gf-warning); }
.gf-badge--muted { background: var(--gf-surface-muted); color: var(--gf-text-muted); }

/* ── Inputs ── */
.gf-input-group { position: relative; }
.gf-input {
    width: 100%; font-family: var(--gf-font); font-size: 0.875rem;
    height: var(--height-field);
    padding: 0 0.625rem 0 2.5rem;
    border: 1px solid var(--gf-border); border-radius: var(--gf-radius);
    background: var(--gf-surface); color: var(--gf-text);
    transition: border-color var(--gf-transition), box-shadow var(--gf-transition);
}
.ds-field {
    width: 100%; font-family: var(--gf-font); font-size: 0.875rem;
    height: var(--height-field);
    padding: 0 0.625rem;
    border: 1px solid var(--gf-border); border-radius: var(--gf-radius);
    background: var(--gf-surface); color: var(--gf-text);
    transition: border-color var(--gf-transition), box-shadow var(--gf-transition);
}
.gf-input--lg, .ds-field--lg {
    height: var(--height-field-lg);
    padding: 0 0.875rem;
    font-size: 0.875rem;
    box-shadow: var(--gf-shadow-input);
    border-color: #B8B8B8;
}
.gf-input--lg:focus, .ds-field--lg:focus { border-color: var(--gf-text); }
.gf-input:focus, .ds-field:focus { outline: none; border-color: var(--gf-primary); box-shadow: 0 0 0 3px var(--gf-primary-ring); }
.gf-input-icon { position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%); color: var(--gf-text-faint); font-size: 1rem; pointer-events: none; }
.gf-select {
    font-family: var(--gf-font); font-size: 0.8125rem;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--gf-border); border-radius: var(--gf-radius-sm);
    background: var(--gf-surface); color: var(--gf-text-secondary);
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.625rem center;
}
.gf-select:focus { outline: none; border-color: var(--gf-primary); box-shadow: 0 0 0 3px var(--gf-primary-ring); }

/* ── Data Table ── */
.gf-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--gf-radius-lg); border: 1px solid var(--gf-border-subtle); }
.gf-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.gf-table thead { background: var(--gf-surface-muted); }
.gf-table th {
    padding: 0.75rem 1rem; text-align: left; font-size: 0.6875rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em; color: var(--gf-text-muted);
    border-bottom: 1px solid var(--gf-border-subtle); white-space: nowrap;
}
.gf-table td { padding: 1rem; border-bottom: 1px solid var(--gf-border-subtle); color: var(--gf-text-secondary); vertical-align: middle; }
.gf-table tbody tr { transition: background var(--gf-transition); }
.gf-table tbody tr:hover { background: #fafafa; }
.gf-table tbody tr:last-child td { border-bottom: none; }

/* Sheet-style response table */
.gf-table-wrap--sheet {
    border-radius: var(--gf-radius-lg);
    overflow: auto;
    max-height: calc(100vh - 12rem);
}

.gf-sheet-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gf-border-subtle);
    background: var(--gf-surface-muted);
}

.gf-sheet-toolbar__hint {
    margin: 0;
    font-size: 0.75rem;
    color: var(--gf-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.gf-table--sheet {
    width: max-content;
    min-width: 100%;
    table-layout: fixed;
}

.gf-table--sheet th,
.gf-table--sheet td {
    border-right: 1px solid var(--gf-border-subtle);
    min-width: 9rem;
}

.gf-table--sheet th:last-child,
.gf-table--sheet td:last-child { border-right: none; }

.gf-table--sheet thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--gf-surface-muted);
}

.gf-table--sheet .gf-sheet-col--index {
    min-width: 2.5rem;
    max-width: 2.5rem;
    width: 2.5rem;
}

.gf-table--sheet .gf-sheet-col--meta { min-width: 10rem; }

.gf-table--sheet .gf-sheet-col--multi {
    min-width: 14rem;
}

.gf-table--sheet .gf-sheet-col--resizable {
    position: relative;
}

.gf-sheet-col-resizer {
    position: absolute;
    top: 0;
    right: 0;
    width: 0.375rem;
    height: 100%;
    cursor: col-resize;
    user-select: none;
    touch-action: none;
    z-index: 3;
}

.gf-sheet-col-resizer::after {
    content: '';
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    right: 0;
    width: 2px;
    border-radius: 1px;
    background: transparent;
    transition: background var(--gf-transition);
}

.gf-sheet-col--resizable:hover .gf-sheet-col-resizer::after,
body.gf-sheet-resizing .gf-sheet-col-resizer::after {
    background: var(--gf-primary);
}

body.gf-sheet-resizing {
    cursor: col-resize;
    user-select: none;
}

.gf-table--sheet .gf-sheet-cell--meta {
    font-size: 0.8125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gf-table--sheet .gf-sheet-cell {
    font-size: 0.8125rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: top;
}

.gf-table--sheet .gf-sheet-cell--multi {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.gf-sheet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    align-items: flex-start;
}

.gf-sheet-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
}

.gf-sheet-cell--links {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.gf-sheet-tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.125rem 0.5rem;
    border-radius: var(--gf-radius-sm);
    background: var(--gf-primary-soft);
    color: var(--gf-text);
    font-size: 0.75rem;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
}

.gf-table--sheet .gf-sheet-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--gf-primary);
    text-decoration: none;
    white-space: nowrap;
    word-break: break-all;
}

.gf-sheet-cell--multi .gf-sheet-link,
.gf-sheet-cell--links .gf-sheet-link {
    white-space: normal;
}

.gf-table--sheet .gf-sheet-link:hover { text-decoration: underline; }

.gf-table td.gf-table-actions { padding: 0.75rem 1rem; vertical-align: middle; }
.gf-table .gf-form-cell {
    min-width: 0;
    max-width: 12rem;
    width: 12rem;
}
.gf-table .gf-form-cell__title {
    font-weight: 500; color: var(--gf-text); line-height: 1.35;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gf-table .gf-form-cell__id {
    display: inline-flex; align-items: center; gap: 0.25rem;
    margin-top: 0.25rem; font-family: ui-monospace, monospace;
    font-size: 0.6875rem; color: var(--gf-text-muted);
    background: var(--gf-surface-muted); padding: 0.125rem 0.375rem;
    border-radius: 4px; max-width: 100%; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
}
.gf-table .gf-date-cell {
    white-space: nowrap;
    vertical-align: middle;
}
.gf-table .gf-date-cell__date {
    font-size: 0.875rem;
    color: var(--gf-text);
    line-height: 1.4;
}
.gf-table .gf-date-cell__time {
    font-size: 0.75rem;
    color: var(--gf-text-muted);
    line-height: 1.6;
    margin-top: 0.125rem;
}

/* Row actions — single line */
.gf-row-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.375rem;
    width: auto;
    margin-left: auto;
}
.gf-row-actions__form { margin: 0; flex-shrink: 0; }
.gf-row-actions__btn {
    width: auto;
    flex-shrink: 0;
    justify-content: center;
    gap: 0.3125rem;
    padding: 0.4375rem 0.5rem;
    font-size: 0.6875rem;
    line-height: 1.2;
    min-height: 2rem;
    white-space: nowrap;
}
.gf-row-actions__btn span { overflow: hidden; text-overflow: ellipsis; }
.gf-row-actions__btn i { font-size: 0.875rem; flex-shrink: 0; }
.gf-row-actions__form .gf-row-actions__btn { width: auto; }

@media (min-width: 1280px) {
    .gf-row-actions__btn { font-size: 0.75rem; padding: 0.4375rem 0.625rem; }
}

/* Mobile card actions */
.gf-table-card-actions .gf-row-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-left: 0;
}
.gf-table-card-actions {
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--gf-border-subtle);
}

.gf-table-cards { display: none; }
@media (max-width: 767px) {
    .gf-table-wrap .gf-table { display: none; }
    .gf-table-cards { display: flex; flex-direction: column; gap: 0.75rem; }
    .gf-table-card {
        background: var(--gf-surface); border: 1px solid var(--gf-border-subtle);
        border-radius: var(--gf-radius); padding: 1rem;
    }
    .gf-table-card-row { display: flex; justify-content: space-between; align-items: center; padding: 0.25rem 0; }
    .gf-table-card-label { font-size: 0.75rem; color: var(--gf-text-faint); font-weight: 500; }
    .gf-table-card-value { font-size: 0.875rem; color: var(--gf-text); }
    .gf-table-card-actions { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--gf-border-subtle); }
    .gf-table-card-actions .gf-row-actions { display: flex; flex-wrap: wrap; }
}

/* ── Empty State ── */
.gf-empty {
    text-align: center; padding: 3rem 1.5rem;
    display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.gf-empty-icon {
    width: 3.5rem; height: 3.5rem; border-radius: 50%;
    background: var(--gf-surface-muted); color: var(--gf-text-faint);
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.gf-empty-title { font-size: 1rem; font-weight: 600; color: var(--gf-text); }
.gf-empty-text { font-size: 0.875rem; color: var(--gf-text-muted); max-width: 24rem; }

/* ── Modal ── */
.gf-modal .modal-content { border: 1px solid var(--gf-border-subtle); border-radius: var(--gf-radius-lg); box-shadow: var(--gf-shadow-lg); overflow: hidden; }
.gf-modal .modal-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gf-border-subtle); background: var(--gf-surface); }
.gf-modal .modal-title { font-size: 1rem; font-weight: 600; color: var(--gf-text); }
.gf-modal .modal-body { padding: 0; }
.gf-modal .modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--gf-border-subtle); background: var(--gf-surface-muted); }

/* ── Pagination ── */
.gf-pagination { display: flex; justify-content: center; align-items: center; gap: 0.25rem; margin-top: 1.5rem; flex-wrap: wrap; }
.gf-pagination .page-link {
    font-family: var(--gf-font); font-size: 0.8125rem; font-weight: 500;
    padding: 0.5rem 0.75rem; border-radius: var(--gf-radius-sm);
    border: 1px solid var(--gf-border); color: var(--gf-text-secondary);
    background: var(--gf-surface); text-decoration: none;
    transition: all var(--gf-transition);
}
.gf-pagination .page-link:hover { background: var(--gf-surface-muted); border-color: #d4d4d4; color: var(--gf-text); }
.gf-pagination .page-item.active .page-link { background: var(--gf-primary); border-color: var(--gf-primary); color: #fff; }
.gf-pagination .page-item.disabled .page-link { opacity: 0.4; pointer-events: none; }

/* ── Sidebar Navigation ── */
.gf-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 45;
}
.gf-sidebar-overlay.open { display: block; }
.gf-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    width: var(--gf-sidebar-width);
    background: var(--gf-surface-sidebar);
    color: var(--gf-border);
    transform: translateX(-100%);
    transition: width 250ms cubic-bezier(0.4, 0, 0.2, 1), transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--gf-shadow-sidebar);
    overflow: hidden;
}
.gf-sidebar.open { transform: translateX(0); }
@media (min-width: 768px) {
    .gf-sidebar {
        transform: translateX(0);
        box-shadow: none;
    }
    .gf-sidebar-overlay { display: none !important; }
}
.gf-sidebar-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 0.75rem 0.5rem;
    flex-shrink: 0;
}
.gf-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
    padding: 0 0.5rem;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    overflow: hidden;
}
.gf-sidebar-brand-accent { color: var(--color-error); font-weight: 700; flex-shrink: 0; }
.gf-sidebar-brand-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity var(--gf-transition), width var(--gf-transition);
}
.gf-sidebar-brand-icon {
    width: 2rem; height: 2rem;
    background: var(--gf-primary);
    border-radius: var(--gf-radius);
    display: none;
    align-items: center; justify-content: center;
    color: #fff; font-size: 1rem;
    flex-shrink: 0;
}
.gf-sidebar-collapse {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--gf-border);
    cursor: pointer;
    border-radius: var(--gf-radius);
    flex-shrink: 0;
    transition: background var(--gf-transition), color var(--gf-transition);
}
.gf-sidebar-collapse:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.gf-sidebar-collapse i { font-size: 1rem; transition: transform var(--gf-transition); }
@media (min-width: 768px) { .gf-sidebar-collapse { display: inline-flex; } }
.gf-sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 0.75rem;
    overflow-y: auto;
    overflow-x: hidden;
}
.gf-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--gf-radius-lg);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gf-border);
    text-decoration: none;
    transition: background var(--gf-transition), color var(--gf-transition);
    white-space: nowrap;
}
.gf-sidebar-link i { font-size: 1.25rem; flex-shrink: 0; width: 1.25rem; text-align: center; }
.gf-sidebar-link-label {
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity var(--gf-transition);
}
.gf-sidebar-link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.gf-sidebar-link--active {
    background: #1E1E1E;
    color: #fff;
    font-weight: 500;
}
.gf-sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 0.75rem;
    flex-shrink: 0;
}
.gf-sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
}
.gf-sidebar-user-meta { min-width: 0; flex: 1; overflow: hidden; transition: opacity var(--gf-transition); }
.gf-sidebar-user-email {
    font-size: 0.75rem;
    color: var(--gf-text-faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gf-nav-avatar {
    width: 2rem; height: 2rem; border-radius: 50%;
    background: var(--gf-primary-soft); color: var(--gf-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 600; flex-shrink: 0;
}
.gf-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: var(--gf-border);
    cursor: pointer;
    border-radius: var(--gf-radius);
    flex-shrink: 0;
}
@media (min-width: 768px) { .gf-sidebar-close { display: none; } }

/* Collapsed sidebar — icons only (desktop) */
@media (min-width: 768px) {
    .gf-sidebar--collapsed {
        width: var(--gf-sidebar-width-collapsed);
    }
    .gf-sidebar--collapsed .gf-sidebar-head {
        flex-direction: column;
        align-items: center;
        padding: 1rem 0.5rem 0.5rem;
        gap: 0.75rem;
    }
    .gf-sidebar--collapsed .gf-sidebar-brand {
        justify-content: center;
        padding: 0;
        flex: none;
    }
    .gf-sidebar--collapsed .gf-sidebar-brand-accent,
    .gf-sidebar--collapsed .gf-sidebar-brand-text {
        display: none;
    }
    .gf-sidebar--collapsed .gf-sidebar-brand-icon {
        display: flex;
    }
    .gf-sidebar--collapsed .gf-sidebar-collapse {
        width: 2.25rem;
        height: 2.25rem;
    }
    .gf-sidebar--collapsed .gf-sidebar-collapse i {
        transform: rotate(180deg);
    }
    .gf-sidebar--collapsed .gf-sidebar-nav {
        padding: 1rem 0.5rem;
        align-items: center;
    }
    .gf-sidebar--collapsed .gf-sidebar-link {
        justify-content: center;
        width: 2.75rem;
        height: 2.75rem;
        padding: 0;
        gap: 0;
    }
    .gf-sidebar--collapsed .gf-sidebar-link-label,
    .gf-sidebar--collapsed .gf-sidebar-user-meta {
        display: none;
    }
    .gf-sidebar--collapsed .gf-sidebar-user {
        justify-content: center;
        padding: 0.5rem;
    }
    .gf-sidebar--collapsed .gf-sidebar-footer form .gf-sidebar-link {
        width: 2.75rem;
        margin: 0 auto;
    }
}

/* Legacy top nav — kept for mobile drawer compatibility */
.gf-nav { display: none; }

/* ── Form Builder ── */
.gf-builder {
    display: flex;
    flex: 1;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    background: var(--gf-surface-muted);
}
.gf-builder > .gf-drawer {
    min-height: 0;
    flex-shrink: 0;
}
.gf-builder-sidebar {
    width: 17rem; flex-shrink: 0; overflow-y: auto;
    background: var(--gf-surface); border-right: 1px solid var(--gf-border-subtle);
    padding: 1rem;
}
.gf-builder-sidebar--right { border-right: none; border-left: 1px solid var(--gf-border-subtle); }
.gf-builder-main {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 1rem 1.25rem;
}
.gf-builder-toolbar {
    flex-shrink: 0;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
    padding: 0.75rem 1rem; margin-bottom: 1rem;
    background: var(--gf-surface); border: 1px solid var(--gf-border-subtle);
    border-radius: var(--gf-radius-lg); box-shadow: var(--gf-shadow-xs);
}
.gf-builder-toolbar-actions {
    display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0;
}
.gf-builder-canvas {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--gf-surface); border: 1px solid var(--gf-border-subtle);
    border-radius: var(--gf-radius-lg);
    box-shadow: var(--gf-shadow-xs); transition: max-width var(--gf-transition);
}
.gf-builder-canvas-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2rem;
    -webkit-overflow-scrolling: touch;
}
.gf-builder-canvas-scroll.scrollbar-hidden::-webkit-scrollbar { display: none; }
.gf-builder-canvas-scroll.scrollbar-hidden { -ms-overflow-style: none; scrollbar-width: none; }
.gf-builder-search {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 0.75rem; margin-bottom: 1rem;
    background: var(--gf-surface-muted); border: 1px solid var(--gf-border-subtle);
    border-radius: var(--gf-radius-sm);
}
.gf-builder-search input { border: none; background: transparent; flex: 1; font-size: 0.8125rem; outline: none; font-family: var(--gf-font); }
.gf-field-palette-label { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gf-text-faint); margin: 1rem 0 0.5rem; }
.gf-field-item {
    display: flex; align-items: center; gap: 0.625rem;
    padding: 0.625rem 0.75rem; border-radius: var(--gf-radius-sm);
    cursor: grab; transition: background var(--gf-transition), box-shadow var(--gf-transition);
    border: 1px solid transparent;
}
.gf-field-item:hover { background: var(--gf-surface-muted); border-color: var(--gf-border-subtle); }
.gf-field-item:active { cursor: grabbing; }
.gf-builder-mobile-toggle { display: flex; }
@media (min-width: 768px) { .gf-builder-mobile-toggle { display: none; } }

/* Mobile drawer overlay */
.gf-drawer-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4);
    z-index: 60; opacity: 0; transition: opacity 200ms;
}
.gf-drawer-overlay.open { display: block; opacity: 1; }

/* Mobile drawer (off-canvas by default) */
.gf-drawer {
    position: fixed; top: 0; bottom: 0; width: 17rem; max-width: 85vw;
    background: var(--gf-surface); z-index: 70; overflow-y: auto;
    transform: translateX(-100%); transition: transform 250ms cubic-bezier(0.4,0,0.2,1);
    box-shadow: var(--gf-shadow-lg); padding: 1rem;
}
.gf-drawer--right { right: 0; left: auto; transform: translateX(100%); }
.gf-drawer.open { transform: translateX(0); }
.gf-drawer-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--gf-border-subtle); }
.gf-drawer-title { font-size: 0.875rem; font-weight: 600; }

/* Desktop: sidebars visible in flex layout */
@media (min-width: 768px) {
    .gf-drawer.gf-drawer--sidebar,
    .gf-drawer.gf-drawer--sidebar-right {
        position: relative;
        top: auto; bottom: auto; left: auto; right: auto;
        transform: none !important;
        box-shadow: none;
        z-index: auto;
        width: 17rem;
        max-width: none;
        flex-shrink: 0;
        min-height: 0;
        max-height: 100%;
        display: block !important;
        padding: 1rem;
        overflow-y: auto;
    }
    .gf-drawer.gf-drawer--sidebar {
        border-right: 1px solid var(--gf-border-subtle);
    }
    .gf-drawer.gf-drawer--sidebar-right {
        border-left: 1px solid var(--gf-border-subtle);
    }
    .gf-drawer-header--mobile { display: none; }
    .gf-drawer-overlay { display: none !important; }
}
@media (max-width: 767px) {
    .gf-drawer--sidebar-right .gf-drawer-toc-header h3 { display: none; }
}

/* ── Loading ── */
.gf-spinner {
    width: 2rem; height: 2rem; border: 2px solid var(--gf-border);
    border-top-color: var(--gf-primary); border-radius: 50%;
    animation: gf-spin 0.6s linear infinite;
}
@keyframes gf-spin { to { transform: rotate(360deg); } }
.gf-loading-overlay { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; padding: 3rem; }
.gf-loading-text { font-size: 0.875rem; color: var(--gf-text-muted); }

/* ── Animations ── */
@keyframes gf-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.gf-animate-in { animation: gf-fade-in 0.35s ease-out both; }
.gf-animate-in-delay-1 { animation-delay: 0.05s; }
.gf-animate-in-delay-2 { animation-delay: 0.1s; }
.gf-animate-in-delay-3 { animation-delay: 0.15s; }
.gf-animate-in-delay-4 { animation-delay: 0.2s; }

/* ── Utilities ── */
.text-primary { color: var(--gf-primary) !important; }
.gf-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-mono { font-family: ui-monospace, monospace; font-size: 0.8125rem; }
.gf-divider { height: 1px; background: var(--gf-border-subtle); margin: 1rem 0; }

/* ── Recent forms list ── */
.gf-recent-item {
    display: flex; align-items: center; gap: 0.875rem;
    padding: 0.875rem 1rem; border-radius: var(--gf-radius-sm);
    transition: background var(--gf-transition); text-decoration: none; color: inherit;
}
.gf-recent-item:hover { background: var(--gf-surface-muted); }
.gf-recent-icon {
    width: 2.25rem; height: 2.25rem; border-radius: var(--gf-radius-sm);
    background: var(--gf-primary-soft); color: var(--gf-primary);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.gf-recent-meta { flex: 1; min-width: 0; }
.gf-recent-title { font-size: 0.875rem; font-weight: 500; color: var(--gf-text); }
.gf-recent-date {
    font-size: 0.75rem;
    color: var(--gf-text-faint);
}
.gf-recent-item .gf-recent-date,
.gf-recent-item:hover .gf-recent-date,
.gf-recent-item:visited .gf-recent-date,
.gf-recent-item .gf-recent-date__sep {
    color: var(--gf-text-faint);
}
.gf-recent-item .gf-recent-responses,
.gf-recent-item:hover .gf-recent-responses,
.gf-recent-item:visited .gf-recent-responses,
.gf-recent-item:active .gf-recent-responses {
    color: var(--gf-text-faint) !important;
}

/* ── Quick actions ── */
.gf-quick-actions { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .gf-quick-actions { grid-template-columns: repeat(2, 1fr); } }
.gf-quick-action {
    display: flex; align-items: center; gap: 0.875rem;
    padding: 1rem 1.25rem; border-radius: var(--gf-radius);
    border: 1px solid var(--gf-border-subtle); background: var(--gf-surface);
    text-decoration: none; color: inherit;
    transition: all var(--gf-transition);
}
.gf-quick-action:hover { border-color: var(--gf-primary); box-shadow: var(--gf-shadow-sm); transform: translateY(-1px); }
.gf-quick-action-icon { font-size: 1.25rem; color: var(--gf-primary); }

/* Preserve existing builder functionality classes */
.section-highlight { color: var(--gf-text-faint); }
.drag-over { background-color: var(--gf-primary-soft) !important; }
.dragging { opacity: 0.4; }
.drag-ghost {
    opacity: 0.85; pointer-events: none; position: absolute; z-index: 9999;
    border: 1px dashed var(--gf-primary); background: white;
    box-shadow: var(--gf-shadow);
}
.scrollbar-hidden::-webkit-scrollbar { display: none; }
.scrollbar-hidden { -ms-overflow-style: none; scrollbar-width: none; }

[contenteditable="true"]:focus { outline: none; border-bottom: 1px dashed var(--gf-text-faint); }

/* Setting toggle */
.gf-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    padding: 0.25rem 0.5rem;
    border-radius: var(--gf-radius);
}
.gf-toggle__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gf-text-secondary);
    white-space: nowrap;
}
.gf-toggle__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.gf-toggle__track {
    position: relative;
    width: 2.25rem;
    height: 1.25rem;
    background: #d1d5db;
    border-radius: 999px;
    transition: background var(--gf-transition);
    flex-shrink: 0;
}
.gf-toggle__track::after {
    content: '';
    position: absolute;
    top: 0.125rem;
    left: 0.125rem;
    width: 1rem;
    height: 1rem;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    transition: transform var(--gf-transition);
}
.gf-toggle__input:checked + .gf-toggle__track {
    background: var(--gf-primary);
}
.gf-toggle__input:checked + .gf-toggle__track::after {
    transform: translateX(1rem);
}
.gf-toggle__input:focus-visible + .gf-toggle__track {
    box-shadow: 0 0 0 3px var(--gf-primary-ring);
}

/* Custom checkbox (preserved) */
.custom-checkbox {
    appearance: none; -webkit-appearance: none;
    width: 1rem; height: 1rem; min-width: 1rem; min-height: 1rem;
    border: 2px solid #d1d5db; border-radius: 0.25rem;
    outline: none; cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin: 0; padding: 0; display: inline-block; vertical-align: middle;
}
.custom-checkbox:hover { border-color: #9ca3af; box-shadow: 0 0 0 3px var(--gf-primary-ring); }
.custom-checkbox:checked { background-color: white; border-color: var(--gf-primary); position: relative; }
.custom-checkbox:checked::before {
    content: "✓"; position: absolute; color: var(--gf-primary);
    font-size: 0.775rem; top: 50%; left: 50%; transform: translate(-50%, -50%); font-weight: bold;
}
.custom-checkbox:focus-visible { box-shadow: 0 0 0 3px var(--gf-primary-ring); }

/* Form builder field cards */
.form-field {
    background: var(--gf-surface) !important;
    border: 1px solid var(--gf-border-subtle) !important;
    border-radius: var(--gf-radius-lg) !important;
    padding: 1.25rem !important;
    margin-bottom: 1.25rem !important;
    transition: box-shadow var(--gf-transition), border-color var(--gf-transition);
}
.form-field:hover { box-shadow: var(--gf-shadow-sm); }
.form-field .field-input:focus { border-color: var(--gf-primary) !important; box-shadow: 0 0 0 3px var(--gf-primary-ring); outline: none; }
.form-section-header { background: var(--gf-surface-muted) !important; border: 1px solid var(--gf-border-subtle) !important; }

/* ── Dynamic form fields (Frontend-System Forms pattern) ── */
.gf-public-form .field-input,
.gf-form-preview .field-input,
#builder-canvas .field-input {
    font-family: var(--gf-font);
    color: var(--gf-text);
    border-color: var(--gf-border);
    border-radius: var(--gf-radius);
    transition: border-color var(--gf-transition), box-shadow var(--gf-transition);
}
.gf-public-form label,
.gf-form-preview label,
#builder-canvas .form-field > label {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--gf-text);
}
.gf-public-form .form-field,
.gf-form-preview .form-field {
    margin-bottom: 0;
}
.gf-public-form .form-field + .form-field,
.gf-form-preview .form-field + .form-field,
.gf-public-form .space-y-6 > * + *,
.gf-form-preview .space-y-6 > * + * {
    margin-top: 1.5rem;
}
.gf-form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
}
.gf-form-nav .gf-btn { min-width: 0; }

/* Mobile form layout — real devices (Frontend-System ≤767px) */
@media (max-width: 767px) {
    .gf-public-form,
    .gf-form-preview {
        padding: 1rem;
    }
    .gf-public-form-inner,
    .gf-form-preview-inner {
        max-width: 100%;
    }
    .gf-public-form-header h1,
    .gf-form-preview h1 {
        font-size: 1.5rem;
        font-weight: 400;
        line-height: 1.4;
        letter-spacing: 0;
        margin-bottom: 0.5rem;
    }
    .gf-public-form-header p,
    .gf-form-preview .text-slateSubtle {
        font-size: 0.875rem;
        line-height: 1.6;
    }
    .gf-public-form .form-section > .bg-white-500,
    .gf-form-preview .form-section > .bg-white-500 {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    .gf-public-form .form-section > .bg-white-500 h2,
    .gf-form-preview .form-section > .bg-white-500 h2 {
        font-size: 1.125rem;
        font-weight: 500;
        line-height: 1.5;
    }
    .gf-public-form .form-field,
    .gf-form-preview .form-field {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
        border-radius: var(--gf-radius-lg) !important;
    }
    .gf-public-form .form-field > label,
    .gf-form-preview .form-field > label {
        font-size: 0.875rem;
        font-weight: 500;
        margin-bottom: 0.5rem;
    }
    .gf-public-form .field-input,
    .gf-form-preview .field-input,
    .gf-public-form .country-code-select,
    .gf-form-preview .country-code-select,
    .gf-public-form .primary-field > .flex.h-11,
    .gf-form-preview .primary-field > .flex.h-11 {
        min-height: var(--height-touch-min);
        height: var(--height-touch-min);
        font-size: 1rem;
        line-height: 1.5;
    }
    .gf-public-form textarea.field-input,
    .gf-form-preview textarea.field-input {
        min-height: 5rem;
        height: auto;
        padding-top: 0.625rem;
        padding-bottom: 0.625rem;
    }
    .gf-public-form .grid-cols-3,
    .gf-form-preview .grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .gf-public-form .primary-field,
    .gf-form-preview .primary-field,
    .gf-public-form .additional-field,
    .gf-form-preview .additional-field {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    .gf-public-form .primary-field > .w-full,
    .gf-form-preview .primary-field > .w-full,
    .gf-public-form .additional-field > .w-full,
    .gf-form-preview .additional-field > .w-full {
        width: 100% !important;
    }
    .gf-public-form .primary-field.flex.items-center,
    .gf-form-preview .primary-field.flex.items-center {
        flex-wrap: wrap;
    }
    .gf-public-form .add-field-btn,
    .gf-form-preview .add-field-btn,
    .gf-public-form .remove-field-btn,
    .gf-form-preview .remove-field-btn,
    #builder-canvas.mobile-preview .add-field-btn,
    #builder-canvas.mobile-preview .remove-field-btn {
        width: 100% !important;
        height: var(--height-touch-min) !important;
        margin-top: 0.5rem;
    }
    .gf-public-form .country-code-select,
    .gf-form-preview .country-code-select {
        width: 7.5rem;
        min-width: 7.5rem;
        flex-shrink: 0;
    }
    .gf-public-form img.h-40,
    .gf-form-preview img.h-40 {
        height: 8rem;
        border-radius: var(--gf-radius-lg);
    }
    .gf-form-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .gf-form-nav .gf-btn {
        width: 100% !important;
        justify-content: center;
        height: var(--height-touch-min);
        font-size: 0.875rem;
        font-weight: 500;
    }
    .gf-public-form .choices__inner,
    .gf-form-preview .choices__inner {
        min-height: var(--height-touch-min);
        font-size: 1rem;
    }
    .gf-public-form .file-upload-container,
    .gf-form-preview .file-upload-container {
        padding: 1rem;
        transition: border-color 0.2s ease, background-color 0.2s ease;
    }

    .gf-public-form .file-upload-container.gf-file-selected,
    .gf-form-preview .file-upload-container.gf-file-selected {
        border-color: var(--color-primary);
        background-color: rgba(104, 111, 253, 0.04);
    }

    .gf-public-form .gf-file-selected .upload-text,
    .gf-form-preview .gf-file-selected .upload-text {
        color: var(--color-primary);
        font-weight: 500;
    }

    .gf-builder-canvas .file-field-settings .file-type-select {
        max-width: 100%;
    }

    .gf-builder-canvas .link-field-preview i,
    .gf-public-form .link-field-preview i,
    .gf-form-preview .link-field-preview i {
        font-size: 1rem;
    }
    .gf-public-form .sm\:flex-row,
    .gf-form-preview .sm\:flex-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .gf-public-form .sm\:w-1\/2,
    .gf-form-preview .sm\:w-1\/2 {
        width: 100% !important;
    }
    .gf-public-form .sm\:items-center,
    .gf-form-preview .sm\:items-center {
        align-items: stretch !important;
    }
    .gf-public-form .sm\:gap-2,
    .gf-form-preview .sm\:gap-2 {
        gap: 0.75rem !important;
    }
    .gf-public-form .sm\:mt-0,
    .gf-form-preview .sm\:mt-0 {
        margin-top: 0.75rem !important;
    }
}

/* ── Builder mobile preview — simulates real mobile device ── */
.gf-builder-main.gf-builder-main--mobile-preview {
    background: #E8E8E8;
    justify-content: center;
}
.gf-builder-main.gf-builder-main--mobile-preview .gf-builder-canvas {
    flex: 0 1 auto;
    align-self: center;
    width: 100%;
    max-width: 390px;
    max-height: calc(100% - 0.5rem);
    margin: 0 auto;
    border: 10px solid #1A1A1A;
    border-radius: 2.5rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    overflow: hidden;
    transition: max-width var(--gf-transition), border-radius var(--gf-transition), box-shadow var(--gf-transition);
}
#builder-canvas.mobile-preview {
    position: relative;
    background: var(--gf-surface);
}
#builder-canvas.mobile-preview::before {
    content: '';
    display: block;
    height: 2rem;
    background: #1A1A1A;
    flex-shrink: 0;
}
#builder-canvas.mobile-preview::after {
    content: '';
    position: absolute;
    top: 0.625rem;
    left: 50%;
    transform: translateX(-50%);
    width: 5rem;
    height: 0.375rem;
    background: #333333;
    border-radius: 9999px;
    z-index: 2;
    pointer-events: none;
}
#builder-canvas.mobile-preview .gform-draft-status--canvas {
    top: 2.25rem;
}
#builder-canvas.mobile-preview .gf-builder-canvas-scroll {
    padding: 1rem;
    max-width: 100%;
    overflow-x: hidden;
}
#builder-canvas.mobile-preview .form-title {
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    margin-bottom: 0.75rem !important;
}
#builder-canvas.mobile-preview .form-description {
    font-size: 0.875rem !important;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem !important;
}
#builder-canvas.mobile-preview .form-field {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
}
#builder-canvas.mobile-preview .form-field > label,
#builder-canvas.mobile-preview .form-field label.block {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
#builder-canvas.mobile-preview .field-input,
#builder-canvas.mobile-preview .country-code-select,
#builder-canvas.mobile-preview .primary-field > .flex.h-11,
#builder-canvas.mobile-preview select.field-input {
    min-height: var(--height-touch-min) !important;
    height: var(--height-touch-min) !important;
    font-size: 1rem !important;
}
#builder-canvas.mobile-preview textarea.field-input {
    min-height: 5rem;
    height: auto !important;
    font-size: 1rem !important;
}
#builder-canvas.mobile-preview .grid-cols-3 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
}
#builder-canvas.mobile-preview .primary-field,
#builder-canvas.mobile-preview .additional-field {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
}
#builder-canvas.mobile-preview .primary-field.flex.items-center {
    flex-wrap: wrap;
}
#builder-canvas.mobile-preview .form-section-header {
    padding: 0.75rem !important;
    margin-bottom: 1rem !important;
}
#builder-canvas.mobile-preview .section-title {
    font-size: 1.125rem !important;
    font-weight: 500;
    line-height: 1.5;
}
#builder-canvas.mobile-preview #cover-photo-preview img,
#builder-canvas.mobile-preview img.h-40 {
    height: 8rem !important;
    border-radius: var(--gf-radius-lg);
}
#builder-canvas.mobile-preview .choices__inner {
    min-height: var(--height-touch-min);
    font-size: 1rem;
}
/* Override Tailwind viewport breakpoints inside mobile preview frame */
#builder-canvas.mobile-preview .sm\:flex-row,
#builder-canvas.mobile-preview .sm\:items-center {
    flex-direction: column !important;
    align-items: stretch !important;
}
#builder-canvas.mobile-preview .sm\:w-1\/2 {
    width: 100% !important;
}
#builder-canvas.mobile-preview .sm\:text-3xl {
    font-size: 1.5rem !important;
}
#builder-canvas.mobile-preview .sm\:h-52 {
    height: 8rem !important;
}
#builder-canvas.mobile-preview .sm\:mt-0 {
    margin-top: 0.75rem !important;
}
#builder-canvas.mobile-preview .sm\:mb-2 {
    margin-bottom: 0.5rem !important;
}
#builder-canvas.mobile-preview .sm\:gap-2 {
    gap: 0.75rem !important;
}

/* Pagination overrides for Laravel default */
.gf-pagination nav { display: flex; justify-content: center; }
.gf-pagination .pagination { margin: 0; gap: 0.25rem; }
.gf-pagination .page-link { border-radius: var(--gf-radius-sm) !important; font-family: var(--gf-font); font-size: 0.8125rem; }
.gf-pagination .page-item.active .page-link { background: var(--gf-primary) !important; border-color: var(--gf-primary) !important; }

.choices__inner {
    min-height: 44px; border: 1px solid var(--gf-border) !important;
    border-radius: var(--gf-radius-sm) !important; background-color: #fff;
    padding: 0 12px; font-size: 0.875rem; color: var(--gf-text);
}
.choices__list--multiple .choices__item { background-color: var(--gf-primary) !important; border: none; color: #fff; border-radius: 0.25rem; }
.choices__list--dropdown { border: 1px solid var(--gf-border); border-radius: var(--gf-radius-sm); }
.choices__list--dropdown .choices__item--selectable.is-highlighted { background-color: var(--gf-primary-soft); }

/* ── GForm Dialog (#191919 premium) ── */
body.gform-dialog-open { overflow: hidden; }
.gform-dialog {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem; pointer-events: none; opacity: 0;
    transition: opacity 0.25s ease;
}
.gform-dialog.is-open { pointer-events: auto; opacity: 1; }
.gform-dialog__backdrop {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}
.gform-dialog__panel {
    position: relative; width: 100%; max-width: 420px;
    background: #191919; color: #f5f5f5;
    border-radius: 16px; padding: 1.75rem;
    font-family: var(--gf-font);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255,255,255,0.06);
    transform: scale(0.95) translateY(8px);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gform-dialog.is-open .gform-dialog__panel { transform: scale(1) translateY(0); }
.gform-dialog__icon {
    width: 2.75rem; height: 2.75rem; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; margin-bottom: 1rem;
}
.gform-dialog__icon--info { background: rgba(37, 99, 235, 0.15); color: #60a5fa; }
.gform-dialog__icon--success { background: rgba(22, 163, 74, 0.15); color: #4ade80; }
.gform-dialog__icon--warning { background: rgba(217, 119, 6, 0.15); color: #fbbf24; }
.gform-dialog__icon--error { background: rgba(220, 38, 38, 0.15); color: #f87171; }
.gform-dialog__icon--question { background: rgba(104, 111, 253, 0.15); color: #686FFD; }
.gform-dialog__title {
    font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em;
    color: #ffffff; margin: 0 0 0.5rem; line-height: 1.3;
}
.gform-dialog__message {
    font-size: 0.875rem; color: #a3a3a3; line-height: 1.5; margin: 0 0 1.25rem;
}
.gform-dialog__input {
    width: 100%; padding: 0.625rem 0.875rem;
    background: #262626; border: 1px solid #404040;
    border-radius: 8px; color: #f5f5f5; font-family: var(--gf-font);
    font-size: 0.875rem; margin-bottom: 1.25rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.gform-dialog__input:focus { outline: none; border-color: #686FFD; box-shadow: 0 0 0 3px rgba(104, 111, 253, 0.2); }
.gform-dialog__actions { display: flex; gap: 0.5rem; justify-content: flex-end; flex-wrap: wrap; }
.gform-dialog__btn {
    font-family: var(--gf-font); font-size: 0.8125rem; font-weight: 500;
    padding: 0.5rem 1rem; border-radius: 8px; border: none; cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}
.gform-dialog__btn:active { transform: scale(0.97); }
.gform-dialog__btn--primary { background: #686FFD; color: #fff; }
.gform-dialog__btn--primary:hover { background: #5F65E6; }
.gform-dialog__btn--secondary { background: #262626; color: #e5e5e5; border: 1px solid #404040; }
.gform-dialog__btn--secondary:hover { background: #333; }
.gform-dialog__btn--ghost { background: transparent; color: #a3a3a3; }
.gform-dialog__btn--ghost:hover { background: #262626; color: #e5e5e5; }
.gform-dialog__btn--danger { background: #dc2626; color: #fff; }
.gform-dialog__btn--danger:hover { background: #b91c1c; }

/* ── Toasts ── */
.gform-toast-container {
    position: fixed; top: 1rem; right: 1rem; z-index: 10000;
    display: flex; flex-direction: column; gap: 0.5rem;
    max-width: min(380px, calc(100vw - 2rem)); pointer-events: none;
}
.gform-toast {
    display: flex; align-items: flex-start; gap: 0.625rem;
    padding: 0.875rem 1rem; border-radius: 12px;
    background: #191919; color: #f5f5f5;
    font-family: var(--gf-font); font-size: 0.8125rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06);
    pointer-events: auto; opacity: 0; transform: translateX(1rem);
    transition: opacity 0.3s, transform 0.3s;
}
.gform-toast.is-visible { opacity: 1; transform: translateX(0); }
.gform-toast__icon { flex-shrink: 0; font-size: 1.125rem; margin-top: 0.1rem; }
.gform-toast--info .gform-toast__icon { color: #60a5fa; }
.gform-toast--success .gform-toast__icon { color: #4ade80; }
.gform-toast--warning .gform-toast__icon { color: #fbbf24; }
.gform-toast--error .gform-toast__icon { color: #f87171; }
.gform-toast__text { flex: 1; line-height: 1.4; }
.gform-toast__close {
    background: none; border: none; color: #737373; cursor: pointer;
    padding: 0; font-size: 0.875rem; flex-shrink: 0;
}
.gform-toast__close:hover { color: #e5e5e5; }

/* Draft save indicator — top-right of builder canvas, no layout shift */
.gform-draft-status {
    display: inline-flex; align-items: center; gap: 0.375rem;
    font-size: 0.75rem; color: var(--gf-text-muted);
    pointer-events: none; white-space: nowrap;
}
.gform-draft-status--canvas {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    background: var(--gf-surface);
    border: 1px solid var(--gf-border-subtle);
    border-radius: var(--gf-radius-sm);
    padding: 0.3125rem 0.625rem;
    box-shadow: var(--gf-shadow-xs);
    transition: opacity var(--gf-transition), visibility var(--gf-transition);
}
.gform-draft-status--canvas.hidden {
    display: inline-flex;
    visibility: hidden;
    opacity: 0;
}
.gform-draft-status--canvas:not(.hidden) {
    visibility: visible;
    opacity: 1;
}
@media (max-width: 767px) {
    .gform-draft-status--canvas {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }
}
.gform-draft-status--saving { color: var(--gf-warning); }
.gform-draft-status--saved { color: var(--gf-success); }
.gform-draft-status--error { color: var(--gf-danger); }

/* ── Auth layout (Frontend-System Auth pattern) ── */
.gf-auth-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--gf-surface-muted); }
@media (min-width: 768px) { .gf-auth-page { flex-direction: row; } }
.gf-auth-hero {
    display: none;
    flex: 1;
    background: var(--gf-text);
    color: #fff;
    padding: 3rem;
    flex-direction: column;
    justify-content: center;
}
@media (min-width: 768px) { .gf-auth-hero { display: flex; } }
.gf-auth-hero-title { font-size: 2.25rem; font-weight: 400; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 1rem; }
.gf-auth-hero-text { font-size: 1rem; color: var(--gf-text-faint); line-height: 1.6; max-width: 24rem; }
.gf-auth-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: var(--gf-surface);
}
.gf-auth-form-wrap { width: 100%; max-width: 27rem; }
.gf-auth-logo { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem; font-weight: 700; font-size: 1.125rem; color: var(--gf-text); text-decoration: none; }
.gf-auth-logo-accent { color: var(--color-error); }
.gf-auth-title { font-size: 1.125rem; font-weight: 400; color: var(--gf-text); margin-bottom: 0.5rem; line-height: 1.5; }
.gf-auth-subtitle { font-size: 0.875rem; color: var(--gf-text-muted); margin-bottom: 1.5rem; line-height: 1.6; }
.gf-auth-field { margin-bottom: 1rem; }
.gf-auth-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--gf-text); margin-bottom: 0.5rem; }
.gf-auth-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 1.5rem; }
.gf-auth-link { font-size: 0.875rem; color: var(--gf-text-muted); text-decoration: none; }
.gf-auth-link:hover { color: var(--gf-text); text-decoration: underline; }
.gf-auth-checkbox { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--gf-text-muted); cursor: pointer; }
.gf-auth-checkbox input[type="checkbox"] {
    width: 1rem; height: 1rem;
    border: 1px solid var(--gf-border);
    border-radius: 3px;
    accent-color: var(--gf-primary);
}
.gf-auth-error { font-size: 0.75rem; color: var(--gf-danger); margin-top: 0.5rem; line-height: 1.6; }
.gf-auth-status { font-size: 0.875rem; color: var(--gf-success); margin-bottom: 1rem; }

/* ── Form builder rich-text editors ── */
.gf-form-header-editor {
    position: relative;
}

.gf-rich-editor {
    position: relative;
}

.gf-html-editor.ql-container.ql-snow {
    border: none;
    font-family: inherit;
}

.gf-html-editor.ql-container > .ql-editor {
    padding: 0.25rem 0;
    line-height: 1.5;
}

.gf-html-editor.ql-container > .ql-editor.ql-blank::before {
    color: var(--gf-text-faint, #94a3b8);
    font-style: normal;
    left: 0;
    right: 0;
}

.gf-html-editor--title.ql-container > .ql-editor {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--gf-text, #1e293b);
    min-height: 2.5rem;
}

.gf-html-editor--title.ql-container > .ql-editor strong,
.gf-html-editor--title.ql-container > .ql-editor b {
    font-weight: 700;
}

.gf-html-editor--description.ql-container > .ql-editor {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gf-text-muted, #64748b);
    min-height: 3rem;
    padding: 0.5rem 0;
}

.gf-html-editor--description.ql-container > .ql-editor strong,
.gf-html-editor--description.ql-container > .ql-editor b {
    font-weight: 700;
}

.gf-rt-toolbar--editor {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.125rem;
    margin-bottom: 0.375rem;
    padding: 0.25rem 0.375rem;
    background: var(--gf-surface, #fff);
    border: 1px solid var(--gf-border, #e8e8e8);
    border-radius: var(--gf-radius-lg, 0.625rem);
    box-shadow: var(--gf-shadow-sm, 0 1px 3px rgba(15, 23, 42, 0.08));
    width: fit-content;
    max-width: 100%;
    z-index: 5;
}

.gf-rt-toolbar--editor.is-visible {
    display: flex;
}

.gf-rt-toolbar--editor .ql-formats {
    margin-right: 0.25rem;
}

.gf-rt-toolbar--editor .ql-formats:last-child {
    margin-right: 0;
}

.gf-rt-toolbar--editor button {
    width: 1.75rem;
    height: 1.75rem;
    padding: 0.125rem;
    border-radius: var(--gf-radius, 0.375rem);
}

.gf-rt-toolbar--editor button:hover,
.gf-rt-toolbar--editor button.ql-active {
    color: var(--gf-primary, #e11d48);
}

.gf-rt-toolbar--editor .ql-stroke {
    stroke: currentColor;
}

.gf-rt-toolbar--editor .ql-fill {
    fill: currentColor;
}

.gf-rich-editor.is-focused .gf-html-editor.ql-container > .ql-editor {
    outline: none;
}

.gf-cover-photo-wrap img {
    display: block;
    width: 100%;
    height: 10rem;
    object-fit: cover;
    border-radius: var(--gf-radius-xl, 0.75rem);
    background: var(--gf-surface-muted, #f8fafc);
}

@media (min-width: 640px) {
    .gf-cover-photo-wrap img {
        height: 13rem;
    }
}

/* ── Public form microsite (Viral Pitch) ── */
.gf-microsite-body {
    background: var(--color-page);
    color: var(--gf-text);
}

.gf-microsite-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 90% 60% at 50% -10%, var(--color-primary-soft), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 100%, rgba(224, 36, 36, 0.05), transparent 60%),
        var(--color-page);
}

.gf-microsite-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background:#191919;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gf-border);
}

.gf-microsite-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 52rem;
    margin: 0 auto;
    padding: 0.875rem 1rem;
}

@media (min-width: 640px) {
    .gf-microsite-header-inner {
        padding: 1rem 1.5rem;
    }
}

.gf-microsite-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity var(--gf-transition);
}

.gf-microsite-logo:hover {
    opacity: 0.85;
}

.gf-microsite-logo img {
    display: block;
    height: 1.75rem;
    width: auto;
    max-width: 9rem;
    object-fit: contain;
}

@media (min-width: 640px) {
    .gf-microsite-logo img {
        height: 2rem;
        max-width: 10.5rem;
    }
}

.gf-microsite-preview-badge {
    flex-shrink: 0;
}

.gf-microsite-content {
    flex: 1;
    width: 100%;
    max-width: 52rem;
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
}

@media (min-width: 640px) {
    .gf-microsite-content {
        padding: 2rem 1.5rem 2.5rem;
    }
}

.gf-microsite-footer {
    padding: 1rem 1.5rem 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--gf-text-muted);
}

.gf-microsite-footer a {
    color: var(--gf-primary);
    font-weight: 500;
    text-decoration: none;
}

.gf-microsite-footer a:hover {
    color: var(--gf-primary-hover);
    text-decoration: underline;
}

.gf-public-form-card {
    position: relative;
    background: var(--gf-surface);
    border: 1px solid var(--gf-border);
    border-radius: var(--gf-radius-xl);
    box-shadow: var(--gf-shadow-sm);
    padding: 1.5rem;
    overflow: hidden;
}

.gf-public-form-card::before,
.gf-public-form-card::after {
    content: '';
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    border-color: var(--color-error);
    border-style: solid;
    pointer-events: none;
}

.gf-public-form-card::before {
    top: 0.875rem;
    left: 0.875rem;
    border-width: 2px 0 0 2px;
}

.gf-public-form-card::after {
    right: 0.875rem;
    bottom: 0.875rem;
    border-width: 0 2px 2px 0;
}

/* Social field columns — keep aligned when one side shows an error */
.gf-field-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gf-field-col .error-message:not(.hidden) {
    display: block;
}

.gf-select-wrap select.field-input {
    width: 100%;
}

.gf-select-preselected .gf-select-caret {
    display: none;
}

.gf-select-preselected select:disabled {
    cursor: default;
    opacity: 1;
    color: var(--gf-text);
    background: var(--gf-surface-raised);
    padding-right: 0.75rem;
}

@media (min-width: 640px) {
    .gf-public-form-card {
        padding: 2rem 2.25rem;
    }
}

.gf-microsite-content .gf-status-page {
    min-height: auto;
    padding: 2rem 0;
    background: transparent;
}

.gf-microsite-content .gf-form-preview {
    min-height: auto;
    padding: 0;
}

.gf-microsite-content .gf-form-preview-inner {
    max-width: none;
}

/* ── Public form pages ── */
.gf-public-form { min-height: auto; background: transparent; color: var(--gf-text); padding: 0; }
.gf-public-form-inner { max-width: none; margin: 0; }
.gf-public-form-header h1 { font-size: 1.875rem; font-weight: 400; line-height: 1.4; color: var(--gf-text); margin-bottom: 0.5rem; }
.gf-public-form-header p { font-size: 0.875rem; color: var(--gf-text-muted); line-height: 1.6; }
.gf-public-form-title { font-size: 1.875rem; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; color: var(--gf-text); margin-bottom: 0.625rem; }
.gf-public-form-title p { margin: 0; }
.gf-public-form-title strong,
.gf-public-form-title b { font-weight: 700; }
.gf-public-form-description { font-size: 0.9375rem; color: var(--gf-text-muted); line-height: 1.65; }
.gf-public-form-description p { margin: 0 0 0.5rem; }
.gf-public-form-description strong,
.gf-public-form-description b { font-weight: 700; }
.gf-public-form-description p:last-child { margin-bottom: 0; }
.gf-alert { padding: 0.875rem 1rem; border-radius: var(--gf-radius); font-size: 0.875rem; line-height: 1.6; margin-bottom: 1.5rem; }
.gf-alert--warning { background: var(--gf-warning-soft); border: 1px solid var(--gf-warning); color: var(--gf-text); }
.gf-alert--error { background: var(--gf-danger-soft); border: 1px solid var(--gf-danger); color: var(--gf-danger); }
.gf-alert--success { background: var(--gf-success-soft); border: 1px solid var(--gf-success); color: var(--gf-text); }
.gf-status-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: var(--gf-surface-muted); }
.gf-status-card { background: var(--gf-surface); border: 1px solid var(--gf-border); border-radius: var(--gf-radius-xl); padding: 2rem; max-width: 28rem; width: 100%; text-align: center; box-shadow: var(--gf-shadow-xs); }
.gf-status-icon { width: 3rem; height: 3rem; border-radius: var(--gf-radius-lg); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.5rem; }
.gf-status-icon--error { background: var(--gf-danger-soft); color: var(--gf-danger); }
.gf-status-icon--success { background: var(--gf-success-soft); color: var(--gf-success); }

/* Mobile top bar for sidebar toggle */
.gf-mobile-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--gf-surface);
    border-bottom: 1px solid var(--gf-border);
}
@media (min-width: 768px) { .gf-mobile-bar { display: none; } }
.gf-mobile-bar-title { font-size: 0.875rem; font-weight: 500; color: var(--gf-text); }

