:root {
    color-scheme: light;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    background: #f4f7fc;
    color: #11213f;
}

* { box-sizing: border-box; }

html,
body {
    min-height: 100%;
    margin: 0;
    direction: rtl;
    background: #f4f7fc;
    touch-action: manipulation;
}

button, input, select, textarea { font: inherit; }
h1:focus { outline: none; }
.app-shell { min-height: 100vh; }

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    min-height: 4rem;
    padding: 0.75rem clamp(1rem, 4vw, 2rem);
    color: #fff;
    background: #004CE5;
    box-shadow: 0 0.25rem 1.25rem rgb(0 76 229 / 22%);
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: inherit;
    text-decoration: none;
    font-weight: 900;
}
.brand-logo {
    display: block;
    width: 3.1rem;
    height: 3.1rem;
    border: 2px solid #fff;
    border-radius: .75rem;
    object-fit: contain;
    box-shadow: 0 .35rem 1rem rgb(0 0 0 / 16%);
}
.brand-link span { font-size: 1.05rem; white-space: nowrap; }
.header-back-link { padding: .45rem .7rem; border: 1px solid rgb(255 255 255 / 55%); border-radius: .55rem; color: #fff; font-size: .82rem; font-weight: 800; text-decoration: none; }
.account-email { max-width: 15rem; margin-inline-start: auto; overflow: hidden; color: rgb(255 255 255 / 88%); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }

.logout-button {
    padding: 0.5rem 0.8rem;
    border: 1px solid rgb(255 255 255 / 55%);
    border-radius: 0.55rem;
    color: #fff;
    background: transparent;
    cursor: pointer;
}

.app-content {
    width: min(100%, 72rem);
    margin-inline: auto;
    padding: clamp(1.25rem, 5vw, 3rem) 1rem;
}

@media (max-width: 40rem) {
    .app-header { flex-wrap: nowrap; padding-inline: .7rem; }
    .brand-logo { width: 2.65rem; height: 2.65rem; }
    .brand-link span { font-size: .88rem; }
    .header-back-link { padding: .4rem .55rem; font-size: .75rem; }
    .account-email { display: none; }
    .logout-button { padding: .45rem .6rem; font-size: .78rem; }
}

.foundation-card {
    padding: clamp(1.5rem, 6vw, 3.5rem);
    border: 1px solid #dfe7f5;
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 1rem 3rem rgb(24 48 86 / 9%);
}

.foundation-card h1 {
    margin: 1rem 0 0.75rem;
    font-size: clamp(1.75rem, 6vw, 3rem);
    line-height: 1.25;
}

.foundation-card p {
    margin: 0;
    color: #53627a;
    font-size: 1.05rem;
    line-height: 1.9;
}

.status-pill {
    display: inline-flex;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    color: #0745b8;
    background: #e8f0ff;
    font-size: 0.85rem;
    font-weight: 700;
}
