:root {
    --navy: #071f35;
    --navy-2: #0a2b49;
    --blue: #1769e0;
    --blue-dark: #0d56c5;
    --green: #49d6a0;
    --green-dark: #0b8b5e;
    --orange: #f59e42;
    --red: #dc4c64;
    --ink: #13263a;
    --muted: #66788a;
    --line: #dfe7ee;
    --surface: #ffffff;
    --background: #f4f7f9;
    --radius: 18px;
    --shadow: 0 16px 45px rgba(11, 36, 60, .08);
    --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--background); color: var(--ink); font: 16px/1.55 var(--font); }
button, input, select, textarea { font: inherit; }
button, summary, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; color: var(--navy); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.045em; }
h2 { margin-bottom: 4px; color: var(--navy); font-size: 1.25rem; line-height: 1.25; letter-spacing: -.02em; }
h3 { color: var(--navy); }

.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-size: 1rem; letter-spacing: .12em; }
.brand small { margin-top: 4px; color: var(--green); font-size: .64rem; font-weight: 800; letter-spacing: .36em; }
.brand-mark { position: relative; display: grid; width: 38px; height: 38px; place-items: center; overflow: hidden; border-radius: 11px; background: var(--green); color: var(--navy); font-weight: 900; transform: rotate(-4deg); }
.brand-mark::after { position: absolute; right: -9px; bottom: 6px; width: 28px; height: 6px; border-radius: 8px; background: var(--blue); content: ""; transform: rotate(-35deg); }
.brand-mark span { position: relative; z-index: 1; transform: rotate(4deg); }
.brand-light strong { color: white; }
.brand-dark strong { color: var(--navy); }

