*{margin:0;padding:0;box-sizing:border-box}
body{font-family:var(--font);background:var(--bg);color:var(--text);height:100vh;height:100dvh;overflow:hidden;-webkit-font-smoothing:antialiased}
.app-container{display:flex;height:100vh;height:100dvh;max-width:1400px;margin:0 auto;background:var(--surface)}
.main-content{flex:1;display:flex;flex-direction:column;background:var(--chat-bg);min-width:0;overflow:hidden}
.page{display:none;flex:1;flex-direction:column;height:100%;overflow:hidden}
.page.active{display:flex}
.page-header{padding:16px 20px;background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:12px;flex-shrink:0}
.page-header h2{font-size:18px;flex:1}
.page-body{flex:1;overflow-y:auto;padding:20px}
.back-btn{display:none;background:none;border:none;font-size:22px;cursor:pointer;padding:4px 8px;color:var(--text)}
@media(min-width:769px){.back-btn{display:none!important}}

.dashboard {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dashboard .empty-state {
    text-align: center;
    color: var(--text-secondary);
}
.dashboard .icon {
    font-size: 64px;
    margin-bottom: 16px;
}
.dashboard h3 {
    font-size: 18px;
    font-weight: 500;
}

.dashboard {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.dashboard-content {
    animation: fadeIn 0.5s ease;
}
.dashboard h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #4F8CFF, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.dashboard-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
}
.dashboard-hint {
    font-size: 14px;
    color: #666;
    padding: 12px 24px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    display: inline-block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Индикатор загрузки */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: #4F8CFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 100px auto;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
