/* Valimed — quiet Liquid Glass materials. Light from above, frost, not neon. */

:root {
    --text: #1d1d1f;
    --text-2: #6e6e73;
    --text-3: #8e8e93;
    --accent: #0071e3;
    --accent-press: #0077ed;
    --fill: rgba(255, 255, 255, 0.42);
    --fill-strong: rgba(255, 255, 255, 0.72);
    --hairline: rgba(255, 255, 255, 0.58);
    --inset: rgba(60, 60, 67, 0.12);
    --shadow: 0 18px 44px -18px rgba(42, 38, 52, 0.28), 0 6px 16px -8px rgba(42, 38, 52, 0.12);
    --radius: 24px;
    --radius-sm: 16px;
    --font: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --display: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { height: 100%; }

body {
    margin: 0;
    min-height: 100%;
    color: var(--text);
    font: 16px/1.47 var(--font);
    letter-spacing: -0.011em;
    background: #e7e2da;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, .metric-value, .brand-name {
    font-family: var(--display);
    font-weight: 650;
    letter-spacing: -0.03em;
}

h1 { font-size: 2.15rem; line-height: 1.12; margin: 0; font-weight: 670; }
h2 { font-size: 1.125rem; line-height: 1.25; margin: 0; font-weight: 620; }
h3 { font-size: 0.94rem; margin: 0; font-weight: 600; }
p { margin: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; opacity: 0.88; }

button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }

.ambient {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 70% at 12% -10%, rgba(255, 214, 176, 0.95) 0%, transparent 58%),
        radial-gradient(ellipse 70% 55% at 92% 8%, rgba(176, 210, 255, 0.82) 0%, transparent 52%),
        radial-gradient(ellipse 55% 45% at 70% 100%, rgba(216, 196, 224, 0.7) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 8% 88%, rgba(255, 228, 210, 0.55) 0%, transparent 50%),
        linear-gradient(165deg, #f4efe8 0%, #e5e9f0 48%, #ece4dc 100%);
}

.ambient::before {
    content: "";
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(closest-side at 28% 32%, rgba(255, 255, 255, 0.55), transparent 70%),
        radial-gradient(closest-side at 74% 44%, rgba(255, 255, 255, 0.28), transparent 68%);
    filter: blur(8px);
}

.ambient::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 28%, rgba(40, 36, 48, 0.04) 100%);
    pointer-events: none;
}

.grain {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.04;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.glass {
    position: relative;
    isolation: isolate;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.56) 0%, rgba(255, 255, 255, 0.34) 100%);
    backdrop-filter: blur(22px) saturate(1.55);
    -webkit-backdrop-filter: blur(22px) saturate(1.55);
    border-radius: var(--radius);
    box-shadow:
        0 0.5px 0 rgba(255, 255, 255, 0.78) inset,
        0 -0.5px 0 rgba(40, 40, 50, 0.05) inset,
        0 0 0 0.5px rgba(255, 255, 255, 0.5),
        var(--shadow);
}

.glass::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.06) 22%, transparent 48%);
}

.glass > * { position: relative; z-index: 1; }

.glass-nav,
.glass-control {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.48) 100%);
    backdrop-filter: blur(28px) saturate(1.7);
    -webkit-backdrop-filter: blur(28px) saturate(1.7);
}

.glass-strong {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.58) 100%);
    backdrop-filter: blur(26px) saturate(1.6);
    -webkit-backdrop-filter: blur(26px) saturate(1.6);
}

.topbar {
    position: sticky;
    top: 14px;
    z-index: 40;
    width: min(1120px, calc(100% - 28px));
    margin: 14px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.45rem 0.5rem 0.45rem 1rem;
    border-radius: 999px;
    min-height: 56px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.brand-logo {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    overflow: hidden;
    flex-shrink: 0;
    background: #ffffff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 0 0 0.5px rgba(255, 255, 255, 0.55),
        0 6px 14px -10px rgba(40, 40, 50, 0.28);
}

.brand-logo img {
    width: 170%;
    height: 170%;
    object-fit: cover;
    object-position: 50% 28%;
    margin: -30% 0 0 -35%;
    display: block;
}

.brand-name {
    font-size: 0.98rem;
    font-weight: 620;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.seg {
    display: flex;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(120, 120, 128, 0.12);
    box-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.45) inset;
}

.seg a {
    color: var(--text);
    padding: 0.42rem 0.95rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 560;
    opacity: 0.72;
}

.seg a:hover { opacity: 1; background: rgba(255, 255, 255, 0.28); }

.seg a.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.86);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 4px 10px -4px rgba(40, 40, 50, 0.22);
}

