:root {
  --navy-950: #041521;
  --navy-900: #061d2e;
  --navy-850: #09283d;
  --navy-800: #0b3048;
  --cyan: #16c8dc;
  --cyan-strong: #06b6ca;
  --cyan-soft: #dff9fc;
  --ink: #0b2233;
  --muted: #6d7e8b;
  --surface: #ffffff;
  --canvas: #f4f8fa;
  --line: #e2eaee;
  --orange: #ff6746;
  --green: #32b888;
  --purple: #826ce4;
  --shadow-sm: 0 8px 24px rgba(10, 40, 59, .07);
  --shadow-md: 0 18px 50px rgba(4, 29, 46, .14);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --sidebar-width: 252px;
  font-family: "DM Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); }
body.auth-pending, body.auth-locked { overflow: hidden; }
body.auth-pending .app-shell, body.auth-pending .mobile-nav,
body.auth-locked .app-shell, body.auth-locked .mobile-nav { visibility: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(22, 200, 220, .34); outline-offset: 2px; }
button, a { transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
img { max-width: 100%; display: block; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; transform: translateY(-150%); background: white; color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

.login-screen { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: minmax(420px, .92fr) minmax(500px, 1.08fr); min-height: 100dvh; background: #f7fafb; opacity: 1; visibility: visible; transition: opacity .45s ease, visibility .45s ease; }
.login-screen.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.login-showcase { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(30px, 5vw, 64px); color: white; background: radial-gradient(circle at 74% 18%, rgba(25,202,220,.23), transparent 28%), radial-gradient(circle at 12% 82%, rgba(25,202,220,.12), transparent 26%), linear-gradient(145deg, #03131f, #06263a 66%, #0a3549); }
.login-showcase::before { content: ""; position: absolute; inset: 0; opacity: .25; background-image: radial-gradient(rgba(255,255,255,.22) .75px, transparent .75px); background-size: 22px 22px; mask-image: linear-gradient(145deg, transparent 8%, #000 58%, transparent 95%); }
.login-showcase::after { content: ""; position: absolute; width: min(36vw, 500px); aspect-ratio: 1; right: -16%; bottom: -14%; border: 1px solid rgba(22,200,220,.17); border-radius: 50%; box-shadow: 0 0 0 60px rgba(22,200,220,.025), 0 0 0 120px rgba(22,200,220,.018); }
.login-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.login-brand img { width: 52px; height: 52px; object-fit: cover; border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 3px rgba(22,200,220,.25); }
.login-brand span, .login-mobile-brand span { color: var(--cyan); font-size: 25px; letter-spacing: -.8px; }
.login-brand b, .login-mobile-brand b { color: white; }
.login-showcase-copy { position: relative; z-index: 1; margin: auto 0; max-width: 590px; }
.login-kicker { display: inline-flex; align-items: center; gap: 7px; color: #8af1f8; border: 1px solid rgba(22,200,220,.22); background: rgba(22,200,220,.1); border-radius: 999px; padding: 7px 11px; font-size: 10px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; }
.login-kicker svg { width: 14px; }
.login-showcase h1 { margin: 21px 0 17px; font-size: clamp(42px, 4.6vw, 72px); line-height: .98; letter-spacing: -3px; }
.login-showcase h1 em { color: var(--cyan); font-style: normal; }
.login-showcase-copy > p { max-width: 485px; margin: 0; color: rgba(255,255,255,.63); font-size: clamp(14px, 1.2vw, 17px); line-height: 1.6; }
.login-benefits { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.login-benefits > div { min-width: 190px; display: flex; align-items: center; gap: 11px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.055); backdrop-filter: blur(8px); }
.login-benefits > div > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--cyan); background: rgba(22,200,220,.12); }
.login-benefits svg { width: 18px; }
.login-benefits p { margin: 0; }
.login-benefits b, .login-benefits small { display: block; }
.login-benefits b { font-size: 12px; }
.login-benefits small { margin-top: 2px; color: rgba(255,255,255,.45); font-size: 9px; }
.login-quote { position: relative; z-index: 1; margin: 0; color: rgba(255,255,255,.42); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.8px; }
.login-quote i { color: var(--cyan); font-style: normal; margin: 0 7px; }
.login-panel { display: grid; place-items: center; padding: 42px; background: radial-gradient(circle at 100% 0, #ebfbfc, transparent 28%), #f7fafb; }
.login-card { width: min(430px, 100%); animation: login-card-in .55s ease both; }
@keyframes login-card-in { from { opacity: 0; transform: translateY(14px); } }
.login-mobile-brand { display: none; align-items: center; gap: 9px; margin-bottom: 32px; }
.login-mobile-brand img { width: 46px; height: 46px; object-fit: cover; border-radius: 50%; border: 2px solid white; box-shadow: 0 0 0 2px var(--cyan); }
.login-mobile-brand b { color: var(--navy-900); }
.login-card h2 { margin: 0 0 8px; color: #092235; font-size: clamp(30px, 3vw, 39px); letter-spacing: -1.4px; }
.login-intro { margin: 0 0 29px; color: #71838f; font-size: 13px; }
.login-field { display: block; margin-bottom: 16px; color: #213b4b; font-size: 11px; font-weight: 700; }
.login-input-wrap { height: 51px; display: flex; align-items: center; gap: 10px; margin-top: 7px; border: 1px solid #dbe6eb; border-radius: 13px; background: white; padding: 0 13px; color: #91a2ac; transition: border-color .2s, box-shadow .2s; box-shadow: 0 3px 12px rgba(6,35,51,.025); }
.login-input-wrap:focus-within { border-color: var(--cyan); color: var(--cyan-strong); box-shadow: 0 0 0 4px rgba(22,200,220,.1); }
.login-input-wrap > svg { flex: 0 0 auto; width: 18px; }
.login-input-wrap input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; color: #0b2233; background: transparent; font-size: 13px; font-weight: 500; }
.login-input-wrap input::placeholder { color: #9cabb4; font-weight: 400; }
.password-toggle { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border: 0; border-radius: 8px; background: transparent; color: #9aa9b2; cursor: pointer; }
.password-toggle:hover { color: var(--cyan-strong); background: #effbfc; }
.password-toggle svg { width: 17px; }
.login-submit { width: 100%; min-height: 51px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 7px; border: 0; border-radius: 13px; color: #03202e; background: linear-gradient(135deg, #22d3e5, #12bace); box-shadow: 0 12px 28px rgba(13,185,205,.25); font-size: 12px; font-weight: 800; cursor: pointer; }
.login-submit:hover { transform: translateY(-2px); box-shadow: 0 15px 32px rgba(13,185,205,.34); }
.login-submit svg { width: 17px; }
.login-privacy { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 17px 0 0; color: #8a9aa4; font-size: 9px; }
.login-privacy svg { width: 14px; color: #42af8a; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); z-index: 20; padding: 24px 18px 18px; background: linear-gradient(175deg, var(--navy-950), var(--navy-900) 66%, #0b3044); color: #fff; display: flex; flex-direction: column; overflow: hidden; }
.sidebar::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(22, 200, 220, .09); filter: blur(3px); bottom: 110px; left: -140px; pointer-events: none; }
.brand { appearance: none; border: 0; background: transparent; display: flex; align-items: center; gap: 10px; color: white; padding: 0 7px 24px; cursor: pointer; text-align: left; }
.brand img, .mobile-brand img { width: 40px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 2px solid rgba(255,255,255,.9); box-shadow: 0 0 0 2px rgba(22,200,220,.25); }
.brand span, .mobile-brand span { font-size: 21px; letter-spacing: -.7px; }
.brand span b, .mobile-brand span b { font-weight: 700; }
.brand span:not(b), .mobile-brand span:not(b) { color: var(--cyan); }
.brand b, .mobile-brand b { color: #fff; }
.side-nav { display: grid; gap: 6px; position: relative; z-index: 1; }
.nav-label { color: rgba(255,255,255,.42); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; padding: 0 12px; margin: 0 0 7px; }
.nav-item { position: relative; width: 100%; border: 0; color: rgba(255,255,255,.68); background: transparent; display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; min-height: 47px; border-radius: 13px; padding: 0 12px; cursor: pointer; text-align: left; font-weight: 600; font-size: 14px; }
.nav-item svg { width: 19px; }
.nav-item:hover { color: white; background: rgba(255,255,255,.055); }
.nav-item.active { color: white; background: linear-gradient(90deg, rgba(22,200,220,.2), rgba(22,200,220,.08)); box-shadow: inset 3px 0 0 var(--cyan); }
.nav-item.active svg { color: var(--cyan); }
.nav-item em { font-style: normal; font-size: 10px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.72); padding: 3px 7px; border-radius: 999px; }
.sidebar-card { position: relative; z-index: 1; margin: auto 2px 17px; padding: 17px; border-radius: 17px; background: linear-gradient(145deg, rgba(22,200,220,.15), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.09); }
.sidebar-card-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: var(--cyan); background: rgba(22,200,220,.14); }
.sidebar-card-icon svg { width: 17px; }
.sidebar-card p { color: rgba(255,255,255,.58); font-size: 12px; line-height: 1.55; margin: 11px 0 13px; }
.sidebar-card p b { color: #fff; font-size: 13px; }
.sidebar-card button { border: 0; padding: 0; background: none; color: var(--cyan); font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.sidebar-card button svg { width: 14px; }
.sidebar-footer { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; }
.profile-button { width: 100%; display: grid; grid-template-columns: 38px 1fr 20px; align-items: center; gap: 10px; color: white; background: none; border: 0; padding: 6px; text-align: left; cursor: pointer; border-radius: 12px; }
.profile-button:hover { background: rgba(255,255,255,.05); }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, var(--cyan), #0f8cae); color: white; font-weight: 700; font-size: 14px; box-shadow: 0 4px 12px rgba(6,182,202,.25); }
.profile-button span:nth-child(2), .top-profile span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.profile-button b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-button small { color: rgba(255,255,255,.42); font-size: 10px; margin-top: 2px; }
.profile-button > svg { color: rgba(255,255,255,.35); width: 17px; }

.main-content { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { height: 76px; position: sticky; top: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 clamp(24px, 4vw, 54px); background: rgba(244,248,250,.88); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(218,229,234,.8); }
.mobile-brand { display: none; }
.top-search { width: min(460px, 52%); height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: #8a98a3; display: flex; align-items: center; gap: 10px; padding: 0 11px 0 14px; cursor: text; text-align: left; box-shadow: 0 2px 10px rgba(7,36,53,.025); }
.top-search:hover { border-color: #cbd8de; box-shadow: var(--shadow-sm); }
.top-search svg { width: 18px; color: var(--cyan-strong); }
.top-search span { flex: 1; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
kbd { border: 1px solid var(--line); color: #9aa7af; background: #f8fafb; border-radius: 6px; padding: 3px 7px; font: 10px inherit; }
.top-actions { display: flex; gap: 12px; align-items: center; }
.icon-button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: #70818d; display: grid; place-items: center; cursor: pointer; }
.icon-button:hover { color: var(--cyan-strong); border-color: #bae6eb; transform: translateY(-1px); }
.icon-button svg { width: 18px; }
.moon-icon { display: none; }
.top-profile { background: none; border: 0; display: flex; align-items: center; gap: 9px; padding: 3px 0 3px 3px; cursor: pointer; text-align: left; }
.top-profile .avatar { width: 38px; height: 38px; }
.top-profile b { font-size: 12px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.top-profile small { color: var(--muted); font-size: 9px; }
.top-profile > svg { width: 16px; color: #9aabb5; }

.page-container { max-width: 1460px; margin: 0 auto; padding: 32px clamp(24px, 4vw, 54px) 56px; }
.page { display: none; animation: page-in .35s ease both; }
.page.active { display: block; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } }
.eyebrow { margin: 0 0 5px; color: var(--cyan-strong) !important; font-size: 10px !important; font-weight: 700; letter-spacing: 1.35px; text-transform: uppercase; }
.welcome-row, .page-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.welcome-row h1, .page-title-row h1 { margin: 0 0 7px; font-size: clamp(28px, 3vw, 38px); line-height: 1.08; letter-spacing: -1.3px; }
.welcome-row h1 span:not([aria-hidden]), .page-title-row h1 span { color: var(--ink); }
.welcome-row p, .page-title-row p { color: var(--muted); font-size: 13px; margin: 0; }
.current-date { padding-bottom: 4px; text-transform: capitalize; }
.announcement-banner { min-height: 62px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 13px; margin: -9px 0 18px; padding: 10px 16px 10px 11px; border: 1px solid #ccebf0; border-radius: 15px; background: linear-gradient(100deg, #edfafd, #f9fdfe); box-shadow: 0 5px 18px rgba(9,70,83,.035); }
.announcement-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #067f90; background: #d3f4f7; }
.announcement-icon svg { width: 18px; }
.announcement-banner b { display: block; margin-bottom: 2px; color: #0b3447; font-size: 11px; }
.announcement-banner p { margin: 0; color: #66808d; font-size: 10px; }
.announcement-badge { color: #057f8f; background: #d7f5f7; border-radius: 999px; padding: 5px 9px; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }

.hero-card { min-height: 315px; position: relative; overflow: hidden; border-radius: var(--radius-lg); background: radial-gradient(circle at 78% 50%, #114a62 0, transparent 28%), linear-gradient(120deg, var(--navy-950), var(--navy-800)); color: white; padding: 38px clamp(30px, 5vw, 62px); display: flex; align-items: center; box-shadow: 0 16px 40px rgba(4,29,46,.16); }
.hero-card::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.15) .7px, transparent .7px); background-size: 18px 18px; mask-image: linear-gradient(90deg, transparent 30%, black); opacity: .3; pointer-events: none; }
.hero-glow { position: absolute; width: 230px; height: 230px; border-radius: 50%; background: rgba(22,200,220,.22); filter: blur(70px); right: 12%; top: 12%; }
.hero-content { position: relative; z-index: 2; width: 59%; }
.hero-pill { display: inline-flex; align-items: center; gap: 6px; color: #8ff1f8; background: rgba(22,200,220,.11); border: 1px solid rgba(22,200,220,.18); padding: 6px 10px; border-radius: 999px; font-size: 9px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.hero-pill svg { width: 14px; }
.hero-content h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -1.5px; margin: 16px 0 12px; }
.hero-content h2 span { color: var(--cyan); }
.hero-content p { max-width: 555px; margin: 0 0 22px; color: rgba(255,255,255,.59); font-size: 13px; line-height: 1.55; }
.primary-button, .secondary-button { min-height: 42px; border-radius: 11px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 0; padding: 0 17px; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; }
.primary-button { background: linear-gradient(135deg, var(--cyan), #0bb4ce); color: #042131; box-shadow: 0 8px 20px rgba(22,200,220,.18); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 11px 25px rgba(22,200,220,.28); }
.primary-button svg, .secondary-button svg { width: 16px; }
.secondary-button { color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.secondary-button:hover { border-color: var(--cyan); color: #049caf; }
.hero-visual { position: absolute; z-index: 1; right: 3%; top: 50%; transform: translateY(-50%); width: 36%; height: 90%; display: grid; place-items: center; }
.hero-logo { width: clamp(128px, 14vw, 188px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 18px 45px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.16); transform: rotate(2deg); }
.hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(55,218,231,.17); }
.orbit-one { width: 245px; height: 245px; }
.orbit-two { width: 315px; height: 315px; border-style: dashed; opacity: .5; }
.floating-card { position: absolute; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 11px; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,.13); }
.floating-card svg { color: var(--cyan); width: 17px; }
.floating-card span { color: rgba(255,255,255,.65); font-size: 9px; }
.floating-card b { display: block; color: white; font-size: 14px; }
.card-a { top: 20%; left: 2%; }
.card-b { bottom: 17%; right: -2%; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 34px 0 17px; }
.section-heading.compact { margin-top: 29px; }
.section-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.55px; }
.text-button { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 5px; color: var(--cyan-strong); font-size: 11px; font-weight: 700; cursor: pointer; }
.text-button svg { width: 14px; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.category-card { min-height: 145px; position: relative; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-md); padding: 20px; overflow: hidden; cursor: pointer; text-align: left; box-shadow: 0 4px 16px rgba(4,29,46,.025); }
.category-card::after { content: ""; position: absolute; width: 105px; height: 105px; border-radius: 50%; right: -45px; top: -45px; background: var(--cat-soft); }
.category-card:hover { border-color: var(--cat-color); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.category-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--cat-color); background: var(--cat-soft); margin-bottom: 15px; }
.category-icon svg { width: 20px; }
.category-card h3 { margin: 0 0 4px; font-size: 14px; letter-spacing: -.2px; }
.category-card p { margin: 0; color: var(--muted); font-size: 10px; }
.category-card > svg { position: absolute; right: 17px; bottom: 17px; width: 15px; color: #a9b6bd; }
.home-lower-grid { display: grid; grid-template-columns: 1.6fr .9fr; gap: 18px; }
.recent-list { display: grid; gap: 9px; }
.recent-item { min-height: 70px; display: grid; grid-template-columns: 47px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 9px 13px 9px 9px; cursor: pointer; text-align: left; }
.recent-item:hover { border-color: #c8e9ed; transform: translateX(2px); }
.recent-item img { width: 47px; height: 52px; object-fit: cover; object-position: top; border-radius: 9px; }
.recent-item b { display: block; margin-bottom: 4px; font-size: 12px; }
.recent-item small { display: block; color: var(--muted); font-size: 9px; }
.recent-item > svg { width: 15px; color: #a3b3bc; }
.recent-empty { min-height: 148px; display: grid; place-items: center; text-align: center; border: 1px dashed #ccdbe1; border-radius: 15px; color: var(--muted); font-size: 12px; padding: 20px; }
.recent-empty svg { color: var(--cyan-strong); margin: 0 auto 8px; }
.progress-summary { align-self: end; background: linear-gradient(145deg, #fff, #f7fbfc); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; min-height: 229px; box-shadow: var(--shadow-sm); }
.summary-top { display: flex; justify-content: space-between; align-items: center; }
.summary-top > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--cyan-soft); color: var(--cyan-strong); }
.summary-top svg { width: 19px; }
.progress-summary > .eyebrow { margin-top: 17px; }
.progress-summary h2 { margin: 0 0 15px; font-size: 18px; }
.progress-summary h2 span { font-size: 28px; color: var(--ink); }
.progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: #e7eff2; }
.progress-track span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), #33d9b2); transition: width .5s ease; }
.summary-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding-top: 18px; }
.summary-stats div { border-right: 1px solid var(--line); }
.summary-stats div:last-child { border: 0; }
.summary-stats b { display: block; font-size: 17px; }
.summary-stats small { color: var(--muted); font-size: 8px; }
.support-card { position: relative; overflow: hidden; min-height: 132px; display: grid; grid-template-columns: 58px 1.4fr .8fr auto; align-items: center; gap: 20px; margin-top: 30px; padding: 24px 27px; border-radius: 21px; color: white; background: linear-gradient(120deg, #062033, #0b3a4d); box-shadow: 0 14px 35px rgba(5,33,49,.14); }
.support-card::after { content: ""; position: absolute; inset: 0; opacity: .2; background-image: radial-gradient(rgba(255,255,255,.25) .7px, transparent .7px); background-size: 18px 18px; mask-image: linear-gradient(90deg, transparent 35%, #000); pointer-events: none; }
.support-glow { position: absolute; width: 170px; height: 170px; right: 9%; top: -65%; border-radius: 50%; background: rgba(37,211,102,.16); filter: blur(35px); }
.support-icon { position: relative; z-index: 1; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; color: white; background: linear-gradient(135deg, #31db71, #18a951); box-shadow: 0 9px 22px rgba(37,211,102,.23); }
.support-icon svg { width: 28px; stroke-width: 1.6; }
.support-copy { position: relative; z-index: 1; }
.support-copy .eyebrow { color: #65e894 !important; }
.support-copy h2 { margin: 0 0 5px; font-size: 19px; letter-spacing: -.5px; }
.support-copy > p:last-child { margin: 0; color: rgba(255,255,255,.56); font-size: 10px; }
.support-status { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.1); }
.support-status > i { width: 8px; height: 8px; border-radius: 50%; background: #45df7b; box-shadow: 0 0 0 5px rgba(69,223,123,.1); }
.support-status span, .support-status b, .support-status small { display: block; }
.support-status b { font-size: 10px; }
.support-status small { margin-top: 3px; color: rgba(255,255,255,.42); font-size: 8px; }
.whatsapp-button { position: relative; z-index: 1; min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border-radius: 12px; color: #07331a; background: #38dd76; text-decoration: none; font-size: 10px; font-weight: 800; white-space: nowrap; box-shadow: 0 8px 20px rgba(37,211,102,.18); }
.whatsapp-button:hover { color: #052913; background: #4ee386; transform: translateY(-2px); box-shadow: 0 11px 24px rgba(37,211,102,.28); }
.whatsapp-button svg { width: 18px; }

.page-title-row { margin: 5px 0 28px; }
.library-counter { min-width: 100px; display: flex; align-items: baseline; justify-content: flex-end; gap: 5px; color: var(--muted); }
.library-counter b { font-size: 27px; color: var(--cyan-strong); }
.library-counter span { font-size: 10px; }
.library-toolbar { display: flex; gap: 10px; margin-bottom: 12px; }
.search-field { flex: 1; min-height: 46px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: var(--surface); border-radius: 13px; padding: 0 12px 0 15px; }
.search-field:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(22,200,220,.11); }
.search-field svg { width: 18px; color: var(--cyan-strong); }
.search-field input { flex: 1; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.search-field input::placeholder { color: #9cabb4; }
.search-field button { width: 29px; height: 29px; place-items: center; border: 0; background: transparent; color: #a3b0b8; cursor: pointer; display: none; }
.search-field button.visible { display: grid; }
.search-field button svg { width: 14px; color: inherit; }
.filter-toggle { min-width: 112px; border: 1px solid var(--line); background: var(--surface); border-radius: 13px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 11px; font-weight: 700; cursor: pointer; }
.filter-toggle:hover, .filter-toggle.active { color: var(--cyan-strong); border-color: #ace6ec; }
.filter-toggle svg { width: 17px; }
.filter-toggle span:not(:empty) { width: 18px; height: 18px; display: grid; place-items: center; background: var(--cyan); color: var(--navy-950); border-radius: 50%; font-size: 9px; }
.filter-panel { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 19px; margin-bottom: 12px; animation: page-in .25s ease; box-shadow: 0 6px 20px rgba(7,37,55,.035); }
.filter-panel.open { display: grid; gap: 16px; }
.filter-panel-heading { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.filter-panel-heading > span { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: var(--cyan-strong); background: var(--cyan-soft); }
.filter-panel-heading svg { width: 18px; }
.filter-panel-heading h2 { margin: 0 0 3px; font-size: 15px; letter-spacing: -.3px; }
.filter-panel-heading p { margin: 0; color: var(--muted); font-size: 9px; }
.filter-group { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: center; }
.filter-group > span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.filter-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-chip { min-height: 31px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: #f8fafb; padding: 0 11px; font-size: 10px; font-weight: 600; cursor: pointer; }
.filter-chip:hover { border-color: #bfe6ea; color: var(--cyan-strong); }
.filter-chip.active { color: #042431; border-color: var(--cyan); background: var(--cyan-soft); }
.area-filter-group { grid-template-columns: 1fr; align-items: stretch; gap: 9px; }
.area-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.area-filter-card { position: relative; min-width: 0; min-height: 62px; display: grid; grid-template-columns: 34px minmax(0, 1fr) 18px; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--canvas); text-align: left; cursor: pointer; }
.area-filter-card:hover { border-color: var(--area-color); background: var(--surface); transform: translateY(-1px); box-shadow: 0 7px 16px rgba(7,37,55,.06); }
.area-filter-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--area-color); background: var(--area-soft); }
.area-filter-icon svg { width: 17px; }
.area-filter-card > span:nth-child(2) { min-width: 0; }
.area-filter-card b, .area-filter-card small { display: block; overflow: hidden; text-overflow: ellipsis; }
.area-filter-card b { font-size: 10px; line-height: 1.2; }
.area-filter-card small { margin-top: 3px; color: var(--muted); font-size: 8px; white-space: nowrap; }
.area-filter-check { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: transparent; background: transparent; }
.area-filter-check svg { width: 11px; stroke-width: 2.4; }
.area-filter-card.active { border-color: var(--area-color); background: color-mix(in srgb, var(--area-soft) 55%, var(--surface)); box-shadow: inset 0 0 0 1px var(--area-color); }
.area-filter-card.active .area-filter-check { color: white; background: var(--area-color); }
.results-meta { display: flex; justify-content: space-between; margin: 17px 1px 12px; }
.results-meta p { margin: 0; color: var(--muted); font-size: 10px; }
.results-meta button { display: none; border: 0; background: none; color: var(--cyan-strong); font-size: 10px; cursor: pointer; }
.results-meta button.visible { display: block; }
.material-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.material-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 5px 18px rgba(7,37,55,.035); cursor: pointer; text-align: left; padding: 0; }
.material-card:hover { transform: translateY(-4px); border-color: #c4e8ec; box-shadow: 0 13px 30px rgba(7,37,55,.1); }
.material-thumb { position: relative; aspect-ratio: 1.22; overflow: hidden; background: #eaf1f4; }
.material-thumb::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(5,28,43,.23)); pointer-events: none; }
.material-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .35s ease; }
.material-card:hover .material-thumb img { transform: scale(1.025); }
.material-badge { position: absolute; z-index: 2; left: 9px; top: 9px; color: white; background: rgba(4,26,41,.72); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 5px 8px; font-size: 8px; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }
.favorite-button { position: absolute; z-index: 3; right: 9px; top: 9px; width: 31px; height: 31px; display: grid; place-items: center; color: white; background: rgba(4,26,41,.62); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.16); border-radius: 50%; cursor: pointer; }
.favorite-button svg { width: 15px; }
.favorite-button.active { background: #fff; color: #f04f68; }
.favorite-button.active svg { fill: currentColor; }
.complete-badge { position: absolute; z-index: 2; right: 9px; bottom: 9px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); box-shadow: 0 4px 12px rgba(40,165,121,.3); }
.complete-badge svg { width: 14px; stroke-width: 2.5; }
.material-info { padding: 13px 13px 14px; }
.material-info small { display: block; color: var(--cyan-strong); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.material-info h3 { margin: 0 0 8px; min-height: 34px; font-size: 12px; line-height: 1.35; letter-spacing: -.15px; }
.material-info p { margin: 0; color: var(--muted); font-size: 9px; display: flex; align-items: center; justify-content: space-between; }
.material-info p span { display: inline-flex; align-items: center; gap: 4px; }
.material-info p svg { width: 12px; }
.empty-state { border: 1px dashed #ccdbe1; border-radius: 18px; text-align: center; padding: 54px 20px; background: rgba(255,255,255,.45); }
.empty-state[hidden] { display: none; }
.empty-state > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--cyan-soft); color: var(--cyan-strong); margin: 0 auto 14px; }
.empty-state h2 { margin: 0 0 6px; font-size: 18px; }
.empty-state p { margin: 0 0 17px; color: var(--muted); font-size: 11px; }
#favoritesEmpty { display: block; }
#favoritesEmpty.hidden { display: none; }

.progress-hero { border-radius: var(--radius-lg); background: linear-gradient(125deg, var(--navy-950), var(--navy-800)); color: white; padding: 30px 35px; display: grid; grid-template-columns: 145px 1fr .9fr; align-items: center; gap: 30px; box-shadow: var(--shadow-md); }
.progress-ring { width: 130px; height: 130px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--cyan) 0%, rgba(255,255,255,.12) 0); position: relative; }
.progress-ring::after { content: ""; position: absolute; width: 101px; height: 101px; border-radius: 50%; background: var(--navy-900); }
.progress-ring span { position: relative; z-index: 1; font-size: 23px; font-weight: 700; }
.progress-hero h2 { margin: 13px 0 6px; font-size: 25px; letter-spacing: -.7px; }
.progress-hero > div:nth-child(2) > p { margin: 0; color: rgba(255,255,255,.57); font-size: 11px; line-height: 1.55; max-width: 480px; }
.progress-metrics { display: grid; grid-template-columns: repeat(3,1fr); border-left: 1px solid rgba(255,255,255,.1); }
.progress-metrics > div { display: flex; flex-direction: column; align-items: center; border-right: 1px solid rgba(255,255,255,.1); }
.progress-metrics > div:last-child { border: 0; }
.progress-metrics span { color: var(--cyan); }
.progress-metrics svg { width: 17px; }
.progress-metrics b { margin-top: 5px; font-size: 22px; }
.progress-metrics small { color: rgba(255,255,255,.48); font-size: 8px; }
.collection-progress-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.collection-progress-item { display: grid; grid-template-columns: 39px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 13px; }
.collection-progress-item > span { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; background: var(--cat-soft); color: var(--cat-color); }
.collection-progress-item svg { width: 18px; }
.collection-progress-item h3 { margin: 0 0 7px; font-size: 11px; }
.collection-progress-item .mini-track { height: 5px; border-radius: 999px; background: #e9f0f2; overflow: hidden; }
.collection-progress-item .mini-track span { display: block; height: 100%; background: var(--cat-color); border-radius: inherit; }
.collection-progress-item small { color: var(--muted); font-size: 9px; }

.mobile-nav { display: none; }
.viewer { width: 100vw; max-width: none; height: 100dvh; max-height: none; border: 0; padding: 0; background: #eaf0f2; color: var(--ink); }
.viewer::backdrop, .profile-dialog::backdrop { background: rgba(2,17,27,.78); backdrop-filter: blur(5px); }
.viewer-shell { height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.viewer-header { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 11px clamp(18px,4vw,50px); background: var(--surface); border-bottom: 1px solid var(--line); }
.viewer-header span { color: var(--cyan-strong); text-transform: uppercase; letter-spacing: .9px; font-size: 8px; font-weight: 700; }
.viewer-header h2 { margin: 3px 0 0; font-size: 16px; }
.viewer-body { min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 20px 85px; overflow: hidden; }
.viewer-canvas { height: 100%; max-width: min(720px, 80vw); display: flex; align-items: center; justify-content: center; }
.viewer-canvas img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 15px 50px rgba(6,29,43,.19); background: white; }
.viewer-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 45px; height: 45px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #d2dfe4; background: rgba(255,255,255,.89); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); }
.viewer-arrow:hover { color: var(--cyan-strong); transform: translateY(-50%) scale(1.05); }
.viewer-arrow.prev { left: 28px; }
.viewer-arrow.next { right: 28px; }
.viewer-footer { min-height: 74px; background: var(--surface); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px clamp(18px,4vw,50px); }
.viewer-footer p { margin: 0; }
.viewer-footer p span { display: block; font-size: 11px; font-weight: 700; }
.viewer-footer p small { color: var(--muted); font-size: 8px; }
.viewer-footer > div { display: flex; gap: 8px; }
.viewer-footer .active { color: #ef4d65; border-color: #f3bfc7; }
.viewer-footer .active svg { fill: currentColor; }
.viewer-footer .completed { background: var(--green); color: white; }

.profile-dialog { width: min(430px, calc(100vw - 30px)); border: 0; padding: 0; border-radius: 22px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow-md); }
.profile-dialog form { position: relative; padding: 31px; text-align: center; }
.profile-dialog .dialog-close { position: absolute; right: 14px; top: 14px; }
.profile-dialog img { width: 83px; height: 83px; object-fit: cover; border-radius: 50%; margin: 0 auto 15px; border: 3px solid white; box-shadow: 0 0 0 2px var(--cyan), var(--shadow-sm); }
.profile-dialog h2 { margin: 0 0 6px; font-size: 22px; }
.profile-dialog form > p:not(.eyebrow) { color: var(--muted); font-size: 11px; margin: 0 0 21px; }
.profile-dialog label { display: block; text-align: left; color: var(--muted); font-size: 10px; font-weight: 700; }
.profile-dialog input { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 11px; padding: 0 13px; margin: 7px 0 12px; outline: 0; background: var(--canvas); color: var(--ink); }
.profile-dialog input:focus { border-color: var(--cyan); }
.profile-dialog .primary-button { width: 100%; }
.logout-button { width: 100%; min-height: 39px; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 8px; border: 0; border-radius: 10px; background: transparent; color: #e05b68; font-size: 10px; font-weight: 700; cursor: pointer; }
.logout-button:hover { background: rgba(224,91,104,.08); }
.logout-button svg { width: 15px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 26px; transform: translate(-50%, 130%); opacity: 0; min-height: 45px; max-width: calc(100vw - 32px); display: flex; align-items: center; gap: 9px; border-radius: 12px; background: var(--navy-900); color: white; box-shadow: var(--shadow-md); padding: 0 17px; font-size: 11px; transition: .3s ease; }
.toast.visible { transform: translate(-50%, 0); opacity: 1; }
.toast svg { width: 16px; color: var(--cyan); }

html.dark { color-scheme: dark; --ink: #e7f3f6; --muted: #8ea5b0; --surface: #0b2638; --canvas: #061b2a; --line: #18394c; --cyan-soft: rgba(22,200,220,.12); }
html.dark .topbar { background: rgba(6,27,42,.9); border-color: #16374a; }
html.dark kbd, html.dark .filter-chip, html.dark .progress-summary { background: #0e2d40; }
html.dark .moon-icon { display: block; }
html.dark .sun-icon { display: none; }
html.dark .category-card, html.dark .recent-item, html.dark .material-card, html.dark .collection-progress-item { box-shadow: none; }
html.dark .progress-summary { background: linear-gradient(145deg, #0b2638, #0e2e41); }
html.dark .material-thumb { background: #112f42; }
html.dark .filter-chip { color: var(--muted); }
html.dark .filter-chip.active { color: var(--ink); background: rgba(22,200,220,.14); }
html.dark .area-filter-card { background: #0d2b3e; }
html.dark .area-filter-card:hover, html.dark .area-filter-card.active { background: #113448; }
html.dark .search-field input { color: var(--ink); }
html.dark .viewer { background: #061b2a; }
html.dark .viewer-arrow { background: #0d2c3f; border-color: #1c4155; }
html.dark .empty-state { background: rgba(11,38,56,.5); }
html.dark .announcement-banner { border-color: #174556; background: linear-gradient(100deg, #0b2c3e, #0c2637); }
html.dark .announcement-banner b { color: #ddf6f8; }
html.dark .announcement-banner p { color: #87a6b1; }

@media (max-width: 1180px) {
  .category-grid, .material-grid { grid-template-columns: repeat(3, 1fr); }
  .category-card:nth-child(4) { display: none; }
  .progress-hero { grid-template-columns: 120px 1fr; }
  .progress-ring { width: 110px; height: 110px; }
  .progress-ring::after { width: 84px; height: 84px; }
  .progress-metrics { grid-column: 1 / -1; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; padding: 13px 0; }
  .support-card { grid-template-columns: 55px 1fr auto; }
  .support-status { display: none; }
  .area-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --sidebar-width: 0px; }
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding-bottom: 70px; }
  .topbar { height: 67px; padding: 0 18px; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; }
  .mobile-brand img { width: 34px; }
  .mobile-brand span { font-size: 17px; }
  .top-search { margin-left: auto; width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
  .top-search span, .top-search kbd { display: none; }
  .top-profile { display: flex; padding: 0; }
  .top-profile span:nth-child(2), .top-profile > svg { display: none; }
  .top-profile .avatar { width: 36px; height: 36px; }
  .page-container { padding: 25px 18px 35px; }
  .mobile-nav { position: fixed; display: grid; grid-template-columns: repeat(4, 1fr); z-index: 30; left: 0; right: 0; bottom: 0; padding: 6px max(8px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .mobile-nav button { border: 0; background: none; color: #82939e; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; font-size: 8px; cursor: pointer; }
  .mobile-nav button svg { width: 19px; }
  .mobile-nav button.active { color: var(--cyan-strong); }
  html.dark .mobile-nav { background: rgba(8,31,47,.95); }
  .hero-content { width: 67%; }
  .hero-visual { right: -5%; width: 39%; }
  .hero-logo { width: 130px; }
  .orbit-one { width: 190px; height: 190px; }
  .orbit-two { width: 245px; height: 245px; }
  .floating-card { display: none; }
  .home-lower-grid { grid-template-columns: 1fr; }
  .progress-summary { min-height: 0; }
  .collection-progress-list { grid-template-columns: 1fr; }
  .viewer-footer { align-items: flex-start; }
  .viewer-footer p small { display: none; }
  .login-screen { grid-template-columns: minmax(350px, .85fr) minmax(440px, 1.15fr); }
  .login-showcase { padding: 36px; }
  .login-showcase h1 { font-size: 46px; letter-spacing: -2px; }
  .login-benefits > div { min-width: 0; width: 100%; }
}

@media (max-width: 780px) {
  .login-screen { display: block; overflow-y: auto; background: radial-gradient(circle at 100% 0, #e2f9fb, transparent 35%), #f7fafb; }
  .login-showcase { display: none; }
  .login-panel { min-height: 100dvh; padding: 34px 22px; }
  .login-mobile-brand { display: flex; }
}

@media (max-width: 670px) {
  .welcome-row { align-items: flex-start; }
  .current-date { display: none; }
  .welcome-row h1, .page-title-row h1 { font-size: 29px; }
  .hero-card { min-height: 415px; padding: 28px 24px; align-items: flex-end; }
  .hero-content { width: 100%; z-index: 3; }
  .hero-content h2 { font-size: 29px; }
  .hero-content p { font-size: 11px; max-width: 85%; }
  .hero-visual { width: 190px; height: 190px; right: -8px; top: 18px; transform: none; opacity: .58; }
  .hero-logo { width: 105px; }
  .orbit-one { width: 150px; height: 150px; }
  .orbit-two { width: 185px; height: 185px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category-card:nth-child(4) { display: block; }
  .category-card { min-height: 137px; padding: 16px; }
  .home-lower-grid { display: flex; flex-direction: column; }
  .progress-summary { order: -1; }
  .material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .material-info { padding: 11px; }
  .material-info h3 { min-height: 45px; font-size: 11px; }
  .material-info p span:last-child { display: none; }
  .library-toolbar { align-items: stretch; }
  .filter-toggle { min-width: 47px; width: 47px; font-size: 0; }
  .filter-toggle span:not(:empty) { position: absolute; }
  .filter-group { grid-template-columns: 1fr; gap: 7px; }
  .filter-panel { padding: 14px; }
  .filter-panel-heading { align-items: flex-start; }
  .filter-panel-heading p { line-height: 1.4; }
  .area-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-filter-card { grid-template-columns: 31px minmax(0, 1fr) 16px; gap: 7px; padding: 8px; }
  .area-filter-icon { width: 31px; height: 31px; }
  .page-title-row { align-items: flex-start; }
  .library-counter { min-width: auto; flex-direction: column; align-items: flex-end; gap: 0; }
  .progress-hero { grid-template-columns: 1fr; padding: 26px; text-align: center; }
  .progress-ring { margin: auto; }
  .progress-hero .hero-pill { margin: auto; }
  .progress-metrics { grid-column: auto; }
  .viewer-header { min-height: 64px; padding: 9px 14px; }
  .viewer-header h2 { max-width: calc(100vw - 90px); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .viewer-body { padding: 12px 48px; }
  .viewer-arrow { width: 37px; height: 37px; }
  .viewer-arrow.prev { left: 7px; }
  .viewer-arrow.next { right: 7px; }
  .viewer-footer { padding: 9px 12px; }
  .viewer-footer p { display: none; }
  .viewer-footer > div { width: 100%; }
  .viewer-footer .secondary-button, .viewer-footer .primary-button { flex: 1; padding: 0 8px; }
  .viewer-footer button span, .viewer-footer a span { display: none; }
  .viewer-footer button svg, .viewer-footer a svg { width: 19px; }
  .announcement-banner { grid-template-columns: 38px 1fr; margin-top: -5px; padding-right: 12px; }
  .announcement-badge { display: none; }
  .announcement-banner p { line-height: 1.4; }
  .support-card { grid-template-columns: 47px 1fr; gap: 14px; padding: 21px; }
  .support-icon { width: 47px; height: 47px; border-radius: 14px; }
  .support-icon svg { width: 23px; }
  .support-copy h2 { font-size: 17px; }
  .support-copy > p:last-child { line-height: 1.5; }
  .whatsapp-button { grid-column: 1 / -1; width: 100%; min-height: 46px; }
}

@media (max-width: 390px) {
  .page-container { padding-left: 13px; padding-right: 13px; }
  .topbar { padding: 0 13px; }
  .category-grid, .material-grid { gap: 8px; }
  .category-card { padding: 14px; }
  .material-info small { font-size: 7px; }
  .login-panel { padding: 26px 17px; }
  .login-mobile-brand { margin-bottom: 25px; }
  .login-card h2 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  body * { visibility: hidden; }
  .viewer, .viewer * { visibility: visible; }
  .viewer { position: absolute; inset: 0; background: white; }
  .viewer-header, .viewer-footer, .viewer-arrow { display: none !important; }
  .viewer-body { padding: 0; }
  .viewer-canvas img { width: 100%; height: auto; max-height: none; box-shadow: none; }
}