.topbar { position: sticky; z-index: 30; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; padding: 0 max(24px, calc((100vw - 1380px) / 2)); border-bottom: 1px solid rgba(219, 228, 236, .9); background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); }
.topnav { display: flex; align-self: stretch; align-items: center; gap: 8px; }
.nav-link { position: relative; display: flex; height: 100%; align-items: center; padding: 0 15px; color: #617184; font-size: .91rem; font-weight: 650; }
.nav-link:hover, .nav-link.active { color: var(--blue); }
.nav-link.active::after { position: absolute; right: 15px; bottom: -1px; left: 15px; height: 3px; border-radius: 4px 4px 0 0; background: var(--blue); content: ""; }
.account-menu { display: flex; justify-self: end; align-items: center; gap: 10px; }
.avatar { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: #dfeeff; color: var(--blue-dark); font-size: .78rem; font-weight: 800; }
.account-copy { display: flex; flex-direction: column; min-width: 110px; line-height: 1.25; }
.account-copy strong { font-size: .86rem; }
.account-copy small { color: var(--muted); font-size: .73rem; }
.logout-link { padding: 8px 10px; border-left: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.logout-link:hover { color: var(--red); }

.app-shell { width: min(1380px, calc(100% - 48px)); margin: 0 auto; padding: 52px 0 72px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-heading p { margin-bottom: 0; color: var(--muted); }
.eyebrow { display: inline-block; margin-bottom: 14px; font-size: .7rem; font-weight: 850; letter-spacing: .2em; }
.eyebrow-blue { color: var(--blue); }
.section-kicker { display: block; margin-bottom: 5px; color: #8292a1; font-size: .65rem; font-weight: 850; letter-spacing: .16em; }

.button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; gap: 14px; padding: 10px 18px; border: 1px solid transparent; border-radius: 12px; font-weight: 750; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--blue); color: white; box-shadow: 0 10px 24px rgba(23, 105, 224, .2); }
.button-primary:hover { background: var(--blue-dark); box-shadow: 0 12px 28px rgba(23, 105, 224, .26); }
.button-secondary { border-color: var(--line); background: white; color: var(--navy); box-shadow: 0 4px 12px rgba(19, 38, 58, .04); }
.button-secondary:hover { border-color: #b7c9db; }
.button-white { background: white; color: var(--blue); }
.button-block { width: 100%; }
.text-button { border: 0; background: transparent; color: var(--blue); font-size: .8rem; font-weight: 700; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.stat-card { position: relative; min-height: 166px; overflow: hidden; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 6px 20px rgba(16, 45, 70, .035); }
.stat-card-primary { border-color: transparent; background: var(--navy); color: white; }
.stat-card-primary::after { position: absolute; right: -56px; bottom: -72px; width: 190px; height: 190px; border: 26px solid rgba(73, 214, 160, .12); border-radius: 50%; content: ""; }
.stat-card > span { display: block; margin: 12px 0 1px; color: var(--muted); font-size: .82rem; font-weight: 650; }
.stat-card-primary > span { color: #a9bfd2; }
.stat-card > strong { display: block; color: var(--navy); font-size: 2rem; line-height: 1.2; letter-spacing: -.04em; }
.stat-card-primary > strong { color: white; }
.stat-card > small { color: #8795a2; font-size: .72rem; }
.stat-icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 10px; background: rgba(73, 214, 160, .16); color: var(--green); font-weight: 900; }
.stat-icon-green { background: #e3f8ef; color: var(--green-dark); }
.stat-icon-orange { background: #fff0df; color: #d1721c; }

.content-grid { display: grid; gap: 22px; }
.dashboard-grid { grid-template-columns: minmax(0, 1.9fr) minmax(300px, .8fr); margin-bottom: 22px; }
.lower-grid { grid-template-columns: minmax(0, 2fr) minmax(290px, .75fr); margin: 22px 0; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 28px rgba(14, 40, 63, .045); }
.section-panel { padding: 24px; scroll-margin-top: 98px; }
.panel-head { display: flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-head h2 { margin: 0; }
.panel-note { color: var(--muted); font-size: .75rem; }
.count-pill { padding: 4px 9px; border-radius: 999px; background: #eef4f8; color: var(--muted); font-size: .75rem; font-weight: 750; }
.dashboard-grid > .panel:first-child { padding: 24px 24px 12px; }
.action-panel { padding: 24px; background: linear-gradient(160deg, #fff, #f6faff); }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .84rem; }
th { padding: 10px 12px; border-bottom: 1px solid var(--line); color: #82909c; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
td { padding: 15px 12px; border-bottom: 1px solid #edf1f4; color: #4c5e6e; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td strong, td small { display: block; }
td strong { color: var(--ink); font-size: .84rem; }
td small { margin-top: 2px; color: #93a0ac; font-size: .71rem; }
tbody tr:hover { background: #fafcfd; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.badge::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.badge-active, .badge-paid { background: #e7f8f0; color: #087650; }
.badge-pending { background: #eef4fa; color: #62758b; }
.badge-overdue { background: #fff0e1; color: #b86014; }
.badge-cancelled, .badge-expired { background: #fbecef; color: #b23850; }
.badge-paused { background: #fff7dc; color: #8f7000; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; }
.field > span:first-child { color: #516374; font-size: .78rem; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid #d6e0e8; border-radius: 10px; outline: none; background: white; color: var(--ink); font-size: .88rem; transition: border .15s ease, box-shadow .15s ease; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 105, 224, .12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack-form .button { margin-top: 2px; }

.user-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.user-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #e5ebf0; border-radius: 14px; }
.user-card.is-muted { opacity: .55; }
.avatar-large { width: 44px; height: 44px; border-radius: 13px; }
.user-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.user-copy strong, .user-copy span, .user-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-copy strong { color: var(--navy); font-size: .86rem; }
.user-copy span { color: var(--muted); font-size: .73rem; }
.user-copy small { margin-top: 2px; color: var(--green-dark); font-size: .68rem; }

.popover { position: relative; }
.popover > summary { list-style: none; }
.popover > summary::-webkit-details-marker { display: none; }
.popover-card { position: absolute; z-index: 20; top: calc(100% + 10px); right: 0; width: min(430px, calc(100vw - 40px)); padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 24px 65px rgba(8, 32, 54, .18); }
.popover-card h3 { margin-bottom: 18px; }
.status-form { min-width: 116px; }
.status-select { width: 100%; padding: 6px 8px; border: 0; border-radius: 999px; outline: none; font-size: .72rem; font-weight: 750; }
.status-paid { background: #e7f8f0; color: #087650; }
.status-pending { background: #eef4fa; color: #62758b; }
.status-overdue { background: #fff0e1; color: #b86014; }
.status-cancelled { background: #fbecef; color: #b23850; }
.status-active { background: #e7f8f0; color: #087650; }
.status-paused { background: #fff7dc; color: #8f7000; }
.status-expired { background: #f1f1f2; color: #67717b; }

.package-admin-list { display: flex; flex-direction: column; gap: 10px; }
.package-admin-list article { display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: 13px; background: #f5f8fa; }
.package-admin-list article > div:last-child { display: flex; min-width: 0; flex-direction: column; }
.package-admin-list strong { color: var(--navy); font-size: .83rem; }
.package-admin-list span, .package-admin-list small { color: var(--muted); font-size: .7rem; }
.provider-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: var(--blue); color: white; font-weight: 900; }
.inline-details { margin-top: 14px; border-top: 1px solid var(--line); }
.inline-details > summary { padding: 15px 2px 2px; list-style: none; color: var(--blue); font-size: .82rem; font-weight: 750; }
.detail-form { margin-top: 16px; }

.activity-list > div { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid #edf1f4; }
.activity-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; }
.activity-dot.success { background: var(--green-dark); box-shadow: 0 0 0 4px #e7f8f0; }
.activity-dot.error { background: var(--red); box-shadow: 0 0 0 4px #fbecef; }
.activity-list p { display: flex; min-width: 0; flex: 1; flex-direction: column; margin: 0; }
.activity-list strong { font-size: .8rem; }
.activity-list small { overflow: hidden; color: var(--muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.activity-list time { color: var(--muted); font-size: .7rem; white-space: nowrap; }

.empty-state { display: flex; min-height: 210px; align-items: center; justify-content: center; flex-direction: column; padding: 30px; color: var(--muted); text-align: center; }
.empty-state > span { display: grid; width: 46px; height: 46px; margin-bottom: 12px; place-items: center; border-radius: 14px; background: #edf4f8; color: var(--blue); font-size: 1.4rem; }
.empty-state h3 { margin-bottom: 5px; }
.empty-state p { max-width: 400px; margin: 0; font-size: .85rem; }
.empty-state.compact { min-height: 90px; }

.flash-wrap { position: fixed; z-index: 100; top: 88px; left: 50%; width: min(520px, calc(100% - 32px)); transform: translateX(-50%); }
.flash { padding: 13px 16px; border: 1px solid; border-radius: 12px; background: white; box-shadow: var(--shadow); font-size: .85rem; font-weight: 650; }
.flash-success { border-color: #a9e7cb; color: #087650; }
.flash-error { border-color: #f0b6c0; color: #a73349; }
.flash-info { border-color: #b8d4f8; color: var(--blue-dark); }

/* Logowanie */
.auth-page { min-height: 100vh; background: white; }
.auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(420px, 1.08fr) minmax(450px, .92fr); }
.auth-visual { position: relative; overflow: hidden; padding: clamp(35px, 5vw, 75px); background: var(--navy); color: white; }
.auth-visual::before { position: absolute; top: -30%; right: -32%; width: 720px; height: 720px; border: 80px solid rgba(73, 214, 160, .08); border-radius: 50%; content: ""; }
.auth-visual::after { position: absolute; right: -10%; bottom: -50%; width: 650px; height: 650px; border: 2px solid rgba(255, 255, 255, .08); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255, 255, 255, .025), 0 0 0 160px rgba(255, 255, 255, .018); content: ""; }
.auth-visual-content { position: relative; z-index: 1; display: flex; height: 100%; flex-direction: column; }
.auth-message { max-width: 650px; margin: auto 0; padding-bottom: 40px; }
.auth-message .eyebrow { color: var(--green); }
.auth-message h1 { max-width: 620px; color: white; font-size: clamp(2.7rem, 5.2vw, 5.4rem); letter-spacing: -.06em; }
.auth-message p { max-width: 480px; color: #b7c8d6; font-size: 1.02rem; }
.sport-line { display: flex; align-items: end; gap: 7px; height: 48px; }
.sport-line span { width: 7px; border-radius: 10px; background: var(--green); transform: skewX(-25deg); }
.sport-line span:nth-child(1) { height: 20px; opacity: .45; }
.sport-line span:nth-child(2) { height: 32px; opacity: .7; }
.sport-line span:nth-child(3) { height: 48px; }
.auth-form-wrap { display: grid; place-items: center; padding: 44px clamp(28px, 6vw, 90px); background: white; }
.auth-card { width: min(100%, 430px); }
.auth-card h1, .auth-card h2 { margin-bottom: 8px; font-size: clamp(2rem, 4vw, 2.65rem); letter-spacing: -.045em; }
.form-intro { margin-bottom: 28px; color: var(--muted); }
.auth-card .field > span:first-child { color: var(--ink); font-size: .82rem; }
.auth-card .field input { min-height: 52px; padding: 12px 14px; }
.auth-card .button { min-height: 52px; margin-top: 8px; }
.mobile-brand { display: none; margin-bottom: 44px; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 70px; }
.password-toggle { position: absolute; top: 50%; right: 8px; padding: 7px; border: 0; background: transparent; color: var(--blue); font-size: .73rem; font-weight: 750; transform: translateY(-50%); }
.form-error { margin: -8px 0 18px; padding: 11px 13px; border: 1px solid #f0bdc6; border-radius: 10px; background: #fff4f6; color: #a73349; font-size: .8rem; }
.auth-help { margin: 22px 0 0; color: #8b99a5; font-size: .73rem; text-align: center; }
.install-shell, .renewal-shell { display: grid; grid-template-columns: 1fr; background: linear-gradient(145deg, #f1f7fb, #fff); }
.install-card, .renewal-card { width: min(100%, 560px); padding: 42px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); }
.install-card .brand, .renewal-card .brand { margin-bottom: 42px; }
.error-card { width: min(100%, 560px); padding: 42px; border: 1px solid #f0bdc6; border-radius: 22px; background: white; box-shadow: var(--shadow); }
.error-card .brand { margin-bottom: 36px; }
.error-code { display: inline-block; margin-bottom: 10px; color: var(--red); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--muted); }
code { padding: 2px 5px; border-radius: 5px; background: #eef3f7; }

/* Panel pracownika */
.user-shell { max-width: 1120px; }
.today-label { color: var(--muted); font-size: .72rem; text-align: right; }
.today-label strong { color: var(--ink); font-size: .92rem; }
.membership-card { position: relative; overflow: hidden; margin-bottom: 18px; padding: 34px; border-radius: 24px; background: linear-gradient(130deg, #08233d 0%, #0b3457 68%, #0a4162 100%); color: white; box-shadow: 0 22px 50px rgba(7, 31, 53, .2); }
.membership-card::after { position: absolute; right: -100px; bottom: -190px; width: 380px; height: 380px; border: 44px solid rgba(73, 214, 160, .10); border-radius: 50%; content: ""; }
.membership-top { position: relative; z-index: 1; display: flex; align-items: start; justify-content: space-between; gap: 30px; }
.membership-label { color: var(--green); font-size: .68rem; font-weight: 850; letter-spacing: .16em; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(73, 214, 160, .14); }
.membership-top h2 { margin-top: 15px; color: white; font-size: clamp(1.8rem, 4vw, 2.75rem); letter-spacing: -.045em; }
.membership-top p { margin: 2px 0 0; color: #aac0d2; }
.medicover-mark { display: flex; align-items: baseline; gap: 4px; color: white; font-size: 2.4rem; font-weight: 900; letter-spacing: -.08em; }
.medicover-mark span { color: var(--green); font-size: 1rem; letter-spacing: -.03em; }
.membership-details { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 790px; margin: 36px 0 30px; border-top: 1px solid rgba(255, 255, 255, .14); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.membership-details > div { display: flex; padding: 17px 22px; border-right: 1px solid rgba(255, 255, 255, .14); flex-direction: column; }
.membership-details > div:first-child { padding-left: 0; }
.membership-details > div:last-child { border-right: 0; }
.membership-details span { color: #91aabe; font-size: .7rem; }
.membership-details strong { margin-top: 2px; color: white; font-size: .86rem; }
.membership-actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.code-chip { min-height: 45px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; background: rgba(255, 255, 255, .06); color: white; }
.code-chip span { color: #a8bdce; font-size: .73rem; }
.code-chip strong { margin: 0 8px 0 4px; font-size: .83rem; }
.code-chip small { color: var(--green); font-size: .68rem; font-weight: 700; }
.user-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.summary-card { display: flex; align-items: center; gap: 14px; padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.summary-icon { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border-radius: 12px; font-weight: 900; }
.summary-green { background: #e4f8ef; color: var(--green-dark); }
.summary-orange { background: #fff0df; color: #c36413; }
.summary-blue { background: #e8f1ff; color: var(--blue); }
.summary-card > div { display: flex; flex-direction: column; }
.summary-card span:not(.summary-icon) { color: var(--muted); font-size: .72rem; }
.summary-card strong { color: var(--navy); font-size: 1rem; }
.support-note { margin: 24px 0 0; color: var(--muted); font-size: .75rem; text-align: center; }
.empty-membership { margin-bottom: 18px; }

.decision-icon { display: grid; width: 58px; height: 58px; margin-bottom: 22px; place-items: center; border-radius: 17px; background: #e4f8ef; color: var(--green-dark); font-size: 1.5rem; font-weight: 900; }
.decision-error { background: #fbecef; color: var(--red); }
.decision-form { display: grid; gap: 12px; }
.decision-button { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink); text-align: left; transition: border .15s ease, transform .15s ease, box-shadow .15s ease; }
.decision-button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(16, 45, 70, .08); }
.decision-button > span { display: grid; grid-row: 1 / 3; width: 42px; height: 42px; place-items: center; border-radius: 12px; font-size: 1.2rem; font-weight: 900; }
.decision-button strong { align-self: end; font-size: .9rem; }
.decision-button small { align-self: start; color: var(--muted); font-size: .7rem; }
.decision-button.yes:hover { border-color: #8bd6b7; }
.decision-button.yes > span { background: #e4f8ef; color: var(--green-dark); }
.decision-button.no:hover { border-color: #e8a3af; }
.decision-button.no > span { background: #fbecef; color: var(--red); }

@media (max-width: 1100px) {
    .topbar { grid-template-columns: auto 1fr auto; }
    .topnav { justify-self: center; }
    .account-copy { display: none; }
    .dashboard-grid, .lower-grid { grid-template-columns: 1fr; }
    .user-grid { grid-template-columns: repeat(2, 1fr); }
    .action-panel { order: -1; }
}

@media (max-width: 820px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .auth-form-wrap { padding: 32px 22px; }
    .mobile-brand { display: inline-flex; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { min-height: 142px; }
    .user-summary-grid { grid-template-columns: 1fr; }
    .membership-details { grid-template-columns: 1fr; }
    .membership-details > div { padding: 12px 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
    .membership-details > div:last-child { border-bottom: 0; }
    .membership-actions { align-items: stretch; flex-direction: column; }
    .code-chip { width: 100%; }
}

@media (max-width: 650px) {
    .topbar { grid-template-columns: 1fr auto; min-height: 68px; padding: 0 16px; }
    .topnav { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; height: 58px; justify-content: space-around; border-top: 1px solid var(--line); background: white; box-shadow: 0 -8px 25px rgba(16, 45, 70, .08); }
    .nav-link { height: 100%; padding: 0 10px; font-size: .78rem; }
    .nav-link.active::after { top: -1px; bottom: auto; }
    .logout-link { border-left: 0; }
    .app-shell { width: min(100% - 28px, 1380px); padding: 34px 0 86px; }
    .page-heading { align-items: start; flex-direction: column; }
    .page-heading .button { width: 100%; }
    .section-panel, .dashboard-grid > .panel:first-child, .action-panel { padding: 18px; }
    .user-grid { grid-template-columns: 1fr; }
    .panel-head { align-items: flex-start; }
    .panel-head .button { min-height: 40px; padding: 8px 12px; font-size: .75rem; }
    .popover-card { position: fixed; top: 80px; right: 14px; left: 14px; width: auto; max-height: calc(100vh - 100px); overflow: auto; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .membership-card { padding: 24px 20px; }
    .medicover-mark { font-size: 1.55rem; }
    .membership-top h2 { font-size: 1.75rem; }
    .install-card, .renewal-card, .error-card { padding: 27px 22px; border-radius: 18px; }
    .today-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
