/* ============================================================
   Takshya Web — design system
   Mobile mirrors the Android app; desktop gets its own canvas.
   ============================================================ */

:root {
  --canvas: #f8f9fd;
  --canvas-deep: #eef1fb;
  --violet: #5b4bff;
  --violet-deep: #4838e8;
  --violet-mid: #6366f1;
  --violet-soft: #eef0ff;
  --violet-ghost: #f4f4ff;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --hint: #94a3b8;
  --line: #eef1f6;
  --divider: #f1f5f9;
  --white: #ffffff;
  --green: #10b981;
  --emerald: #059669;
  --amber: #f59e0b;
  --gold: #d97706;
  --rose: #ef4444;
  --coral: #f97316;
  --sky: #0ea5e9;
  --cyan: #06b6d4;
  --pink: #ec4899;
  --r-xs: 10px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-2xl: 28px;
  --gutter: 20px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-card: 0 10px 30px rgba(63, 66, 148, 0.07);
  --shadow-float: 0 18px 44px rgba(44, 47, 120, 0.16);
  --grad: linear-gradient(135deg, #6a5bff 0%, #4f46e5 55%, #4338ca 100%);
  --grad-soft: linear-gradient(135deg, #eef0ff 0%, #f7f7ff 100%);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.9);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--canvas);
  background-image: url("../assets/canvas-mesh.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

button, input, select, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; }
input:focus, textarea:focus, select:focus, button:focus-visible { outline: none; }
::selection { background: rgba(91, 75, 255, 0.2); }

.ic { width: 20px; height: 20px; flex: none; }

/* ---------- shared bits ---------- */
.screen { padding: 0 var(--gutter) 120px; max-width: 560px; margin: 0 auto; position: relative; }
.screen.subpage { padding-bottom: 48px; max-width: 720px; }

.eyebrow { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--violet); }
.h1 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.h2 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.h3 { font-size: 15px; font-weight: 700; }
.sub { font-size: 12px; color: var(--muted); line-height: 1.5; }
.tiny { font-size: 11px; color: var(--muted); }
.accent { color: var(--violet); }
.mono { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.spacer { flex: 1; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.mt-6 { margin-top: 6px; } .mt-10 { margin-top: 10px; } .mt-14 { margin-top: 14px; } .mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; } .mb-14 { margin-bottom: 14px; }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 16px;
}

.card-flat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }

.icon-tile {
  width: 38px; height: 38px; border-radius: 13px;
  display: grid; place-items: center; flex: none;
  background: var(--violet-soft); color: var(--violet-mid);
}
.icon-tile.sky { background: #e8f6fd; color: var(--sky); }
.icon-tile.emerald { background: #e7f9f1; color: var(--emerald); }
.icon-tile.amber { background: #fef5e7; color: var(--gold); }
.icon-tile.rose { background: #fdeef0; color: var(--rose); }
.icon-tile.violet { background: var(--violet-soft); color: var(--violet); }
.icon-tile.cyan { background: #e8f9fb; color: var(--cyan); }
.icon-tile.gold { background: #fdf3dd; color: var(--gold); }
.icon-tile.pink { background: #fdecf5; color: var(--pink); }

.circle-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 14px rgba(70, 72, 150, 0.08);
  color: var(--ink);
  transition: transform .15s ease, background .15s ease;
}
.circle-btn:active { transform: scale(.94); }
.circle-btn.dark { background: rgba(15, 23, 42, 0.22); border-color: rgba(255,255,255,.2); color: #fff; }
.circle-btn.subtle { background: #f5f6fb; border-color: transparent; box-shadow: none; color: var(--muted); }
.circle-btn.sm { width: 32px; height: 32px; }
.circle-btn.lg { width: 44px; height: 44px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 15px;
  font-size: 14px; font-weight: 700; color: #fff;
  background: var(--grad);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.28);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: translateY(1px) scale(.995); box-shadow: 0 6px 14px rgba(79, 70, 229, 0.24); }
.btn.block { width: 100%; }
.btn.soft { background: var(--violet-soft); color: var(--violet-mid); box-shadow: none; }
.btn.ghost { background: #fff; color: var(--body); border: 1px solid var(--line); box-shadow: none; }
.btn.dark { background: #101828; box-shadow: 0 10px 22px rgba(16, 24, 40, .22); }
.btn.danger { background: linear-gradient(135deg, #fb7185, #ef4444); box-shadow: 0 10px 22px rgba(239, 68, 68, .24); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 12.5px; border-radius: 12px; }
.btn.xs { min-height: 32px; padding: 0 12px; font-size: 11.5px; border-radius: 10px; }

.link { font-size: 12.5px; font-weight: 700; color: var(--violet-mid); }
.link.muted { color: var(--muted); font-weight: 600; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .01em;
  background: var(--violet-soft); color: var(--violet-mid);
}
.pill.green { background: #e7f9f1; color: var(--emerald); }
.pill.amber { background: #fef5e7; color: var(--gold); }
.pill.rose { background: #fdeef0; color: var(--rose); }
.pill.blue { background: #e9f2fe; color: #2563eb; }
.pill.gray { background: #f1f5f9; color: var(--muted); }
.pill.outline { background: transparent; border: 1px solid var(--line); color: var(--muted); }

.chip-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.chip-scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(63, 66, 148, .05);
  font-size: 11.5px; font-weight: 600; color: #475569;
  transition: all .15s ease;
}
.chip.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(79, 70, 229, .26); }
.chip.soft.active { background: var(--violet-soft); color: var(--violet-mid); box-shadow: none; border-color: transparent; }

.segmented {
  display: flex; gap: 4px; padding: 4px;
  background: #f1f3fa; border-radius: 13px;
}
.segmented button {
  flex: 1; height: 34px; border-radius: 10px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  transition: all .15s ease;
}
.segmented button.active { background: #fff; color: var(--ink); box-shadow: 0 3px 10px rgba(63, 66, 148, .12); }

/* ---------- fields ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 11.5px; font-weight: 600; color: var(--body); }
.field > label .req { color: var(--rose); }
.input, .textarea, .select {
  width: 100%; border: 1px solid var(--line); background: #f8f9fd;
  border-radius: 13px; padding: 13px 14px; font-size: 13.5px; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--hint); }
.input:focus, .textarea:focus, .select:focus {
  background: #fff; border-color: rgba(91, 75, 255, .45);
  box-shadow: 0 0 0 4px rgba(91, 75, 255, .1);
}
.textarea { min-height: 92px; resize: vertical; }
.searchbar {
  display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 14px;
  border-radius: 15px; background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-card);
  color: var(--muted);
}
.searchbar input { flex: 1; border: none; background: none; font-size: 13px; color: var(--ink); min-width: 0; }
.searchbar input::placeholder { color: var(--hint); }
.searchbar .filter-orb {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad); color: #fff; flex: none;
}
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute; inset: 0; border-radius: 999px; background: #e2e8f0; transition: .2s;
}
.switch span::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px; transition: .2s; box-shadow: 0 2px 6px rgba(15,23,42,.18);
}
.switch input:checked + span { background: var(--violet-mid); }
.switch input:checked + span::after { transform: translateX(18px); }

/* ---------- avatars ---------- */
.avatar {
  border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #e0e7ff, #fae8ff);
  color: #4f46e5; font-weight: 700; flex: none; overflow: hidden;
  width: 40px; height: 40px; font-size: 13px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 96px; height: 96px; font-size: 28px; }
.avatar.hero { width: 114px; height: 114px; font-size: 34px; }
.avatar.sm { width: 32px; height: 32px; font-size: 11px; }
.avatar.xs { width: 22px; height: 22px; font-size: 9px; }
.avatar.green { background: linear-gradient(135deg, #d1fae5, #ecfdf5); color: #047857; }
.avatar.amber { background: linear-gradient(135deg, #fef3c7, #fffbeb); color: #b45309; }
.avatar.rose { background: linear-gradient(135deg, #ffe4e6, #fff1f2); color: #be123c; }
.avatar.sky { background: linear-gradient(135deg, #e0f2fe, #f0f9ff); color: #0369a1; }

/* ---------- top bars ---------- */
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0 12px;
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(180deg, rgba(248,249,253,.92) 62%, rgba(248,249,253,0));
  backdrop-filter: blur(12px);
  margin: 0 calc(var(--gutter) * -1);
  padding-left: var(--gutter); padding-right: var(--gutter);
}
.topbar .tb-text { min-width: 0; flex: 1; }
.topbar .tb-title { font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.topbar .tb-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.topbar .tb-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- mobile brand bar ---------- */
.brandbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter) 10px;
  max-width: 560px; margin: 0 auto;
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(180deg, rgba(248,249,253,.94) 65%, rgba(248,249,253,0));
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand .name { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.brand .campus { display: flex; align-items: center; gap: 3px; font-size: 10.5px; color: var(--muted); font-weight: 500; }
.brand-actions { display: flex; align-items: center; gap: 8px; }
.avatar-wrap { position: relative; }
.avatar-wrap .dot {
  position: absolute; right: 0; bottom: 1px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--green); border: 2px solid #f8f9fd;
}

/* ---------- floating dock ---------- */
.dock-wrap {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px;
  z-index: 90; width: min(440px, calc(100% - 24px));
}
.dock {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  align-items: center; height: 66px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  box-shadow: 0 20px 40px rgba(37, 41, 110, 0.16), 0 2px 0 rgba(255,255,255,.7) inset;
  padding: 0 6px;
}
.dock-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: 52px; border-radius: 17px; color: #7b869b;
  font-size: 9.5px; font-weight: 600;
  transition: color .18s ease, background .18s ease;
  position: relative;
}
.dock-item .ic { width: 19px; height: 19px; }
.dock-item.active { color: var(--violet-deep); background: linear-gradient(180deg, #eef0ff, #e6e9ff); }
.dock-item.active::after {
  content: ""; width: 3.5px; height: 3.5px; border-radius: 50%;
  background: var(--violet); position: absolute; bottom: 5px;
}
.dock-item .badge-dot {
  position: absolute; top: 12px; right: calc(50% - 13px);
  width: 7px; height: 7px; border-radius: 50%; background: #ef4444;
  border: 1.5px solid #fff;
}
.dock-fab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 9.5px; font-weight: 700; color: var(--violet-deep);
}
.dock-fab .orb {
  width: 46px; height: 46px; border-radius: 16px;
  background: var(--grad);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 12px 22px rgba(79, 70, 229, 0.36), 0 0 0 5px rgba(255,255,255,.35);
  transform: translateY(-7px);
  transition: transform .18s ease;
}
.dock-fab:active .orb { transform: translateY(-4px) scale(.96); }

/* ---------- SHEETS ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(3px);
  animation: fadeIn .18s ease;
}
.sheet {
  position: fixed; z-index: 130; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: min(560px, 100%);
  max-height: 90vh;
  background: linear-gradient(180deg, #fdfdff 0%, #ffffff 100%);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -20px 60px rgba(15, 23, 42, 0.24);
  display: flex; flex-direction: column;
  animation: sheetUp .28s cubic-bezier(.2, .8, .25, 1);
  overflow: hidden;
}
.sheet .sheet-body { overflow-y: auto; padding: 8px 22px 26px; overscroll-behavior: contain; }
.sheet .handle { width: 40px; height: 4.5px; border-radius: 999px; background: #dbe2ee; margin: 10px auto 4px; flex: none; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 10px 0 12px; }
.sheet-head .sh-icon {
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  background: var(--violet-soft); color: var(--violet-mid); display: grid; place-items: center;
}
.sheet-title { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.sheet-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.sheet-close { margin-left: auto; }
.sheet-body .stack { gap: 14px; }
.sheet-actions { display: flex; gap: 10px; padding-top: 6px; }
.sheet-actions .btn { flex: 1; }
.sheet-actions .btn.ghost { flex: 0 0 auto; }
.page-actions {
  position: sticky; bottom: 84px; z-index: 20; margin-top: 14px;
  padding: 10px; border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .98);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .12), 0 1px 0 rgba(255,255,255,.8) inset;
  backdrop-filter: blur(14px);
}
@media (min-width: 1024px) { .page-actions { bottom: 20px; } }

@keyframes sheetUp { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- toast ---------- */
#toast-root { position: fixed; z-index: 200; left: 50%; transform: translateX(-50%); bottom: 100px; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: rgba(15, 23, 42, 0.92);
  color: #fff; font-size: 12.5px; font-weight: 600;
  padding: 11px 18px; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .3);
  animation: toastIn .25s ease;
  max-width: min(90vw, 420px); text-align: center;
}
.toast.success { background: rgba(5, 150, 105, .95); }
.toast.error { background: rgba(220, 38, 38, .95); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- AUTH ---------- */
body.auth-mode #app, #app.auth-root { display: block !important; max-width: none !important; }
body.auth-mode { background: #f8f9fd; }
.auth-shell { min-height: 100vh; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-visual { display: none; }
.auth-shell .backdrop-campus {
  position: fixed; inset: 0; z-index: 0;
  background: url("../assets/login-collage.png") center 30% / cover no-repeat;
  opacity: .18; filter: saturate(.9);
}
.auth-shell .backdrop-fade {
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(120% 60% at 50% 100%, rgba(238, 240, 255, .2), rgba(248, 249, 253, .92) 60%);
}
.auth-inner { position: relative; z-index: 2; width: min(440px, 100%); margin: 0 auto; padding: 38px 24px 180px; }
.auth-logo { display: grid; place-items: center; }
.auth-logo img { width: 118px; height: 118px; object-fit: contain; filter: drop-shadow(0 16px 30px rgba(79, 70, 229, .24)); }
.auth-title { text-align: center; font-size: 30px; font-weight: 800; letter-spacing: -.04em; margin-top: 10px; }
.auth-tag { text-align: center; font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.55; }
.auth-card { margin-top: 26px; padding: 22px 20px; }
.auth-heading { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.auth-copy { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.role-select { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.role-select button {
  height: 40px; border-radius: 12px; font-size: 12px; font-weight: 700;
  background: #f4f5fb; color: var(--muted); border: 1px solid transparent;
  transition: all .15s ease;
}
.role-select button.active { background: var(--violet-soft); color: var(--violet-deep); border-color: rgba(91,75,255,.25); }
.auth-fields { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.auth-fields .input { background: #f7f8fd; }
.auth-note { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--hint); justify-content: center; margin-top: 14px; }
.auth-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1; height: 190px; background: url("../assets/login-campus.png") center bottom / cover no-repeat; pointer-events: none; opacity: .95; }
.auth-footer::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #f8f9fd 0%, rgba(248,249,253,.2) 40%, rgba(248,249,253,0) 100%); }
.auth-demo { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.auth-demo button { font-size: 10.5px; font-weight: 700; color: var(--violet-mid); background: rgba(238,240,255,.8); border-radius: 999px; padding: 6px 12px; }

/* ---------- FEED ---------- */
.feed-screen { padding-bottom: 116px; }
.greeting-hero {
  position: relative;
  margin: -14px calc(var(--gutter) * -1) 6px;
  border-radius: 0 0 22px 22px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.greeting-hero .walkway-banner {
  width: 100%;
  aspect-ratio: 1774 / 864;
  object-fit: cover;
  display: block;
}
.greeting-hero .greeting-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px var(--gutter);
  background: linear-gradient(180deg, rgba(15,23,42,0) 25%, rgba(15,23,42,0.48) 60%, rgba(15,23,42,0.86) 100%);
  color: #fff;
}
.greeting-hero .sal { font-size: 13px; color: rgba(255,255,255,.9); font-weight: 500; }
.greeting-hero .who { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: #fff; margin-top: 1px; }
.greeting-hero .quote { font-size: 11.5px; color: rgba(255,255,255,.82); font-style: italic; margin-top: 3px; }

.greeting { position: relative; padding: 18px var(--gutter) 12px; overflow: hidden; }
.greeting .blob { position: absolute; width: 190px; right: -54px; top: -26px; opacity: .5; pointer-events: none; }
.greeting .collage { position: absolute; width: 132px; right: -10px; top: 16px; opacity: .95; border-radius: 18px; mask-image: linear-gradient(90deg, transparent, #000 40%); }
.greeting .tag-img { position: absolute; width: 92px; right: 100px; top: 4px; opacity: .55; transform: rotate(-8deg); }
.greeting .sal { font-size: 14px; color: #475467; font-weight: 500; }
.greeting .who { font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1.15; margin-top: 1px; }
.greeting .quote { display: flex; gap: 8px; align-items: center; margin-top: 9px; font-size: 11.5px; color: #475467; max-width: 240px; }
.greeting .quote::before { content: ""; width: 3.5px; height: 28px; border-radius: 4px; background: var(--violet-mid); flex: none; }

.stat-pods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px var(--gutter) 4px; }
.stat-pod {
  border-radius: 16px; padding: 10px 9px 9px; min-height: 104px;
  display: flex; flex-direction: column; gap: 3px; position: relative;
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 20px rgba(63, 66, 148, .06);
  overflow: hidden;
}
.stat-pod .pod-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 2px; }
.stat-pod .pod-title { font-size: 10.5px; font-weight: 700; letter-spacing: -.01em; }
.stat-pod .pod-sub { font-size: 9.5px; color: var(--muted); }
.stat-pod .pod-arrow {
  position: absolute; right: 7px; bottom: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.86); display: grid; place-items: center; color: var(--ink);
  box-shadow: 0 2px 6px rgba(63,66,148,.12);
}
.stat-pod.attendance { background: linear-gradient(160deg, #eef0ff, #f7f7ff); }
.stat-pod.attendance .pod-ic { background: #e3e6ff; color: #4f46e5; }
.stat-pod.tasks { background: linear-gradient(160deg, #fff3ea, #fff9f4); }
.stat-pod.tasks .pod-ic { background: #ffe8d7; color: #ea580c; }
.stat-pod.classes { background: linear-gradient(160deg, #e8f6fd, #f6fcff); }
.stat-pod.classes .pod-ic { background: #d6effb; color: #0284c7; }
.stat-pod.files { background: linear-gradient(160deg, #e9f9f0, #f6fdf9); }
.stat-pod.files .pod-ic { background: #d5f5e3; color: #059669; }

.spotlight {
  position: relative; margin: 12px var(--gutter); border-radius: 20px; overflow: hidden;
  min-height: 156px; color: #fff; box-shadow: 0 18px 38px rgba(15, 23, 42, .18);
  background: #101828;
}
.spotlight .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.spotlight .spot-scrim { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(9, 12, 30, .88) 12%, rgba(15, 23, 42, .32) 68%, rgba(15,23,42,.12)); }
.spotlight .inner { position: relative; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 156px; }
.spotlight .top { display: flex; align-items: center; gap: 6px; }
.spotlight .badge {
  display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 9px;
  border-radius: 999px; background: rgba(9, 12, 32, .42); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 9px; font-weight: 700; letter-spacing: .04em;
}
.spotlight .nav { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.spotlight .nav .circle-btn { width: 23px; height: 23px; background: rgba(9, 12, 32, .42); border-color: rgba(255,255,255,.2); color: #fff; box-shadow: none; }
.spotlight .nav .counter { height: 23px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; background: rgba(9, 12, 32, .42); font-size: 9px; font-weight: 700; }
.spotlight h3 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; max-width: 280px; }
.spotlight p { font-size: 11px; color: #dbe3ef; line-height: 1.45; max-width: 300px; }
.spotlight .cta {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  height: 31px; padding: 0 12px; border-radius: 999px;
  background: #fff; color: #101828; font-size: 10.5px; font-weight: 800;
  margin-top: auto;
}
.section-head { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--gutter) 8px; }
.section-head h2 { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.section-head .link { font-size: 11.5px; }
.feed-chips { padding: 2px var(--gutter) 8px; }

.feed-list { background: var(--divider); display: flex; flex-direction: column; gap: 8px; }
.post { background: #fff; padding: 15px var(--gutter) 12px; }
.post-head { display: flex; gap: 10px; align-items: flex-start; }
.post-ava-wrap { position: relative; flex: none; }
.post-ava-wrap .dot { position: absolute; right: 0; bottom: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--green); border: 2px solid #fff; }
.post-who { flex: 1; min-width: 0; }
.post-author { display: flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 700; }
.post-author .verified { color: #3b82f6; }
.post-meta { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.post-more { width: 28px; height: 28px; display: grid; place-items: center; color: var(--muted); border-radius: 50%; }
.post-body { padding: 10px 0 0; }
.post-title { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; }
.post-text { font-size: 12.5px; color: var(--body); line-height: 1.55; margin-top: 4px; }
.post-media { margin-top: 10px; border-radius: 14px; overflow: hidden; position: relative; }
.post-media img { width: 100%; height: 186px; object-fit: cover; }
.post-media .tag { position: absolute; left: 10px; top: 10px; }
.post-attachment {
  margin-top: 10px; display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 12px; background: #f8f9fd; border: 1px solid var(--line);
}
.post-attachment .file-ic { width: 34px; height: 34px; border-radius: 10px; background: #fdeef0; color: #dc2626; display: grid; place-items: center; flex: none; }
.post-attachment .file-name { font-size: 11.5px; font-weight: 700; }
.post-attachment .file-meta { font-size: 9.5px; color: var(--muted); }
.post-attachment .view { font-size: 10.5px; font-weight: 800; color: var(--violet-mid); padding: 5px 9px; border-radius: 8px; background: var(--violet-soft); }
.post-poll { margin-top: 10px; padding: 12px; border-radius: 14px; background: #f8f9fd; border: 1px solid var(--line); }
.poll-head { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; color: var(--emerald); }
.poll-q { font-size: 13px; font-weight: 700; margin: 7px 0 9px; }
.poll-opt { position: relative; height: 38px; border-radius: 11px; background: #fff; border: 1px solid var(--line); margin-top: 6px; overflow: hidden; display: flex; align-items: center; padding: 0 11px; cursor: pointer; }
.poll-opt .fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #eceefe, #f5f4ff); }
.poll-opt .lbl { position: relative; font-size: 12px; font-weight: 600; flex: 1; }
.poll-opt .pct { position: relative; font-size: 11.5px; font-weight: 800; color: var(--violet-mid); }
.poll-opt.voted { border-color: rgba(91, 75, 255, .35); }
.poll-opt.voted .lbl::after { content: " ✓"; color: var(--violet-mid); font-weight: 800; }
.poll-meta { font-size: 10px; color: var(--muted); margin-top: 7px; }
.post-actions { display: flex; align-items: center; gap: 16px; padding-top: 11px; margin-top: 8px; border-top: 1px solid #f5f6fa; }
.post-act { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.post-act.liked { color: #e11d48; }
.post-act.liked .ic { fill: currentColor; }
.post-act .ic { width: 17px; height: 17px; }

/* ---------- UTILITIES ---------- */
.util-hero { padding-top: 8px; }
.util-hero h1 { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.util-hero p { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.pulse-card {
  margin-top: 16px; border-radius: 20px; padding: 14px;
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(199, 210, 254, .55), transparent 55%),
    linear-gradient(135deg, #fbfbff 10%, #eef0ff 100%);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-card);
}
.pulse-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pulse-head .ph-left { display: flex; align-items: center; gap: 8px; }
.pulse-head .sem { font-size: 9.5px; color: var(--muted); font-weight: 600; }
.pulse-stats { display: flex; align-items: center; gap: 0; margin-top: 12px; }
.pulse-stat { flex: 1; display: flex; align-items: center; gap: 7px; min-width: 0; }
.pulse-stat + .pulse-stat { border-left: 1px solid #dde4ed; padding-left: 11px; }
.pulse-stat .val { font-size: 12.5px; font-weight: 800; line-height: 1.1; }
.pulse-stat .lbl { font-size: 8.5px; color: var(--muted); margin-top: 2px; }
.pulse-stat .sub { font-size: 8px; margin-top: 1px; }
.ring {
  --p: 72; --size: 34px; --sw: 4px;
  width: var(--size); height: var(--size); border-radius: 50%;
  background: conic-gradient(var(--violet-mid) calc(var(--p) * 1%), #e2e8f0 0);
  display: grid; place-items: center; flex: none;
}
.ring::before { content: ""; width: calc(var(--size) - var(--sw) * 2); height: calc(var(--size) - var(--sw) * 2); background: #fbfbff; border-radius: 50%; position: absolute; }
.ring span { position: relative; font-size: 8px; font-weight: 800; color: var(--ink); }
.ring-wrap { position: relative; display: grid; place-items: center; }

.util-section-head { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 10px; }
.util-section-head h2 { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.util-section-head .link { font-size: 11.5px; }
.util-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.util-tile {
  position: relative; border-radius: 17px; min-height: 112px; padding: 11px 10px;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 8px 18px rgba(63, 66, 148, .06);
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease;
}
.util-tile:active { transform: scale(.97); }
.util-tile .tile-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.7); }
.util-tile .t-name { font-size: 10.5px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.util-tile .t-sub { font-size: 8.5px; color: var(--muted); }
.util-tile .t-arrow { position: absolute; right: 8px; bottom: 8px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.8); box-shadow: 0 2px 6px rgba(63,66,148,.1); color: #334155; }
.util-tile.t-indigo { background: linear-gradient(160deg, #eef0ff, #f7f7ff); }
.util-tile.t-indigo .tile-ic { color: #4f46e5; }
.util-tile.t-sky { background: linear-gradient(160deg, #e8f6fd, #f5fcff); }
.util-tile.t-sky .tile-ic { color: #0284c7; }
.util-tile.t-emerald { background: linear-gradient(160deg, #e7f9f1, #f5fdf9); }
.util-tile.t-emerald .tile-ic { color: #059669; }
.util-tile.t-rose { background: linear-gradient(160deg, #fdeef0, #fff7f8); }
.util-tile.t-rose .tile-ic { color: #e11d48; }
.util-tile.t-coral { background: linear-gradient(160deg, #fff1e9, #fff9f4); }
.util-tile.t-coral .tile-ic { color: #ea580c; }
.util-tile.t-cyan { background: linear-gradient(160deg, #e8f9fb, #f4fdff); }
.util-tile.t-cyan .tile-ic { color: #0891b2; }
.util-tile.t-amber { background: linear-gradient(160deg, #fef5e7, #fffaf0); }
.util-tile.t-amber .tile-ic { color: #d97706; }
.util-tile.t-gold { background: linear-gradient(160deg, #fdf3dd, #fffbf2); }
.util-tile.t-gold .tile-ic { color: #b45309; }
.util-tile.t-violet { background: linear-gradient(160deg, #f3edff, #faf7ff); }
.util-tile.t-violet .tile-ic { color: #7c3aed; }
.util-tile.t-pink { background: linear-gradient(160deg, #fdecf5, #fff7fb); }
.util-tile.t-pink .tile-ic { color: #db2777; }
.util-tile.wide { grid-column: span 2; }
.util-wide-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- INBOX ---------- */
.inbox-hero { position: relative; margin: 0 calc(var(--gutter) * -1); padding: 14px var(--gutter) 6px; overflow: hidden; }
.inbox-hero img { position: absolute; right: -20px; top: -6px; width: 178px; opacity: .9; mask-image: linear-gradient(90deg, transparent 4%, #000 42%); }
.inbox-hero .ih-title { font-size: 24px; font-weight: 800; letter-spacing: -.04em; }
.inbox-hero .ih-line { font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.inbox-hero .ih-line em { font-style: normal; color: var(--violet-mid); }
.inbox-hero .ih-sub { font-size: 11px; color: var(--muted); max-width: 210px; margin-top: 4px; line-height: 1.5; }
.inbox-list { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.inbox-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px; border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 6px 16px rgba(63, 66, 148, .05);
  transition: transform .15s ease;
}
.inbox-item:active { transform: scale(.99); }
.inbox-item.unread { background: #fff; }
.inbox-item .ii-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.inbox-item .ii-title { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.inbox-item .ii-text { font-size: 11px; color: var(--muted); line-height: 1.45; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.inbox-item .ii-time { font-size: 9.5px; color: var(--hint); white-space: nowrap; margin-left: 4px; }
.inbox-item .unread-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet-mid); flex: none; margin-top: 5px; }

/* ---------- PROFILE ---------- */
.profile-head { position: relative; padding: 6px 0 0; }
.profile-identity { display: flex; gap: 16px; align-items: center; }
.profile-identity .avatar { box-shadow: 0 12px 28px rgba(79, 70, 229, .18); border: 4px solid #fff; }
.profile-name { font-size: 21px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.profile-dept { font-size: 12px; color: var(--muted); margin-top: 3px; }
.profile-loc { display: flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--muted); margin-top: 5px; }
.profile-socials { display: flex; gap: 7px; margin-top: 9px; }
.profile-socials .circle-btn { width: 30px; height: 30px; }
.profile-socials .ic { width: 14px; height: 14px; }
.master-card {
  margin-top: 16px; padding: 14px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.aura-row { display: flex; align-items: center; gap: 12px; }
.aura-blob { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, #fef3c7, #fde68a); color: #b45309; display: grid; place-items: center; flex: none; }
.aura-main { min-width: 0; }
.aura-val { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.aura-lbl { font-size: 10.5px; color: var(--muted); }
.aura-standing { font-size: 9.5px; color: var(--violet-mid); font-weight: 700; }
.aura-level { flex: 1; min-width: 0; border-left: 1px solid var(--line); padding-left: 12px; }
.aura-level .lvl-title { font-size: 12.5px; font-weight: 700; }
.aura-level .lvl-badge { font-size: 10px; color: var(--muted); }
.aura-bar { height: 6px; border-radius: 999px; background: #e8ebf3; margin-top: 7px; overflow: hidden; }
.aura-bar span { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.aura-prog { font-size: 9.5px; color: var(--muted); margin-top: 4px; }
.profile-metrics { display: flex; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.pm { flex: 1; text-align: center; }
.pm + .pm { border-left: 1px solid var(--line); }
.pm .v { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.pm .l { font-size: 10px; color: var(--muted); margin-top: 2px; }
.profile-section {
  margin-top: 12px; padding: 15px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: var(--r-lg);
  box-shadow: 0 6px 18px rgba(63, 66, 148, .05);
}
.profile-section .ps-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.profile-section .ps-title { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 800; }
.profile-section .ps-title .icon-tile { width: 30px; height: 30px; border-radius: 10px; }
.profile-section .ps-title .icon-tile .ic { width: 15px; height: 15px; }
.profile-section .ps-body { margin-top: 10px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 10.5px; font-weight: 600; color: #475569; background: #f4f5fb; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; }
.mini-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.mini-item:first-child { border-top: none; padding-top: 0; }
.mini-item .mi-ic { width: 34px; height: 34px; border-radius: 10px; background: #f4f5fb; display: grid; place-items: center; color: var(--violet-mid); flex: none; }
.mini-item .mi-title { font-size: 12.5px; font-weight: 700; }
.mini-item .mi-sub { font-size: 10.5px; color: var(--muted); line-height: 1.4; margin-top: 1px; }
.bio-text { font-size: 12px; color: var(--body); line-height: 1.6; }

/* ---------- list rows / cards ---------- */
.list-card { background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.95); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--line); transition: background .15s; }
.list-row:last-child { border-bottom: none; }
.list-row:active { background: #f8f9fd; }
.list-row .lr-title { font-size: 13px; font-weight: 700; }
.list-row .lr-sub { font-size: 10.5px; color: var(--muted); margin-top: 1px; line-height: 1.35; }
.list-row .lr-trail { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }

.stat-row { display: flex; gap: 8px; }
.stat-box { flex: 1; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 6px 14px rgba(63,66,148,.05); }
.stat-box .sb-val { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.stat-box .sb-lbl { font-size: 9.5px; color: var(--muted); margin-top: 2px; }

.skeleton-line { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #eef1f7 25%, #f7f8fc 50%, #eef1f7 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 34px 18px; }
.empty .e-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--violet-soft); color: var(--violet-mid); display: grid; place-items: center; margin-bottom: 2px; }
.empty .e-title { font-size: 15px; font-weight: 800; }
.empty .e-text { font-size: 11.5px; color: var(--muted); max-width: 260px; line-height: 1.5; }

/* ---------- attendance / academics ---------- */
.hero-metric { display: flex; align-items: center; gap: 18px; padding: 18px; }
.hero-metric .big-ring { --size: 92px; --sw: 9px; }
.hero-metric .big-ring span { font-size: 20px; }
.hero-metric .hm-title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.hero-metric .hm-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.subject-row { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.subject-row:last-child { border-bottom: none; }
.sr-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sr-name { font-size: 12.5px; font-weight: 700; }
.sr-meta { font-size: 10px; color: var(--muted); margin-top: 1px; }
.sr-pct { font-size: 12.5px; font-weight: 800; }
.sr-bar { height: 6px; border-radius: 999px; background: #eef1f7; margin-top: 8px; overflow: hidden; }
.sr-bar span { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.sr-bar.low span { background: linear-gradient(90deg, #fb7185, #ef4444); }

.sem-card { margin-top: 12px; }
.sem-head { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.sem-title { font-size: 13px; font-weight: 800; }
.sem-sub { font-size: 10px; color: var(--muted); }
.sem-gpa { margin-left: auto; font-size: 15px; font-weight: 800; color: var(--violet-mid); }
.subject-line { display: flex; align-items: center; gap: 8px; padding: 10px 15px; border-bottom: 1px solid #f6f7fb; }
.subject-line:last-child { border-bottom: none; }
.subject-line .sl-name { flex: 1; font-size: 11.5px; font-weight: 600; min-width: 0; }
.subject-line .sl-credits { font-size: 9.5px; color: var(--muted); }
.subject-line .sl-grade { width: 34px; text-align: center; font-size: 11px; font-weight: 800; color: var(--violet-mid); background: var(--violet-soft); border-radius: 7px; padding: 4px 0; }
.subject-line .sl-del { color: var(--hint); width: 24px; display: grid; place-items: center; }

.task-row { display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.task-row:last-child { border-bottom: none; }
.task-check { width: 22px; height: 22px; border-radius: 8px; border: 1.8px solid #cbd5e1; display: grid; place-items: center; color: transparent; flex: none; margin-top: 1px; transition: all .15s; }
.task-check.done { background: var(--grad); border-color: transparent; color: #fff; }
.task-row.done .task-title { text-decoration: line-through; color: var(--hint); }
.task-title { font-size: 12.5px; font-weight: 700; }
.task-meta { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); margin-top: 3px; flex-wrap: wrap; }
.task-meta .urgent { color: var(--rose); font-weight: 700; }

.file-row { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.file-row:last-child { border-bottom: none; }
.file-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: #fdeef0; color: #dc2626; }
.file-ic.pdf { background: #fdeef0; color: #dc2626; }
.file-ic.doc { background: #e9f2fe; color: #2563eb; }
.file-ic.img { background: #e7f9f1; color: var(--emerald); }
.file-ic.zip { background: #fef5e7; color: var(--gold); }
.file-name { font-size: 12px; font-weight: 700; }
.file-meta { font-size: 9.5px; color: var(--muted); margin-top: 1px; }
.file-actions { margin-left: auto; display: flex; gap: 4px; align-items: center; }

.fee-hero { padding: 18px; background: linear-gradient(135deg, #101828, #1e293b); color: #fff; border-radius: var(--r-xl); box-shadow: 0 18px 36px rgba(15,23,42,.2); }
.fee-hero .fh-lbl { font-size: 11px; color: #cbd5e1; }
.fee-hero .fh-val { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin-top: 2px; }
.fee-hero .fh-date { font-size: 10.5px; color: #94a3b8; margin-top: 3px; }
.invoice-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.invoice-row:last-child { border-bottom: none; }
.inv-title { font-size: 12px; font-weight: 700; }
.inv-meta { font-size: 10px; color: var(--muted); margin-top: 1px; }
.inv-amt { margin-left: auto; font-size: 12.5px; font-weight: 800; }

.leader-hero { display: flex; align-items: flex-end; gap: 8px; justify-content: center; padding: 14px 8px 22px; }
.leader-hero .podium { flex: 1; max-width: 96px; text-align: center; }
.leader-hero .podium .p-ava { margin: 0 auto 7px; position: relative; }
.leader-hero .podium .p-ava .crown { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 17px; }
.leader-hero .podium .p-name { font-size: 10.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leader-hero .podium .p-pts { font-size: 9.5px; color: var(--muted); }
.leader-hero .podium .p-base { margin-top: 8px; border-radius: 12px 12px 0 0; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: #fff; }
.leader-hero .podium.first .p-base { height: 74px; background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.leader-hero .podium.second .p-base { height: 56px; background: linear-gradient(180deg, #cbd5e1, #94a3b8); }
.leader-hero .podium.third .p-base { height: 44px; background: linear-gradient(180deg, #fbbf24, #b45309); opacity: .8; }
.rank-row { display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: none; }
.rank-row.me { background: linear-gradient(90deg, #eef0ff, #f8f8ff); }
.rank-no { width: 24px; font-size: 11px; font-weight: 800; color: var(--muted); text-align: center; }
.rank-name { font-size: 12px; font-weight: 700; }
.rank-meta { font-size: 9.5px; color: var(--muted); }
.rank-pts { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--violet-mid); }

.opp-card { padding: 15px; border-radius: var(--r-lg); background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.95); box-shadow: var(--shadow-card); margin-top: 10px; }
.opp-top { display: flex; align-items: center; gap: 10px; }
.opp-title { font-size: 14px; font-weight: 800; letter-spacing: -.01em; }
.opp-sub { font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.opp-desc { font-size: 11.5px; color: var(--body); line-height: 1.55; margin-top: 9px; }
.opp-foot { display: flex; align-items: center; gap: 8px; margin-top: 11px; flex-wrap: wrap; }

.team-card { padding: 14px; border-radius: var(--r-lg); background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.95); box-shadow: var(--shadow-card); margin-top: 10px; }
.team-head { display: flex; gap: 10px; align-items: flex-start; }
.team-title { font-size: 13.5px; font-weight: 800; }
.team-event { font-size: 10px; color: var(--violet-mid); font-weight: 700; margin-top: 2px; }
.team-desc { font-size: 11px; color: var(--muted); line-height: 1.5; margin-top: 7px; }
.team-skills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.team-skills .tag { font-size: 9.5px; padding: 4px 8px; }
.team-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.team-cap { font-size: 10px; color: var(--muted); }

/* ---------- search / explore ---------- */
.explore-hero { padding-top: 8px; }
.explore-hero h1 { font-size: 27px; font-weight: 800; letter-spacing: -.045em; line-height: 1.15; }
.explore-hero h1 em { font-style: normal; color: var(--violet-mid); }
.cat-scroll { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 16px 0 6px; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat { flex: none; width: 62px; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.cat .cat-ic { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 6px 16px rgba(63,66,148,.06); color: #475569; }
.cat.active .cat-ic { background: var(--grad); color: #fff; box-shadow: 0 10px 22px rgba(79,70,229,.28); }
.cat .cat-lbl { font-size: 10px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.cat.active .cat-lbl { color: var(--violet-mid); }
.cat .cat-line { width: 16px; height: 2.5px; border-radius: 999px; background: transparent; }
.cat.active .cat-line { background: var(--violet-mid); }
.featured {
  position: relative; border-radius: 22px; overflow: hidden; padding: 18px;
  min-height: 200px; color: #fff; margin-top: 14px;
  background: radial-gradient(120% 120% at 85% 10%, #3b2f8f 0%, #14182e 48%, #0b0e1d 100%);
  box-shadow: 0 20px 42px rgba(15, 23, 42, .24);
  display: flex; flex-direction: column;
}
.featured::after {
  content: ""; position: absolute; right: -30px; bottom: -50px; width: 190px; height: 190px;
  background: radial-gradient(circle, rgba(124, 58, 237, .55), transparent 65%);
}
.featured .f-tag { display: inline-flex; align-self: flex-start; font-size: 10px; font-weight: 700; color: #fdba74; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); padding: 5px 9px; border-radius: 999px; }
.featured h3 { font-size: 23px; font-weight: 800; letter-spacing: -.03em; max-width: 220px; margin-top: 10px; line-height: 1.15; }
.featured p { font-size: 11.5px; color: rgba(255,255,255,.72); max-width: 210px; margin-top: 6px; line-height: 1.5; }
.featured .f-tags { display: flex; gap: 5px; margin-top: 10px; }
.featured .f-tags .tag { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); color: #e2e8f0; font-size: 9.5px; }
.featured .f-foot { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 12px; font-size: 10px; color: rgba(255,255,255,.66); position: relative; z-index: 1; }
.featured .f-go { position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; color: #fff; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 2px; }
.hscroll::-webkit-scrollbar { display: none; }
.project-card { flex: none; width: 178px; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.project-card .cover { height: 108px; position: relative; background: linear-gradient(135deg, #4338ca, #7c3aed); }
.project-card .cover.green { background: linear-gradient(135deg, #047857, #10b981); }
.project-card .cover.amber { background: linear-gradient(135deg, #b45309, #f59e0b); }
.project-card .cover .tag { position: absolute; left: 9px; top: 9px; background: rgba(255,255,255,.9); font-size: 8.5px; padding: 4px 7px; }
.project-card .cover .rating { position: absolute; right: 9px; top: 9px; background: rgba(255,255,255,.92); color: #b45309; font-size: 9px; font-weight: 800; padding: 4px 6px; border-radius: 7px; }
.project-card .pc-body { padding: 11px; }
.project-card .pc-title { font-size: 12.5px; font-weight: 800; letter-spacing: -.01em; }
.project-card .pc-desc { font-size: 10px; color: var(--muted); line-height: 1.4; margin-top: 3px; }
.project-card .pc-foot { display: flex; align-items: center; margin-top: 8px; }
.project-card .pc-foot .avatars { display: flex; }
.project-card .pc-foot .avatar { width: 20px; height: 20px; font-size: 8px; border: 1.5px solid #fff; margin-left: -6px; }
.project-card .pc-foot .avatar:first-child { margin-left: 0; }
.project-card .pc-foot .views { margin-left: auto; font-size: 9px; color: var(--muted); }
.club-card { flex: none; width: 172px; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(63,66,148,.05); }
.club-card .club-name { font-size: 12px; font-weight: 700; }
.club-card .club-meta { font-size: 9.5px; color: var(--emerald); margin-top: 2px; }

/* ---------- admin / faculty ---------- */
.tab-strip { display: flex; gap: 4px; padding: 4px; background: #f1f3fa; border-radius: 14px; margin-top: 14px; }
.tab-strip button { flex: 1; height: 40px; border-radius: 11px; font-size: 11px; font-weight: 700; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.tab-strip button .ic { width: 16px; height: 16px; }
.tab-strip button.active { background: #fff; color: var(--violet-deep); box-shadow: 0 3px 10px rgba(63,66,148,.12); }
.class-selectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.cs-pill { background: #f4f5fb; border-radius: 11px; padding: 8px 9px; text-align: left; }
.cs-pill .cs-lbl { font-size: 8.5px; color: var(--muted); font-weight: 600; }
.cs-pill .cs-val { font-size: 11.5px; font-weight: 800; margin-top: 1px; display: flex; align-items: center; justify-content: space-between; }
.day-strip { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; margin-top: 12px; }
.day-strip::-webkit-scrollbar { display: none; }
.day-chip { flex: none; height: 32px; padding: 0 12px; border-radius: 999px; background: #f1f3fa; font-size: 11px; font-weight: 700; color: var(--muted); }
.day-chip.active { background: var(--ink); color: #fff; }
.slot { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 15px; background: #fff; border: 1px solid var(--line); margin-top: 8px; box-shadow: 0 4px 12px rgba(63,66,148,.04); }
.slot .slot-time { width: 54px; flex: none; }
.slot .slot-time .st { font-size: 11.5px; font-weight: 800; }
.slot .slot-time .sd { font-size: 9px; color: var(--muted); }
.slot .slot-info { flex: 1; min-width: 0; }
.slot .slot-title { font-size: 12.5px; font-weight: 700; }
.slot .slot-sub { font-size: 10px; color: var(--muted); margin-top: 1px; }
.slot .slot-bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--violet-mid); }
.slot.lab .slot-bar { background: var(--sky); }
.slot.break .slot-bar { background: var(--amber); }
.slot.free .slot-bar { background: #cbd5e1; }

.roster-row { display: flex; align-items: center; gap: 10px; padding: 9px 13px; border-bottom: 1px solid var(--line); }
.roster-row:last-child { border-bottom: none; }
.roster-name { font-size: 11.5px; font-weight: 700; }
.roster-roll { font-size: 9px; color: var(--muted); margin-top: 1px; }
.att-toggle { display: flex; margin-left: auto; background: #f1f3fa; border-radius: 9px; padding: 3px; gap: 2px; }
.att-toggle button { height: 26px; padding: 0 9px; border-radius: 7px; font-size: 9.5px; font-weight: 700; color: var(--muted); }
.att-toggle button.present { background: #d1fae5; color: #047857; }
.att-toggle button.absent { background: #ffe4e6; color: #be123c; }

.table-head { display: grid; grid-template-columns: 26px 1fr 80px; gap: 8px; padding: 8px 13px; font-size: 9.5px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
.mark-input { width: 52px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: #f8f9fd; text-align: center; font-size: 12px; font-weight: 700; }

/* ---------- desktop ---------- */
.sidebar, .rail { display: none; }
@media (min-width: 1024px) {
  body { background-image: radial-gradient(90% 60% at 10% 0%, rgba(224, 231, 255, .55), transparent 55%), radial-gradient(70% 50% at 95% 20%, rgba(250, 232, 255, .5), transparent 60%), url("../assets/canvas-mesh.jpg"); background-size: auto, auto, cover; background-attachment: fixed; }
  .brandbar { display: none; }
  .dock-wrap { display: none; }
  #app { display: grid; grid-template-columns: 256px minmax(0, 1fr); max-width: 1280px; margin: 0 auto; min-height: 100vh; gap: 0; }
  body.has-rail #app { grid-template-columns: 256px minmax(0, 1fr) 320px; max-width: 1480px; }

  .sidebar {
    display: flex; flex-direction: column; gap: 22px;
    position: sticky; top: 0; height: 100vh; padding: 26px 18px 22px;
    border-right: 1px solid rgba(15, 23, 42, .05);
  }
  .side-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
  .side-brand img { width: 42px; height: 42px; object-fit: contain; }
  .side-brand .name { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
  .side-brand .campus { font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 3px; }
  .side-nav { display: flex; flex-direction: column; gap: 4px; }
  .side-label { font-size: 9.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--hint); padding: 0 12px; margin-bottom: 4px; }
  .side-link { display: flex; align-items: center; gap: 11px; height: 42px; padding: 0 12px; border-radius: 12px; font-size: 12.5px; font-weight: 600; color: #475569; transition: all .15s ease; }
  .side-link .ic { width: 18px; height: 18px; color: #7b869b; }
  .side-link:hover { background: rgba(255,255,255,.7); }
  .side-link.active { background: #fff; color: var(--violet-deep); box-shadow: 0 8px 20px rgba(63,66,148,.08); font-weight: 700; }
  .side-link.active .ic { color: var(--violet-mid); }
  .side-link .badge { margin-left: auto; background: #ef4444; color: #fff; font-size: 9px; font-weight: 800; border-radius: 999px; padding: 2px 6px; }
  .side-create { margin-top: 6px; }
  .side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow-card); }
  .side-user .su-name { font-size: 12px; font-weight: 700; }
  .side-user .su-role { font-size: 10px; color: var(--muted); }
  .side-user .ic { margin-left: auto; color: var(--hint); width: 16px; }

  .app-main { min-width: 0; }
  .screen { max-width: 820px; padding: 26px 28px 80px; }
  .screen.subpage { max-width: 960px; padding-top: 20px; }
  .topbar { margin: 0 -28px; padding-left: 28px; padding-right: 28px; top: 0; }

  .util-tiles { gap: 12px; margin-bottom: 8px; }
  .util-tile { min-height: 124px; padding: 14px 12px; border-radius: 20px; }
  .util-tile .tile-ic { width: 34px; height: 34px; border-radius: 12px; }
  .util-tile .t-name { font-size: 11.5px; }
  .util-tile .t-sub { font-size: 9.5px; }

  .rail { display: flex; flex-direction: column; gap: 14px; padding: 26px 22px 40px 6px; position: sticky; top: 0; max-height: 100vh; overflow-y: auto; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail-card { background: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.95); border-radius: 20px; padding: 16px; box-shadow: var(--shadow-card); }
  .rail-card h4 { font-size: 12px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 10px; }
  .rail-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 13px; background: rgba(255,255,255,.8); border-radius: 13px; color: var(--hint); font-size: 11.5px; border: 1px solid rgba(255,255,255,.95); cursor: text; }
  .rail-event { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
  .rail-event:first-of-type { border-top: none; padding-top: 0; }
  .rail-event .re-date { width: 38px; height: 40px; border-radius: 11px; background: var(--violet-soft); color: var(--violet-mid); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
  .rail-event .re-date b { font-size: 13px; line-height: 1; }
  .rail-event .re-date span { font-size: 8px; font-weight: 700; text-transform: uppercase; margin-top: 2px; }
  .rail-event .re-title { font-size: 11.5px; font-weight: 700; }
  .rail-event .re-sub { font-size: 9.5px; color: var(--muted); margin-top: 1px; }
  .rail-pulse { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .rail-pulse .rp { background: #f8f9fd; border-radius: 12px; padding: 10px; }
  .rail-pulse .rp b { font-size: 16px; font-weight: 800; display: block; }
  .rail-pulse .rp span { font-size: 9px; color: var(--muted); }

  .feed-screen { padding: 26px 28px 60px; max-width: 680px; }
  .greeting { padding: 0 0 14px; }
  .greeting .who { font-size: 32px; }
  .greeting .collage { display: block; width: 150px; right: 0; top: 6px; opacity: .95; }
  .greeting .blob { width: 230px; right: -30px; top: -60px; opacity: .45; }
  .stat-pods { padding: 14px 0 4px; gap: 10px; }
  .stat-pod { min-height: 116px; padding: 12px 12px 11px; }
  .stat-pod .pod-title { font-size: 11.5px; }
  .stat-pod .pod-sub { font-size: 10px; }
  .spotlight { margin: 16px 0; min-height: 180px; }
  .spotlight .inner { padding: 18px 20px; min-height: 180px; }
  .spotlight h3 { font-size: 22px; }
  .spotlight p { font-size: 12px; }
  .section-head { padding: 18px 0 8px; }
  .feed-chips { padding: 2px 0 8px; }
  .post { border-radius: 18px; border: 1px solid rgba(255,255,255,.95); box-shadow: var(--shadow-card); padding: 18px 20px 14px; }
  .feed-list { background: transparent; gap: 12px; }
  .post-media img { height: 250px; }

  .util-tiles { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .util-tile { min-height: 124px; padding: 13px 12px; }
  .util-tile .t-name { font-size: 11.5px; }
  .util-tile .t-sub { font-size: 9px; }
  .pulse-card { padding: 18px; }
  .util-hero h1 { font-size: 24px; }
  .util-wide-row { grid-template-columns: repeat(3, 1fr); }

  .inbox-hero img { width: 230px; right: 10px; }
  .inbox-item { padding: 15px 16px; }
  .profile-identity .avatar { width: 124px; height: 124px; font-size: 38px; }
  .profile-section { padding: 18px; }
  .profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  .profile-grid .profile-section { margin-top: 0; }
  .profile-grid .span-2 { grid-column: span 2; }

  .auth-shell { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; }
  .auth-footer { display: none; }
  .auth-visual { position: relative; overflow: hidden; display: block; }
  .auth-visual .av-img { position: absolute; inset: 0; background: url("../assets/login-collage.png") center/cover no-repeat; }
  .auth-visual .av-scrim { position: absolute; inset: 0; background: linear-gradient(140deg, rgba(13, 16, 43, .82), rgba(35, 28, 92, .55) 55%, rgba(13, 16, 43, .86)); }
  .auth-visual .av-copy { position: absolute; inset: 0; padding: 54px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; }
  .auth-visual .av-brand { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
  .auth-visual .av-brand img { width: 46px; height: 46px; object-fit: contain; }
  .auth-visual h2 { font-size: 40px; font-weight: 800; letter-spacing: -.045em; line-height: 1.1; max-width: 430px; }
  .auth-visual p { font-size: 13px; color: rgba(255,255,255,.72); max-width: 380px; margin-top: 14px; line-height: 1.65; }
  .auth-visual .av-stats { display: flex; gap: 28px; }
  .auth-visual .av-stat b { display: block; font-size: 24px; font-weight: 800; }
  .auth-visual .av-stat span { font-size: 10.5px; color: rgba(255,255,255,.62); }
  .auth-inner { align-self: center; padding: 48px 56px; width: min(460px, 100%); margin: 0 auto; }
  .auth-shell .backdrop-campus, .auth-shell .backdrop-fade { display: none; }
  .auth-logo { display: none; }
  .auth-title, .auth-tag { text-align: left; }
  .auth-card { margin-top: 26px; padding: 24px; }

  .sheet { left: auto; right: max(28px, calc(50vw - 620px)); transform: none; bottom: 28px; width: 460px; border-radius: 24px; max-height: 82vh; animation: modalUp .24s cubic-bezier(.2,.8,.25,1); }
  @keyframes modalUp { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
  .sheet .handle { display: none; }
  .sheet .sheet-body { padding-top: 18px; }
}

@media (min-width: 1440px) {
  .screen { max-width: 880px; }
  .screen.subpage { max-width: 1040px; }
  .feed-screen { max-width: 720px; }
}

/* tablet */
@media (min-width: 720px) and (max-width: 1023px) {
  .screen { max-width: 620px; }
  .feed-screen { max-width: 620px; }
}

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

/* ============================================================
   APP SHELL + SCREEN SUPPLEMENT
   ============================================================ */
.app-main { min-width: 0; }
#screen { position: relative; }
.feed-screen { padding-left: var(--gutter); padding-right: var(--gutter); }
.feed-screen .greeting { padding-left: 0; padding-right: 0; }
.feed-screen .stat-pods { padding-left: 0; padding-right: 0; }
.feed-screen .spotlight { margin-left: 0; margin-right: 0; }
.feed-screen .section-head { padding-left: 0; padding-right: 0; }
.feed-screen .feed-chips { padding-left: 0; padding-right: 0; }
.section-head { padding-left: 0; padding-right: 0; }

.pill.mini { font-size: 9px; padding: 3px 7px; gap: 4px; }
.pill .ic { width: 12px; height: 12px; }
.verified { display: inline-flex; align-items: center; color: #3b82f6; }
.verified .ic { width: 14px; height: 14px; }
.progress { height: 7px; background: #eef1f7; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width .3s ease; }
.side-link .badge { margin-left: auto; background: #ef4444; color: #fff; font-size: 9px; font-weight: 800; border-radius: 999px; padding: 2px 6px; }

.avatar.indigo { background: linear-gradient(135deg, #e0e7ff, #eef2ff); color: #4338ca; }
.avatar.violet { background: linear-gradient(135deg, #ede9fe, #f5f3ff); color: #6d28d9; }
.avatar.emerald { background: linear-gradient(135deg, #d1fae5, #ecfdf5); color: #047857; }
.avatar.cyan { background: linear-gradient(135deg, #cffafe, #ecfeff); color: #0e7490; }
.avatar.pink { background: linear-gradient(135deg, #fce7f3, #fdf2f8); color: #be185d; }
.avatar.gold { background: linear-gradient(135deg, #fef3c7, #fffbeb); color: #b45309; }

.icon-tile.indigo { background: #eef0ff; color: #4f46e5; }
.icon-tile.coral { background: #fff1e9; color: #ea580c; }
.icon-tile.slate { background: #f1f5f9; color: #64748b; }
.icon-tile.gray { background: #f1f5f9; color: #64748b; }

.searchbar .input { width: auto; flex: 1; border: none; background: transparent; box-shadow: none; padding: 0; font-size: 13px; min-width: 0; }
.searchbar .input:focus { box-shadow: none; background: transparent; }
.list-row .select { width: auto; padding: 8px 10px; height: 36px; font-size: 11px; border-radius: 10px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: 0 6px 16px rgba(63,66,148,.05); }
.mini-stat .ms-val { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.mini-stat .ms-lbl { font-size: 10px; color: var(--muted); }
.date-badge { width: 44px; height: 46px; border-radius: 12px; background: var(--violet-soft); color: var(--violet-mid); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.date-badge b { font-size: 14px; line-height: 1; }
.date-badge span { font-size: 8px; font-weight: 700; text-transform: uppercase; margin-top: 2px; }

/* ---------- login / onboarding ---------- */
.auth-shell.onboarding { display: flex; }
.auth-shell.onboarding .auth-inner { max-width: 520px; }
.auth-visual .av-stats { display: flex; gap: 26px; }
.auth-visual .av-stat b { display: block; font-size: 22px; font-weight: 800; }
.auth-visual .av-stat span { font-size: 10px; color: rgba(255,255,255,.6); }

/* ---------- feed extras ---------- */
.feed-screen .stat-pods { padding-top: 10px; }
.feed-screen .spotlight { margin-top: 12px; margin-bottom: 0; }
.feed-screen .feed-list { border-radius: 18px; overflow: hidden; }
.post-body .pill { line-height: 1; }
.post-media .pill { backdrop-filter: blur(6px); }

/* ---------- inbox ---------- */
.inbox-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 20px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(63, 66, 148, 0.08);
  overflow: hidden;
  position: relative;
}
.inbox-hero-content {
  flex: 1;
  min-width: 0;
  z-index: 1;
}
.inbox-hero-content .ih-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: #0f172a;
}
.inbox-hero-content .ih-line {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #0f172a;
  margin-top: 1px;
}
.inbox-hero-content .ih-line em {
  font-style: normal;
  color: var(--violet-mid);
}
.inbox-hero-content .ih-sub {
  font-size: 12px;
  color: var(--muted);
  max-width: 380px;
  margin-top: 5px;
  line-height: 1.5;
}
.inbox-hero-art {
  flex: none;
  width: 160px;
  max-width: 40%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.inbox-hero-art img {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(79, 70, 229, 0.12));
}

@media (max-width: 480px) {
  .inbox-hero-card {
    padding: 16px;
    gap: 10px;
  }
  .inbox-hero-art {
    width: 110px;
  }
  .inbox-hero-content .ih-title {
    font-size: 20px;
  }
  .inbox-hero-content .ih-line {
    font-size: 18px;
  }
}

.inbox-hero {
  position: relative; margin: 0 -20px; padding: 0; overflow: hidden;
  border-radius: 0 0 26px 26px; min-height: 224px; color: #fff; background: #0f172a;
}
.inbox-hero img.bg {
  position: absolute; inset: 0; right: 0; top: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .9; mask-image: none; -webkit-mask-image: none;
}
.inbox-hero .hero-scrim { position: absolute; inset: 0; background: linear-gradient(155deg, rgba(9,12,32,.94), rgba(30,27,75,.7) 58%, rgba(9,12,32,.5)); }
.inbox-hero .inner { position: relative; z-index: 1; padding: 20px var(--gutter) 22px; display: flex; flex-direction: column; gap: 18px; min-height: 224px; justify-content: space-between; }
.inbox-hero .h1 { color: #fff; font-size: 28px; }
.inbox-hero .sub { color: rgba(255,255,255,.66); }
.inbox-hero .circle-btn { color: #fff; }
.inbox-hero .btn.sm { box-shadow: 0 10px 20px rgba(0,0,0,.24); }
.inbox-hero .h1 + .sub { margin-top: 4px; }
.inbox-item { width: 100%; text-align: left; color: inherit; }
.inbox-item .ii-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.inbox-item .ii-top { display: flex; align-items: center; gap: 6px; width: 100%; }
.inbox-item .ii-title { flex: 1; min-width: 0; }
.inbox-item .ii-meta { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.inbox-item .ii-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet-mid); }
.ii-icon.violet { background: #eef0ff; color: #4f46e5; }
.ii-icon.rose { background: #fdeef0; color: #e11d48; }
.ii-icon.sky { background: #e8f6fd; color: #0284c7; }
.ii-icon.emerald { background: #e7f9f1; color: #059669; }
.ii-icon.amber { background: #fef5e7; color: #b45309; }
.ii-icon.pink { background: #fdecf5; color: #db2777; }
.ii-icon.gold { background: #fdf3dd; color: #b45309; }
.ii-icon.gray { background: #f1f5f9; color: #64748b; }

/* ---------- profile ---------- */
.profile-cover { position: relative; height: 136px; border-radius: 22px; overflow: hidden; background: #101828; }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-cover .cover-scrim { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(9,12,32,.55), rgba(30,27,75,.35) 55%, rgba(9,12,32,.6)); }
.profile-cover .cover-actions { position: absolute; right: 12px; top: 12px; display: flex; gap: 8px; z-index: 1; }
.circle-btn.glassy { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.22); color: #fff; backdrop-filter: blur(10px); box-shadow: none; }
.profile-main { position: relative; margin: -44px 12px 0; padding: 0 16px 16px; text-align: center; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.98); border-radius: 22px; box-shadow: var(--shadow-float); backdrop-filter: blur(18px); }
.profile-avatar { position: relative; width: 96px; height: 96px; margin: -48px auto 8px; }
.profile-avatar .avatar { width: 100%; height: 100%; font-size: 28px; border: 4px solid #fff; box-shadow: 0 12px 26px rgba(79,70,229,.2); }
.profile-avatar .cam { position: absolute; right: 0; bottom: 2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; border: 2.5px solid #fff; }
.profile-avatar .cam .ic { width: 13px; height: 13px; }
.profile-handle { font-size: 11.5px; color: var(--violet-mid); font-weight: 700; margin-top: 3px; }
.profile-role { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.profile-stats { display: flex; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.profile-stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 4px; }
.profile-stat + .profile-stat { border-left: 1px solid var(--line); }
.profile-stat .val { font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.profile-stat .lbl { font-size: 9px; color: var(--muted); }
.profile-tabs { display: flex; gap: 4px; padding: 4px; background: #f1f3fa; border-radius: 14px; margin-top: 14px; }
.profile-tabs button { flex: 1; height: 36px; border-radius: 10px; font-size: 11px; font-weight: 700; color: var(--muted); }
.profile-tabs button.active { background: #fff; color: var(--violet-deep); box-shadow: 0 3px 10px rgba(63,66,148,.12); }
.aura-card { margin-top: 4px; padding: 16px; border-radius: 20px; color: #fff; background: radial-gradient(120% 130% at 100% 0%, rgba(124,58,237,.55), transparent 60%), linear-gradient(135deg, #101828, #1e1b4b); box-shadow: 0 18px 36px rgba(15,23,42,.24); }
.aura-card .aura-val { color: #fff; font-size: 26px; }
.aura-card .aura-val span { font-size: 9px; color: #a5b4fc; letter-spacing: .12em; }
.aura-card .aura-bar { background: rgba(255,255,255,.16); }
.aura-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 800; color: #fde68a; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); padding: 5px 9px; border-radius: 999px; }
.aura-badge .ic { width: 11px; height: 11px; }

/* ---------- explore ---------- */
.explore-hero { position: relative; margin: 4px -20px 0; padding: 0; overflow: hidden; color: #fff; background: #0f172a; }
.explore-hero .hero-scrim { position: absolute; inset: 0; background: linear-gradient(150deg, rgba(9,12,32,.94), rgba(49,46,129,.74) 58%, rgba(9,12,32,.62)), url("../assets/spotlight-bg.png") center/cover; }
.explore-hero .inner { position: relative; z-index: 1; padding: 22px var(--gutter) 24px; display: flex; flex-direction: column; gap: 10px; }
.explore-hero h1 { color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -.045em; line-height: 1.12; }
.explore-hero p { font-size: 11.5px; color: rgba(255,255,255,.66); line-height: 1.55; max-width: 300px; }
.explore-hero .searchbar { cursor: pointer; box-shadow: none; }
.explore-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.explore-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; text-align: left; padding: 13px; border-radius: 17px; background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 6px 16px rgba(63,66,148,.05); }
.explore-tile .et-name { font-size: 12px; font-weight: 800; letter-spacing: -.01em; }
.explore-tile .et-sub { font-size: 9.5px; color: var(--muted); }
.people-scroll { display: flex; gap: 9px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.people-scroll::-webkit-scrollbar { display: none; }
.person-card { flex: none; width: 126px; display: flex; flex-direction: column; align-items: center; padding: 14px 10px 12px; background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.95); border-radius: 18px; box-shadow: 0 6px 16px rgba(63,66,148,.05); text-align: center; }
.person-card .pc-name { font-size: 11.5px; font-weight: 800; margin-top: 7px; }
.person-card .pc-sub { font-size: 9px; color: var(--muted); margin-top: 1px; line-height: 1.35; }
.person-card .btn { width: 100%; }

/* ---------- attendance ---------- */
.attendance-hero { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 22px; background: radial-gradient(120% 130% at 100% 0%, rgba(79,70,229,.55), transparent 60%), linear-gradient(135deg, #101828, #1e1b4b); color: #fff; box-shadow: 0 18px 36px rgba(15,23,42,.22); }
.attendance-hero .ring { background: conic-gradient(#a5b4fc calc(var(--p) * 1%), rgba(255,255,255,.16) 0); }
.attendance-hero .ring::before { background: #191f3d; }
.attendance-hero .ring span { color: #fff; font-size: 16px; }
.attendance-hero .ah-copy { flex: 1; min-width: 0; }
.attendance-hero .ah-title { font-size: 32px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.attendance-hero .ah-sub { font-size: 10.5px; color: rgba(255,255,255,.6); margin-top: 4px; }
.attendance-hero .ah-bar { height: 5px; border-radius: 99px; background: rgba(255,255,255,.16); overflow: hidden; margin-top: 10px; }
.attendance-hero .ah-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg,#a5b4fc,#818cf8); }
.alert-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 13px; border-radius: 15px; background: #fef5e7; border: 1px solid #fbe7c6; margin-top: 12px; }
.alert-card .ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; background: #fef5e7; color: #b45309; }
.alert-card.danger { background: #fdeef0; border-color: #fecdd3; }
.alert-card .ac-title { font-size: 11.5px; font-weight: 800; }
.alert-card .ac-text { font-size: 10.5px; color: #78716c; line-height: 1.45; margin-top: 2px; }
.attendance-row { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 15px; background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 6px 16px rgba(63,66,148,.05); }
.attendance-row .ar-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.attendance-row .ar-name { font-size: 12px; font-weight: 700; }
.attendance-row .ar-pct { font-size: 12px; font-weight: 800; }
.attendance-row .ar-meta { font-size: 9.5px; color: var(--muted); margin-top: 2px; }
.attendance-row .ar-bar { height: 5px; border-radius: 999px; background: #eef1f7; overflow: hidden; margin-top: 7px; }
.attendance-row .ar-bar span { display: block; height: 100%; border-radius: 999px; }
.attendance-row .ar-count { width: 42px; text-align: right; flex: none; }
.attendance-row .ar-count b { font-size: 15px; font-weight: 800; }
.attendance-row .ar-count span { font-size: 9.5px; color: var(--muted); }

/* ---------- timetable ---------- */
.timeline { display: flex; flex-direction: column; }
.timeline-item { display: grid; grid-template-columns: 46px 16px minmax(0,1fr); gap: 9px; }
.tl-time { padding-top: 13px; text-align: right; }
.tl-time b { display: block; font-size: 10.5px; font-weight: 800; }
.tl-time span { font-size: 8.5px; color: var(--muted); }
.tl-line { position: relative; display: flex; justify-content: center; }
.tl-line .dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--violet-mid); margin-top: 16px; position: relative; z-index: 1; }
.timeline-item.lab .tl-line .dot { border-color: #7c3aed; }
.timeline-item.break .tl-line .dot, .timeline-item.free .tl-line .dot { border-color: #cbd5e1; }
.tl-line .bar { position: absolute; top: 25px; bottom: -4px; width: 2px; background: #eef1f6; }
.tl-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 11px 13px; margin-bottom: 8px; box-shadow: 0 4px 12px rgba(63,66,148,.04); }
.tl-card.muted { background: #f8f9fd; box-shadow: none; }
.tl-title { font-size: 12.5px; font-weight: 700; margin-top: 5px; }
.tl-meta { font-size: 9.5px; color: var(--muted); margin-top: 2px; }

/* ---------- tasks ---------- */
.task-list { background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.95); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.task-check.checked { background: var(--grad); border-color: transparent; color: #fff; }
.task-check .ic { width: 13px; height: 13px; }
.task-urgent { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 8px; background: #fdeef0; color: #e11d48; font-size: 8.5px; font-weight: 800; letter-spacing: .04em; flex: none; margin-top: 2px; }
.task-urgent .ic { width: 10px; height: 10px; }

/* ---------- files ---------- */
.file-badge { width: 44px; height: 44px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; flex: none; background: #fdeef0; color: #dc2626; }
.file-badge span { font-size: 6.5px; font-weight: 800; letter-spacing: .04em; }
.file-badge .ic { width: 17px; height: 17px; }
.file-badge.doc { background: #e9f2fe; color: #2563eb; }
.file-badge.img { background: #e7f9f1; color: #059669; }
.file-badge.zip { background: #fef5e7; color: #b45309; }

/* ---------- results / cgpa / fees ---------- */
.result-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 20px; border-radius: 22px; color: #fff; background: radial-gradient(120% 130% at 100% 0%, rgba(79,70,229,.6), transparent 62%), linear-gradient(135deg, #101828, #1e1b4b); box-shadow: 0 18px 36px rgba(15,23,42,.22); }
.result-big { font-size: 42px; font-weight: 800; letter-spacing: -.05em; line-height: 1; margin-top: 3px; }
.result-big span { font-size: 14px; color: rgba(255,255,255,.5); font-weight: 600; }
.result-badges { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.grade-badge { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; background: #eef0ff; color: #4f46e5; }
.grade-badge.O { background: #e7f9f1; color: #059669; }
.grade-badge.Aplus { background: #e9f2fe; color: #2563eb; }
.grade-badge.A { background: #eef0ff; color: #4f46e5; }
.grade-badge.Bplus { background: #fef5e7; color: #b45309; }
.grade-badge.B { background: #fef5e7; color: #b45309; }
.grade-badge.C, .grade-badge.F { background: #fdeef0; color: #e11d48; }
.calc-hero { padding: 20px; border-radius: 22px; color: #fff; background: radial-gradient(120% 130% at 100% 0%, rgba(124,58,237,.55), transparent 60%), linear-gradient(135deg, #101828, #1e1b4b); box-shadow: 0 18px 36px rgba(15,23,42,.22); }
.calc-gpa { font-size: 46px; font-weight: 800; letter-spacing: -.05em; line-height: 1.05; margin-top: 3px; }
.fees-hero { padding: 18px; border-radius: 22px; color: #fff; background: radial-gradient(120% 130% at 100% 0%, rgba(16,185,129,.4), transparent 62%), linear-gradient(135deg, #101828, #134e4a); box-shadow: 0 18px 36px rgba(15,23,42,.22); }
.fees-amount { font-size: 36px; font-weight: 800; letter-spacing: -.05em; line-height: 1.05; margin-top: 4px; }
.method-check { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #dbe2ee; display: grid; place-items: center; color: #fff; flex: none; }
.method-check.on { background: var(--violet-mid); border-color: var(--violet-mid); }
.method-check .ic { width: 12px; height: 12px; }

/* ---------- aura / leaderboard ---------- */
.aura-hero { padding: 20px; border-radius: 22px; color: #fff; background: radial-gradient(120% 130% at 0% 100%, rgba(245,158,11,.35), transparent 58%), linear-gradient(135deg, #101828, #2e1065); box-shadow: 0 18px 36px rgba(15,23,42,.24); }
.aura-big { font-size: 34px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.aura-big span { font-size: 9px; color: #fcd34d; letter-spacing: .14em; font-weight: 700; }
.aura-tier { font-size: 10.5px; color: rgba(255,255,255,.6); margin-top: 6px; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; padding: 12px 4px 4px; }
.podium-card { flex: 1; max-width: 112px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 12px; border-radius: 18px; background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 8px 20px rgba(63,66,148,.07); position: relative; }
.podium-card.first { transform: translateY(-10px); background: linear-gradient(165deg,#fffbeb,#fff); border-color: #fde8a8; box-shadow: 0 14px 30px rgba(180,83,9,.14); }
.podium-card .crown { position: absolute; top: -11px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fef3c7; color: #b45309; border: 1px solid #fde8a8; }
.podium-card .crown .ic { width: 13px; height: 13px; }
.podium-card .pd-rank { font-size: 9.5px; font-weight: 800; color: var(--violet-mid); margin-top: 4px; }
.podium-card .pd-name { font-size: 10px; font-weight: 800; text-align: center; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.podium-card .pd-aura { font-size: 9px; color: var(--muted); }
.leader-row { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-bottom: 1px solid var(--line); }
.leader-row:last-child { border-bottom: none; }
.leader-row.me { background: linear-gradient(90deg, #eef0ff, #f8f8ff); }
.leader-row .rank { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--muted); background: #f4f5fb; flex: none; }
.leader-row .rank .ic { width: 13px; height: 13px; }
.leader-row .rank.gold { background: #fef3c7; color: #b45309; }
.leader-row .rank.silver { background: #f1f5f9; color: #64748b; }
.leader-row .rank.bronze { background: #fef3c7; color: #92400e; }
.leader-row .h3 { font-size: 12px; }

/* ---------- opportunities / teammates ---------- */
.opp-hero { padding: 18px; border-radius: 22px; color: #fff; background: radial-gradient(120% 130% at 100% 0%, rgba(16,185,129,.4), transparent 62%), linear-gradient(135deg, #101828, #064e3b); box-shadow: 0 18px 36px rgba(15,23,42,.22); }
.teammates-hero { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px; border-radius: 22px; color: #fff; background: radial-gradient(120% 130% at 100% 0%, rgba(139,92,246,.5), transparent 62%), linear-gradient(135deg, #101828, #1e1b4b); box-shadow: 0 18px 36px rgba(15,23,42,.22); }

/* ---------- faculty ---------- */
.roster-row .seg { margin-left: auto; }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: #f1f3fa; flex: none; }
.seg button { width: 30px; height: 26px; border-radius: 7px; font-size: 10px; font-weight: 800; color: var(--muted); }
.seg button.on { background: #d1fae5; color: #047857; }
.seg button.on.absent { background: #ffe4e6; color: #be123c; }
.marks-input { width: 62px; height: 34px; padding: 0 6px; text-align: center; font-size: 12px; font-weight: 700; border-radius: 9px; border: 1px solid var(--line); background: #f8f9fd; flex: none; }
.time-badge { width: 56px; flex: none; display: flex; flex-direction: column; gap: 1px; font-size: 10.5px; font-weight: 700; }
.time-badge b { font-size: 8.5px; font-weight: 600; color: var(--muted); }

@media (min-width: 720px) {
  .explore-grid { grid-template-columns: repeat(3, 1fr); }
  .screen { padding-top: 20px; }
}
@media (min-width: 1024px) {
  .section-head { padding-left: 0; padding-right: 0; }
  .feed-screen .section-head { padding-left: 0; padding-right: 0; }
  .feed-screen .greeting { padding-left: 0; padding-right: 0; }
  .feed-screen .stat-pods { padding-left: 0; padding-right: 0; }
  .feed-screen .spotlight { margin-left: 0; margin-right: 0; }
  .inbox-hero { margin-left: -28px; margin-right: -28px; }
  .inbox-hero .inner { padding-left: 28px; padding-right: 28px; }
  .inbox-hero img.bg { width: 100%; height: 100%; right: 0; top: 0; opacity: .9; mask-image: none; -webkit-mask-image: none; }
  .explore-hero { margin-left: -28px; margin-right: -28px; border-radius: 0 0 28px 28px; }
  .explore-hero .inner { padding-left: 28px; padding-right: 28px; }
  .profile-cover { height: 176px; border-radius: 24px; }
  .profile-main { margin: -52px 24px 0; }
  .profile-tabs { max-width: 520px; margin-left: auto; margin-right: auto; }
  .attendance-hero { padding: 24px; }
  .explore-grid { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { gap: 10px; }
}
@media (max-width: 430px) {
  .feed-screen .stat-pods { gap: 6px; }
  .stat-pod { padding: 8px; min-height: 96px; }
  .stat-pod .pod-ic { width: 30px; height: 30px; }
  .stat-pod .pod-title { font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stat-pod .pod-sub { font-size: 8.5px; padding-right: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stat-pod .pod-arrow { width: 16px; height: 16px; right: 5px; bottom: 5px; }
  .util-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
