/* ============================================
   ZHEET - Enhanced Styles v2.0
   ============================================ */

:root {
    --pico-font-size: 16px;
    --zht-primary: #6366f1;
    --zht-primary-hover: #4f46e5;
    --zht-primary-focus: rgba(99, 102, 241, 0.15);
    --zht-primary-light: rgba(99, 102, 241, 0.1);
    --zht-success: #10b981;
    --zht-warning: #f59e0b;
    --zht-danger: #ef4444;
    --zht-surface: #f8fafc;
    --zht-surface-hover: #f1f5f9;
    --zht-border: #e2e8f0;
    --zht-text: #1e293b;
    --zht-text-muted: #64748b;
    --zht-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --zht-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --zht-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --zht-radius: 8px;
    --zht-radius-lg: 12px;
    --zht-transition: 0.15s ease;
}

[data-theme="dark"] {
    --zht-surface: #1e293b;
    --zht-surface-hover: #334155;
    --zht-border: #334155;
    --zht-text: #f1f5f9;
    --zht-text-muted: #94a3b8;
}

* { box-sizing: border-box; }

body {
    background: var(--zht-surface);
    color: var(--zht-text);
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-muted { color: var(--zht-text-muted) !important; }
.text-success { color: var(--zht-success) !important; }
.text-warning { color: var(--zht-warning) !important; }
.text-danger { color: var(--zht-danger) !important; }
.gap-xs { gap: 0.25rem; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 1.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Icon button - FIXED hover states */
.icon-btn {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
    transition: background var(--zht-transition), color var(--zht-transition);
}

.icon-btn:hover {
    background: var(--zht-primary-light);
    color: var(--zht-primary);
}

.icon-btn:active {
    transform: scale(0.95);
}

.icon-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

.icon-btn.sm {
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
}

.icon-btn.sm svg {
    width: 0.875rem;
    height: 0.875rem;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 100px;
    background: var(--zht-primary-light);
    color: var(--zht-primary);
}

.badge.success { background: rgba(16, 185, 129, 0.1); color: var(--zht-success); }
.badge.warning { background: rgba(245, 158, 11, 0.1); color: var(--zht-warning); }
.badge.muted { background: var(--zht-surface-hover); color: var(--zht-text-muted); }

/* ============================================
   SETUP PAGE
   ============================================ */

.setup-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.setup-container {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

.hero {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
}

.logo {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--zht-primary), var(--zht-primary-hover));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    box-shadow: var(--zht-shadow-lg);
}

.logo svg { width: 36px; height: 36px; }

.hero h1 {
    color: var(--zht-primary);
    margin-bottom: 0.25rem;
    font-size: 2rem;
}

.hero p {
    color: var(--zht-text-muted);
    margin: 0;
}

/* Project Cards */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-card {
    background: var(--pico-card-background-color);
    border: 1px solid var(--zht-border);
    border-radius: var(--zht-radius-lg);
    padding: 1rem;
    cursor: pointer;
    transition: all var(--zht-transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.project-card:hover {
    border-color: var(--zht-primary);
    box-shadow: var(--zht-shadow);
    transform: translateY(-1px);
}

.project-card .project-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--zht-radius);
    background: var(--zht-primary-light);
    color: var(--zht-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.project-card .project-name {
    font-weight: 600;
    color: var(--zht-text);
    margin: 0 0 0.125rem;
    font-size: 0.9375rem;
}

.project-card .project-meta {
    font-size: 0.75rem;
    color: var(--zht-text-muted);
    margin: 0;
}

.project-card .icon-btn {
    opacity: 0;
    transition: opacity var(--zht-transition);
}

.project-card:hover .icon-btn {
    opacity: 1;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--zht-text-muted);
    font-size: 0.8125rem;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--zht-border);
}

.divider span { padding: 0 1rem; }

/* Connect Card */
.connect-card {
    background: var(--pico-card-background-color);
    border: 1px solid var(--zht-border);
    border-radius: var(--zht-radius-lg);
    padding: 1.5rem;
}

.connect-card header {
    margin-bottom: 1rem;
    padding: 0;
    background: none;
}

.connect-card header h3 {
    margin: 0 0 0.25rem;
    font-size: 1.125rem;
}

.connect-card header p {
    margin: 0;
    color: var(--zht-text-muted);
    font-size: 0.875rem;
}

.connect-card label {
    font-size: 0.875rem;
    font-weight: 500;
}

.connect-card input {
    margin-bottom: 0.25rem;
}

.connect-card small {
    display: block;
    color: var(--zht-text-muted);
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.connect-card footer {
    display: flex;
    gap: 0.75rem;
    padding: 0;
    margin-top: 1rem;
    background: none;
}

/* Status Message */
.status-msg {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--zht-radius);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.status-msg.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--zht-danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-msg.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--zht-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Steps */
.steps { padding: 0.5rem 0; }

.step {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.step:last-child { margin-bottom: 0; }

.step-number {
    width: 28px;
    height: 28px;
    background: var(--zht-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.step-content h6 {
    margin: 0 0 0.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

.step-content p {
    margin: 0;
    color: var(--zht-text-muted);
    font-size: 0.8125rem;
}

/* Setup Footer */
.setup-footer {
    margin-top: auto;
    padding: 1.5rem;
    text-align: center;
}

.setup-footer small {
    font-size: 0.75rem;
    color: var(--zht-text-muted);
}

/* ============================================
   EDITOR PAGE
   ============================================ */

.editor-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--zht-surface);
}

/* Editor Header */
.editor-header {
    background: var(--zht-primary);
    color: white;
    padding: 0.625rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--zht-shadow);
}

.editor-header .icon-btn {
    color: white;
}

.editor-header .icon-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.app-name-input {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: var(--zht-radius);
    flex: 1;
    max-width: 280px;
    transition: all var(--zht-transition);
}

.app-name-input::placeholder { color: rgba(255, 255, 255, 0.6); }

.app-name-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-publish {
    background: white;
    color: var(--zht-primary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--zht-radius);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    transition: all var(--zht-transition);
}

.btn-publish:hover {
    transform: translateY(-1px);
    box-shadow: var(--zht-shadow);
}

.btn-publish svg { width: 1rem; height: 1rem; }

/* Editor Main Layout */
.editor-main {
    display: grid;
    grid-template-columns: 240px 1fr 300px;
    flex: 1;
    overflow: hidden;
}

@media (max-width: 1200px) {
    .editor-main { grid-template-columns: 220px 1fr 280px; }
}

@media (max-width: 1024px) {
    .editor-main { grid-template-columns: 200px 1fr; }
    .preview-panel { display: none; }
}

@media (max-width: 768px) {
    .editor-main { grid-template-columns: 1fr; }
    .sidebar { display: none; }
}

/* Sidebar */
.sidebar {
    background: var(--pico-card-background-color);
    border-right: 1px solid var(--zht-border);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-section {
    padding: 1rem;
    border-bottom: 1px solid var(--zht-border);
}

.sidebar-section:last-child {
    border-bottom: none;
    flex: 1;
}

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

.sidebar-header h6 {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--zht-text-muted);
    margin: 0;
}

/* Sheet List */
.sheet-list, .tab-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.sheet-item, .tab-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--zht-radius);
    cursor: pointer;
    transition: all var(--zht-transition);
    border: 1px solid transparent;
    background: transparent;
}

.sheet-item:hover {
    background: var(--zht-surface-hover);
}

.tab-item:hover {
    background: var(--zht-surface-hover);
}

.tab-item.active {
    background: var(--zht-primary-light);
    border-color: var(--zht-primary);
}

.sheet-icon, .tab-icon {
    width: 32px;
    height: 32px;
    background: var(--zht-surface-hover);
    border-radius: var(--zht-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--zht-text-muted);
    transition: all var(--zht-transition);
}

.tab-item.active .tab-icon {
    background: var(--zht-primary);
    color: white;
}

.sheet-icon svg, .tab-icon svg { width: 16px; height: 16px; }

.sheet-info, .tab-info { flex: 1; min-width: 0; }

.sheet-name, .tab-name {
    display: block;
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--zht-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sheet-meta, .tab-meta {
    font-size: 0.6875rem;
    color: var(--zht-text-muted);
}

.tab-item .icon-btn {
    opacity: 0;
    transition: opacity var(--zht-transition);
}

.tab-item:hover .icon-btn {
    opacity: 1;
}

/* Empty Tab State */
.empty-tabs {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--zht-text-muted);
}

.empty-tabs svg {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.empty-tabs p {
    font-size: 0.8125rem;
    margin: 0 0 1rem;
}

/* Config Panel */
.config-panel {
    padding: 1.5rem;
    overflow-y: auto;
    background: var(--zht-surface);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--zht-text-muted);
    padding: 3rem 2rem;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.empty-state h5 {
    margin: 0 0 0.5rem;
    color: var(--zht-text);
}

.empty-state p {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    max-width: 280px;
}

/* Config Card */
.config-card {
    background: var(--pico-card-background-color);
    border: 1px solid var(--zht-border);
    border-radius: var(--zht-radius-lg);
    padding: 1.5rem;
    animation: slideUp 0.2s ease;
}

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

.config-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--zht-border);
    margin-bottom: 1.5rem;
}

