:root {
  --primary: #4f46e5;
  --primary-strong: #3730a3;
  --primary-soft: #eef2ff;
  --cyan: #06b6d4;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --orange: #f59e0b;
  --emerald: #10b981;
  --red: #ef4444;
  --bg: #f4f7fc;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --text: #182033;
  --heading: #111827;
  --muted: #667085;
  --border: #e4e9f2;
  --success: #087f5b;
  --warning: #a65f00;
  --danger: #c92a2a;
  --info: #075985;
  --shadow-sm: 0 4px 14px rgba(44, 62, 101, .055);
  --shadow: 0 12px 34px rgba(44, 62, 101, .09);
  --shadow-hover: 0 18px 44px rgba(44, 62, 101, .14);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 4%, rgba(99,102,241,.10), transparent 24rem),
    radial-gradient(circle at 96% 18%, rgba(6,182,212,.09), transparent 23rem),
    var(--bg);
}
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .14;
  pointer-events: none;
}
body::before { top: 20%; left: -150px; background: var(--violet); }
body::after { right: -150px; bottom: 2%; background: var(--cyan); }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.container { width: min(1220px, calc(100% - 36px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid rgba(226,232,240,.9);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 1px 0 rgba(255,255,255,.7);
}
.topbar-inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--heading);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -.35px;
}
.brand:hover { color: var(--heading); }
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(79,70,229,.25);
  font-size: 15px;
  font-weight: 900;
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: -7px;
  right: -6px;
  background: rgba(255,255,255,.32);
  border-radius: 50%;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 9px;
  color: #475467;
  font-size: 13px;
  font-weight: 700;
  transition: .18s ease;
}
.nav a:hover,
.nav a.active { color: var(--primary); background: var(--primary-soft); }
.nav .nav-danger { color: #b42318; }
.nav .nav-danger:hover { background: #fff1f2; color: #b42318; }
.nav-separator { width: 1px; height: 25px; margin: 0 6px; background: var(--border); }
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 3px;
  padding: 4px 8px 4px 4px !important;
  border: 1px solid var(--border);
  background: #fff !important;
  box-shadow: var(--shadow-sm);
}
.user-chip:hover { border-color: #c7d2fe; }
.avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  font-size: 11px;
  font-weight: 900;
}
.user-chip-copy { display: grid; line-height: 1.08; }
.user-chip-copy strong { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--heading); }
.user-chip-copy small { font-size: 10px; color: var(--muted); text-transform: capitalize; }
.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--heading);
  font-size: 19px;
  cursor: pointer;
}

.main { min-height: calc(100vh - 116px); padding: 24px 0 38px; }
.footer { border-top: 1px solid var(--border); background: rgba(255,255,255,.78); color: var(--muted); backdrop-filter: blur(12px); }
.footer-inner { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; }
.footer-stack { display: inline-flex; align-items: center; gap: 7px; }
.footer-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px rgba(16,185,129,.12); }

