/* App shell (post-login) — ice blues, DM Sans + Outfit via Google Fonts in header */

:root {
    --ice-deep: #0c4a6e;
    --ice-mid: #0369a1;
    --ice-soft: #e0f2fe;
    --ice-frost: #f0f9ff;
    --ice-border: #bae6fd;
    --ice-text: #0f172a;
    --ice-muted: #64748b;
    --font-sans: "Heebo", system-ui, sans-serif;
    --font-display: "Heebo", var(--font-sans);
}

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

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

body.app-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--ice-text);
    background: linear-gradient(180deg, var(--ice-frost) 0%, #fff 32%, #f8fafc 100%);
}

.app-header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--ice-border);
    backdrop-filter: blur(10px);
}

.app-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.app-header-start {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}

.app-header-center {
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
}

.app-header-end {
    justify-self: end;
}

.app-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ice-deep);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
}

.app-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    background: #fff;
}

.app-nav {
    display: flex;
    align-items: center;
    gap: 12px 16px;
    flex-wrap: wrap;
}

.app-site-form {
    margin: 0;
}

.app-select {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 8px 36px 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--ice-border);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230369a1' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 12px;
    color: var(--ice-deep);
    cursor: pointer;
    min-width: 180px;
    appearance: none;
}

.app-site-single {
    font-size: 0.95rem;
    color: var(--ice-deep);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.app-user {
    font-size: 0.9rem;
    color: var(--ice-muted);
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.app-user-name {
    font-weight: 700;
    color: var(--ice-text);
    margin-left: 0.35em;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

.app-btn--ghost {
    background: #fff;
    border-color: var(--ice-border);
    color: var(--ice-deep);
}

.app-btn--ghost:hover {
    background: var(--ice-soft);
}

.app-btn--icon-only {
    padding: 8px 10px;
    min-width: 40px;
    justify-content: center;
    gap: 0;
}

.app-main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.app-footer {
    border-top: 1px solid var(--ice-border);
    background: rgba(255, 255, 255, 0.6);
}

.app-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    font-size: 0.85rem;
    color: var(--ice-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.app-footer-dot {
    opacity: 0.5;
}