.config-section {
    margin-bottom: 1.5rem;
}

.config-section:last-child {
    margin-bottom: 0;
}

.config-section-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--zht-text-muted);
    margin: 0 0 0.75rem;
}

/* Tab Icon Button */
.tab-icon-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--zht-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--zht-border);
    cursor: pointer;
    transition: all var(--zht-transition);
    background: var(--zht-surface);
    flex-shrink: 0;
}

.tab-icon-btn:hover {
    border-color: var(--zht-primary);
    border-style: solid;
}

.tab-icon-btn svg { width: 24px; height: 24px; }

.tab-label-input {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0;
    margin: 0 0 0.25rem;
    width: 100%;
    color: var(--zht-text);
}

.tab-label-input:focus {
    outline: none;
}

.tab-label-input:focus {
    border-bottom: 2px solid var(--zht-primary);
    padding-bottom: 0.25rem;
    margin-bottom: 0;
}

/* View Toggle */
.view-toggle {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

@media (max-width: 600px) {
    .view-toggle { grid-template-columns: repeat(3, 1fr); }
}

.view-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 0.5rem;
    background: var(--zht-surface);
    border: 2px solid var(--zht-border);
    border-radius: var(--zht-radius);
    cursor: pointer;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--zht-text-muted);
    transition: all var(--zht-transition);
}

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

