@import url('tokens.css');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--office-text);
    background: var(--office-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem 1.5rem;
}

.office-asset-debug {
    max-width: min(960px, 92vw);
    padding: 0 12px;
    font-size: 0.68rem;
    line-height: 1.35;
    color: var(--office-muted);
    text-align: center;
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    word-break: break-word;
}

.office-asset-badge {
    position: fixed;
    left: 8px;
    bottom: 8px;
    z-index: 10040;
    max-width: min(520px, calc(100vw - 16px));
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(15, 23, 36, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #94a3b8;
    font-size: 0.62rem;
    line-height: 1.3;
    font-family: ui-monospace, Consolas, monospace;
    pointer-events: none;
}

#loader {
    position: fixed;
    inset: 0;
    background: var(--office-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
    color: var(--office-muted);
    gap: 0.75rem;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 2px solid var(--office-border);
    border-top-color: var(--office-accent);
    border-radius: 50%;
    animation: office-spin 0.65s linear infinite;
}

@keyframes office-spin {
    to { transform: rotate(360deg); }
}

#app {
    display: none;
    width: 100%;
    margin-top: 0.75rem;
    gap: 0.75rem;
    align-items: stretch;
    min-height: calc(100vh - var(--office-header-h) - 2rem);
}

#app.office-app--ready {
    display: flex;
}

.office-app__backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 90;
}

.office-app__backdrop.is-visible {
    display: block;
}

@media (max-width: 768px) {
    #app {
        flex-direction: column;
        position: relative;
    }
}
