﻿:root {
  --blue: #7b1f2d;
  --blue-2: #a63242;
  --gold: #c99a2e;
  --gold-2: #f0c96a;
  --navy: #2a0e17;
  --ink: #172033;
  --muted: #6f7b8d;
  --line: #e7edf6;
  --bg: #fff8fa;
  --white: #ffffff;
  --danger: #c43939;
  --success: #16845f;
  --panel: #fbfdff;
  --panel-soft: rgba(255, 255, 255, 0.82);
  --shadow: 0 18px 50px rgba(123, 31, 45, 0.12);
  --shadow-strong: 0 26px 70px rgba(123, 31, 45, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(123, 31, 45, 0.08), transparent 36%),
    linear-gradient(90deg, rgba(123, 31, 45, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(123, 31, 45, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 32px 32px, 32px 32px, auto;
  letter-spacing: 0;
  line-height: 1.45;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.hidden { display: none !important; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(430px, 0.7fr);
  background: linear-gradient(125deg, #f6faff 0%, #ffffff 54%, #f8fbff 100%);
}

.auth-visual {
  position: relative;
  overflow: hidden;
  padding: 42px 58px 88px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background:
    linear-gradient(108deg, rgba(42, 14, 23, 0.88), rgba(123, 31, 45, 0.72)),
    url("assets/gedung-kampus-lite.jpg") center/cover;
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(145deg, rgba(42, 14, 23, 0.38), rgba(201, 154, 46, 0.08) 58%, rgba(255, 255, 255, 0.02));
  pointer-events: none;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(130deg, rgba(0, 0, 0, 0.85), transparent 82%);
  pointer-events: none;
}

.brand-lockup, .side-brand, .user-chip, .top-actions, .auth-stats, .metric-row, .inline-actions {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 34px;
  position: relative;
  z-index: 1;
  flex-direction: column;
  align-items: flex-start;
  max-width: 760px;
}

.auth-visual .brand-lockup {
  gap: 84px;
  margin-top: 0;
  align-items: flex-start;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #15213a;
  font-weight: 900;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.logo-pair {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}

.logo-pair img {
  object-fit: contain;
  background: transparent;
  border: 0;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.22));
}

.auth-logo-pair {
  min-width: 290px;
  gap: 16px;
}

.auth-logo-pair img:first-child {
  width: 86px;
  height: 86px;
  padding: 6px;
  border-radius: 8px;
}

.auth-logo-pair img:last-child {
  width: 214px;
  height: 82px;
  padding: 6px 10px;
  border-radius: 8px;
}

.side-logo-pair {
  width: 100%;
  justify-content: flex-start;
  gap: 8px;
}

.side-logo-pair img:first-child {
  width: 48px;
  height: 48px;
  padding: 5px;
  border-radius: 8px;
}

.side-logo-pair img:last-child {
  width: 122px;
  height: 48px;
  padding: 6px 8px;
  border-radius: 8px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #f1c96a;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.brand-lockup h1, .topbar h1 {
  margin: 0;
  line-height: 1.08;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: min(860px, 100%);
}

.hero-copy h1 {
  margin: 0;
  font-size: 3.2rem;
  line-height: 1.05;
  max-width: 860px;
  letter-spacing: 0;
}

.hero-copy h1 span,
.hero-copy h1 small {
  display: block;
}

.hero-copy h1 span {
  white-space: nowrap;
  font-size: 2.4rem;
}

.hero-copy h1 small {
  margin-top: 12px;
  max-width: 720px;
  font-size: 2.7rem;
  line-height: 1.08;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0;
}

.hero-kicker {
  margin: 0 0 14px;
  font-size: 0.9rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-lead {
  max-width: 520px;
  margin: 14px 0 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
}

.education-quote {
  position: absolute;
  z-index: 1;
  left: 58px;
  bottom: 28px;
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.55;
  font-style: italic;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.hero-meta-item {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-meta-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: #ffffff;
}

.hero-meta-item span {
  display: block;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.auth-stats {
  position: relative;
  z-index: 1;
  gap: 14px;
  flex-wrap: wrap;
}

.auth-stats div {
  min-width: 140px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.auth-stats strong { display: block; font-size: 1.7rem; }
.auth-stats span { color: rgba(255, 255, 255, 0.78); }

.auth-panel {
  position: relative;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(123, 31, 45, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 250, 0.92)),
    var(--white);
  box-shadow: -28px 0 70px rgba(123, 31, 45, 0.08);
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: 22px 18px 22px 0;
  border-left: 1px solid rgba(123, 31, 45, 0.08);
  pointer-events: none;
}

.auth-panel > * {
  width: min(100%, 486px);
  margin-left: auto;
  margin-right: auto;
}

.auth-panel-head {
  margin-bottom: 22px;
}

.auth-panel-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.panel-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px;
  background: linear-gradient(180deg, #edf4ff, #fff8fa);
  border: 1px solid rgba(123, 31, 45, 0.08);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.tab {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.tab.active {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 14px 34px rgba(123, 31, 45, 0.12);
}

.form-stack { display: grid; gap: 16px; animation: rise 0.35s ease both; }
.form-stack h2 {
  margin: 0 0 6px;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

label {
  display: grid;
  gap: 9px;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.9rem;
}

input, select, textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea { min-height: 92px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  border-color: var(--blue-2);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(166, 50, 66, 0.12);
}

.primary-btn, .ghost-btn, .danger-btn, .icon-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 9px 14px;
  font-weight: 900;
  font-size: 0.92rem;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(123, 31, 45, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.primary-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 16px 30px rgba(123, 31, 45, 0.18);
}

.ghost-btn, .icon-btn {
  color: var(--blue);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), #fff5f7);
  border-color: rgba(123, 31, 45, 0.12);
}

.danger-btn {
  color: var(--white);
  background: linear-gradient(180deg, #d45353, #c73939);
  box-shadow: 0 14px 28px rgba(199, 57, 57, 0.18);
}

.primary-btn:hover, .ghost-btn:hover, .danger-btn:hover, .icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(123, 31, 45, 0.12);
}

.ghost-btn:hover, .icon-btn:hover {
  border-color: rgba(123, 31, 45, 0.22);
  background: linear-gradient(180deg, #ffffff, #eef5ff);
}

.danger-btn:hover {
  box-shadow: 0 14px 28px rgba(199, 57, 57, 0.16);
}

.demo-box, .hint, .empty-state {
  color: var(--muted);
  line-height: 1.5;
}

.demo-box {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px dashed rgba(201, 154, 46, 0.5);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffaf0, #ffffff);
}

.demo-box strong { color: var(--ink); }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width, 292px) minmax(0, 1fr);
  transition: grid-template-columns 0.22s ease;
}

.app-shell.sidebar-collapsed {
  --sidebar-width: 92px;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(42, 14, 23, 0.94), rgba(123, 31, 45, 0.82)),
    url("assets/gedung-kampus-lite.jpg") center/cover;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 16px 0 42px rgba(42, 14, 23, 0.24);
  transition: padding 0.22s ease, box-shadow 0.22s ease;
}

.sidebar-collapse-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 5;
  width: 34px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px rgba(42, 14, 23, 0.16);
  font-weight: 900;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-collapse-btn:hover {
  color: #ffffff;
  background: rgba(240, 201, 106, 0.24);
  border-color: rgba(240, 201, 106, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 16px 32px rgba(42, 14, 23, 0.22);
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(42, 14, 23, 0.58), rgba(201, 154, 46, 0.12)),
    inherit;
  filter: blur(16px);
  transform: scale(1.06);
  opacity: 0.95;
  pointer-events: none;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.32;
  pointer-events: none;
}

.sidebar > * {
  position: relative;
  z-index: 2;
}

.side-brand {
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  min-height: 128px;
  padding: 0 4px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.side-brand strong {
  display: block;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}
.side-brand small { display: block; color: rgba(255, 255, 255, 0.7); }

.side-nav {
  display: grid;
  gap: 7px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.nav-section {
  display: block;
  margin: 14px 0 4px;
  padding-left: 8px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.side-nav button {
  position: relative;
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 7px 12px 7px 8px;
  text-align: left;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  overflow: hidden;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.side-nav button::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), rgba(255, 255, 255, 0.92));
  opacity: 0;
  transform: scaleY(0.65);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.side-nav button.active, .side-nav button:hover {
  color: var(--white);
  background: linear-gradient(135deg, rgba(166, 50, 66, 0.9), rgba(123, 31, 45, 0.78));
  border-color: rgba(240, 201, 106, 0.44);
  box-shadow: 0 12px 24px rgba(42, 14, 23, 0.18);
  transform: translateX(2px);
}

.side-nav button.active::before,
.side-nav button:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.nav-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
}

.nav-icon::before {
  content: attr(data-icon);
}

.nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-group-toggle {
  min-height: 42px;
  background: rgba(255, 255, 255, 0.045);
}

.nav-group-toggle .nav-group-icon {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  background: rgba(240, 201, 106, 0.16);
  border-color: rgba(240, 201, 106, 0.28);
}

.nav-group-items {
  display: grid;
  gap: 6px;
  max-height: 760px;
  padding-left: 10px;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 0.24s ease, opacity 0.18s ease, transform 0.18s ease;
}

.nav-group.collapsed .nav-group-items {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
}

.nav-group-items .nav-item {
  min-height: 46px;
  background: rgba(255, 255, 255, 0.085);
}

.nav-chevron {
  width: 18px;
  height: 18px;
  margin-left: auto;
  display: grid;
  place-items: center;
  opacity: 0.76;
}

.nav-chevron::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.nav-group.open .nav-chevron::before {
  transform: rotate(225deg);
}

.app-shell.sidebar-collapsed .sidebar {
  padding-inline: 14px;
}

.app-shell.sidebar-collapsed .side-brand {
  min-height: 86px;
  justify-content: center;
  align-items: center;
  padding-inline: 0;
}

.app-shell.sidebar-collapsed .side-brand > div:not(.logo-pair),
.app-shell.sidebar-collapsed .nav-label,
.app-shell.sidebar-collapsed .nav-section,
.app-shell.sidebar-collapsed .sync-card strong,
.app-shell.sidebar-collapsed .sync-card small {
  width: 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.app-shell.sidebar-collapsed .side-logo-pair img:last-child {
  display: none;
}

.app-shell.sidebar-collapsed .side-nav {
  padding-right: 0;
}

.app-shell.sidebar-collapsed .nav-group {
  gap: 8px;
}

.app-shell.sidebar-collapsed .nav-group-items,
.app-shell.sidebar-collapsed .nav-chevron {
  display: none;
}

.app-shell.sidebar-collapsed .side-nav button {
  justify-content: center;
  padding: 7px;
}

.app-shell.sidebar-collapsed .side-nav button::before {
  left: 4px;
}

.app-shell.sidebar-collapsed .sync-card {
  display: grid;
  place-items: center;
  padding: 14px 8px;
}

.app-shell.sidebar-collapsed .sync-dot {
  margin-right: 0;
}

.sync-card {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sync-card small { display: block; color: rgba(255, 255, 255, 0.72); }
.sync-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: #42d392;
  box-shadow: 0 0 0 6px rgba(66, 211, 146, 0.14);
}

.workspace {
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 260px),
    transparent;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  min-height: 78px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 26px rgba(123, 31, 45, 0.06);
}

.top-actions {
  margin-left: auto;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-actions .ghost-btn,
.top-actions .danger-btn {
  min-height: 40px;
  padding-inline: 15px;
}

.user-chip {
  gap: 12px;
  min-height: 56px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 8px 20px rgba(123, 31, 45, 0.07);
}

.user-chip img, .profile-photo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  background: #e9f1ff;
}

.user-chip img {
  border: 2px solid rgba(123, 31, 45, 0.12);
  box-shadow: 0 8px 18px rgba(123, 31, 45, 0.14);
}

.user-chip strong {
  line-height: 1.15;
  font-size: 0.98rem;
}

.user-chip small { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.35; }

.file-import {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.file-import input { display: none; }
.icon-btn {
  min-width: 56px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary);
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(123, 31, 45, 0.06);
}

.content {
  padding: 22px;
  display: grid;
  gap: 16px;
  animation: rise 0.28s ease both;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  min-height: 164px;
  padding: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  color: var(--white);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(42, 14, 23, 0.95), rgba(123, 31, 45, 0.84)),
    url("assets/gedung-kampus-lite.jpg") center/cover;
  box-shadow: var(--shadow-strong);
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.3;
  pointer-events: none;
}

.dashboard-hero > * {
  position: relative;
  z-index: 1;
}

.dashboard-hero h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(1.76rem, 3.5vw, 2.85rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.dashboard-hero p {
  max-width: 760px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.58;
}

.hero-pills {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
  min-width: 210px;
}

.hero-pills span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  font-size: 0.74rem;
  font-weight: 900;
}

.card, .premium-card, .table-card, .form-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover, .table-card:hover, .form-card:hover {
  border-color: rgba(123, 31, 45, 0.14);
  box-shadow: 0 16px 34px rgba(123, 31, 45, 0.08);
}

.premium-card:hover, .feature-panel:hover, .status-panel:hover {
  border-color: rgba(123, 31, 45, 0.18);
  box-shadow: 0 22px 52px rgba(123, 31, 45, 0.12);
}

.premium-card {
  position: relative;
  overflow: hidden;
  grid-column: span 3;
  min-height: 136px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.98)),
    var(--white);
}

.premium-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

.premium-card span { color: var(--muted); font-weight: 800; font-size: 0.88rem; letter-spacing: 0.01em; }
.premium-card strong { display: block; margin-top: 10px; font-size: 1.92rem; letter-spacing: -0.03em; line-height: 1.02; }
.premium-card small { display: block; margin-top: 8px; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }

.metric-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.metric-icon {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(123, 31, 45, 0.12), rgba(240, 201, 106, 0.24));
  border: 1px solid rgba(123, 31, 45, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 14px 24px rgba(123, 31, 45, 0.12);
}

.metric-icon::before,
.metric-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.metric-icon.student::before {
  width: 13px;
  height: 13px;
  top: 10px;
  left: 17px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: -10px 5px 0 -3px var(--gold), 10px 5px 0 -3px var(--gold);
}

.metric-icon.student::after {
  width: 30px;
  height: 14px;
  left: 9px;
  bottom: 9px;
  border-radius: 8px 8px 6px 6px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
}

.metric-icon.lecturer::before {
  width: 24px;
  height: 18px;
  left: 12px;
  top: 10px;
  border-radius: 4px;
  background: var(--blue);
  box-shadow: inset 0 -5px 0 rgba(255, 255, 255, 0.24);
}

.metric-icon.lecturer::after {
  width: 28px;
  height: 4px;
  left: 10px;
  bottom: 12px;
  border-radius: 4px;
  background: var(--gold);
  box-shadow: 0 7px 0 rgba(201, 154, 46, 0.55);
}

.metric-icon.course::before {
  width: 25px;
  height: 30px;
  left: 12px;
  top: 9px;
  border-radius: 4px 7px 7px 4px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: inset 5px 0 0 rgba(255, 255, 255, 0.22);
}

.metric-icon.course::after {
  width: 16px;
  height: 3px;
  left: 18px;
  top: 18px;
  border-radius: 3px;
  background: var(--gold-2);
  box-shadow: 0 7px 0 var(--gold-2);
}

.metric-icon.live::before {
  width: 14px;
  height: 14px;
  left: 17px;
  top: 17px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(22, 132, 95, 0.14), 0 0 0 13px rgba(22, 132, 95, 0.08);
}

.metric-icon.live::after {
  width: 30px;
  height: 30px;
  left: 9px;
  top: 9px;
  border-radius: 50%;
  border: 2px solid rgba(201, 154, 46, 0.55);
}

.premium-card {
  --metric-a: #7b1f2d;
  --metric-b: #a63242;
  --metric-soft: rgba(166, 50, 66, 0.12);
  --metric-line: rgba(123, 31, 45, 0.14);
  border-color: var(--metric-line);
  background:
    radial-gradient(circle at 86% 18%, var(--metric-soft), transparent 46%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94));
}

.premium-card.metric-blue { --metric-a: #7b1f2d; --metric-b: #a63242; --metric-soft: rgba(166, 50, 66, 0.14); --metric-line: rgba(123, 31, 45, 0.16); }
.premium-card.metric-indigo { --metric-a: #5f2431; --metric-b: #b64556; --metric-soft: rgba(182, 69, 86, 0.14); --metric-line: rgba(95, 36, 49, 0.16); }
.premium-card.metric-gold { --metric-a: #b58018; --metric-b: #f0c96a; --metric-soft: rgba(240, 201, 106, 0.18); --metric-line: rgba(181, 128, 24, 0.18); }
.premium-card.metric-teal { --metric-a: #047a83; --metric-b: #28c1b7; --metric-soft: rgba(40, 193, 183, 0.14); --metric-line: rgba(4, 122, 131, 0.16); }
.premium-card.metric-rose { --metric-a: #b63a5b; --metric-b: #f07293; --metric-soft: rgba(240, 114, 147, 0.12); --metric-line: rgba(182, 58, 91, 0.16); }
.premium-card.metric-green { --metric-a: #14784d; --metric-b: #35bf7d; --metric-soft: rgba(53, 191, 125, 0.14); --metric-line: rgba(20, 120, 77, 0.16); }
.premium-card.metric-cyan { --metric-a: #7b1f2d; --metric-b: #c99a2e; --metric-soft: rgba(37, 169, 216, 0.14); --metric-line: rgba(16, 98, 143, 0.16); }

.premium-card::before {
  height: 5px;
  background: linear-gradient(90deg, var(--metric-a), var(--metric-b));
}

.premium-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -42px;
  width: 116px;
  height: 116px;
  border-radius: 999px;
  background: var(--metric-soft);
  pointer-events: none;
}

.premium-card > * {
  position: relative;
  z-index: 1;
}

.clickable-card {
  cursor: pointer;
}

.clickable-card:hover {
  transform: translateY(-3px);
}

.metric-link {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--metric-a) !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
}

.metric-link::after {
  content: ">";
  color: var(--gold);
}

.metric-icon {
  color: #ffffff;
  background: linear-gradient(135deg, var(--metric-a), var(--metric-b));
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 16px 26px var(--metric-soft);
}

.metric-icon[data-glyph]::before {
  content: attr(data-glyph);
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  position: absolute;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
  font-size: 1.3rem;
  line-height: 1;
}

.metric-icon[data-glyph]::after {
  display: none;
}

.wide { grid-column: span 8; }
.half { grid-column: span 6; }
.third { grid-column: span 4; }
.full { grid-column: 1 / -1; }

.feature-panel,
.status-panel,
.schedule-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: var(--shadow);
  padding: 18px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.feature-tile {
  position: relative;
  overflow: hidden;
  min-height: 146px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  border: 1px solid rgba(123, 31, 45, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.98));
  box-shadow: 0 14px 30px rgba(123, 31, 45, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-tile.action-tile {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.feature-tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

.feature-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(123, 31, 45, 0.11);
}

.feature-tile strong,
.status-item strong {
  display: block;
  font-size: 0.96rem;
  color: var(--ink);
}

.feature-tile span,
.status-item span {
  display: block;
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.88rem;
}

.tile-meta {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 2px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(123, 31, 45, 0.08);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.status-stack {
  display: grid;
  gap: 12px;
}

.status-item {
  min-height: 78px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(123, 31, 45, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(123, 31, 45, 0.06);
}

.dash-icon {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(123, 31, 45, 0.12), rgba(240, 201, 106, 0.24));
  border: 1px solid rgba(123, 31, 45, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.feature-tile .dash-icon {
  width: 54px;
  height: 54px;
  margin-bottom: auto;
}

.dash-icon::before,
.dash-icon::after {
  content: "";
  position: absolute;
}

.dash-icon.approval::before {
  width: 18px;
  height: 18px;
  left: 17px;
  top: 10px;
  border-radius: 50%;
  background: var(--blue);
}

.dash-icon.approval::after {
  width: 30px;
  height: 15px;
  left: 11px;
  bottom: 11px;
  border-radius: 8px;
  background: var(--gold);
  box-shadow: 17px -9px 0 -6px var(--success);
}

.dash-icon.academic::before {
  width: 30px;
  height: 24px;
  left: 11px;
  top: 13px;
  border-radius: 5px;
  background: var(--blue);
  box-shadow: inset 0 -7px 0 rgba(255, 255, 255, 0.22);
}

.dash-icon.academic::after {
  width: 34px;
  height: 4px;
  left: 9px;
  bottom: 10px;
  border-radius: 4px;
  background: var(--gold);
}

.dash-icon.document::before {
  width: 27px;
  height: 34px;
  left: 13px;
  top: 9px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
}

.dash-icon.document::after {
  width: 16px;
  height: 3px;
  left: 18px;
  top: 19px;
  border-radius: 3px;
  background: var(--gold-2);
  box-shadow: 0 8px 0 var(--gold-2), 0 16px 0 var(--gold-2);
}

.dash-icon.grade::before {
  width: 28px;
  height: 22px;
  left: 12px;
  bottom: 11px;
  border-radius: 5px 5px 3px 3px;
  background: linear-gradient(180deg, rgba(123, 31, 45, 0.24), rgba(123, 31, 45, 0.08));
  box-shadow: inset 0 -10px 0 rgba(123, 31, 45, 0.2);
}

.dash-icon.grade::after {
  width: 8px;
  height: 22px;
  left: 15px;
  top: 15px;
  background: var(--blue);
  box-shadow: 11px -6px 0 var(--gold), 22px -12px 0 var(--success);
}

.dash-icon.attendance::before {
  width: 15px;
  height: 15px;
  left: 18px;
  top: 18px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 7px rgba(22, 132, 95, 0.14), 0 0 0 15px rgba(22, 132, 95, 0.08);
}

.dash-icon.attendance::after {
  width: 34px;
  height: 34px;
  left: 9px;
  top: 9px;
  border-radius: 50%;
  border: 2px solid rgba(201, 154, 46, 0.55);
}

.dash-icon.database::before {
  width: 30px;
  height: 12px;
  left: 11px;
  top: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 11px 0 var(--blue), 0 22px 0 var(--blue);
}

.dash-icon.database::after {
  width: 18px;
  height: 4px;
  right: 8px;
  bottom: 10px;
  border-radius: 4px;
  background: var(--success);
}

.dash-icon.shield::before {
  width: 30px;
  height: 34px;
  left: 11px;
  top: 8px;
  border-radius: 15px 15px 8px 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  clip-path: polygon(50% 0, 92% 16%, 82% 75%, 50% 100%, 18% 75%, 8% 16%);
}

.dash-icon.shield::after {
  width: 13px;
  height: 7px;
  left: 20px;
  top: 23px;
  border-left: 3px solid var(--gold-2);
  border-bottom: 3px solid var(--gold-2);
  transform: rotate(-45deg);
}

.dash-icon.download::before {
  width: 10px;
  height: 23px;
  left: 21px;
  top: 9px;
  border-radius: 5px;
  background: var(--blue);
}

.dash-icon.download::after {
  width: 28px;
  height: 28px;
  left: 12px;
  top: 15px;
  border-left: 6px solid var(--gold);
  border-bottom: 6px solid var(--gold);
  transform: rotate(-45deg);
}

.dash-icon.profile::before {
  width: 16px;
  height: 16px;
  left: 18px;
  top: 10px;
  border-radius: 50%;
  background: var(--blue);
}

.dash-icon.profile::after {
  width: 28px;
  height: 16px;
  left: 12px;
  bottom: 10px;
  border-radius: 10px 10px 6px 6px;
  background: var(--gold);
}

.schedule-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.actions-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.compact-metrics .premium-card {
  grid-column: auto;
  min-height: 0;
}

.compact-schedule {
  min-height: 108px;
}

.schedule-item {
  position: relative;
  overflow: hidden;
  min-height: 120px;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(123, 31, 45, 0.08);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98));
  box-shadow: 0 14px 28px rgba(123, 31, 45, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.schedule-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

.schedule-item:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 31, 45, 0.18);
  box-shadow: 0 20px 36px rgba(123, 31, 45, 0.12);
}

.schedule-date {
  min-height: 88px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: inset 0 -4px 0 rgba(255, 255, 255, 0.13);
}

.schedule-date strong {
  display: block;
  font-size: 1rem;
}

.schedule-date span {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.82rem;
  font-weight: 800;
}

.schedule-body {
  display: grid;
  gap: 10px;
}

.schedule-item h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.schedule-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.schedule-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(123, 31, 45, 0.08);
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
}

.schedule-tag.emphasis {
  background: rgba(240, 201, 106, 0.2);
  color: #7c5810;
}

.schedule-lecturer {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-weight: 800;
}

.ktm-card-preview {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(42, 14, 23, 0.98), rgba(123, 31, 45, 0.94)),
    #0f2b74;
  color: #fff;
  box-shadow: 0 18px 38px rgba(123, 31, 45, 0.16);
}

.ktm-card-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(240, 201, 106, 0.26), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 38%);
  pointer-events: none;
}

.ktm-card-top,
.ktm-card-body {
  position: relative;
  z-index: 1;
}

.ktm-card-top {
  display: grid;
  grid-template-columns: 64px 1fr 136px;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.ktm-card-top img:first-child {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.ktm-card-top img:last-child {
  width: 126px;
  height: 52px;
  object-fit: contain;
  justify-self: end;
}

.ktm-card-top strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.ktm-card-top span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 800;
}

.ktm-card-body {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.ktm-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: rgba(255,255,255,0.16);
}

.ktm-meta h3 {
  margin: 0;
  font-size: 1.42rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.ktm-meta > p {
  margin: 8px 0 0;
  color: #f0c96a;
  font-size: 1rem;
  font-weight: 900;
}

.ktm-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.ktm-chip-row span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
  font-weight: 900;
}

.ktm-info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.ktm-info-list div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ktm-info-list dt {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ktm-info-list dd {
  margin: 0;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
}

.ktm-verify-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 124px;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
}

.ktm-verify-copy {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ktm-verify-copy strong {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ktm-verify-copy span {
  color: #f0c96a;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
}

.ktm-verify-copy small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.8rem;
  line-height: 1.55;
}

.ktm-qr {
  width: 124px;
  height: 124px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  justify-self: end;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 2px;
}

.section-head > div:first-child {
  min-width: 0;
  flex: 1 1 260px;
}

.section-head h2 { margin: 0; letter-spacing: -0.02em; font-size: 1.58rem; line-height: 1.15; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }

.section-head > .inline-actions,
.section-head > .top-actions {
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-end;
  row-gap: 8px;
}

.section-head > .inline-actions {
  padding-top: 4px;
}

.section-head > .inline-actions .badge,
.section-head > .top-actions .badge {
  margin-right: 2px;
}

.table-card, .form-card, .card { padding: 18px; }

.form-card .primary-btn,
.form-card .ghost-btn,
.form-card .danger-btn {
  min-height: 44px;
  font-size: 0.9rem;
}

.form-card .primary-btn.full,
.form-card .ghost-btn.full,
.form-card .danger-btn.full {
  width: 100%;
}

.form-card .primary-btn {
  box-shadow: 0 16px 30px rgba(123, 31, 45, 0.16);
}

.form-card .primary-btn:hover {
  box-shadow: 0 18px 34px rgba(123, 31, 45, 0.18);
}

.form-card .ghost-btn {
  background: linear-gradient(180deg, #ffffff, #fff5f7);
}

.form-card .ghost-btn:hover {
  background: linear-gradient(180deg, #ffffff, #eaf3ff);
}

.stack-actions {
  display: grid;
  gap: 10px;
}

.stack-actions .primary-btn,
.stack-actions .ghost-btn,
.stack-actions .danger-btn {
  width: 100%;
}

.file-pick {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-height: 52px;
}

.file-pick input {
  display: none;
}

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.info-list div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.info-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.88rem;
}

.info-list span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.signature-preview-grid {
  display: grid;
  gap: 14px;
}

.signature-preview-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fff8fa);
}

.signature-preview-card > span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.signature-preview-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.signature-preview-columns div {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  border: 1px dashed rgba(123, 31, 45, 0.24);
  border-radius: 8px;
  background: #ffffff;
}

.signature-preview-columns small {
  color: var(--muted);
  font-weight: 800;
}

.signature-preview-columns strong {
  color: var(--blue);
  font-size: 1rem;
}

.signature-preview-columns em {
  color: var(--ink);
  font-style: normal;
  font-weight: 850;
  border-top: 1px solid rgba(108, 122, 146, 0.45);
  padding-top: 8px;
}

.form-card.full {
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.88), #ffffff 150px),
    #ffffff;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.filter-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notification-filter-form {
  gap: 16px;
}

.notification-settings-form {
  grid-template-columns: 1fr;
}

.notification-settings-form .feed-item {
  min-height: 74px;
  align-items: flex-start;
}

.notification-step {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(123, 31, 45, 0.11);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0 0, rgba(214, 160, 47, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 250, 0.78));
  box-shadow: 0 14px 30px rgba(42, 14, 23, 0.055);
}

.step-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-title > span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon-bright));
  box-shadow: 0 10px 22px rgba(123, 31, 45, 0.18);
}

.step-title strong,
.step-title small {
  display: block;
}

.step-title small {
  margin-top: 2px;
  color: var(--muted);
  line-height: 1.45;
}

.wide-field {
  grid-column: 1 / -1;
}

.form-card.full .filter-grid {
  margin-top: 2px;
}

.form-card.full label {
  gap: 7px;
}

.form-card.full select,
.form-card.full input,
.form-card.full textarea {
  min-height: 48px;
  background: linear-gradient(180deg, #ffffff, #fff8fa);
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.filter-action-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(123, 31, 45, 0.08);
}

.filter-action-row .primary-btn {
  min-width: 170px;
}

.preset-btn {
  min-height: 30px;
  padding: 5px 10px;
  color: var(--blue);
  border-color: rgba(123, 31, 45, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(234, 243, 255, 0.92));
}

.preset-btn:hover {
  border-color: rgba(123, 31, 45, 0.2);
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.data-table th, .data-table td {
  padding: 11px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  background: #f6f9ff;
  letter-spacing: 0.04em;
}

.data-table td {
  font-size: 0.92rem;
  line-height: 1.5;
}

.data-table tr:hover td { background: #f8fbff; }

.data-table td:last-child {
  min-width: 120px;
}

.data-table td .inline-actions {
  gap: 6px;
}

.data-table td .mini-btn,
.data-table td .inline-actions button {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 0.78rem;
  box-shadow: 0 4px 12px rgba(123, 31, 45, 0.05);
}

.data-table td .mini-btn:hover,
.data-table td .inline-actions button:hover {
  box-shadow: 0 8px 18px rgba(123, 31, 45, 0.08);
}

.attendance-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.attendance-class-block {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.attendance-class-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(123, 31, 45, 0.07), rgba(244, 180, 40, 0.06));
}

.attendance-class-head strong {
  display: block;
  color: var(--ink);
  font-size: 0.96rem;
}

.attendance-class-head span,
.attendance-class-head small {
  color: var(--muted);
  font-weight: 800;
}

.attendance-matrix-scroll {
  width: 100%;
  overflow-x: auto;
}

.attendance-report-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid rgba(123, 31, 45, 0.1);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(238, 245, 255, 0.82), rgba(255, 249, 233, 0.7));
}

.attendance-report-filter label {
  min-width: min(100%, 280px);
  color: var(--ink);
  font-weight: 900;
}

.attendance-report-filter select {
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
}

.attendance-matrix {
  min-width: 1320px;
  table-layout: fixed;
}

.attendance-matrix th,
.attendance-matrix td {
  text-align: center;
  white-space: nowrap;
}

.attendance-matrix th:first-child,
.attendance-matrix td:first-child {
  width: 58px;
}

.attendance-matrix th:nth-child(2),
.attendance-matrix td:nth-child(2) {
  width: 132px;
  text-align: left;
}

.attendance-matrix th:nth-child(3),
.attendance-matrix td:nth-child(3) {
  width: 240px;
  text-align: left;
}

.attendance-matrix th small,
.attendance-matrix th span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0;
}

.attendance-matrix td:last-child {
  min-width: auto;
}

.status-code {
  display: inline-flex;
  min-width: 28px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(123, 31, 45, 0.04);
}

.status-h { color: var(--success); background: #e9fbf3; }
.status-i { color: #7c5810; background: #fff4d5; }
.status-a { color: var(--danger); background: #fff0f0; }
.status-empty { color: var(--muted); background: #f3f6fb; }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 8px;
  background: #eef5ff;
  color: var(--blue);
  font-weight: 900;
  font-size: 0.72rem;
  box-shadow: inset 0 0 0 1px rgba(123, 31, 45, 0.04);
}

.badge.gold { color: #7c5810; background: #fff4d5; }
.badge.green { color: var(--success); background: #e9fbf3; }
.badge.red { color: var(--danger); background: #fff0f0; }

.grade-letter {
  min-width: 42px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 900;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.grade-letter.grade-a {
  color: #0d6a45;
  background: linear-gradient(180deg, #eefdf6, #dff8ec);
  border-color: rgba(13, 106, 69, 0.12);
}

.grade-letter.grade-b {
  color: #1253a4;
  background: linear-gradient(180deg, #eef5ff, #dfeeff);
  border-color: rgba(123, 31, 45, 0.12);
}

.grade-letter.grade-c {
  color: #8a6204;
  background: linear-gradient(180deg, #fff7e3, #ffefc7);
  border-color: rgba(138, 98, 4, 0.14);
}

.grade-letter.grade-d {
  color: #a66008;
  background: linear-gradient(180deg, #fff3e6, #ffe4bf);
  border-color: rgba(166, 96, 8, 0.14);
}

.grade-letter.grade-e {
  color: #b03030;
  background: linear-gradient(180deg, #fff2f2, #ffe1e1);
  border-color: rgba(176, 48, 48, 0.14);
}

.inline-actions { gap: 8px; flex-wrap: wrap; }
.top-inline-gap { margin-top: 14px; }
.inline-actions.full {
  width: 100%;
  display: flex;
  align-items: center;
}

.inline-actions.full > .primary-btn {
  flex: 1 1 220px;
}

.inline-actions.full > .mini-btn,
.inline-actions.full > .ghost-btn,
.inline-actions.full > .danger-btn {
  flex: 0 0 auto;
}

.inline-actions button, .mini-btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(123, 31, 45, 0.12);
  border-radius: 8px;
  padding: 6px 11px;
  color: var(--blue);
  background: linear-gradient(180deg, #ffffff, #fff5f7);
  font-weight: 900;
  font-size: 0.82rem;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(123, 31, 45, 0.06);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.inline-actions button:hover, .mini-btn:hover {
  border-color: rgba(123, 31, 45, 0.24);
  background: linear-gradient(180deg, #ffffff, #edf5ff);
  box-shadow: 0 10px 20px rgba(123, 31, 45, 0.08);
  transform: translateY(-1px);
}

.mini-btn.danger { color: var(--danger); }
.mini-btn.success { color: var(--success); }
.mini-btn.danger:hover {
  border-color: rgba(199, 57, 57, 0.22);
  background: linear-gradient(180deg, #fff8f8, #ffefef);
  box-shadow: 0 10px 20px rgba(199, 57, 57, 0.08);
}

.mini-btn.success:hover {
  border-color: rgba(22, 132, 95, 0.22);
  background: linear-gradient(180deg, #f7fffb, #ebfff5);
  box-shadow: 0 10px 20px rgba(22, 132, 95, 0.08);
}

.form-card .mini-btn {
  min-height: 36px;
  padding-inline: 12px;
}

.form-card .inline-actions {
  margin-top: 2px;
}

.table-card .inline-actions {
  align-items: center;
}

.table-card .section-head > .inline-actions .mini-btn,
.table-card .section-head > .inline-actions .ghost-btn,
.table-card .section-head > .inline-actions .danger-btn {
  min-height: 36px;
  padding-inline: 12px;
}

.table-card .section-head > .inline-actions .badge {
  align-self: center;
}

.form-card.is-editing .primary-btn {
  background: linear-gradient(135deg, #7b1f2d, #1a75d2);
}

.form-card.is-editing [data-cancel-grade-edit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  border-color: rgba(123, 31, 45, 0.16);
  background: linear-gradient(180deg, #ffffff, #eef5ff);
}

.form-card.is-editing [data-cancel-grade-edit]:hover {
  border-color: rgba(123, 31, 45, 0.24);
  background: linear-gradient(180deg, #ffffff, #e8f1ff);
}

.form-card.is-editing {
  border-color: rgba(123, 31, 45, 0.22);
  box-shadow: 0 22px 42px rgba(123, 31, 45, 0.14);
  background:
    linear-gradient(180deg, rgba(234, 243, 255, 0.78), #ffffff 130px),
    #ffffff;
}

.form-card.is-editing::before {
  content: "";
  display: block;
  width: calc(100% + 40px);
  height: 4px;
  margin: -20px -20px 16px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

.grade-summary-grid .premium-card {
  min-height: 138px;
}

.grade-chart {
  display: grid;
  gap: 14px;
}

.grade-chart-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.grade-chart-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.grade-chart-meta strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
}

.grade-chart-meta span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.grade-chart-track {
  position: relative;
  min-height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff5f6, #f7e4e7);
  box-shadow: inset 0 1px 2px rgba(123, 31, 45, 0.08);
}

.grade-chart-fill {
  min-height: 18px;
  border-radius: 999px;
  transition: width 0.28s ease;
}

.grade-chart-fill.grade-a {
  background: linear-gradient(90deg, #1aa06c, #42d392);
}

.grade-chart-fill.grade-b {
  background: linear-gradient(90deg, #1253a4, #2d7de1);
}

.grade-chart-fill.grade-c {
  background: linear-gradient(90deg, #d09b20, #f0c96a);
}

.grade-chart-fill.grade-d {
  background: linear-gradient(90deg, #d47a1f, #f3b263);
}

.grade-chart-fill.grade-e {
  background: linear-gradient(90deg, #c73939, #f08989);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid .full { grid-column: 1 / -1; }

.compact-select {
  display: grid;
  gap: 6px;
  min-width: 180px;
}

.compact-select select {
  min-height: 40px;
  padding: 8px 10px;
  background: #ffffff;
}

.compact-select small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.feed {
  display: grid;
  gap: 10px;
}

.feed-item {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 8px 20px rgba(123, 31, 45, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.feed-item:hover {
  border-color: rgba(123, 31, 45, 0.16);
  background: linear-gradient(180deg, #ffffff, #f4f9ff);
  box-shadow: 0 14px 28px rgba(123, 31, 45, 0.08);
  transform: translateY(-1px);
}

.feed-item h3 { margin: 0 0 6px; font-size: 0.98rem; line-height: 1.35; }
.feed-item p { margin: 0 0 8px; color: var(--muted); line-height: 1.5; font-size: 0.9rem; }
.feed-item strong {
  display: block;
  line-height: 1.35;
  font-size: 0.95rem;
}

.file-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.feed-item span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.muted-line { color: var(--muted); }

.file-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.preview-box {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8fa;
  color: var(--muted);
  white-space: pre-wrap;
}

.comment-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(123, 31, 45, 0.08);
}

.comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.comment-head strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.comment-thread {
  display: grid;
  gap: 10px;
}

.comment-item {
  padding: 12px;
  border: 1px solid rgba(123, 31, 45, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.comment-item.reply {
  margin-left: 18px;
  background: linear-gradient(180deg, #fbfdff, #f5f9ff);
}

.comment-author {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.comment-author img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  background: #e9f1ff;
}

.comment-author strong {
  display: block;
  margin: 0;
  font-size: 0.9rem;
}

.comment-author span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.comment-item p {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.6;
}

.comment-replies {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.comment-form {
  display: grid;
  gap: 8px;
}

.comment-form textarea {
  min-height: 86px;
  resize: vertical;
}

.comment-reply-form {
  margin-top: 10px;
}

.comment-empty {
  padding: 12px 14px;
  border: 1px dashed rgba(123, 31, 45, 0.16);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--muted);
  font-size: 0.88rem;
}

.announcement-card {
  padding: 14px 16px;
  border: 1px solid rgba(123, 31, 45, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 8px 20px rgba(123, 31, 45, 0.04);
}

.announcement-card.compact {
  padding: 12px 14px;
}

.announcement-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.announcement-top strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.96rem;
}

.announcement-top span,
.announcement-top small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.announcement-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
  font-size: 0.9rem;
}

.attendance-live {
  border: 1px solid rgba(22, 132, 95, 0.22);
  background: linear-gradient(135deg, #f0fff8, #f8fbff);
}

.chat-shell {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(123, 31, 45, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.98)),
    radial-gradient(circle at 12% 8%, rgba(123, 31, 45, 0.12), transparent 32%);
  box-shadow: 0 22px 52px rgba(123, 31, 45, 0.12);
}

.chat-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.chat-header h2 {
  margin: 4px 0 6px;
  font-size: 1.45rem;
}

.chat-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chat-header-actions select {
  min-width: 220px;
}

.chat-window {
  min-height: 390px;
  max-height: 58vh;
  overflow-y: auto;
  padding: 22px;
  display: grid;
  align-content: end;
  gap: 14px;
  background:
    linear-gradient(90deg, rgba(123, 31, 45, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(123, 31, 45, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}

.chat-message {
  display: grid;
  grid-template-columns: 42px minmax(0, 620px);
  gap: 10px;
  align-items: end;
}

.chat-message.mine {
  grid-template-columns: minmax(0, 620px) 42px;
  justify-content: end;
}

.chat-message.mine img {
  grid-column: 2;
  grid-row: 1;
}

.chat-message img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(123, 31, 45, 0.14);
  background: #ffffff;
}

.chat-bubble {
  padding: 12px 14px;
  border: 1px solid rgba(123, 31, 45, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(123, 31, 45, 0.08);
}

.chat-message.mine .chat-bubble {
  color: #ffffff;
  background: linear-gradient(135deg, #165ead, #1976d2);
  border-color: rgba(255, 255, 255, 0.18);
}

.chat-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.chat-meta strong {
  font-size: 0.92rem;
}

.chat-meta span {
  color: var(--muted);
  font-size: 0.75rem;
}

.chat-message.mine .chat-meta span {
  color: rgba(255, 255, 255, 0.76);
}

.chat-bubble p {
  margin: 0;
  line-height: 1.55;
  white-space: pre-wrap;
}

.chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.chat-composer textarea {
  min-height: 54px;
  max-height: 150px;
  resize: vertical;
}

.chat-empty {
  justify-self: center;
  align-self: center;
  display: grid;
  gap: 5px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.chat-empty strong {
  color: var(--ink);
}

.profile-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
}

.profile-photo {
  width: 150px;
  height: 150px;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  max-width: min(420px, calc(100vw - 36px));
  padding: 13px 15px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  line-height: 1.5;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.empty-state {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px dashed rgba(123, 31, 45, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfdff, #ffffff);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.empty-state strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.empty-state p,
.empty-state span,
.empty-state small {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .auth-visual .brand-lockup { gap: 64px; }
  .hero-copy h1 span { font-size: 1.55rem; }
  .hero-copy h1 small { font-size: 2rem; }
  .premium-card { grid-column: span 6; }
  .wide, .half, .third { grid-column: 1 / -1; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ktm-card-body { grid-template-columns: 96px minmax(0, 1fr); }
  .ktm-verify-row { grid-template-columns: 1fr 112px; }
  .ktm-qr { width: 112px; height: 112px; }
  .top-actions { gap: 7px; }
}

@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { min-height: 48vh; padding: 30px 28px 76px; justify-content: flex-start; }
  .auth-visual .brand-lockup { gap: 44px; }
  .education-quote { left: 28px; right: 28px; bottom: 22px; max-width: none; font-size: 0.72rem; }
  .auth-panel { padding: 30px 22px; }
  .hero-meta { grid-template-columns: 1fr; }
  .signature-preview-columns { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    z-index: 8;
    width: min(310px, 86vw);
    padding: 24px 20px;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }
  .sidebar-collapse-btn { display: none; }
  .app-shell.sidebar-collapsed .side-brand > div:not(.logo-pair),
  .app-shell.sidebar-collapsed .nav-label,
  .app-shell.sidebar-collapsed .nav-section,
  .app-shell.sidebar-collapsed .sync-card strong,
  .app-shell.sidebar-collapsed .sync-card small {
    width: auto;
    max-width: none;
    opacity: 1;
    pointer-events: auto;
  }
  .app-shell.sidebar-collapsed .side-logo-pair img:last-child {
    display: block;
  }
  .app-shell.sidebar-collapsed .side-nav button {
    justify-content: flex-start;
    padding: 7px 12px 7px 8px;
  }
  .app-shell.sidebar-collapsed .sync-card {
    display: block;
    padding: 14px;
  }
  .app-shell.sidebar-collapsed .sync-dot {
    margin-right: 8px;
  }
  .sidebar.open { transform: translateX(0); }
  .icon-btn { display: inline-grid; place-items: center; }
  .topbar { align-items: flex-start; padding: 14px 16px; }
  .top-actions { width: 100%; justify-content: flex-start; }
  .content { padding: 16px; gap: 14px; }
  .dashboard-hero {
    min-height: 280px;
    align-items: flex-start;
    flex-direction: column;
  }
  .chat-header {
    flex-direction: column;
    align-items: stretch;
  }
  .chat-header-actions {
    justify-content: flex-start;
  }
  .chat-header-actions select {
    width: 100%;
    min-width: 0;
  }
  .chat-window {
    min-height: 330px;
    padding: 16px;
  }
  .chat-composer {
    grid-template-columns: 1fr;
  }
  .hero-pills {
    justify-content: flex-start;
    min-width: 0;
  }
  .premium-card { grid-column: 1 / -1; }
  .form-grid, .profile-layout { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grade-chart-row { grid-template-columns: 1fr; }
  .section-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .section-head > .inline-actions,
  .section-head > .top-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .filter-action-row {
    justify-content: stretch;
  }
  .filter-action-row .primary-btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .hero-copy h1 { font-size: 1.85rem; }
  .hero-copy h1 span { font-size: 1.02rem; }
  .hero-copy h1 small { font-size: 1.24rem; }
  .auth-visual .brand-lockup { gap: 34px; }
  .auth-logo-pair img:first-child { width: 70px; height: 70px; }
  .auth-logo-pair img:last-child { width: 180px; height: 70px; }
  .topbar { flex-wrap: wrap; padding: 12px 14px; gap: 10px; }
  .top-actions { justify-content: flex-start; }
  .top-actions > * { flex: 1 1 calc(50% - 6px); }
  .user-chip {
    width: 100%;
    justify-content: flex-start;
  }
  .feature-grid { grid-template-columns: 1fr; }
  .actions-grid { grid-template-columns: 1fr; }
  .compact-metrics { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: 1fr; }
  .feature-tile { min-height: 142px; }
  .schedule-list { grid-template-columns: 1fr; }
  .schedule-item { grid-template-columns: 1fr; }
  .chat-message,
  .chat-message.mine {
    grid-template-columns: 34px minmax(0, 1fr);
    justify-content: stretch;
  }
  .chat-message.mine img {
    grid-column: 1;
  }
  .chat-message img {
    width: 34px;
    height: 34px;
  }
  .ktm-card-top,
  .ktm-card-body,
  .ktm-verify-row { grid-template-columns: 1fr; }
  .ktm-card-top img:last-child { justify-self: start; }
  .ktm-qr { justify-self: start; }
  .data-table { display: block; overflow-x: auto; }
  .auth-tabs { grid-template-columns: 1fr; }
  .announcement-top,
  .comment-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .comment-item.reply {
    margin-left: 10px;
  }
}

/* Modern visual refresh: lightweight CSS-only polish for publish UI */
:root {
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-tint: #fff7f8;
  --ring: rgba(166, 50, 66, 0.18);
  --maroon-deep: #651724;
  --maroon: #8f2032;
  --maroon-bright: #b43a4c;
  --gold-soft: rgba(240, 201, 106, 0.26);
  --shadow-soft: 0 14px 38px rgba(42, 14, 23, 0.08);
  --shadow-card: 0 20px 58px rgba(42, 14, 23, 0.11);
}

body {
  background:
    linear-gradient(90deg, rgba(123, 31, 45, 0.032) 1px, transparent 1px),
    linear-gradient(180deg, rgba(123, 31, 45, 0.028) 1px, transparent 1px),
    linear-gradient(140deg, #fffafa 0%, #f7fbff 52%, #fff6f7 100%);
  background-size: 34px 34px, 34px 34px, auto;
}

.workspace {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 248, 250, 0.82)),
    linear-gradient(90deg, rgba(123, 31, 45, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(123, 31, 45, 0.025) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}

.topbar {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(123, 31, 45, 0.08);
  box-shadow: 0 14px 36px rgba(42, 14, 23, 0.07);
}

.topbar h1 {
  letter-spacing: -0.03em;
}

.content {
  gap: 20px;
}

.card,
.form-card,
.table-card,
.feature-panel,
.status-panel {
  position: relative;
  border-radius: 8px;
  border: 1px solid rgba(123, 31, 45, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 252, 253, 0.93)),
    var(--surface-strong);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.form-card,
.table-card {
  padding: 24px;
}

.form-card::before,
.table-card::before,
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--maroon), var(--maroon-bright), var(--gold));
  opacity: 0.9;
}

.form-card:hover,
.table-card:hover,
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(166, 50, 66, 0.22);
  box-shadow: var(--shadow-card);
}

.section-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(123, 31, 45, 0.08);
}

.section-head h2 {
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.9rem);
  letter-spacing: -0.04em;
}

.section-head p {
  max-width: 760px;
  color: #728095;
}

label {
  gap: 8px;
  color: #172033;
}

input,
select,
textarea {
  min-height: 54px;
  border-radius: 8px;
  border: 1px solid rgba(123, 31, 45, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 250, 251, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

textarea {
  min-height: 124px;
  line-height: 1.6;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(166, 50, 66, 0.2);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--maroon-bright);
  box-shadow: 0 0 0 4px var(--ring), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

input[type="checkbox"],
input[type="radio"] {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  accent-color: var(--maroon);
  box-shadow: none;
}

.feed-item input[type="checkbox"],
.feed-item input[type="radio"] {
  margin: 0;
}

.primary-btn,
.ghost-btn,
.danger-btn,
.icon-btn,
.mini-btn,
.file-pick {
  border-radius: 8px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon-bright));
  box-shadow: 0 16px 32px rgba(123, 31, 45, 0.2);
}

.ghost-btn,
.icon-btn,
.mini-btn,
.file-pick {
  background: linear-gradient(180deg, #ffffff, #fff8fa);
  border-color: rgba(123, 31, 45, 0.13);
  color: var(--maroon);
}

.primary-btn:hover,
.ghost-btn:hover,
.danger-btn:hover,
.icon-btn:hover,
.mini-btn:hover,
.file-pick:hover {
  transform: translateY(-2px);
}

.data-table {
  border: 1px solid rgba(123, 31, 45, 0.08);
  border-radius: 8px;
}

.data-table th {
  background: linear-gradient(180deg, #fff7f8, #f5f8fc);
  color: #5b6677;
  letter-spacing: 0.04em;
}

.data-table td {
  background: rgba(255, 255, 255, 0.72);
}

.data-table tr:hover td {
  background: rgba(255, 247, 248, 0.82);
}

.feed-item {
  border-radius: 8px;
  border-color: rgba(123, 31, 45, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 250, 0.78));
  box-shadow: 0 12px 28px rgba(42, 14, 23, 0.055);
}

.feed-item:hover {
  background:
    linear-gradient(180deg, #ffffff, #fff5f7);
  border-color: rgba(166, 50, 66, 0.22);
}

.file-line,
.preview-box,
.comment-item,
.info-list div,
.signature-preview-card,
.signature-preview-columns div {
  border-radius: 8px;
  border-color: rgba(123, 31, 45, 0.1);
  background: linear-gradient(180deg, #ffffff, #fff9fa);
}

.badge {
  border-radius: 8px;
  border: 1px solid rgba(123, 31, 45, 0.1);
  background: linear-gradient(180deg, rgba(255, 251, 242, 0.98), rgba(255, 243, 204, 0.82));
}

.empty-state {
  border-radius: 8px;
  border-color: rgba(123, 31, 45, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 248, 250, 0.78));
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(42, 14, 23, 0.96), rgba(92, 20, 33, 0.88)),
    url("assets/gedung-kampus-lite.jpg") center/cover;
}

.side-nav {
  gap: 8px;
}

.side-nav button {
  min-height: 52px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.13);
}

.side-nav button.active,
.side-nav button:hover {
  background: linear-gradient(135deg, rgba(143, 32, 50, 0.98), rgba(101, 23, 36, 0.9));
  border-color: rgba(240, 201, 106, 0.52);
}

.nav-icon {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
}

.sync-card,
.user-chip {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(42, 14, 23, 0.1);
}

.toast {
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(42, 14, 23, 0.22);
}

@media (prefers-reduced-motion: no-preference) {
  .content > * {
    animation: modernRise 0.28s ease both;
  }

  .content > *:nth-child(2) { animation-delay: 0.025s; }
  .content > *:nth-child(3) { animation-delay: 0.05s; }
}

@keyframes modernRise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

.table-scroll .data-table {
  min-width: 760px;
}

.people-table .table-scroll .data-table {
  min-width: 1040px;
}

.table-scroll::-webkit-scrollbar {
  height: 10px;
}

.table-scroll::-webkit-scrollbar-track {
  background: rgba(123, 31, 45, 0.06);
  border-radius: 999px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--maroon), var(--maroon-bright));
  border-radius: 999px;
}

.people-list-head {
  align-items: flex-end;
  gap: 16px;
}

.quick-search {
  min-width: min(320px, 100%);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.quick-search input {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  padding: 0 14px;
  border: 1px solid rgba(123, 31, 45, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font: inherit;
}

.quick-search input:focus {
  border-color: rgba(123, 31, 45, 0.36);
  box-shadow: 0 0 0 4px rgba(123, 31, 45, 0.08);
  outline: none;
}

.people-table .inline-actions {
  flex-wrap: nowrap;
}