.view-btn:hover {
    border-color: var(--zht-primary);
    color: var(--zht-primary);
}

.view-btn.active {
    background: var(--zht-primary-light);
    border-color: var(--zht-primary);
    color: var(--zht-primary);
}

/* Column Chips */
.columns-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.column-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: var(--zht-surface);
    border: 1px solid var(--zht-border);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--zht-text-muted);
    cursor: pointer;
    transition: all var(--zht-transition);
}

.column-chip:hover {
    border-color: var(--zht-primary);
    color: var(--zht-primary);
}

.column-chip.selected {
    background: var(--zht-primary-light);
    border-color: var(--zht-primary);
    color: var(--zht-primary);
}

.column-chip svg { width: 12px; height: 12px; }

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-grid label {
    margin-bottom: 0;
    font-size: 0.8125rem;
    font-weight: 500;
}

.form-grid select, .form-grid input {
    margin-bottom: 0;
    font-size: 0.875rem;
}

@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
}

/* Preview Panel */
.preview-panel {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview-header {
    width: 100%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-header span { flex: 1; }

.preview-header .icon-btn {
    color: rgba(255, 255, 255, 0.7);
}

.preview-header .icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.phone-frame {
    width: 260px;
    height: 520px;
    background: #000;
    border-radius: 36px;
    padding: 8px;
    box-shadow: 
        0 0 0 2px #1a1a1a,
        0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.phone-notch {
    width: 80px;
    height: 24px;
    background: #000;
    border-radius: 12px;
    margin: 4px auto 8px;
}

.phone-screen {
    width: 100%;
    height: calc(100% - 36px);
    background: var(--pico-background-color);
    border-radius: 28px;
    overflow: hidden;
}

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

.preview-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--zht-text-muted);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.8125rem;
}

.preview-empty svg {
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

/* Color Grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}

.color-btn {
    aspect-ratio: 1;
    border-radius: var(--zht-radius);
    border: 3px solid transparent;
    cursor: pointer;
    transition: all var(--zht-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.color-btn svg { width: 16px; height: 16px; }

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    border-color: var(--zht-text);
    box-shadow: 0 0 0 2px var(--pico-background-color);
}

/* Icon Grid */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.icon-picker-btn {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--zht-surface);
    border: 2px solid var(--zht-border);
    border-radius: var(--zht-radius);
    cursor: pointer;
    color: var(--zht-text-muted);
    transition: all var(--zht-transition);
}

.icon-picker-btn:hover {
    background: var(--zht-primary-light);
    border-color: var(--zht-primary);
    color: var(--zht-primary);
}

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

/* ============================================
   VIEWER APP
   ============================================ */

.viewer-loading, .viewer-error, .viewer-empty {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: var(--zht-surface);
}

.viewer-loading svg, .viewer-error svg, .viewer-empty svg {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
    color: var(--zht-primary);
}

.viewer-error svg { color: var(--zht-danger); }

.app-shell {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--zht-surface);
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--zht-primary);
    color: white;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--zht-shadow);
}

