/* ==========================================================================
   Design system — Predicción clínica (colecistitis)
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
    /* Palette — soft clinical teal + slate */
    --bg: #f4f7fb;
    --bg-accent: #e8f4f2;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --surface-muted: #f8fafc;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --text: #0f172a;
    --text-secondary: #475569;
    --muted: #64748b;
    --primary: #0d9488;
    --primary-hover: #0f766e;
    --primary-soft: rgba(13, 148, 136, 0.1);
    --primary-ring: rgba(13, 148, 136, 0.22);
    --accent: #6366f1;
    --accent-soft: rgba(99, 102, 241, 0.08);
    --danger: #dc2626;
    --danger-soft: #fef2f2;
    --danger-border: #fecaca;
    --success: #059669;
    --success-soft: #ecfdf5;
    --success-border: #a7f3d0;
    --warning: #d97706;
    --warning-soft: #fffbeb;

    /* Elevation */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.1);
    --shadow-glow: 0 0 0 1px rgba(13, 148, 136, 0.08), 0 12px 32px rgba(13, 148, 136, 0.12);

    /* Layout */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --header-h: 4rem;
    --container: 1120px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

h1 { font-size: clamp(1.35rem, 2.5vw, 1.65rem); }
h2 { font-size: 1.125rem; }
h3 { font-size: 0.95rem; }

p { margin: 0; }

a {
    color: var(--primary);
    text-decoration: none;
}
a:hover { text-decoration: underline; }

.muted { color: var(--muted); }
.small { font-size: 0.8125rem; }
.hidden { display: none !important; }

/* Alerts / feedback */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    line-height: 1.45;
    border: 1px solid transparent;
}
.alert:empty { display: none; }
.alert.error {
    background: var(--danger-soft);
    border-color: var(--danger-border);
    color: #991b1b;
}
.alert.success {
    background: var(--success-soft);
    border-color: var(--success-border);
    color: #065f46;
}
.alert.info {
    background: var(--primary-soft);
    border-color: rgba(13, 148, 136, 0.2);
    color: var(--primary-hover);
}

/* Feedback messages */
#formMsg, .auth-msg {
    margin: 0;
    min-height: 0;
}
#formMsg.error, .auth-msg.error {
    display: flex;
    background: var(--danger-soft);
    border: 1px solid var(--danger-border);
    color: #991b1b;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
}
#formMsg.success, .auth-msg.success {
    display: flex;
    background: var(--success-soft);
    border: 1px solid var(--success-border);
    color: #065f46;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
}
#formMsg.info {
    display: flex;
    background: var(--primary-soft);
    border: 1px solid rgba(13, 148, 136, 0.2);
    color: var(--primary-hover);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
}

.error { color: var(--danger); }
.success { color: var(--success); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font: inherit;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    padding: 0.6rem 1.15rem;
    transition: background var(--transition), border-color var(--transition),
        color var(--transition), box-shadow var(--transition), transform 0.1s ease;
    white-space: nowrap;
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn svg {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
}

.btn-primary, button.primary {
    background: linear-gradient(135deg, var(--primary) 0%, #14b8a6 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary:hover:not(:disabled), button.primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    box-shadow: var(--shadow-md);
}

.btn-ghost, button.ghost {
    background: var(--surface);
    color: var(--text-secondary);
    border-color: var(--border);
}
.btn-ghost:hover:not(:disabled), button.ghost:hover:not(:disabled) {
    background: var(--surface-muted);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
}

/* Form controls */
.input, input:not([type="checkbox"]):not([type="radio"]),
select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 0.875rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6l3.5 3.5L11.5 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.25rem;
}
.input:hover, input:hover, select:hover {
    border-color: var(--border-strong);
}
.input:focus, input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-ring);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.field-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.field small, .field-hint {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.4;
}