.tools {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.tools form { margin: 0; }

.page {
    width: min(1120px, calc(100% - 36px));
    margin: 2.4rem auto 5rem;
}

.masthead {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.masthead-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: 0.45rem;
}

.lede {
    margin-top: 0.45rem;
    color: var(--text-2);
    font-size: 1.05rem;
    max-width: 36rem;
}

.panel {
    padding: 1.35rem 1.4rem 1.45rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.metric,
.banner,
.login-card,
.search-hero { overflow: hidden; }

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.84em;
    color: var(--text-2);
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.05rem;
}

.panel-head p,
.hint {
    color: var(--text-2);
    font-size: 0.9rem;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.15rem;
}

.metric {
    padding: 1.1rem 1.2rem 1.15rem;
}

.metric-label {
    color: var(--text-2);
    font-size: 0.8rem;
    font-weight: 560;
}

.metric-value {
    display: block;
    margin-top: 0.2rem;
    font-size: 2rem;
    line-height: 1.05;
    font-weight: 650;
    letter-spacing: -0.04em;
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.6rem, 1fr));
    gap: 0.35rem 0.2rem;
    padding: 0.85rem 0.55rem 0.95rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.stat { padding: 0.45rem 0.85rem; }
.stat .metric-value { font-size: 1.45rem; }

.stat-featured {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.3rem 1.45rem 1.35rem;
    margin-bottom: 0.85rem;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(226, 241, 248, 0.42) 100%);
}

.stat-featured .metric-value { font-size: 2.55rem; }
.stat-featured-label {
    margin-top: 0.2rem;
    font-size: 1.02rem;
    color: var(--text-2);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    margin: -0.15rem 0 1.15rem;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.28rem 0.45rem 0.28rem 0.85rem;
    border-radius: 999px;
}

.filter-pill span {
    font-size: 0.72rem;
    font-weight: 620;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-3);
    white-space: nowrap;
}

.filter-pill select {
    width: auto;
    max-width: 16rem;
    padding: 0.42rem 1.8rem 0.42rem 0.55rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.42);
    font-size: 0.9rem;
}

.filter-seg label {
    position: relative;
    color: var(--text);
    padding: 0.42rem 0.95rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 560;
    opacity: 0.72;
    cursor: pointer;
}

.filter-seg label.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.86);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 4px 10px -4px rgba(40, 40, 50, 0.22);
}

.filter-seg input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chip.is-active {
    background: rgba(255, 255, 255, 0.82);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 4px 10px -4px rgba(40, 40, 50, 0.18);
}

.stage {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: start;
}

.stack { display: flex; flex-direction: column; gap: 1rem; }
.split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.field { display: flex; flex-direction: column; gap: 0.38rem; margin-bottom: 0.85rem; }
.field:last-of-type { margin-bottom: 0; }
.field span,
.field > label { font-size: 0.8rem; font-weight: 560; color: var(--text-2); }

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.checks {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin: 0.15rem 0 0.9rem;
}

.checks label,
.remember {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.45), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
    font-size: 0.88rem;
    cursor: pointer;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="datetime-local"],
input[type="search"],
select,
textarea {
    width: 100%;
    appearance: none;
    background: rgba(255, 255, 255, 0.48);
    border: 0;
    border-radius: 14px;
    padding: 0.72rem 0.9rem;
    box-shadow:
        0 0 0 0.5px rgba(255, 255, 255, 0.55),
        0 1px 2px rgba(40, 40, 50, 0.06) inset;
    outline: none;
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%236e6e73' d='M1.2 1.3L6 6.1l4.8-4.8' stroke='%236e6e73' stroke-width='1.4' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2rem;
}

input:focus,
select:focus {
    background: rgba(255, 255, 255, 0.82);
    box-shadow:
        0 0 0 3.5px rgba(0, 113, 227, 0.16),
        0 0 0 0.5px rgba(0, 113, 227, 0.35);
}