.app-header h1 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.app-header .icon-btn { color: white; }

.app-header .icon-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.app-content {
    flex: 1;
    padding: 1rem;
    padding-bottom: 80px;
}

.app-loading, .app-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--zht-text-muted);
    font-size: 0.875rem;
}

.app-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

/* Search */
.app-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--pico-card-background-color);
    border-bottom: 1px solid var(--zht-border);
}

.app-search input {
    flex: 1;
    border: none;
    background: transparent;
    margin: 0;
    padding: 0.25rem;
    font-size: 0.9375rem;
}

.app-search input:focus {
    outline: none;
    box-shadow: none;
}

.app-search svg {
    width: 20px;
    height: 20px;
    color: var(--zht-text-muted);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.item-card {
    background: var(--pico-card-background-color);
    border: 1px solid var(--zht-border);
    border-radius: var(--zht-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--zht-transition);
}

.item-card:hover {
    border-color: var(--zht-primary);
    box-shadow: var(--zht-shadow);
    transform: translateY(-2px);
}

.item-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--zht-surface-hover);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-body { padding: 1rem; }

.item-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.1875rem 0.5rem;
    background: var(--zht-primary);
    color: white;
    border-radius: 100px;
    margin-bottom: 0.5rem;
}

.item-title {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--zht-text);
}

.item-subtitle {
    margin: 0;
    color: var(--zht-text-muted);
    font-size: 0.8125rem;
}

.item-desc {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    color: var(--zht-text-muted);
    display: -webkit-box;
    /* -webkit-line-clamp: 2; */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* List View */
.list-view {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    background: var(--pico-card-background-color);
    border: 1px solid var(--zht-border);
    border-radius: var(--zht-radius);
    cursor: pointer;
    transition: all var(--zht-transition);
}

.list-item:hover {
    border-color: var(--zht-primary);
    background: var(--zht-primary-light);
}

.list-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.list-avatar-placeholder {
    background: var(--zht-surface-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--zht-text-muted);
}

.list-avatar-placeholder svg { width: 20px; height: 20px; }

.list-content { flex: 1; min-width: 0; }

.list-content h3 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--zht-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-content p {
    margin: 0.125rem 0 0;
    font-size: 0.8125rem;
    color: var(--zht-text-muted);
}

.list-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.1875rem 0.5rem;
    background: var(--zht-surface-hover);
    border-radius: 100px;
    color: var(--zht-text-muted);
}