/* ==========================================================================
   Auth page
   ========================================================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 1rem;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(13, 148, 136, 0.12), transparent 50%),
        radial-gradient(ellipse 60% 50% at 90% 100%, rgba(99, 102, 241, 0.08), transparent 50%),
        var(--bg);
}

.auth-shell {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 920px;
    min-height: min(640px, calc(100vh - 2rem));
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

@media (min-width: 768px) {
    .auth-shell {
        grid-template-columns: 1fr 1.05fr;
    }
}

.auth-brand {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem;
    min-height: 420px;
    color: #f0fdfa;
    position: relative;
    overflow: hidden;
    background-color: #134e4a;
    background-image: url("/static/1.jpg");
    background-size: cover;
    background-position: 58% center;
    background-repeat: no-repeat;
}

@media (min-width: 768px) {
    .auth-brand {
        display: flex;
        min-height: 100%;
    }
}

/* Capa 1: lectura del texto (izquierda) + cierre inferior */
.auth-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(
            108deg,
            rgba(15, 23, 42, 0.92) 0%,
            rgba(15, 23, 42, 0.78) 28%,
            rgba(15, 118, 110, 0.55) 52%,
            rgba(19, 78, 74, 0.35) 72%,
            rgba(13, 148, 136, 0.12) 100%
        ),
        linear-gradient(
            to top,
            rgba(15, 23, 42, 0.88) 0%,
            rgba(15, 23, 42, 0.25) 38%,
            transparent 68%
        );
    pointer-events: none;
}

/* Capa 2: tinte teal de marca + viñeta suave */
.auth-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 90% 70% at 12% 18%, rgba(45, 212, 191, 0.18), transparent 55%),
        radial-gradient(ellipse 80% 60% at 100% 100%, rgba(15, 23, 42, 0.5), transparent 50%),
        linear-gradient(165deg, rgba(13, 148, 136, 0.28) 0%, transparent 45%);
    pointer-events: none;
    mix-blend-mode: soft-light;
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.brand-logo svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #ccfbf1;
}

.auth-brand h1 {
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    max-width: 14ch;
    line-height: 1.2;
    text-shadow:
        0 2px 20px rgba(0, 0, 0, 0.45),
        0 1px 3px rgba(0, 0, 0, 0.35);
}

.auth-brand p {
    color: rgba(240, 253, 250, 0.92);
    font-size: 0.9375rem;
    max-width: 30ch;
    line-height: 1.65;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.auth-brand-features {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.auth-brand-features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(240, 253, 250, 0.95);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.auth-brand-features li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5eead4;
    box-shadow: 0 0 8px rgba(94, 234, 212, 0.6);
    flex-shrink: 0;
}

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.75rem, 4vw, 2.75rem);
}

.auth-panel-header {
    margin-bottom: 1.75rem;
}
.auth-panel-header h2 {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}
.auth-panel-header .muted {
    font-size: 0.875rem;
}

.tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background: var(--surface-muted);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--muted);
    padding: 0.55rem 0.75rem;
    border-radius: calc(var(--radius-md) - 2px);
    font-weight: 500;
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.tab:hover:not(.active) {
    color: var(--text-secondary);
}
.tab.active {
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-xs);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.auth-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.auth-form label > span:first-child {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.auth-form .btn-primary {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.7rem 1rem;
}

.auth-footer-note {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: var(--accent-soft);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

#authMsg {
    margin-top: 1rem;
}

/* ==========================================================================
   App layout
   ========================================================================== */

.app-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}
.topbar-brand .brand-logo {
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    background: var(--primary-soft);
}
.topbar-brand .brand-logo svg {
    color: var(--primary);
    width: 1.15rem;
    height: 1.15rem;
}
.topbar-title {
    min-width: 0;
}
.topbar-title h1 {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.topbar-title p {
    font-size: 0.75rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.65rem 0.35rem 0.35rem;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
}
.user-avatar {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #14b8a6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
}
.user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    padding-right: 0.25rem;
}
.user-meta strong {
    font-weight: 600;
    color: var(--text);
    font-size: 0.8125rem;
}
.user-meta span {
    font-size: 0.6875rem;
    color: var(--muted);
    text-transform: capitalize;
}