input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    margin: 0;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0 0.5px rgba(60, 60, 67, 0.22), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    display: grid;
    place-items: center;
}

input[type="checkbox"]:checked {
    background: var(--accent);
    box-shadow: 0 0 0 0.5px rgba(0, 113, 227, 0.4), 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

input[type="checkbox"]:checked::after {
    content: "";
    width: 9px;
    height: 6px;
    border: 2px solid white;
    border-top: 0;
    border-right: 0;
    transform: translateY(-1px) rotate(-48deg);
}

.tenant-select {
    width: auto;
    max-width: 180px;
    padding: 0.42rem 1.85rem 0.42rem 0.8rem;
    border-radius: 999px;
    font-size: 0.86rem;
    background-color: rgba(255, 255, 255, 0.5);
}

.btn,
button {
    appearance: none;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.62rem 1.15rem;
    border-radius: 999px;
    font-weight: 590;
    font-size: 0.94rem;
    background: var(--accent);
    color: white;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.28) inset,
        0 8px 18px -8px rgba(0, 113, 227, 0.55);
    transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.btn:hover,
button:hover { background: var(--accent-press); }
.btn:active,
button:active { transform: scale(0.98); }

.btn-ghost,
.btn.secondary,
button.ghost {
    background: rgba(255, 255, 255, 0.46);
    color: var(--text);
    box-shadow:
        0 0.5px 0 rgba(255, 255, 255, 0.75) inset,
        0 0 0 0.5px rgba(255, 255, 255, 0.5),
        0 6px 16px -10px rgba(40, 40, 50, 0.25);
}

.btn-ghost:hover,
.btn.secondary:hover,
button.ghost:hover { background: rgba(255, 255, 255, 0.7); }

.btn-quiet,
button.quiet {
    background: transparent;
    color: var(--text-2);
    box-shadow: none;
    padding: 0.4rem 0.75rem;
}

.btn-quiet:hover,
button.quiet:hover {
    background: rgba(255, 59, 48, 0.08);
    color: #d70015;
}

.file {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.file input[type="file"] {
    width: auto;
    max-width: 100%;
    padding: 0.45rem;
    font-size: 0.86rem;
    background: rgba(255, 255, 255, 0.4);
}

.banner {
    padding: 0.95rem 1.15rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.notice {
    background: linear-gradient(180deg, rgba(214, 245, 222, 0.62), rgba(214, 245, 222, 0.32));
}

.secret {
    word-break: break-all;
    background: linear-gradient(180deg, rgba(255, 244, 214, 0.7), rgba(255, 244, 214, 0.38));
}

.secret strong { display: block; margin-bottom: 0.25rem; font-size: 0.8rem; color: var(--text-2); font-weight: 600; letter-spacing: 0.02em; }

.search-hero {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    padding: 0.45rem 0.45rem 0.45rem 0.35rem;
    margin-bottom: 1rem;
    border-radius: 999px;
}

.search-hero input[name="q"] {
    flex: 1;
    min-width: 0;
    background: transparent;
    box-shadow: none;
    font-size: 1.05rem;
    padding: 0.7rem 0.9rem;
}

.search-hero input[name="q"]:focus { box-shadow: none; background: transparent; }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
    display: inline-flex;
    align-items: center;
    color: var(--text);
    background: rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    padding: 0.38rem 0.8rem;
    font-size: 0.84rem;
    box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.5), 0 1px 0 rgba(255, 255, 255, 0.55) inset;
}

.chip:hover { background: rgba(255, 255, 255, 0.7); }

.muted { color: var(--text-2); }
.caption { color: var(--text-2); font-size: 0.84rem; margin: 0.7rem 0 0.85rem; }

.table-wrap { overflow-x: auto; margin: 0 -0.25rem; }
table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

table.data th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-3);
    padding: 0.45rem 0.65rem 0.7rem;
}

table.data td {
    padding: 0.8rem 0.65rem;
    vertical-align: top;
    border-top: 0.5px solid var(--inset);
}

table.data tr:first-child td { border-top: 0; }

.people { display: flex; flex-direction: column; }
.person {
    display: grid;
    grid-template-columns: minmax(11rem, 1.1fr) minmax(10rem, 1fr) minmax(9rem, 0.9fr) minmax(10rem, 1.1fr);
    gap: 0.9rem 1.2rem;
    padding: 1.05rem 0.15rem;
    border-top: 0.5px solid var(--inset);
}