.list-chevron {
    color: var(--zht-text-muted);
}

.list-chevron svg { width: 18px; height: 18px; }

/* Gallery View */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: var(--zht-radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--zht-border);
}

.gallery-item:hover {
    border-color: var(--zht-primary);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: white;
    font-size: 0.6875rem;
    font-weight: 500;
}

/* Table View */
.table-container {
    overflow-x: auto;
    background: var(--pico-card-background-color);
    border: 1px solid var(--zht-border);
    border-radius: var(--zht-radius-lg);
}

.data-table {
    width: 100%;
    margin: 0;
    font-size: 0.8125rem;
}

.data-table th {
    background: var(--zht-surface);
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    padding: 0.75rem 1rem;
    color: var(--zht-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.data-table td {
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--zht-border);
}

.data-table tr { cursor: pointer; }

.data-table tbody tr:hover td {
    background: var(--zht-primary-light);
}

/* Detail View */
.detail-view {
    animation: slideUp 0.2s ease;
}

.detail-hero-image {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: var(--zht-radius-lg);
    margin-bottom: 1rem;
}

.detail-body h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.detail-subtitle {
    color: var(--zht-text-muted);
    margin-bottom: 1rem;
}

.detail-description {
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Detail Modal */
.detail-modal {
    max-width: 520px;
    border-radius: var(--zht-radius-lg);
}

.detail-modal article {
    margin: 0;
}

.detail-image {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: var(--zht-radius);
    margin-bottom: 1rem;
}

.detail-fields {
    margin-top: 1.25rem;
    border-top: 1px solid var(--zht-border);
    padding-top: 1rem;
}

.detail-field {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--zht-border);
    font-size: 0.875rem;
    gap: 1rem;
}

.detail-field:last-child { border-bottom: none; }

.detail-field-label {
    color: var(--zht-text-muted);
    flex-shrink: 0;
}

.detail-field-value {
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

/* Tab Bar */
.app-tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--pico-card-background-color);
    display: flex;
    border-top: 1px solid var(--zht-border);
    padding: 0.5rem;
    gap: 0.25rem;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}

.tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--zht-text-muted);
    font-size: 0.6875rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--zht-radius);
    transition: all var(--zht-transition);
}

.tab-btn:hover {
    background: var(--zht-surface-hover);
}

.tab-btn.active {
    color: var(--zht-primary);
}

.tab-btn.active svg {
    color: var(--zht-primary);
}

.tab-btn svg { width: 22px; height: 22px; }

/* Toast */
.toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--zht-text);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--zht-radius);
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--zht-shadow-lg);
}

.toast.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    background: var(--zht-danger);
}

.toast.success {
    background: var(--zht-success);
}

/* Dialogs */
dialog {
    border-radius: var(--zht-radius-lg);
    border: 1px solid var(--zht-border);
    box-shadow: var(--zht-shadow-lg);
}

dialog article {
    margin: 0;
}

dialog header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--zht-border);
    background: var(--zht-surface);
}

dialog header h3 {
    margin: 0;
    font-size: 1.125rem;
}

dialog footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--zht-border);
    background: var(--zht-surface);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Quick Actions Bar */
.quick-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--pico-card-background-color);
    border-bottom: 1px solid var(--zht-border);
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--zht-surface);
    border: 1px solid var(--zht-border);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--zht-text-muted);
    cursor: pointer;
    transition: all var(--zht-transition);
}