.hero {
  padding: 42px 0 30px;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 44px;
  align-items: center;
}
.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 13px;
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hero-kicker::before,
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: 0 0 0 5px rgba(99,102,241,.10);
}
.hero h1 {
  max-width: 720px;
  margin: 0 0 14px;
  color: var(--heading);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.06;
  letter-spacing: -2.2px;
}
.gradient-text {
  color: transparent;
  background: linear-gradient(100deg, var(--primary), var(--violet) 48%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
}
.hero p { max-width: 680px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  color: #475467;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.hero-trust span::before { content: "✓"; color: var(--emerald); font-weight: 900; }
.hero-panel {
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(145deg, #312e81 0%, #4f46e5 48%, #0891b2 100%);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 26px 65px rgba(49,46,129,.25);
}
.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
}
.hero-panel::before { width: 180px; height: 180px; right: -70px; top: -75px; }
.hero-panel::after { width: 110px; height: 110px; left: -45px; bottom: -48px; }
.panel-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.panel-top h3 { margin: 0; font-size: 15px; }
.panel-live { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 10px; font-weight: 800; }
.panel-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #6ee7b7; box-shadow: 0 0 0 4px rgba(110,231,183,.12); }
.mini-dashboard { position: relative; z-index: 1; display: grid; gap: 10px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.mini-stat { padding: 11px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.14); border-radius: 13px; backdrop-filter: blur(8px); }
.mini-stat small { display: block; margin-bottom: 4px; color: rgba(255,255,255,.72); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.mini-stat strong { font-size: 20px; letter-spacing: -.5px; }
.mini-task { display: grid; gap: 9px; padding: 13px; background: rgba(255,255,255,.95); color: var(--text); border-radius: 15px; box-shadow: 0 10px 26px rgba(18,25,57,.15); }
.mini-task-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mini-task-head strong { font-size: 12px; }
.mini-task-head span { color: var(--muted); font-size: 10px; }
.mini-progress { height: 7px; overflow: hidden; background: #e8ecf5; border-radius: 999px; }
.mini-progress span { display: block; width: 72%; height: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan)); border-radius: inherit; }
.mini-avatars { display: flex; align-items: center; }
.mini-avatars i { display: grid; place-items: center; width: 23px; height: 23px; margin-left: -5px; border: 2px solid #fff; border-radius: 50%; background: #c7d2fe; color: #3730a3; font-size: 8px; font-style: normal; font-weight: 900; }
.mini-avatars i:first-child { margin-left: 0; background: #bae6fd; color: #0369a1; }
.mini-avatars i:nth-child(3) { background: #fbcfe8; color: #9d174d; }
.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; padding: 8px 0 34px; }
.feature-card { position: relative; overflow: hidden; padding: 17px; background: rgba(255,255,255,.82); border: 1px solid rgba(228,233,242,.9); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.feature-card::after { content: ""; position: absolute; width: 80px; height: 80px; right: -35px; top: -35px; border-radius: 50%; background: var(--feature, #c7d2fe); opacity: .18; }
.feature-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 11px; border-radius: 10px; color: var(--feature-text, #4338ca); background: var(--feature-bg, #eef2ff); font-size: 16px; font-weight: 900; }
.feature-card h3 { margin: 0 0 5px; font-size: 14px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.feature-card:nth-child(2) { --feature: #67e8f9; --feature-bg: #ecfeff; --feature-text: #0e7490; }
.feature-card:nth-child(3) { --feature: #f9a8d4; --feature-bg: #fdf2f8; --feature-text: #be185d; }

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.page-header h1 { margin: 0 0 4px; color: var(--heading); font-size: 24px; line-height: 1.2; letter-spacing: -.7px; }
.page-header h2 { margin: 0 0 3px; color: var(--heading); font-size: 17px; letter-spacing: -.25px; }
.page-header p { margin: 0; color: var(--muted); font-size: 13px; }
.welcome-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 20px 22px;
  color: #fff;
  background: linear-gradient(115deg, #3730a3 0%, #4f46e5 43%, #0ea5e9 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 45px rgba(67,56,202,.18);
}
.welcome-banner::before { content: ""; position: absolute; width: 220px; height: 220px; top: -140px; right: 7%; border: 42px solid rgba(255,255,255,.08); border-radius: 50%; }
.welcome-banner::after { content: ""; position: absolute; width: 90px; height: 90px; right: -22px; bottom: -38px; background: rgba(255,255,255,.10); border-radius: 50%; }
.welcome-copy,
.welcome-banner .actions { position: relative; z-index: 1; }
.welcome-banner .eyebrow { margin-bottom: 8px; color: rgba(255,255,255,.76); }
.welcome-banner .eyebrow::before { background: #67e8f9; box-shadow: 0 0 0 5px rgba(103,232,249,.12); }
.welcome-banner h1 { margin: 0 0 4px; font-size: 24px; line-height: 1.2; letter-spacing: -.6px; }
.welcome-banner p { margin: 0; color: rgba(255,255,255,.76); font-size: 12.5px; }
.welcome-banner .btn-primary { color: var(--primary-strong); background: #fff; box-shadow: 0 8px 20px rgba(18,25,57,.15); }
.welcome-banner .btn-primary:hover { background: #f8fafc; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card {
  position: relative;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}
.card h1, .card h2, .card h3 { color: var(--heading); }
.card h2 { font-size: 17px; margin: 0 0 9px; letter-spacing: -.3px; }
.card h3 { font-size: 14px; margin: 0 0 7px; }
.card p { margin-top: 0; }
.grid > .card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.grid > .card:not(.stat-card):hover { transform: translateY(-2px); border-color: #cfd7e6; box-shadow: var(--shadow); }
.card-muted { background: linear-gradient(145deg, #f8faff, #f3f7ff); box-shadow: none; }
.stat-card {
  min-height: 116px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  gap: 4px 12px;
  overflow: hidden;
  padding: 15px 16px;
  border-top: 3px solid var(--accent, var(--primary));
}
.stat-card::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  right: -36px;
  bottom: -40px;
  border-radius: 50%;
  background: var(--accent, var(--primary));
  opacity: .08;
}
.stat-card:nth-child(1) { --accent: #4f46e5; --accent-soft: #eef2ff; }
.stat-card:nth-child(2) { --accent: #06b6d4; --accent-soft: #ecfeff; }
.stat-card:nth-child(3) { --accent: #8b5cf6; --accent-soft: #f5f3ff; }
.stat-card:nth-child(4) { --accent: #f59e0b; --accent-soft: #fffbeb; }
.stat-label { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .055em; }
.stat-value { align-self: center; color: var(--heading); font-size: 27px; line-height: 1; font-weight: 900; letter-spacing: -1px; }
.stat-foot { grid-column: 1 / -1; color: var(--muted); font-size: 10.5px; }
.stat-icon {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--accent, var(--primary));
  background: var(--accent-soft, var(--primary-soft));
  border-radius: 11px;
}
.stat-icon svg { width: 18px; height: 18px; stroke-width: 2; }
.stat-card .code-box { align-self: center; width: fit-content; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 8px 13px;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), #6366f1); box-shadow: 0 7px 16px rgba(79,70,229,.18); }
.btn-primary:hover { color: #fff; background: linear-gradient(135deg, var(--primary-strong), var(--primary)); box-shadow: 0 9px 20px rgba(79,70,229,.23); }
.btn-secondary { color: #344054; background: #fff; border-color: #d9e0eb; box-shadow: 0 2px 5px rgba(44,62,101,.035); }
.btn-secondary:hover { color: var(--primary); border-color: #c7d2fe; background: #fafaff; }
.btn-danger { color: var(--danger); background: #fff5f5; border-color: #ffc9c9; }
.btn-warning { color: var(--warning); background: #fff9db; border-color: #ffe066; }
.btn-success { color: var(--success); background: #ecfdf5; border-color: #a7f3d0; }
.btn-sm { min-height: 30px; padding: 6px 10px; font-size: 11.5px; border-radius: 8px; }

.form-card { max-width: 720px; margin: 0 auto; }
.form-group { margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
label { display: block; margin-bottom: 5px; color: #344054; font-weight: 750; font-size: 12px; }
input, textarea, select {
  width: 100%;
  border: 1px solid #d6deea;
  border-radius: 9px;
  padding: 9px 10px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
input:hover, textarea:hover, select:hover { border-color: #bcc8da; }
input:focus, textarea:focus, select:focus { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99,102,241,.12); background: #fff; }
input[type="file"] { padding: 7px; background: #fbfcff; }
input[type="file"]::file-selector-button { margin-right: 9px; border: 0; border-radius: 7px; padding: 7px 10px; color: var(--primary-strong); background: var(--primary-soft); font-weight: 800; cursor: pointer; }
textarea { min-height: 96px; resize: vertical; }
.help { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.checkbox { display: flex; align-items: center; gap: 8px; }
.checkbox input { width: auto; accent-color: var(--primary); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 11px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { padding: 10px 11px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 12px; }
th { color: #667085; background: #f8faff; font-size: 10px; text-transform: uppercase; letter-spacing: .055em; font-weight: 850; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: #fafbff; }
tr:last-child td { border-bottom: 0; }
td strong { color: var(--heading); }

.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 7px; font-size: 10px; line-height: 1; font-weight: 850; white-space: nowrap; }
.badge-success { color: #067647; background: #dcfae6; }
.badge-warning { color: #93370d; background: #fef0c7; }
.badge-danger { color: #b42318; background: #fee4e2; }
.badge-info { color: #175cd3; background: #eaf2ff; }
.badge-muted { color: #475467; background: #eef2f6; }

.alert { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 12px; border-radius: 10px; margin-bottom: 13px; border: 1px solid; font-size: 12px; box-shadow: var(--shadow-sm); }
.alert button { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 7px; background: rgba(255,255,255,.42); color: currentColor; font-size: 16px; cursor: pointer; }
.alert-success { background: #ecfdf3; color: #067647; border-color: #abefc6; }
.alert-danger { background: #fff1f3; color: #c01048; border-color: #fecdd6; }
.alert-warning { background: #fffaeb; color: #b54708; border-color: #fedf89; }
.alert-info { background: #eff8ff; color: #175cd3; border-color: #b2ddff; }

.empty { padding: 32px 18px; text-align: center; color: var(--muted); }
.empty::before { content: ""; display: block; width: 46px; height: 46px; margin: 0 auto 11px; border-radius: 14px; background: linear-gradient(135deg, #eef2ff, #ecfeff); box-shadow: inset 0 0 0 1px #dbe4f0; }
.empty h3 { color: var(--heading); margin: 0 0 4px; font-size: 14px; }
.empty p { margin: 0 0 13px; font-size: 12px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 13px; color: var(--muted); font-size: 11px; }
.meta > span:not(.badge) { display: inline-flex; align-items: center; gap: 5px; }
.meta > span:not(.badge)::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #a5b4fc; }
.meta > span:first-child::before { display: none; }
.code-box { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #c7d2fe; border-radius: 9px; background: linear-gradient(135deg, #eef2ff, #ecfeff); color: #3730a3; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 900; letter-spacing: 1.2px; }
.list { display: grid; gap: 8px; }
.list-item { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 11px; background: #fff; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.list-item::before { content: ""; width: 3px; align-self: stretch; flex: 0 0 3px; border-radius: 999px; background: linear-gradient(180deg, var(--primary), var(--cyan)); }
.list-item:hover { transform: translateX(2px); border-color: #cfd8e8; box-shadow: 0 6px 18px rgba(44,62,101,.06); }
.list-item > div:first-of-type { flex: 1; min-width: 0; }
.list-item h3 { margin: 0 0 4px; font-size: 13px; }
.progress { height: 7px; border-radius: 999px; overflow: hidden; background: #e9eef6; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--cyan)); }

.auth-shell { min-height: calc(100vh - 154px); display: grid; place-items: center; padding: 12px 0 26px; }
.auth-card { width: min(420px, 100%); overflow: hidden; padding: 22px; border-top: 3px solid transparent; background: linear-gradient(#fff,#fff) padding-box, linear-gradient(90deg,var(--primary),var(--violet),var(--cyan)) border-box; box-shadow: 0 20px 55px rgba(44,62,101,.12); }
.auth-card::before { content: ""; position: absolute; width: 120px; height: 120px; right: -58px; top: -65px; border-radius: 50%; background: linear-gradient(135deg, rgba(139,92,246,.12), rgba(6,182,212,.12)); }
.auth-card h1 { position: relative; margin: 0 0 4px; font-size: 22px; letter-spacing: -.5px; }
.auth-card .subtitle { position: relative; color: var(--muted); margin: 0 0 17px; font-size: 12px; }

.text-muted { color: var(--muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 12px; }
.inline-form { display: inline; }
.pre-wrap { white-space: pre-wrap; line-height: 1.65; font-size: 12.5px; }

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero { grid-template-columns: 1fr 1fr; gap: 24px; }
  .nav a { padding-inline: 8px; }
  .user-chip-copy { display: none; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 24px, 1220px); }
  .main { padding-top: 17px; }
  .menu-toggle { display: grid; place-items: center; }
  .nav {
    display: none;
    position: absolute;
    top: 54px;
    left: 12px;
    right: 12px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255,255,255,.97);
    border: 1px solid var(--border);
    border-radius: 13px;
    box-shadow: var(--shadow-hover);
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; }
  .nav-separator { width: 100%; height: 1px; margin: 4px 0; }
  .user-chip { margin: 2px 0 0 !important; }
  .user-chip-copy { display: grid; }
  .hero { grid-template-columns: 1fr; padding-top: 26px; }
  .hero h1 { font-size: clamp(32px, 10vw, 44px); }
  .feature-grid { grid-template-columns: 1fr; }
  .welcome-banner { align-items: flex-start; flex-direction: column; padding: 18px; }
  .page-header { flex-direction: column; }
  .grid-3, .grid-2, .form-row { grid-template-columns: 1fr; }
  .actions { width: 100%; }
  .actions .btn { flex: 1; }
  .list-item { align-items: flex-start; }
  .list-item > .btn { flex: 0 0 auto; }
  .footer-inner { min-height: 62px; flex-direction: column; justify-content: center; gap: 3px; padding: 10px 0; }
}

@media (max-width: 460px) {
  body { font-size: 13px; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { min-height: 102px; padding: 12px; }
  .stat-value { font-size: 23px; }
  .stat-icon { width: 32px; height: 32px; }
  .card { padding: 14px; }
  .mini-stats { gap: 6px; }
  .mini-stat { padding: 9px; }
  .mini-stat strong { font-size: 17px; }
  .auth-card { padding: 18px; }
}

/* ===== KelasKita v1.0 feature components ===== */
.eyebrow {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.btn-block { width: 100%; }
.actions-tight { gap: 5px; }
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.compact-toolbar { margin-bottom: 14px; }
.card-accent { position: relative; overflow: hidden; }
.card-accent::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -48px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(79,70,229,.08);
}
.card-accent-cyan::after { background: rgba(6,182,212,.12); }
.compact-list { display: grid; gap: 8px; position: relative; z-index: 1; }
.compact-list > div {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255,255,255,.82);
}
.compact-list strong { color: var(--heading); font-size: 11.5px; }
.compact-list span { color: var(--muted); font-size: 11.5px; }

.quick-grade-table { max-height: 62vh; }
.quick-grade-table thead { position: sticky; top: 0; z-index: 3; }
.quick-grade-table .grade-input { min-width: 84px; padding: 7px 8px; }
.quick-grade-table .grade-feedback { min-width: 220px; min-height: 58px; padding: 7px 8px; }
.quick-grade-table select { min-width: 118px; padding: 7px 8px; }
.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 12px -2px -2px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 -8px 24px rgba(44,62,101,.07);
  backdrop-filter: blur(10px);
}

.calendar-nav { display: flex; align-items: center; gap: 10px; }
.calendar-nav strong { min-width: 130px; text-align: center; color: var(--heading); font-size: 13px; }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; align-items: start; }
.calendar-card { padding: 12px; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); }
.calendar-weekdays span {
  padding: 8px 5px;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.calendar-grid { border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.calendar-day {
  min-height: 116px;
  padding: 7px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.calendar-day.is-muted { background: #fafbfe; }
.calendar-day.is-muted .calendar-date { opacity: .42; }
.calendar-day.is-today { background: linear-gradient(145deg, #eef2ff, #fff); box-shadow: inset 0 0 0 1px #a5b4fc; }
.calendar-date { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.calendar-date span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; color: var(--heading); font-size: 11px; font-weight: 850; }
.calendar-day.is-today .calendar-date span { color: #fff; background: var(--primary); }
.calendar-date small { color: var(--primary); font-size: 8.5px; font-weight: 850; }
.calendar-events { display: grid; gap: 4px; }
.calendar-event {
  display: block;
  min-width: 0;
  padding: 5px 6px;
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  color: #3730a3;
  background: #eef2ff;
  text-decoration: none;
}
.calendar-event:hover { text-decoration: none; transform: translateY(-1px); }
.calendar-event strong, .calendar-event span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event strong { font-size: 9.5px; }
.calendar-event span { margin-top: 2px; opacity: .72; font-size: 8.5px; }
.calendar-event.event-soon { border-color: #f59e0b; color: #92400e; background: #fffbeb; }
.calendar-event.event-overdue { border-color: #ef4444; color: #991b1b; background: #fff1f2; }
.calendar-sidebar { position: sticky; top: 72px; }
.timeline-list { display: grid; gap: 8px; }
.timeline-list a {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: inherit;
  text-decoration: none;
  background: #fff;
}
.timeline-list a:hover { border-color: #c7d2fe; background: #fafaff; text-decoration: none; }
.timeline-list time { color: var(--primary); font-size: 9.5px; font-weight: 850; }
.timeline-list strong { color: var(--heading); font-size: 11.5px; }
.timeline-list span { color: var(--muted); font-size: 10px; }

.reminder-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 52%, #eff6ff 100%);
}
.reminder-hero h2 { margin: 8px 0 4px; }
.reminder-hero p { margin: 0; max-width: 680px; }
.message-preview {
  max-width: 460px;
  color: #475467;
  font-size: 10.5px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.grade-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(280px,.55fr); gap: 14px; align-items: start; }
.grade-document-card { min-width: 0; }
.grade-form-card { position: sticky; top: 72px; }
.file-preview {
  display: block;
  width: 100%;
  min-height: 620px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
}
.preview-empty { min-height: 320px; display: grid; align-content: center; }
.feedback-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.feedback-chips button {
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  padding: 5px 8px;
  color: #475467;
  background: #f8faff;
  font-size: 9.5px;
  font-weight: 750;
  cursor: pointer;
}
.feedback-chips button:hover { color: var(--primary); border-color: #c7d2fe; }

.deadline-pill {
  display: inline-flex;
  padding: 6px 8px;
  border-radius: 999px;
  color: #175cd3;
  background: #eff8ff;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}
.deadline-pill.is-overdue { color: #b42318; background: #fee4e2; }
.submission-success-panel {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #abefc6;
  border-radius: 10px;
  background: #ecfdf3;
}
.submission-success-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: #12b76a; font-weight: 900; }
.submission-success-panel strong, .submission-success-panel span { display: block; }
.submission-success-panel strong { color: #05603a; font-size: 12px; }
.submission-success-panel div > span { color: #398565; font-size: 10px; }
.file-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfcff;
}
.file-card strong, .file-card span { display: block; }
.file-card strong { color: var(--heading); font-size: 11.5px; }
.file-card span { color: var(--muted); font-size: 10px; }
.submission-checklist {
  display: grid;
  gap: 7px;
  margin: 10px 0 14px;
  padding: 10px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #f8faff;
}
.submission-checklist label { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: #475467; font-size: 10.5px; font-weight: 650; }
.submission-checklist input { width: auto; margin-top: 1px; accent-color: var(--primary); }

.receipt-actions { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.receipt-sheet {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 34px;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(44,62,101,.10);
}
.receipt-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.receipt-brand { display: flex; align-items: center; gap: 10px; }
.receipt-brand > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: linear-gradient(135deg,var(--primary),var(--cyan)); font-size: 20px; font-weight: 950; }
.receipt-brand strong, .receipt-brand small { display: block; }
.receipt-brand strong { color: var(--heading); font-size: 16px; }
.receipt-brand small { color: var(--muted); font-size: 10px; }
.receipt-title { padding: 28px 0 22px; text-align: center; }
.receipt-title > span { color: var(--primary); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .14em; }
.receipt-title h1 { margin: 7px 0; font-size: 25px; }
.receipt-title p { margin: 0; color: var(--muted); }
.receipt-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.receipt-grid > div { padding: 14px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.receipt-grid span, .receipt-grid strong { display: block; }
.receipt-grid span { margin-bottom: 4px; color: var(--muted); font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; }
.receipt-grid strong { color: var(--heading); font-size: 12px; }
.receipt-note { margin-top: 16px; padding: 13px; border-radius: 10px; background: #f8faff; }
.receipt-note span { color: var(--muted); font-size: 9.5px; font-weight: 850; text-transform: uppercase; }
.receipt-note p { margin: 5px 0 0; }
.receipt-footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-top: 28px; padding-top: 18px; border-top: 1px dashed #cbd5e1; }
.receipt-footer p { max-width: 480px; margin: 0; color: var(--muted); font-size: 10px; }
.receipt-seal { display: flex; align-items: center; gap: 8px; }
.receipt-seal > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: #12b76a; font-weight: 900; }
.receipt-seal strong, .receipt-seal small { display: block; }
.receipt-seal strong { color: #067647; font-size: 10px; }
.receipt-seal small { color: var(--muted); font-size: 8.5px; }

@media (max-width: 1040px) {
  .calendar-layout, .grade-layout { grid-template-columns: 1fr; }
  .calendar-sidebar, .grade-form-card { position: static; }
  .file-preview { min-height: 520px; }
}

@media (max-width: 760px) {
  .toolbar, .reminder-hero, .file-card, .receipt-footer { align-items: flex-start; flex-direction: column; }
  .calendar-nav { width: 100%; justify-content: space-between; }
  .calendar-card { overflow-x: auto; }
  .calendar-weekdays, .calendar-grid { min-width: 720px; }
  .sticky-actions { align-items: stretch; flex-direction: column; }
  .sticky-actions .btn { width: 100%; }
  .receipt-sheet { padding: 20px; }
  .receipt-grid { grid-template-columns: 1fr; }
  .submission-success-panel { grid-template-columns: 34px 1fr; }
  .submission-success-panel > .badge { grid-column: 1 / -1; width: fit-content; }
}

@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff !important; }
  .topbar, .footer, .no-print, .receipt-actions { display: none !important; }
  .main { padding: 0 !important; }
  .container { width: 100% !important; max-width: none !important; }
  .receipt-sheet { width: 100%; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
}

/* =========================================================
   KELASKITA V1 — AUTH PORTALS & PROFILE PHOTO
   ========================================================= */

.avatar.has-photo { overflow: hidden; padding: 0; background: #eef2ff; }
.avatar.has-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.lecturer-private-note { margin: 12px 0 0; color: #667085; font-size: 11px; font-weight: 650; }

.authx-page { position: relative; padding: 14px 0 28px; }
.authx-shell {
  width: min(1080px, 100%);
  min-height: 610px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0,.94fr) minmax(390px,.76fr);
  overflow: hidden;
  border: 1px solid #dfe6f1;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(44,62,101,.14);
}
.authx-shell-register { width: min(1160px,100%); min-height: 710px; grid-template-columns: minmax(320px,.68fr) minmax(560px,1.12fr); }
.authx-visual { position: relative; overflow: hidden; padding: 28px; display: flex; flex-direction: column; color: #fff; }
.authx-visual-student { background: linear-gradient(145deg,#312e81 0%,#4f46e5 42%,#7c3aed 68%,#0891b2 100%); }
.authx-visual-lecturer { background: linear-gradient(145deg,#111827 0%,#312e81 38%,#6d28d9 65%,#0e7490 100%); }
.authx-visual-register { padding: 27px; }
.authx-visual::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.18) 1px,transparent 1px);
  background-size: 36px 36px; mask-image: linear-gradient(#000,transparent 92%);
}
.authx-shape { position: absolute; border-radius: 50%; pointer-events: none; }
.authx-shape-one { width: 240px; height: 240px; right: -75px; top: -92px; border: 1px solid rgba(255,255,255,.16); background: radial-gradient(circle at 35% 35%,rgba(255,255,255,.34),rgba(255,255,255,.04) 62%); }
.authx-shape-two { width: 150px; height: 150px; left: -55px; bottom: 55px; background: rgba(34,211,238,.20); filter: blur(2px); }
.authx-brand-light,.authx-visual-copy,.authx-preview-card,.authx-mini-stats,.authx-step-list,.authx-account-card { position: relative; z-index: 2; }
.authx-brand-light { display: flex; align-items: center; gap: 10px; }
.authx-brand-light > span,.authx-mobile-brand > span { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; color: #fff; background: rgba(255,255,255,.16); box-shadow: 0 12px 26px rgba(15,23,42,.18); font-size: 17px; font-weight: 950; }
.authx-brand-light strong,.authx-brand-light small { display: block; }
.authx-brand-light strong { font-size: 15px; }
.authx-brand-light small { color: rgba(255,255,255,.62); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; }
.authx-visual-copy { max-width: 510px; margin-top: 74px; }
.authx-register-copy { margin-top: 47px; }
.authx-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 13px; color: #a5f3fc; font-size: 9.5px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.authx-kicker::before { content: ""; width: 20px; height: 2px; border-radius: 9px; background: linear-gradient(90deg,#67e8f9,#f0abfc); }
.authx-visual-copy h1 { max-width: 490px; margin: 0; color: #fff; font-size: clamp(30px,3.5vw,43px); line-height: 1.07; letter-spacing: -1.8px; }
.authx-register-copy h1 { font-size: clamp(28px,3vw,38px); }
.authx-visual-copy p { max-width: 470px; margin: 15px 0 0; color: rgba(255,255,255,.70); font-size: 12.5px; line-height: 1.7; }
.authx-preview-card { max-width: 430px; margin-top: 28px; padding: 12px; display: flex; align-items: center; gap: 11px; border: 1px solid rgba(255,255,255,.19); border-radius: 15px; background: rgba(255,255,255,.12); box-shadow: 0 18px 45px rgba(15,23,42,.18); backdrop-filter: blur(18px); }
.authx-preview-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; background: linear-gradient(135deg,#c084fc,#22d3ee); font-weight: 900; }
.authx-preview-lecturer .authx-preview-icon { background: linear-gradient(135deg,#f59e0b,#ec4899); }
.authx-preview-card > div:nth-child(2) { min-width: 0; flex: 1; }
.authx-preview-card small,.authx-preview-card strong,.authx-preview-card span { display: block; }
.authx-preview-card small { color: rgba(255,255,255,.55); font-size: 8px; }
.authx-preview-card strong { overflow: hidden; margin-top: 1px; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.authx-preview-card span { margin-top: 2px; color: #a5f3fc; font-size: 8.5px; }
.authx-preview-card b { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; background: rgba(15,23,42,.30); font-size: 10px; }
.authx-mini-stats { margin-top: auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.authx-mini-stats div { padding: 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; background: rgba(255,255,255,.07); }
.authx-mini-stats strong,.authx-mini-stats span { display: block; }
.authx-mini-stats strong { font-size: 13px; }
.authx-mini-stats span { margin-top: 2px; color: rgba(255,255,255,.55); font-size: 8px; }
.authx-step-list { display: grid; gap: 9px; margin-top: 24px; }
.authx-step-list > div { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; background: rgba(255,255,255,.07); }
.authx-step-list b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg,rgba(244,114,182,.75),rgba(34,211,238,.75)); font-size: 8px; }
.authx-step-list strong,.authx-step-list small { display: block; }
.authx-step-list strong { font-size: 10px; }
.authx-step-list small { margin-top: 1px; color: rgba(255,255,255,.55); font-size: 8px; }
.authx-account-card { margin-top: auto; padding: 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; background: rgba(255,255,255,.09); backdrop-filter: blur(15px); }
.authx-account-card > div { display: flex; align-items: center; gap: 9px; }
.authx-account-card > div > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg,#f472b6,#22d3ee); font-weight: 900; }
.authx-account-card p { margin: 0; }
.authx-account-card strong,.authx-account-card small { display: block; }
.authx-account-card strong { font-size: 10px; }
.authx-account-card small { color: rgba(255,255,255,.55); font-size: 8px; }
.authx-account-card > i { display: block; width: 76%; height: 5px; margin-top: 11px; border-radius: 99px; background: linear-gradient(90deg,#f9a8d4,#67e8f9); box-shadow: 0 0 16px rgba(103,232,249,.45); }

.authx-form-panel { min-width: 0; display: grid; place-items: center; padding: 34px; background: radial-gradient(circle at 100% 0%,rgba(224,231,255,.58),transparent 220px),#fff; }
.authx-register-panel { padding: 28px 34px; }
.authx-form-wrap { width: min(380px,100%); }
.authx-register-wrap { width: min(610px,100%); }
.authx-mobile-brand { display: none; align-items: center; gap: 8px; margin-bottom: 20px; }
.authx-mobile-brand > span { width: 32px; height: 32px; border: 0; background: linear-gradient(135deg,#4f46e5,#8b5cf6,#06b6d4); font-size: 14px; }
.authx-mobile-lecturer > span { background: linear-gradient(135deg,#111827,#6d28d9,#0e7490); }
.authx-mobile-brand strong { color: #111827; font-size: 15px; }
.authx-heading { margin-bottom: 24px; }
.authx-register-heading { margin-bottom: 19px; }
.authx-heading > span { display: block; margin-bottom: 3px; color: #4f46e5; font-size: 9.5px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.authx-heading h2 { margin: 0; color: #111827; font-size: 25px; line-height: 1.18; letter-spacing: -.75px; }
.authx-heading p { margin: 5px 0 0; color: #667085; font-size: 11px; }
.authx-role-notice { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; padding: 10px 11px; border: 1px solid #dbeafe; border-radius: 11px; background: linear-gradient(135deg,#eff6ff,#eef2ff); }
.authx-role-notice > span { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; border-radius: 9px; color: #fff; background: linear-gradient(135deg,#4f46e5,#06b6d4); font-size: 10px; font-weight: 900; }
.authx-role-notice strong,.authx-role-notice small { display: block; }
.authx-role-notice strong { color: #1e3a8a; font-size: 10px; }
.authx-role-notice small { margin-top: 1px; color: #5270a7; font-size: 8.5px; }
.lecturer-notice { border-color: #e9d5ff; background: linear-gradient(135deg,#faf5ff,#eef2ff); }
.lecturer-notice > span { background: linear-gradient(135deg,#111827,#7c3aed,#0e7490); }
.lecturer-notice strong { color: #581c87; }
.lecturer-notice small { color: #7e5b9a; }
.authx-field { min-width: 0; margin-bottom: 15px; }
.authx-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.authx-form-grid .authx-field { margin: 0; }
.authx-wide { grid-column: 1 / -1; }
.authx-field label { display: block; margin: 0 0 6px; color: #344054; font-size: 10.5px; font-weight: 800; }
.authx-field label small { color: #98a2b3; font-weight: 600; }
.authx-label-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.authx-label-row small { color: #98a2b3; font-size: 8px; }
.authx-input { position: relative; }
.authx-input > i { position: absolute; z-index: 1; left: 12px; top: 50%; width: 18px; color: #98a2b3; font-size: 9px; font-style: normal; font-weight: 850; text-align: center; transform: translateY(-50%); pointer-events: none; }
.authx-input input { width: 100%; min-height: 44px; padding: 10px 47px 10px 40px; border: 1px solid #dbe3ef; border-radius: 11px; outline: 0; color: #111827; background: #fbfcff; font-size: 11.5px; transition: .18s; }
.authx-input input::placeholder { color: #a6afbd; }
.authx-input input:hover { border-color: #c7d2e3; background: #fff; }
.authx-input input:focus { border-color: #818cf8; background: #fff; box-shadow: 0 0 0 4px rgba(99,102,241,.10),0 8px 22px rgba(79,70,229,.06); }
.authx-input:focus-within > i { color: #4f46e5; }
.authx-input-key input:focus { border-color: #a855f7; box-shadow: 0 0 0 4px rgba(168,85,247,.10); }
.authx-toggle { position: absolute; z-index: 2; right: 7px; top: 50%; padding: 5px 7px; border: 0; border-radius: 7px; color: #667085; background: transparent; font-size: 8px; font-weight: 800; transform: translateY(-50%); cursor: pointer; }
.authx-toggle:hover { color: #4f46e5; background: #eef2ff; }
.authx-submit { position: relative; width: 100%; min-height: 45px; margin-top: 3px; padding: 10px 16px; display: flex; align-items: center; justify-content: center; gap: 9px; overflow: hidden; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(105deg,#4f46e5,#7c3aed 55%,#0891b2 120%); box-shadow: 0 12px 25px rgba(79,70,229,.23); font-size: 11.5px; font-weight: 850; cursor: pointer; transition: .18s; }
.authx-submit-lecturer { background: linear-gradient(105deg,#111827,#6d28d9 55%,#0e7490 120%); box-shadow: 0 12px 25px rgba(76,29,149,.24); }
.authx-submit:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(79,70,229,.29); }
.authx-submit:disabled { opacity: .75; cursor: wait; transform: none; }
.authx-submit b { font-size: 16px; }
.authx-separator { position: relative; margin: 21px 0 16px; text-align: center; }
.authx-separator::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #edf0f5; }
.authx-separator span { position: relative; padding: 0 10px; color: #98a2b3; background: #fff; font-size: 8.5px; text-transform: uppercase; }
.authx-switch { margin: 0; text-align: center; color: #667085; font-size: 10.5px; }
.authx-switch a { color: #4f46e5; font-weight: 850; }
.authx-register-switch { margin-top: 17px; }
.authx-back-link { margin: 10px 0 0; text-align: center; font-size: 9px; }
.authx-back-link a { color: #98a2b3; }
.authx-secure-note { margin-top: 22px; padding: 9px 10px; display: flex; align-items: center; gap: 8px; border: 1px solid #d1fae5; border-radius: 10px; color: #047857; background: linear-gradient(135deg,#ecfdf5,#f0fdfa); font-size: 8.5px; }
.authx-secure-note > span { display: grid; place-items: center; width: 18px; height: 18px; flex: 0 0 auto; border-radius: 50%; color: #fff; background: #10b981; font-size: 9px; }
.authx-agreement { display: flex; align-items: flex-start; gap: 8px; margin-top: 15px; color: #667085; font-size: 9.5px; line-height: 1.45; cursor: pointer; }
.authx-agreement input { width: 15px; height: 15px; margin: 0; flex: 0 0 auto; accent-color: #4f46e5; }
.authx-strength { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; margin-top: 6px; }
.authx-strength > span { height: 3px; border-radius: 99px; background: #edf0f5; }
.authx-strength small { grid-column: 1 / -1; color: #98a2b3; font-size: 8px; }
.authx-strength[data-score="1"] > span:nth-child(1) { background: #ef4444; }
.authx-strength[data-score="2"] > span:nth-child(-n+2) { background: #f59e0b; }
.authx-strength[data-score="3"] > span:nth-child(-n+3) { background: #06b6d4; }
.authx-strength[data-score="4"] > span:nth-child(-n+4) { background: #10b981; }
.authx-match { display: block; min-height: 13px; margin-top: 5px; color: #98a2b3; font-size: 8.5px; }
.authx-match.is-match { color: #059669; }
.authx-match.is-mismatch { color: #dc2626; }

.authx-photo-upload { min-height: 78px; padding: 11px; display: flex !important; align-items: center; gap: 11px; border: 1px dashed #a5b4fc; border-radius: 13px; color: #344054; background: linear-gradient(135deg,#f5f7ff,#faf5ff,#ecfeff); cursor: pointer; transition: .18s ease; }
.authx-photo-upload:hover { border-color: #6366f1; background: linear-gradient(135deg,#eef2ff,#f5f3ff,#ecfeff); transform: translateY(-1px); box-shadow: 0 10px 25px rgba(79,70,229,.09); }
.lecturer-photo-upload { border-color: #d8b4fe; background: linear-gradient(135deg,#faf5ff,#f5f3ff,#ecfeff); }
.authx-photo-upload > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.authx-photo-preview { width: 49px; height: 49px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border-radius: 13px; color: #fff; background: linear-gradient(135deg,#4f46e5,#8b5cf6,#06b6d4); box-shadow: 0 9px 21px rgba(79,70,229,.20); }
.lecturer-photo-preview { background: linear-gradient(135deg,#111827,#7c3aed,#0e7490); }
.authx-photo-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.authx-photo-preview b { font-size: 20px; font-weight: 500; }
.authx-photo-description { min-width: 0; flex: 1; }
.authx-photo-description strong,.authx-photo-description small { display: block; }
.authx-photo-description strong { color: #111827; font-size: 10.5px; }
.authx-photo-description small { max-width: 300px; margin-top: 3px; overflow: hidden; color: #667085; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.authx-photo-upload > em { padding: 6px 8px; border-radius: 8px; color: #4f46e5; background: #fff; box-shadow: 0 4px 12px rgba(79,70,229,.08); font-size: 8px; font-style: normal; font-weight: 850; }

.profile-editor-card { overflow: hidden; }
.profile-editor-form { display: grid; gap: 0; }
.profile-photo-panel { display: flex; align-items: center; gap: 20px; padding: 4px 0 22px; }
.profile-photo-preview { width: 104px; height: 104px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border: 5px solid #fff; border-radius: 28px; color: #fff; background: linear-gradient(135deg,#4f46e5,#8b5cf6 55%,#06b6d4); box-shadow: 0 14px 34px rgba(79,70,229,.22),0 0 0 1px #e4e7ec; font-size: 34px; font-weight: 900; }
.profile-photo-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.profile-photo-copy { min-width: 0; }
.profile-photo-copy h2 { margin: 5px 0 0; color: var(--heading); font-size: 18px; }
.profile-photo-copy p { max-width: 520px; margin: 5px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.profile-role-badge { display: inline-flex; padding: 4px 7px; border-radius: 999px; font-size: 8.5px; font-weight: 850; }
.profile-role-badge.is-student { color: #3730a3; background: #eef2ff; }
.profile-role-badge.is-lecturer { color: #6b21a8; background: #f3e8ff; }
.profile-photo-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.profile-file-name { max-width: 330px; overflow: hidden; color: #667085; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.profile-remove-check { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; color: #b42318; font-size: 11px; font-weight: 700; cursor: pointer; }
.profile-remove-check input { width: 15px; height: 15px; margin: 0; accent-color: #dc2626; }
.profile-form-divider { height: 1px; margin: 0 0 20px; background: linear-gradient(90deg,#e4e7ec,transparent); }

@media (max-width: 980px) {
  .authx-shell,.authx-shell-register { width: min(720px,100%); grid-template-columns: 1fr; }
  .authx-visual { min-height: 265px; padding: 24px; }
  .authx-visual-copy,.authx-register-copy { margin-top: 34px; }
  .authx-visual-copy h1,.authx-register-copy h1 { font-size: 30px; }
  .authx-preview-card,.authx-step-list,.authx-account-card,.authx-mini-stats { display: none; }
  .authx-form-panel,.authx-register-panel { padding: 31px; }
}

@media (max-width: 620px) {
  .authx-page { padding: 2px 0 16px; }
  .authx-shell,.authx-shell-register { border-radius: 17px; }
  .authx-visual { min-height: 215px; padding: 19px; }
  .authx-visual-copy,.authx-register-copy { margin-top: 28px; }
  .authx-visual-copy h1,.authx-register-copy h1 { font-size: 25px; letter-spacing: -1px; }
  .authx-visual-copy p { margin-top: 9px; font-size: 10.5px; }
  .authx-form-panel,.authx-register-panel { padding: 24px 18px 27px; }
  .authx-heading h2 { font-size: 22px; }
  .authx-form-grid { grid-template-columns: 1fr; }
  .authx-form-grid { gap: 12px; }
  .authx-wide { grid-column: auto; }
  .profile-photo-panel { align-items: flex-start; gap: 14px; }
  .profile-photo-preview { width: 82px; height: 82px; border-radius: 22px; font-size: 27px; }
  .profile-photo-copy h2 { font-size: 16px; }
  .profile-photo-actions { align-items: flex-start; flex-direction: column; }
  .profile-file-name { max-width: 210px; }
  .authx-photo-upload > em { display: none; }
}

@media (max-width: 420px) {
  .authx-visual { display: none; }
  .authx-mobile-brand { display: flex; }
  .authx-form-panel,.authx-register-panel { padding: 22px 16px 25px; }
  .authx-heading h2 { font-size: 20px; }
}