.badge {
    background: var(--primary-soft);
    color: var(--primary-hover);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
    width: 100%;
}

.page-main {
    flex: 1;
    padding: 1.75rem 0 3rem;
}

.page-hero {
    margin-bottom: 1.5rem;
}
.page-hero h2 {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}
.page-hero p {
    color: var(--muted);
    font-size: 0.875rem;
    max-width: 52ch;
}

.workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

@media (min-width: 960px) {
    .workspace {
        grid-template-columns: 1fr minmax(280px, 340px);
    }
}

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card-head {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.card-head h2 {
    font-size: 1.05rem;
}
.card-head p {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: var(--muted);
}
.card-body {
    padding: 1.5rem;
}

.card-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
}
.card-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Form sections */
.pred-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-section {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.form-section-head {
    padding: 0.75rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.form-section-head h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-hover);
}
.form-section-head::before {
    content: "";
    width: 3px;
    height: 1rem;
    border-radius: 2px;
    background: var(--primary);
}
.form-section .form-grid {
    padding: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.875rem 1rem;
}

.section-title {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
    border: none;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-hover);
}

.form-outcome-block {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-soft) 0%, var(--primary-soft) 100%);
    border: 1px solid rgba(13, 148, 136, 0.15);
    border-radius: var(--radius-md);
}
.form-outcome-block .form-section-head::before {
    background: var(--accent);
}
.form-outcome-block .form-section-head h3 {
    color: #4338ca;
}
.form-outcome-fields {
    padding: 1rem;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--surface-muted);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin: 0 -1.5rem -1.5rem;
}
.form-actions .btn-primary {
    flex: 1;
    min-width: 180px;
}

.pred-form > #formMsg {
    margin: 1rem 0 0;
}

/* Loading */
.loading-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 1.5rem;
    color: var(--muted);
    font-size: 0.875rem;
}
.spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.875rem;
    padding: 1rem;
}
.skeleton {
    height: 2.75rem;
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, var(--border) 25%, var(--surface-muted) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s ease-in-out infinite;
}
@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Insight / results panel */
.insight-card {
    position: relative;
}
@media (min-width: 960px) {
    .insight-card {
        position: sticky;
        top: calc(var(--header-h) + 1.25rem);
    }
}

.insight-card .card-body {
    padding: 1.25rem;
}

.empty-state {
    text-align: center;
    padding: 2rem 1rem;
}
.empty-state-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--surface-muted);
    border: 1px dashed var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}
.empty-state-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}
.empty-state h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.35rem;
}
.empty-state p {
    font-size: 0.8125rem;
    color: var(--muted);
    max-width: 22ch;
    margin: 0 auto;
}

.result-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.metric {
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface-muted);
    transition: border-color var(--transition), background var(--transition);
}
.metric-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.35rem;
}
.metric-value {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}
.metric-value.danger {
    color: var(--danger);
}
.metric-value.ok {
    color: var(--success);
}
.metric.metric-highlight {
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}
.metric.metric-highlight.risk-high {
    border-color: var(--danger-border);
    background: var(--danger-soft);
}
.metric.metric-highlight.risk-low {
    border-color: var(--success-border);
    background: var(--success-soft);
}

.result-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted);
}
.result-footer svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: var(--success);
}

.big-value {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}
.big-value.danger { color: var(--danger); }
.big-value.ok { color: var(--success); }

.result-card {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-muted) 100%);
}
.result-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Footer */
.app-footer {
    padding: 1rem 0 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

/* Responsive */
@media (max-width: 480px) {
    .btn-label { display: none; }
}

@media (max-width: 640px) {
    .topbar-inner {
        flex-wrap: wrap;
        height: auto;
        min-height: var(--header-h);
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    .user-pill .user-meta { display: none; }
    .form-actions {
        flex-direction: column;
        margin: 0 -1.25rem -1.25rem;
    }
    .card-body { padding: 1.25rem; }
    .form-actions { padding: 1rem 1.25rem; }
}
