:root {
  --ink: #10231f;
  --muted: #66746f;
  --paper: #f6f6f0;
  --surface: #ffffff;
  --line: #dfe4df;
  --green: #0b5d4b;
  --green-dark: #073b32;
  --mint: #b9f08b;
  --mint-soft: #e9fbd7;
  --amber: #ffcb6b;
  --shadow: 0 18px 60px rgba(9, 38, 31, .14);
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: #dce7df;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
html { background: #dce7df; }
body { margin: 0; }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(11,93,75,.25); outline-offset: 2px; }
.hidden { display: none !important; }

.app-shell { width: 100%; height: 100%; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.phone-app { width: min(100%, 480px); height: 100%; min-height: 0; position: relative; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: none; -webkit-overflow-scrolling: touch; background: var(--paper); padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.topbar { height: calc(68px + env(safe-area-inset-top)); padding: calc(14px + env(safe-area-inset-top)) 20px 10px; display: flex; align-items: center; justify-content: space-between; background: var(--paper); position: sticky; top: 0; z-index: 20; }
.brand { color: var(--ink); font-family: Manrope, sans-serif; font-weight: 800; font-size: 20px; text-decoration: none; display: flex; gap: 10px; align-items: center; letter-spacing: -.5px; }
.brand-mark { width: 27px; height: 27px; border-radius: 9px; background: var(--green); display: flex; align-items: flex-end; justify-content: center; gap: 2px; padding: 6px; transform: rotate(-4deg); }
.brand-mark span { width: 3px; background: var(--mint); border-radius: 4px; }
.brand-mark span:nth-child(1) { height: 7px; }.brand-mark span:nth-child(2) { height: 14px; }.brand-mark span:nth-child(3) { height: 10px; }
.icon-button, .close-button { border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.icon-button { width: 42px; height: 42px; border-radius: 50%; position: relative; background: #eaeee9; }
.icon-button svg, .settings-icon svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notification-dot { position: absolute; width: 8px; height: 8px; background: #e96c50; border: 2px solid var(--paper); border-radius: 50%; top: 7px; right: 7px; }
.notification-dot.enabled { background: var(--mint); }

.view { display: none; animation: fadeUp .25s ease; }
.view.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(5px); } }
.hero { padding: 28px 20px 22px; background: var(--green-dark); color: white; border-radius: 0 0 30px 30px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 210px; height: 210px; background: rgba(185,240,139,.08); border: 1px solid rgba(185,240,139,.14); border-radius: 50%; right: -96px; top: -50px; box-shadow: 0 0 0 30px rgba(185,240,139,.03); }
.hero h1, .page-intro h1 { margin: 4px 0 28px; font-family: Manrope, sans-serif; font-size: clamp(35px, 9vw, 44px); line-height: 1.06; letter-spacing: -1.8px; }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: 1.7px; font-size: 10px; font-weight: 800; color: var(--green); }
.hero .eyebrow { color: var(--mint); }
.term-control { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); border-radius: 15px; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.term-control label { font-size: 12px; color: rgba(255,255,255,.62); }
.term-control select { border: 0; background: transparent; color: white; font-weight: 700; text-align: right; outline: 0; }

.search-section { padding: 18px 20px 6px; }
.search-box { height: 54px; display: flex; align-items: center; gap: 10px; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 0 14px; box-shadow: 0 7px 22px rgba(16,35,31,.05); }
.search-box svg { width: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; font-size: 14px; color: var(--ink); background: transparent; }
.search-box input::placeholder { color: #94a09c; }
kbd { font-family: inherit; font-size: 10px; color: var(--muted); border: 1px solid var(--line); background: #f7f8f5; border-radius: 5px; padding: 3px 5px; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 8px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 13px; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.filter-chip.active { background: var(--ink); border-color: var(--ink); color: white; }

.results-section { padding: 12px 20px 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin: 7px 0 13px; }
.section-heading h2 { font-family: Manrope, sans-serif; font-size: 20px; margin: 3px 0 0; letter-spacing: -.5px; }
.text-button { border: 0; background: transparent; font-size: 12px; color: var(--green); font-weight: 800; cursor: pointer; padding: 5px 0; }
.course-list, .watch-list { display: grid; gap: 11px; }
.course-card { background: var(--surface); border: 1px solid var(--line); border-radius: 19px; overflow: hidden; box-shadow: 0 8px 24px rgba(15,38,31,.04); }
.course-main { padding: 15px 15px 12px; }
.course-topline { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.course-code { display: flex; gap: 8px; align-items: center; }
.course-code strong { font-family: Manrope, sans-serif; font-size: 17px; letter-spacing: -.3px; }
.section-pill { font-size: 10px; font-weight: 800; color: var(--green); background: var(--mint-soft); padding: 4px 7px; border-radius: 6px; }
.status-pill { flex: 0 0 auto; display: flex; gap: 5px; align-items: center; font-size: 10px; font-weight: 800; padding: 5px 8px; border-radius: 999px; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-open { color: #257057; background: #e4f7eb; }.status-full { color: #9e562b; background: #fff0da; }.status-waitlist { color: #6658a7; background: #eeeaff; }.status-loading { color: #63716c; background: #edf0ee; }.status-error { color: #985848; background: #faeae5; }
.course-title { font-size: 13px; margin: 6px 0 12px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.course-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; color: #62706b; font-size: 11px; }
.course-meta span { display: inline-flex; gap: 5px; align-items: center; }
.course-meta svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.seat-row { border-top: 1px solid #edf0ec; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; min-height: 58px; padding: 8px 12px 8px 15px; gap: 10px; }
.seat-stat span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .7px; font-weight: 700; }
.seat-stat strong { font-family: Manrope, sans-serif; font-size: 13px; }
.watch-button { border: 0; border-radius: 11px; background: var(--green); color: white; padding: 10px 12px; font-size: 11px; font-weight: 800; cursor: pointer; }
.watch-button.watching { color: var(--green); background: var(--mint-soft); }
.empty-state { text-align: center; padding: 55px 20px; color: var(--muted); }
.empty-icon { font-size: 40px; }.empty-state h3 { margin: 10px 0 4px; color: var(--ink); }.empty-state p { margin: 0; font-size: 13px; }
.data-credit { margin: 16px 4px 0; color: #8b9691; font-size: 9px; text-align: center; line-height: 1.45; }
.catalog-loading { display: grid; gap: 11px; }
.skeleton-card { height: 166px; border: 1px solid var(--line); border-radius: 19px; background: linear-gradient(100deg, #fff 25%, #f0f3ef 37%, #fff 63%); background-size: 400% 100%; animation: shimmer 1.35s ease infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

.page-intro { padding: 34px 20px 22px; }
.page-intro h1 { margin: 4px 0 8px; }
.page-intro > p:last-child { margin: 0; max-width: 360px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.watch-summary { margin: 0 20px 20px; background: var(--green-dark); color: white; border-radius: 19px; display: grid; grid-template-columns: repeat(3,1fr); padding: 17px 10px; }
.watch-summary div { text-align: center; border-right: 1px solid rgba(255,255,255,.12); }.watch-summary div:last-child { border: 0; }
.watch-summary strong { display: block; font-family: Manrope, sans-serif; font-size: 21px; }.watch-summary span { font-size: 9px; color: rgba(255,255,255,.62); text-transform: uppercase; letter-spacing: .6px; }
.watch-list { padding: 0 20px 24px; }
.watch-card { padding: 16px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.watch-card-header { display: flex; justify-content: space-between; align-items: flex-start; }.watch-card h3 { margin: 0; font-family: Manrope, sans-serif; font-size: 17px; }.watch-card p { margin: 4px 0 14px; color: var(--muted); font-size: 12px; }
.watch-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid #edf0ec; }.watch-kind { color: var(--green); background: var(--mint-soft); padding: 6px 9px; font-size: 10px; font-weight: 800; border-radius: 7px; }.remove-watch { border: 0; background: transparent; color: #aa5b4b; font-size: 11px; font-weight: 800; cursor: pointer; }
.empty-watch { text-align: center; padding: 35px 28px; }.empty-watch h2 { font-family: Manrope, sans-serif; margin: 20px 0 7px; }.empty-watch p { color: var(--muted); margin: 0 auto 20px; font-size: 13px; max-width: 270px; }
.radar-graphic { width: 90px; height: 90px; position: relative; margin: auto; border-radius: 50%; border: 1px solid #b8d1c7; background: radial-gradient(circle, #dff6d4 0 5px, transparent 6px 100%); }
.radar-graphic::before, .radar-graphic::after, .radar-graphic span { content: ""; position: absolute; border: 1px solid #c5dbd1; border-radius: 50%; inset: 14px; }.radar-graphic::after { inset: 28px; }.radar-graphic span:nth-child(2) { inset: 42px; border: 3px solid var(--green); }.radar-graphic i { position: absolute; width: 44px; height: 44px; background: conic-gradient(from 270deg, rgba(185,240,139,.7), transparent 28%); border-radius: 100% 0 0 0; left: 45px; top: 1px; transform-origin: 0 44px; transform: rotate(30deg); }
.primary-button { border: 0; border-radius: 13px; padding: 13px 18px; color: white; background: var(--green); font-weight: 800; font-size: 13px; cursor: pointer; box-shadow: 0 9px 20px rgba(11,93,75,.18); }.primary-button.full { width: 100%; padding: 16px; font-size: 14px; }

.settings-card, .settings-group { margin: 0 20px 14px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: white; }
.settings-card { padding: 14px; display: flex; align-items: center; gap: 12px; }.accent-card { background: var(--mint-soft); border-color: #cfe9b6; }
.settings-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #edf1ec; font-size: 18px; font-weight: 700; flex: 0 0 auto; }.settings-icon.dark { background: var(--green); color: white; }
.settings-copy { min-width: 0; flex: 1; text-align: left; }.settings-copy strong, .settings-copy span { display: block; }.settings-copy strong { font-size: 13px; }.settings-copy span { color: var(--muted); font-size: 10px; margin-top: 2px; }
.small-button { border: 0; border-radius: 9px; background: var(--green); color: white; font-size: 10px; font-weight: 800; padding: 9px 11px; cursor: pointer; }
.secondary-button { background: #e9efec; color: var(--green); }
.cloud-card { position: relative; }
.cloud-dot { width: 11px; height: 11px; flex: 0 0 auto; border-radius: 50%; background: #9ba7a2; box-shadow: 0 0 0 4px #eef1ef; }
.cloud-card.connected .cloud-dot { background: #28a36a; box-shadow: 0 0 0 4px #def4e8; }
.cloud-card.error .cloud-dot { background: #c46c40; box-shadow: 0 0 0 4px #fae8df; }
.settings-row { width: 100%; border: 0; border-bottom: 1px solid #edf0ec; background: white; padding: 13px 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; }.settings-row:last-child { border-bottom: 0; }.chevron { color: #a9b2ae; font-size: 25px; font-weight: 300; }.settings-row select { max-width: 105px; border: 0; color: var(--green); font-size: 11px; font-weight: 800; background: transparent; }
.toggle-row { position: relative; }.toggle-row input { position: absolute; opacity: 0; }.toggle { width: 42px; height: 24px; border-radius: 999px; background: #d6dcd8; padding: 3px; transition: .2s; }.toggle::after { content: ""; display: block; width: 18px; height: 18px; background: white; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: .2s; }.toggle-row input:checked + .toggle { background: var(--green); }.toggle-row input:checked + .toggle::after { transform: translateX(18px); }
.prototype-note { margin: 18px 32px; font-size: 10px; line-height: 1.5; color: #8a9691; text-align: center; }
.notification-checklist { margin: -4px 20px 14px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.64); }
.notification-checklist > div { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-bottom: 1px solid #e8ece8; }
.notification-checklist > div:last-child { border: 0; }
.notification-checklist i { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #e8ece9; color: var(--muted); font-style: normal; font-size: 10px; font-weight: 800; }
.notification-checklist span { flex: 1; }
.notification-checklist strong, .notification-checklist small { display: block; }
.notification-checklist strong { font-size: 11px; }
.notification-checklist small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.notification-checklist b { color: #aab4af; font-size: 15px; }
.notification-checklist > div.complete i { background: var(--green); color: white; }
.notification-checklist > div.complete b { color: var(--green); font-size: 0; }
.notification-checklist > div.complete b::before { content: "✓"; font-size: 15px; }

.bottom-nav { position: fixed; z-index: 30; width: min(100%, 480px); bottom: 0; background: rgba(255,255,255,.93); backdrop-filter: blur(18px); border-top: 1px solid rgba(214,222,217,.9); display: grid; grid-template-columns: repeat(3,1fr); padding: 9px 18px calc(9px + env(safe-area-inset-bottom)); }
.nav-item { position: relative; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #89938f; font-size: 9px; font-weight: 700; cursor: pointer; }.nav-item svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.nav-item.active { color: var(--green); }.nav-item.active::after { content: ""; width: 4px; height: 4px; background: var(--mint); border-radius: 50%; position: absolute; top: -4px; }.nav-badge { position: absolute; top: -3px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; color: white; background: #e96c50; display: grid; place-items: center; font-size: 8px; border: 2px solid white; z-index: 1; }

.sheet-backdrop { position: fixed; inset: 0; background: rgba(7,30,25,.45); z-index: 50; opacity: 0; pointer-events: none; transition: .25s; backdrop-filter: blur(2px); }
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.bottom-sheet { position: fixed; z-index: 51; width: min(100%, 480px); bottom: 0; left: 50%; transform: translate(-50%, 105%); background: var(--paper); border-radius: 26px 26px 0 0; padding: 9px 20px calc(22px + env(safe-area-inset-bottom)); transition: transform .3s cubic-bezier(.22,.8,.36,1); box-shadow: 0 -20px 70px rgba(0,0,0,.2); max-height: 92vh; overflow: auto; }
.bottom-sheet.open { transform: translate(-50%, 0); }
.sheet-handle { width: 44px; height: 4px; border-radius: 5px; background: #c6ceca; margin: 2px auto 17px; }.sheet-header { display: flex; justify-content: space-between; align-items: flex-start; }.sheet-header h2 { margin: 3px 0 0; font-family: Manrope, sans-serif; font-size: 25px; }.close-button { width: 35px; height: 35px; border-radius: 50%; background: #e9ece8; font-size: 24px; font-weight: 300; }
.selected-section { margin: 15px 0 18px; background: var(--green-dark); color: white; border-radius: 15px; padding: 12px 14px; display: flex; justify-content: space-between; font-size: 11px; }.selected-section span { color: rgba(255,255,255,.65); display: block; margin-top: 2px; }.selected-section strong:last-child { color: var(--mint); align-self: center; }
.alert-options { border: 0; padding: 0; margin: 0 0 17px; }.alert-options legend { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .9px; margin-bottom: 9px; }.alert-options label { display: block; margin-bottom: 8px; }.alert-options input { position: absolute; opacity: 0; }.radio-card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; align-items: center; gap: 11px; cursor: pointer; }.alert-options input:checked + .radio-card { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }.option-icon { flex: 0 0 auto; width: 35px; height: 35px; border-radius: 10px; display: grid; place-items: center; background: var(--mint-soft); color: var(--green); font-weight: 800; }.radio-card > span:nth-child(2) { flex: 1; }.radio-card strong, .radio-card small { display: block; }.radio-card strong { font-size: 12px; }.radio-card small { color: var(--muted); font-size: 10px; margin-top: 2px; }.radio-card i { width: 17px; height: 17px; border: 1px solid #b9c3be; border-radius: 50%; }.alert-options input:checked + .radio-card i { border: 5px solid var(--green); }.sheet-note { margin: 11px 20px 0; color: var(--muted); font-size: 9px; line-height: 1.45; text-align: center; }
.compact-sheet { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.install-lead { margin: 12px 0 16px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.install-steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.install-steps li { display: flex; align-items: center; gap: 11px; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.install-steps li > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: var(--mint-soft); font-size: 11px; font-weight: 800; }
.install-steps div { flex: 1; }
.install-steps strong, .install-steps small { display: block; }
.install-steps strong { font-size: 11px; }
.install-steps small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.install-steps b { color: var(--green); font-size: 18px; }
.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translate(-50%, 25px); opacity: 0; pointer-events: none; background: var(--ink); color: white; padding: 11px 15px; border-radius: 13px; display: flex; align-items: center; gap: 9px; box-shadow: var(--shadow); transition: .25s; min-width: 220px; }.toast.show { opacity: 1; transform: translate(-50%, 0); }.toast span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--green-dark); font-size: 11px; font-weight: 900; }.toast p { margin: 0; font-size: 11px; font-weight: 700; }

@media (min-width: 700px) {
  body { padding: 36px 0; background: radial-gradient(circle at 10% 20%, #eef6ea, transparent 25%), radial-gradient(circle at 90% 85%, #c2ddd2, transparent 28%), #dce7df; }
  .phone-app { min-height: calc(100vh - 72px); max-height: 900px; border-radius: 32px; box-shadow: var(--shadow); overflow-y: auto; scrollbar-width: none; }.phone-app::-webkit-scrollbar { display: none; }.topbar { top: 0; }.bottom-nav { bottom: 36px; border-radius: 0 0 32px 32px; }.app-shell { min-height: calc(100vh - 72px); }
}

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