.quick-action-btn:hover {
    border-color: var(--zht-primary);
    color: var(--zht-primary);
}

.quick-action-btn svg {
    width: 14px;
    height: 14px;
}

/* Drag Handle for tabs */
.drag-handle {
    cursor: grab;
    color: var(--zht-text-muted);
    opacity: 0;
    transition: opacity var(--zht-transition);
}

.tab-item:hover .drag-handle {
    opacity: 1;
}

.drag-handle:active {
    cursor: grabbing;
}

.drag-handle svg {
    width: 14px;
    height: 14px;
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    padding: 0.375rem 0.625rem;
    background: var(--zht-text);
    color: white;
    font-size: 0.6875rem;
    font-weight: 500;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--zht-transition);
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

/* Onboarding tooltip */
.onboarding-tooltip {
    position: absolute;
    background: var(--zht-primary);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--zht-radius);
    font-size: 0.8125rem;
    max-width: 240px;
    box-shadow: var(--zht-shadow-lg);
    z-index: 1000;
}

.onboarding-tooltip::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 8px solid transparent;
}

.onboarding-tooltip.arrow-left::before {
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: var(--zht-primary);
}

.onboarding-tooltip .close-tooltip {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--zht-surface-hover) 25%, var(--zht-surface) 50%, var(--zht-surface-hover) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Feature badge */
.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.375rem;
    background: var(--zht-warning);
    color: white;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
}

/* Settings Toggle */
.settings-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--zht-border);
}

.settings-toggle:last-child {
    border-bottom: none;
}

.settings-toggle label {
    margin: 0;
    font-size: 0.875rem;
    cursor: pointer;
}

.settings-toggle small {
    display: block;
    color: var(--zht-text-muted);
    font-size: 0.75rem;
    margin-top: 0.125rem;
}

/* Theme toggle */
.theme-toggle {
    display: flex;
    background: var(--zht-surface);
    border: 1px solid var(--zht-border);
    border-radius: var(--zht-radius);
    padding: 0.25rem;
    gap: 0.25rem;
}

.theme-toggle button {
    flex: 1;
    padding: 0.5rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: var(--zht-text-muted);
    transition: all var(--zht-transition);
}

.theme-toggle button.active {
    background: var(--pico-card-background-color);
    color: var(--zht-text);
    box-shadow: var(--zht-shadow-sm);
}

.theme-toggle button svg {
    width: 18px;
    height: 18px;
}
/* ============================================
   SEARCHABLE SELECT
   ============================================ */

.searchable-select {
    position: relative;
}

.searchable-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: var(--pico-form-element-background-color);
    border: 1px solid var(--zht-border);
    border-radius: var(--zht-radius);
    cursor: pointer;
    transition: border-color var(--zht-transition);
}

.searchable-select-trigger:hover,
.searchable-select.open .searchable-select-trigger {
    border-color: var(--zht-primary);
}

.searchable-select-trigger svg {
    width: 16px;
    height: 16px;
    color: var(--zht-text-muted);
    transition: transform var(--zht-transition);
}

.searchable-select.open .searchable-select-trigger svg {
    transform: rotate(180deg);
}

.searchable-select-value {
    flex: 1;
    font-size: 0.875rem;
    color: var(--zht-text);
}

.searchable-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--pico-card-background-color);
    border: 1px solid var(--zht-border);
    border-radius: var(--zht-radius);
    box-shadow: var(--zht-shadow-lg);
    z-index: 100;
    display: none;
    max-height: 280px;
    overflow: hidden;
}

.searchable-select.open .searchable-select-dropdown {
    display: block;
}

.searchable-select-search {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: none;
    border-bottom: 1px solid var(--zht-border);
    font-size: 0.875rem;
    margin: 0;
}

.searchable-select-search:focus {
    outline: none;
    box-shadow: none;
}

.searchable-select-options {
    max-height: 220px;
    overflow-y: auto;
}

.searchable-select-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background var(--zht-transition);
}

