:root {
    --brand: #a72639;
    --brand-dark: color-mix(in srgb, var(--brand), #07182c 28%);
    --brand-soft: color-mix(in srgb, var(--brand), white 90%);
    --bg: #f4f8ff;
    --surface: #fff;
    --surface-soft: #f6f9fc;
    --title: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --border: rgba(15, 23, 42, 0.08);
    --border-soft: #e0e8f0;
    --danger: #ef3f62;
    --success: #0fa98d;
    --warning: #a36a00;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --touch: 44px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body.mobile-app {
    min-width: 320px;
    min-height: 100dvh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(320px 260px at 92% 8%, color-mix(in srgb, var(--brand), transparent 86%), transparent 70%),
        radial-gradient(260px 220px at 6% 94%, color-mix(in srgb, var(--brand), transparent 90%), transparent 70%),
        linear-gradient(180deg, #f4f8ff 0%, #f8fbff 100%);
    font: 14px/1.45 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
@media (display-mode: standalone) {
    body.mobile-app.is-authenticated { padding-top: var(--safe-top); }
}
button, input, select, textarea { font: inherit; }
a { color: var(--brand-dark); }
.ui-icon { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.app-frame { width: 100%; min-height: 100dvh; padding: 0 0 calc(78px + var(--safe-bottom)); }
.mobile-wrap { width: 100%; max-width: 440px; margin: 0 auto; padding: 0 14px 20px; }

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    margin-bottom: 14px;
}
.brand-side { min-width: 0; flex: 1 1 auto; }
.brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
    color: var(--title);
    text-decoration: none;
}
.brand-logo, .brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
}
.brand-logo { object-fit: contain; background: #fff; border: 1px solid var(--border); padding: 3px; }
.brand-mark {
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--brand), var(--brand-dark));
    font-size: 18px;
    font-weight: 850;
    box-shadow: 0 7px 16px color-mix(in srgb, var(--brand), transparent 72%);
}
.brand-text strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
    font-size: 16px;
}
.brand-meta {
    font-size: 0.82rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.top-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.icon-btn {
    width: var(--touch);
    height: var(--touch);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    text-decoration: none;
    box-shadow: var(--shadow);
    touch-action: manipulation;
    cursor: pointer;
    color: inherit;
    padding: 0;
}
.icon-btn .ui-icon { width: 20px; height: 20px; }
.icon-btn-neutral { background: linear-gradient(180deg, #e7edf6 0%, #dbe4ee 100%); color: #334155; }
.icon-btn-danger { background: linear-gradient(180deg, #ff6b6b 0%, #ef2d2d 100%); color: #fff; }
.icon-btn-back { background: linear-gradient(180deg, #4f8cff 0%, #2f6deb 100%); color: #fff; }
.icon-btn:active { transform: scale(.96); }

.content { width: 100%; padding: 0; }
.public-content {
    min-height: 100dvh;
    padding: max(18px, var(--safe-top)) 14px max(18px, var(--safe-bottom));
    display: grid;
    place-items: center;
}

.page-head { margin: 0 0 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.page-head h1, .page-head h2 { margin: 0; color: var(--title); line-height: 1.18; }
.page-head h1 { font-size: clamp(22px, 6.5vw, 28px); font-weight: 900; }
.page-head h2 { font-size: 18px; font-weight: 850; }
.page-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.page-head .actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.module-path {
    margin: -2px 0 12px;
    padding: 10px 12px;
    display: flex;
    gap: 7px;
    color: var(--muted);
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 12px;
}
.module-path a { text-decoration: none; }

.feature-block {
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand), transparent 86%) 0%, rgba(255, 255, 255, .92) 52%, #fff 100%);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid color-mix(in srgb, var(--brand), transparent 82%);
}
.feature-label {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.feature-title {
    margin: 0;
    font-size: 1.16rem;
    line-height: 1.15;
    font-weight: 900;
    color: var(--title);
}
.feature-desc {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.35;
}

.quick-block {
    background: var(--surface);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 14px;
    margin-bottom: 14px;
}
.quick-title {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--title);
}
.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.quick-item {
    text-decoration: none;
    color: var(--title);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    touch-action: manipulation;
}
.quick-item:active { transform: scale(.97); }
.quick-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
    color: #fff;
}
.quick-icon .ui-icon { width: 26px; height: 26px; stroke-width: 2; }
.quick-icon-blue { background: linear-gradient(180deg, #4f8cff 0%, #2f6deb 100%); }
.quick-icon-green { background: linear-gradient(180deg, #17c39b 0%, #0fa98d 100%); }
.quick-icon-red { background: linear-gradient(180deg, #ff6f8f 0%, #ef3f62 100%); }
.quick-label { font-size: 0.83rem; line-height: 1.15; font-weight: 700; }

.cv-resumo-linha {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 0.72rem;
    line-height: 1;
    color: var(--muted);
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.cv-resumo-linha::-webkit-scrollbar { display: none; }
.cv-resumo-linha__item { flex: 0 0 auto; font-weight: 600; color: var(--muted); text-decoration: none; }
.cv-resumo-linha__item strong { font-weight: 800; color: #475569; }
.cv-resumo-linha__item.is-destaque strong { color: #c2410c; }
.cv-resumo-linha__sep { flex: 0 0 auto; color: rgba(100, 116, 139, 0.45); font-weight: 700; }

.card {
    margin: 0 0 12px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.section-title {
    margin: 0 0 14px;
    padding: 0 0 10px;
    color: var(--title);
    border-bottom: 1px solid var(--border-soft);
    font-size: 16px;
    font-weight: 850;
}
.cards { margin-bottom: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cards .card { margin: 0; }
.metric { min-height: 96px; padding: 14px; display: flex; flex-direction: column; justify-content: center; border-top: 4px solid var(--brand); }
.metric span { color: var(--muted); font-size: 12px; font-weight: 700; }
.metric strong { margin-top: 4px; color: var(--title); font-size: 26px; line-height: 1.1; }
.metric small { margin-top: 4px; color: var(--muted); }
.metric-link { text-decoration: none; }
.muted { color: var(--muted); }
.empty { padding: 28px 14px; text-align: center; color: var(--muted); background: var(--surface-soft); border-radius: 12px; }

.list-stack { display: grid; gap: 10px; }
.list-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    touch-action: manipulation;
}
.list-card:active { transform: scale(.99); }
.list-card-body { min-width: 0; flex: 1; }
.list-card-body strong, .list-card-body small, .list-card-meta { display: block; }
.list-card-body strong { color: var(--title); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-card-body small, .list-card-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.list-card-actions { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
.list-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

.actions { display: flex; flex-wrap: wrap; gap: 7px; }
.btn {
    min-height: var(--touch);
    padding: 9px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--brand-dark);
    background: #fff;
    border: 1px solid #adc1d5;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(23, 52, 82, .07);
    font-weight: 750;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
}
.btn-primary {
    color: #fff;
    background: linear-gradient(145deg, var(--brand), var(--brand-dark));
    border-color: var(--brand);
    box-shadow: 0 7px 16px color-mix(in srgb, var(--brand), transparent 72%);
}
.btn-danger { color: var(--danger); background: #fff8f8; border-color: #e6b6bc; }
.btn-sm { min-height: 36px; padding: 7px 10px; font-size: 12px; }
.btn:active { transform: scale(.98); }

.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.field { grid-column: span 12; min-width: 0; }
.field-6, .field-8, .field-12 { grid-column: span 12; }
.field label { margin-bottom: 6px; display: block; color: var(--title); font-size: 12px; font-weight: 750; }
.field small { margin-top: 5px; display: block; color: var(--muted); font-size: 11px; }
input, select, textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: #1f3e5e;
    background: #fbfdff;
    border: 1px solid #b9cadb;
    border-radius: 12px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 105px; resize: vertical; }
input:focus, select:focus, textarea:focus {
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand), transparent 87%);
}
input[type="checkbox"], input[type="radio"] { width: 19px; min-height: 19px; height: 19px; padding: 0; accent-color: var(--brand); }
.filters { display: grid; gap: 10px; }
.filters .btn { width: 100%; }
.checkbox-grid { display: grid; gap: 9px; }
.check { min-height: 48px; padding: 11px; display: flex; align-items: center; gap: 9px; background: var(--surface-soft); border: 1px solid var(--border-soft); border-radius: 12px; }
.choice-cards { display: grid; gap: 10px; }
.choice-card { min-height: 80px; padding: 14px; display: flex; align-items: center; gap: 11px; color: var(--text); background: var(--surface-soft); border: 1px solid var(--border); border-radius: 12px; }
.choice-card:has(input:checked) { color: var(--brand-dark); background: var(--brand-soft); border-color: var(--brand); }
.choice-card strong, .choice-card small { display: block; }
.choice-card small { color: var(--muted); }
.team-role-options { display: flex; gap: 8px; }
.team-role-options label { flex: 1; min-height: 46px; padding: 10px 12px; display: flex; align-items: center; gap: 8px; color: var(--title); background: var(--surface-soft); border: 1px solid var(--border); border-radius: 10px; font-weight: 750; }
.team-role-options label:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); }
.form-subsection { margin: 20px 0 12px; padding-top: 16px; color: var(--brand-dark); border-top: 1px solid var(--border-soft); font-size: 14px; }
.team-simple-form .section-title + .form-subsection { margin-top: 0; padding-top: 0; border-top: 0; }
.student-form-actions, .wizard-actions {
    position: sticky;
    bottom: calc(72px + var(--safe-bottom));
    z-index: 30;
    margin: 14px -4px 4px;
    padding: 9px;
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 -5px 24px rgba(20, 48, 78, .15);
    backdrop-filter: blur(9px);
}
.student-form-actions .btn, .wizard-actions .btn { flex: 1; }

.table-wrap { margin: 0 -4px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; min-width: 680px; border-collapse: collapse; }
.table th, .table td { padding: 11px 9px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-soft); }
.table th { color: var(--muted); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.table td { font-size: 12px; }
.table tr:last-child td { border-bottom: 0; }

.photo { width: 48px; height: 48px; flex: 0 0 48px; object-fit: cover; border: 1px solid var(--border); border-radius: 14px; }
.avatar-initial { display: inline-grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--brand), var(--brand-dark)); font-weight: 850; }
.profile-photo-preview { width: 112px; height: 112px; margin: 0 0 10px; display: grid; place-items: center; overflow: hidden; color: var(--brand); background: linear-gradient(145deg, #fff, var(--brand-soft)); border: 3px solid #fff; outline: 1px solid var(--border); border-radius: 24px; box-shadow: 0 10px 23px rgba(24, 53, 84, .16); }
.profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-preview span { font-size: 25px; font-weight: 850; }
.file-native-br { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none; }
.file-control-br { min-height: 46px; padding: 5px; display: flex; align-items: center; gap: 8px; overflow: hidden; color: var(--muted); background: #fbfdff; border: 1px solid #b9cadb; border-radius: 11px; }
.file-control-br span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }

.badge { padding: 5px 8px; display: inline-flex; align-items: center; gap: 5px; color: #375470; background: #eaf0f6; border-radius: 99px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.badge-dot { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.badge-ativo, .badge-ativa, .badge-pago, .badge-assinado, .badge-concluido, .badge-resolvido { color: #087463; background: #e0f5ef; }
.badge-pendente, .badge-enviado, .badge-aberto, .badge-pre_cadastro { color: #8b6100; background: #fff1ce; }
.badge-atrasado, .badge-cancelado, .badge-cancelada, .badge-revogado { color: #a62531; background: #fde7e9; }
.alert { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; font-weight: 650; box-shadow: var(--shadow); border: 0; }
.alert-success { color: #096b5c; background: #dcf5ee; }
.alert-danger { color: #9e202d; background: #fde7e9; }
.alert-warning { color: #805900; background: #fff2cf; }
.role-tag { margin: 2px; padding: 4px 7px; display: inline-flex; color: #27527d; background: #e4effa; border-radius: 99px; font-size: 10px; font-weight: 750; }
.invite-box { padding: 12px; color: #23496f; background: #edf5fd; border: 1px dashed #7fa4cb; border-radius: 10px; font-family: ui-monospace, monospace; font-size: 11px; word-break: break-all; }

.wizard-progress, .assessment-section-tabs { margin: 0 0 12px; padding: 7px; display: flex; gap: 7px; overflow-x: auto; background: #eaf0f6; border: 1px solid var(--border); border-radius: 12px; scrollbar-width: none; }
.wizard-progress button, .assessment-section-tabs button { min-width: 64px; min-height: 46px; padding: 7px; display: grid; place-items: center; gap: 3px; color: var(--muted); background: transparent; border: 0; border-radius: 9px; font-size: 0; font-weight: 750; }
.wizard-progress button span, .assessment-section-tabs button span { width: 25px; height: 25px; display: grid; place-items: center; color: #47627e; background: #d4e0eb; border-radius: 50%; font-size: 11px; }
.wizard-progress button.is-active, .assessment-section-tabs button.is-active { color: var(--brand-dark); background: #fff; }
.wizard-progress button.is-active span, .assessment-section-tabs button.is-active span { color: #fff; background: var(--brand); }
.wizard-step[hidden], .assessment-section[hidden] { display: none; }
.wizard-status { display: none; }
.assessment-control-card { padding-bottom: 12px; }
.assessment-section-tabs { margin-top: 16px; }
.assessment-top-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.assessment-top-actions > span { width: 100%; color: var(--muted); font-size: 11px; }
.assessment-top-actions .btn { flex: 1; }
.assessment-note { margin: 0 0 14px; padding: 11px; color: #294b70; background: #edf5fd; border-left: 4px solid var(--brand); border-radius: 9px; }
.assessment-completion { margin-bottom: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.assessment-completion article { padding: 10px; background: var(--surface-soft); border: 1px solid var(--border-soft); border-radius: 9px; }
.assessment-completion span, .assessment-completion strong { display: block; }
.assessment-completion span { color: var(--muted); font-size: 10px; }
.assessment-completion strong { margin-top: 3px; color: #788898; font-size: 11px; }
.assessment-completion strong.is-filled { color: var(--success); }
.detail-grid { display: grid; gap: 8px; }
.detail-grid > div { padding: 11px; background: var(--surface-soft); border: 1px solid var(--border-soft); border-radius: 10px; }
.detail-grid span, .detail-grid strong { display: block; }
.detail-grid span { color: var(--muted); font-size: 10px; }
.chart-controls { margin-bottom: 10px; display: grid; gap: 7px; }
.chart-canvas { min-height: 250px; padding: 6px; overflow-x: auto; background: var(--surface-soft); border: 1px solid var(--border-soft); border-radius: 10px; }
.chart-canvas svg { width: 100%; min-width: 580px; height: 270px; }
.chart-grid line { stroke: #dce6f0; }
.chart-grid text, .chart-date { fill: #687d92; font-size: 11px; }
.chart-line { fill: none; stroke: var(--brand); stroke-width: 4; }
.chart-canvas circle { fill: #fff; stroke: var(--brand); stroke-width: 4; }
.branding-editor { display: grid; gap: 16px; }
.branding-preview { width: 150px; height: 150px; margin: auto; display: grid; place-items: center; overflow: hidden; color: #fff; background: var(--brand); border-radius: 25px; }
.branding-preview img { width: 100%; height: 100%; padding: 10px; object-fit: contain; background: #fff; }
.branding-preview strong { font-size: 42px; }
.contract-content { max-height: 48vh; overflow: auto; line-height: 1.65; }
.portal-block { margin-bottom: 12px; }
.signature-wrap { padding: 7px; background: #eef3f8; border: 1px solid var(--border); border-radius: 11px; }
.signature-wrap canvas { width: 100%; height: 180px; display: block; background: #fff; border: 1px dashed #829bb5; border-radius: 8px; touch-action: none; }

.bottom-nav {
    position: fixed;
    inset: auto 8px calc(8px + var(--safe-bottom));
    z-index: 60;
    left: 50%;
    right: auto;
    width: min(412px, calc(100% - 16px));
    transform: translateX(-50%);
    height: 66px;
    padding: 5px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--border);
    border-radius: 19px;
    box-shadow: 0 12px 35px rgba(12, 34, 58, .2);
    backdrop-filter: blur(15px);
}
.bottom-nav > a, .bottom-nav > button {
    min-width: 0;
    padding: 5px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #708398;
    background: transparent;
    border: 0;
    border-radius: 13px;
    font-size: 9px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}
.bottom-nav .ui-icon { width: 21px; height: 21px; }
.bottom-nav .active { color: var(--brand-dark); background: var(--brand-soft); }
.bottom-nav:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }

.mobile-menu-backdrop { position: fixed; inset: 0; z-index: 79; background: rgba(4, 18, 33, .48); backdrop-filter: blur(2px); }
.mobile-menu-sheet {
    position: fixed;
    inset: auto 0 0;
    z-index: 80;
    left: 50%;
    width: min(440px, 100%);
    transform: translate(-50%, 105%);
    max-height: 82vh;
    padding: 8px 14px calc(18px + var(--safe-bottom));
    overflow-y: auto;
    background: #fff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -16px 45px rgba(7, 29, 52, .25);
    transition: transform .22s ease;
}
.mobile-menu-sheet.is-open { transform: translate(-50%, 0); }
.mobile-menu-handle { width: 42px; height: 4px; margin: 0 auto 12px; background: #c5d1dc; border-radius: 99px; }
.mobile-menu-head { margin-bottom: 13px; padding-bottom: 12px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-soft); }
.mobile-menu-head strong, .mobile-menu-head small { display: block; }
.mobile-menu-head strong { color: var(--title); }
.mobile-menu-head small { color: var(--muted); font-size: 11px; }
.mobile-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mobile-menu-link {
    min-height: 61px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    background: var(--surface-soft);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    font-weight: 750;
    text-align: left;
    text-decoration: none;
}
.mobile-menu-link.active { color: var(--brand-dark); background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand), white 55%); }
.mobile-menu-link.danger { color: var(--danger); background: #fff7f8; }
.mobile-menu-link.pwa-install { width: 100%; cursor: pointer; grid-column: 1 / -1; }

.offline-banner {
    position: fixed;
    inset: calc(12px + var(--safe-top)) 12px auto;
    z-index: 70;
    left: 50%;
    width: min(412px, calc(100% - 24px));
    transform: translateX(-50%);
    padding: 9px 12px;
    color: #725000;
    background: #fff0c1;
    border: 1px solid #e4c66f;
    border-radius: 10px;
    text-align: center;
    font-size: 11px;
    font-weight: 750;
    box-shadow: var(--shadow);
}

.app-footer {
    margin-top: 8px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand), transparent 90%) 0%, rgba(255, 255, 255, .96) 56%, #fff 100%);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--brand), transparent 82%);
    text-align: center;
}
.app-footer-meta { margin: 0; font-size: 0.76rem; color: var(--muted); line-height: 1.35; }

@media (min-width: 600px) {
    .field { grid-column: span 6; }
    .field-8 { grid-column: span 8; }
    .field-12 { grid-column: span 12; }
}
@media (max-width: 360px) {
    .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