.person:first-child { border-top: 0; }
.person-head {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-3);
    padding-top: 0.15rem;
    padding-bottom: 0.55rem;
}
.person-name { font-size: 1.05rem; font-weight: 610; letter-spacing: -0.02em; }
.kv { font-size: 0.88rem; }
.kv .k { color: var(--text-3); margin-right: 0.25rem; }

.status {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(120, 120, 128, 0.12);
    color: var(--text-2);
}

.status-valid,
.status-completed,
.status-active,
.status-Érvényes { background: rgba(52, 199, 89, 0.16); color: #248a3d; }
.status-pending,
.status-processing { background: rgba(255, 159, 10, 0.18); color: #b25000; }
.status-invalid,
.status-revoked,
.status-failed { background: rgba(255, 59, 48, 0.12); color: #d70015; }

.empty {
    text-align: center;
    color: var(--text-2);
    padding: 1.6rem 0.5rem;
}

.pagination {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 1.1rem;
    align-items: center;
}

.pagination a,
.pagination span {
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    color: var(--text);
    font-size: 0.88rem;
}

.pagination .current {
    background: rgba(255, 255, 255, 0.86);
    font-weight: 600;
    box-shadow: 0 4px 10px -4px rgba(40, 40, 50, 0.2);
}

.pagination span:not(.current) { opacity: 0.45; }

/* Login */
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.login-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(400px, 100%);
}
.login-logo {
    width: 120px;
    height: 120px;
    margin: 0 0 1.25rem;
    border-radius: 28px;
    overflow: hidden;
    background: #ffffff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 0 0 0.5px rgba(255, 255, 255, 0.65),
        0 16px 32px -18px rgba(40, 40, 50, 0.22);
}
.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.login-stack.is-playing {
    width: auto;
}
.login-stack.is-playing .login-logo { display: none; }
.login-card {
    width: 100%;
    padding: 2.15rem 1.85rem 1.9rem;
    overflow: hidden;
}
.login-intro {
    display: none;
    width: 100%;
    height: auto;
    vertical-align: top;
    object-fit: contain;
    background: #fff;
    border-radius: inherit;
}
.login-card.is-playing {
    width: min(420px, 92vw);
    padding: 0;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 16px 36px -18px rgba(40, 40, 50, 0.22);
}
.login-card.is-playing::before { display: none; }
.login-card.is-playing > :not(.login-intro) { display: none; }
.login-card.is-playing .login-intro {
    display: block;
    position: relative;
    inset: auto;
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
    border-radius: inherit;
}
.login-card > * { position: relative; z-index: 1; }
.login-card h1 { font-size: 2rem; }
.login-card .lede { margin: 0.4rem 0 1.5rem; font-size: 0.98rem; }
.login-card .field { margin-bottom: 1rem; }
.login-card button { width: 100%; margin-top: 0.35rem; padding: 0.82rem 1rem; font-size: 1.02rem; }
.remember { margin: 0.2rem 0 0.4rem; width: fit-content; }
.error { color: #d70015; font-size: 0.9rem; margin: 0.4rem 0 0.2rem; }

@media (max-width: 900px) {
    .metrics,
    .stage,
    .split,
    .field-row,
    .person { grid-template-columns: 1fr; }
    .stat-featured { flex-direction: column; align-items: flex-start; }
    .topbar {
        border-radius: 22px;
        flex-wrap: wrap;
        padding: 0.65rem 0.75rem;
    }
    .brand-name { max-width: 140px; }
}

@media (max-width: 640px) {
    h1 { font-size: 1.7rem; }
    .page { width: calc(100% - 20px); margin-top: 1.4rem; }
    .seg a { padding: 0.4rem 0.7rem; }
    .metric-value { font-size: 1.65rem; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass,
    .glass-nav,
    .glass-control,
    .glass-strong {
        background: rgba(252, 250, 247, 0.92);
    }
}

@media (prefers-reduced-transparency: reduce) {
    .glass,
    .glass-nav,
    .glass-control,
    .glass-strong,
    .search-hero,
    .metric,
    .banner {
        background: rgba(250, 248, 245, 0.94);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