.searchable-select-option:hover {
    background: var(--zht-surface-hover);
}

.searchable-select-option.selected {
    background: var(--zht-primary-light);
    color: var(--zht-primary);
}

.searchable-select-option svg {
    width: 14px;
    height: 14px;
    color: var(--zht-text-muted);
}

/* ============================================
   DETAIL BUILDER
   ============================================ */

.detail-builder {
    background: var(--zht-surface);
    border-radius: var(--zht-radius);
    padding: 1rem;
}

.detail-components-list {
    min-height: 60px;
}

.detail-empty-state {
    text-align: center;
    padding: 1.5rem;
    color: var(--zht-text-muted);
}

.detail-empty-state i {
    width: 32px;
    height: 32px;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.detail-empty-state p {
    margin: 0;
    font-size: 0.8125rem;
}

.detail-component-item {
    background: var(--pico-card-background-color);
    border: 1px solid var(--zht-border);
    border-radius: var(--zht-radius);
    margin-bottom: 0.5rem;
    transition: all var(--zht-transition);
}

.detail-component-item:hover {
    border-color: var(--zht-primary);
}

.detail-component-item.dragging {
    opacity: 0.5;
    border-style: dashed;
}

.component-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
}

.component-header .drag-handle {
    cursor: grab;
    color: var(--zht-text-muted);
    opacity: 0.5;
}

.component-header .drag-handle:hover {
    opacity: 1;
}

.component-type-icon {
    width: 16px;
    height: 16px;
    color: var(--zht-primary);
}

.component-type-name {
    flex: 1;
    font-size: 0.8125rem;
    font-weight: 500;
}

.component-config {
    padding: 0 0.75rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.component-config input,
.component-config select {
    margin: 0;
    font-size: 0.8125rem;
    padding: 0.375rem 0.5rem;
}

.component-label-input {
    background: var(--zht-surface);
}

.detail-add-component {
    position: relative;
    margin-top: 0.75rem;
}

.btn-add-component {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem;
    background: transparent;
    border: 2px dashed var(--zht-border);
    border-radius: var(--zht-radius);
    color: var(--zht-text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--zht-transition);
}

.btn-add-component:hover {
    border-color: var(--zht-primary);
    color: var(--zht-primary);
    background: var(--zht-primary-light);
}

.component-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 4px;
    background: var(--pico-card-background-color);
    border: 1px solid var(--zht-border);
    border-radius: var(--zht-radius);
    box-shadow: var(--zht-shadow-lg);
    display: none;
    z-index: 50;
}

.component-menu.open {
    display: block;
}

.component-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    background: none;
    border: none;
    font-size: 0.8125rem;
    color: var(--zht-text);
    cursor: pointer;
    transition: background var(--zht-transition);
}

.component-menu-item:hover {
    background: var(--zht-surface-hover);
}

.component-menu-item i {
    width: 16px;
    height: 16px;
    color: var(--zht-text-muted);
}

/* ============================================
   FILTER & SORT
   ============================================ */

.filter-list {
    margin-bottom: 0.75rem;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.filter-row select,
.filter-row input {
    margin: 0;
    font-size: 0.8125rem;
    padding: 0.375rem 0.5rem;
}

.btn-add-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: var(--zht-surface);
    border: 1px solid var(--zht-border);
    border-radius: var(--zht-radius);
    color: var(--zht-text-muted);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all var(--zht-transition);
}

.btn-add-filter:hover {
    border-color: var(--zht-primary);
    color: var(--zht-primary);
}

.sort-config {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0.5rem;
}

.sort-config select {
    margin: 0;
    font-size: 0.875rem;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    cursor: pointer;
    font-size: 0.875rem;
}

.toggle-row input {
    margin: 0;
}

/* ============================================
   TABLE COLUMN LIST
   ============================================ */

.table-column-list {
    min-height: 40px;
}

.table-column-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--pico-card-background-color);
    border: 1px solid var(--zht-border);
    border-radius: var(--zht-radius);
    margin-bottom: 0.375rem;
}

.table-column-item .drag-handle {
    cursor: grab;
    color: var(--zht-text-muted);
    opacity: 0.5;
}

.table-column-item:hover .drag-handle {
    opacity: 1;
}

.table-column-item i {
    width: 14px;
    height: 14px;
    color: var(--zht-text-muted);
}

.table-column-name {
    flex: 1;
    font-size: 0.8125rem;
}

.add-column-dropdown select {
    font-size: 0.875rem;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 600px) {
    .filter-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .filter-row .filter-value {
        grid-column: 1 / -1;
    }
    
    .sort-config {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   VIEWER CONTROLS BAR
   ============================================ */

.app-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--pico-card-background-color);
    border-bottom: 1px solid var(--zht-border);
}

.app-search-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--zht-surface);
    border-radius: var(--zht-radius);
    padding: 0.5rem 0.75rem;
}

.app-search-wrapper i {
    width: 18px;
    height: 18px;
    color: var(--zht-text-muted);
    flex-shrink: 0;
}

.app-search-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.app-search-wrapper input:focus {
    outline: none;
    box-shadow: none;
}

.app-control-buttons {
    display: flex;
    gap: 0.375rem;
}

.control-btn {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--zht-surface);
    border: 1px solid var(--zht-border);
    border-radius: var(--zht-radius);
    cursor: pointer;
    transition: all var(--zht-transition);
}

.control-btn:hover {
    border-color: var(--zht-primary);
    color: var(--zht-primary);
}

.control-btn.active {
    background: var(--zht-primary-light);
    border-color: var(--zht-primary);
    color: var(--zht-primary);
}

.control-btn i {
    width: 18px;
    height: 18px;
}

.control-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--zht-primary);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 100px;
    padding: 0 4px;
}

/* ============================================
   FILTER & SORT MODALS (VIEWER)
   ============================================ */

.filter-modal,
.sort-modal {
    max-width: 400px;
}

.filter-modal article,
.sort-modal article {
    margin: 0;
}

.user-filter-list {
    margin-bottom: 1rem;
}

.user-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--zht-border);
}

.user-filter-row select,
.user-filter-row input {
    margin: 0;
    font-size: 0.875rem;
}

.user-filter-row .user-filter-value {
    grid-column: 1 / 2;
}

.user-filter-row .btn-remove-user-filter {
    justify-self: end;
}

.btn-add-user-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    width: 100%;
    padding: 0.625rem;
    background: var(--zht-surface);
    border: 1px dashed var(--zht-border);
    border-radius: var(--zht-radius);
    color: var(--zht-text-muted);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--zht-transition);
    margin-bottom: 1rem;
}

.btn-add-user-filter:hover {
    border-color: var(--zht-primary);
    color: var(--zht-primary);
}

/* ============================================
   CUSTOM DETAIL LAYOUT
   ============================================ */

.detail-custom-layout {
    padding: 0.5rem 0;
}

.detail-heading {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.detail-text {
    margin: 0 0 1rem;
    line-height: 1.6;
    color: var(--zht-text);
}

.detail-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--zht-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

.detail-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--zht-primary);
    color: white;
    border-radius: var(--zht-radius);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0.5rem 0;
    transition: all var(--zht-transition);
}

.detail-link-btn:hover {
    background: var(--zht-primary-hover);
    transform: translateY(-1px);
}

.detail-link-btn i {
    width: 16px;
    height: 16px;
}

.detail-divider {
    margin: 1rem 0;
    border: none;
    border-top: 1px solid var(--zht-border);
}

/* ============================================
   EMPTY & LOADING STATES
   ============================================ */

.app-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    text-align: center;
    color: var(--zht-text-muted);
    padding: 2rem;
}

.app-empty i {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.app-empty p {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
}

.app-empty button {
    margin-top: 0.5rem;
}