@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #020617;
  --card: rgba(15, 23, 42, 0.85);
  --card-soft: rgba(2, 6, 23, 0.5);
  --card-strong: rgba(15, 23, 42, 0.92);
  --text: #e2e8f0;
  --muted: rgba(148, 163, 184, 0.85);
  --primary: #60a5fa;
  --primary-dark: #3b82f6;
  --border: rgba(148, 163, 184, 0.35);
  --danger: #f87171;
  --success: #34d399;
  --night: #0f172a;
  --night-light: #172554;
  --glow: rgba(79, 70, 229, 0.45);
  --hero-gradient: linear-gradient(135deg, rgba(79, 70, 229, 0.25), rgba(14, 165, 233, 0.25));
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.4), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.35), transparent 35%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

body.landing {
  background: radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.35), transparent 50%),
    radial-gradient(circle at 85% 5%, rgba(14, 165, 233, 0.3), transparent 40%),
    #020617;
  color: #e2e8f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.muted {
  color: var(--muted);
}

.landing-topbar {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.landing-topbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-topbar .logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #f8fafc;
}

.landing-topbar .brand strong {
  font-size: 1.1rem;
  color: #f8fafc;
}

.landing-topbar .brand small {
  display: block;
  color: rgba(226, 232, 240, 0.7);
}

.landing-nav {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 14px;
  scrollbar-width: thin;
}

.landing-nav a {
  color: rgba(226, 232, 240, 0.85);
  font-size: 0.9rem;
  position: relative;
  padding-bottom: 2px;
}

.landing-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.landing-nav a:hover::after,
.landing-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.landing-topbar .actions {
  display: flex;
  gap: 10px;
}

.landing-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.landing-hero {
  background: var(--hero-gradient);
  padding: 48px;
  border-radius: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.landing-hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  margin: 0 0 16px;
  color: #f8fafc;
}

.landing-hero h1 span {
  color: #a5b4fc;
}

.landing-hero .hero-sub {
  color: rgba(226, 232, 240, 0.85);
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-list li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #38bdf8;
}

.hero-actions .btn {
  min-width: 160px;
}

.hero-metrics {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.hero-metrics article {
  background: rgba(15, 23, 42, 0.35);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.hero-metrics strong {
  display: block;
  font-size: 1.6rem;
  color: #f8fafc;
}

.hero-metrics span {
  color: rgba(226, 232, 240, 0.85);
  font-size: 0.9rem;
}

.landing-hero .hero-panel {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #f8fafc;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.35);
}

.landing-hero .hero-panel-link {
  color: #a5b4fc;
}

.feature-section,
.workflow,
.split-section,
.cta-section {
  background: rgba(15, 23, 42, 0.4);
  border-radius: 32px;
  padding: 40px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.45);
}

.feature-section h2,
.workflow h2,
.comparison-card h2,
.cta-section h2 {
  color: #f8fafc;
  margin: 8px 0 12px;
}

.hero-eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #38bdf8;
  margin: 0 0 6px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: rgba(15, 23, 42, 0.65);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  min-height: 220px;
}

.feature-card h3 {
  margin-top: 0;
  color: #f8fafc;
}

.feature-card p {
  color: rgba(226, 232, 240, 0.85);
}

.feature-card ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: rgba(148, 163, 184, 0.9);
}

.feature-card ul li::before {
  content: ">";
  margin-right: 6px;
  color: #a5b4fc;
}

.workflow-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.workflow-timeline article {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 22px;
  padding: 24px;
  border: 1px solid rgba(45, 212, 191, 0.25);
}

.workflow-timeline span {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: rgba(94, 234, 212, 0.9);
}

.split-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.comparison-card {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 28px;
  padding: 32px;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.comparison-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: rgba(226, 232, 240, 0.9);
}

.comparison-list strong {
  color: #f8fafc;
}

.login-panel {
  background: rgba(2, 6, 23, 0.85);
  color: #f8fafc;
  border-radius: 28px;
  padding: 32px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 35px 65px rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(16px);
}

.login-panel .form.compact label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.85);
}

.login-panel .form.compact input {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(2, 6, 23, 0.5);
}

.login-panel .form.compact input:focus {
  border-color: rgba(96, 165, 250, 0.8);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
  outline: none;
}

.login-panel .form.compact input::placeholder {
  color: rgba(148, 163, 184, 0.6);
}

.btn.full {
  width: 100%;
  justify-content: center;
}

.login-links {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-links a {
  color: #93c5fd;
}

.cta-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-section .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.landing-footer {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.landing-footer strong {
  color: #f8fafc;
}

.landing-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.landing-footer a {
  color: rgba(226, 232, 240, 0.85);
}

@media (max-width: 768px) {
  .landing-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-topbar .actions {
    width: 100%;
    justify-content: flex-start;
  }

  .landing-hero,
  .feature-section,
  .workflow,
  .split-section,
  .cta-section {
    padding: 28px;
  }
}

body:not(.landing) .container,
body:not(.landing) .container.wide {
  max-width: 1200px;
  padding: 40px 28px 96px;
}

body:not(.landing) .topbar {
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(18px);
  box-shadow: 0 25px 45px rgba(2, 6, 23, 0.55);
}

body:not(.landing) .brand strong,
body:not(.landing) .brand small,
body:not(.landing) .user span {
  color: var(--text);
}

body:not(.landing) .nav a {
  color: var(--muted);
  border-color: transparent;
}

body:not(.landing) .nav a:hover,
body:not(.landing) .nav a:focus-visible {
  color: #f8fafc;
}

body:not(.landing) .nav a.active {
  color: #f8fafc;
  border-color: var(--primary);
}

body:not(.landing) .logo {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.85), rgba(125, 211, 252, 0.85));
  color: #0f172a;
}

body:not(.landing) .card,
body:not(.landing) .metric-card,
body:not(.landing) .category-card,
body:not(.landing) .stat-card,
body:not(.landing) .insight-card,
body:not(.landing) .report,
body:not(.landing) .portfolio-card,
body:not(.landing) .portfolio-media-panel,
body:not(.landing) .portfolio-doc,
body:not(.landing) .portfolio-doc-list li,
body:not(.landing) .portfolio-documents-preview,
body:not(.landing) .event-card,
body:not(.landing) .calendar-week-view,
body:not(.landing) .agenda-view,
body:not(.landing) .portfolio-gallery-preview,
body:not(.landing) .school {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
  box-shadow: 0 25px 45px rgba(2, 6, 23, 0.5);
}

body:not(.landing) .metric-card,
body:not(.landing) .category-card,
body:not(.landing) .stat-card,
body:not(.landing) .insight-card {
  backdrop-filter: blur(16px);
}

body:not(.landing) .category-card {
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.75), rgba(37, 99, 235, 0.2));
}

body:not(.landing) .category-icon {
  background: rgba(148, 163, 184, 0.15);
  color: #f8fafc;
}

body:not(.landing) .stat-card {
  background: rgba(15, 23, 42, 0.75);
}

body:not(.landing) .school {
  border-left: 3px solid var(--primary);
  padding: 14px;
}

body:not(.landing) .report,
body:not(.landing) .portfolio-card,
body:not(.landing) .event-card {
  border-radius: 24px;
}

body:not(.landing) .portfolio-thumb {
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.55);
}

body:not(.landing) .event-empty {
  background: transparent;
  box-shadow: none;
}

body:not(.landing) .category-pill {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
}

body:not(.landing) .portfolio-media-panel,
body:not(.landing) .agenda-view {
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15);
}

body:not(.landing) .btn {
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

body:not(.landing) .btn.primary {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.95), rgba(37, 99, 235, 0.95));
  color: #0f172a;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

body:not(.landing) .btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(37, 99, 235, 0.45);
}

body:not(.landing) .btn.ghost {
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

body:not(.landing) .btn.ghost:hover {
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.65);
}

body:not(.landing) .btn.ghost.danger {
  color: var(--danger);
  border-color: rgba(248, 113, 113, 0.35);
}

body:not(.landing) .form label {
  color: var(--muted);
}

body:not(.landing) .form input,
body:not(.landing) .form textarea,
body:not(.landing) .form select {
  background: var(--card-soft);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(2, 6, 23, 0.4);
}

body:not(.landing) .form input:focus,
body:not(.landing) .form textarea:focus,
body:not(.landing) .form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.25);
  outline: none;
}

body:not(.landing) input::placeholder,
body:not(.landing) textarea::placeholder {
  color: rgba(148, 163, 184, 0.6);
}

body:not(.landing) .report .meta,
body:not(.landing) .portfolio-description p,
body:not(.landing) .event-meta,
body:not(.landing) .event-notes {
  color: var(--muted);
}

body:not(.landing) .calendar-week-view {
  border: 1px solid var(--border);
}

body:not(.landing) .day-head,
body:not(.landing) .week-grid-head .hour-cell,
body:not(.landing) .week-grid-body .hour-cell,
body:not(.landing) .day-column,
body:not(.landing) .week-all-day,
body:not(.landing) .all-day-label {
  background: rgba(2, 6, 23, 0.5);
  border-color: rgba(148, 163, 184, 0.15);
  color: var(--text);
}

body:not(.landing) .day-column.is-today {
  background: rgba(96, 165, 250, 0.15);
}

body:not(.landing) .week-grid-body .hour-cell {
  background-image: linear-gradient(
    to bottom,
    rgba(148, 163, 184, 0.08) 1px,
    transparent 1px
  );
}

body:not(.landing) .week-event,
body:not(.landing) .week-all-day {
  color: var(--text);
}

body:not(.landing) .imprint-card {
  background: var(--card);
  border-radius: 24px;
  padding: 32px;
}

.auth-container {
  max-width: 560px;
  margin: 0 auto;
  padding: 72px 20px 120px;
}

.auth-card {
  border-radius: 28px;
}

.auth-card .brand {
  margin-bottom: 20px;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.container.wide {
  max-width: 1100px;
}

.dashboard-screen {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.dashboard-screen .card {
  margin: 0;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 116, 144, 0.2));
  border: none;
}

.hero-copy h1 {
  margin: 0 0 12px 0;
  font-size: 2rem;
  line-height: 1.25;
}

.hero-sub {
  margin: 0 0 18px 0;
  color: var(--muted);
}

.hero-eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--primary);
  margin: 0 0 8px 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-link {
  border-color: rgba(255, 255, 255, 0.4);
  color: #0f172a;
  background: rgba(255, 255, 255, 0.35);
}

.hero-panel {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 24px;
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.1);
}

.hero-panel-label {
  margin: 0 0 8px 0;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.hero-panel h3 {
  margin: 0 0 6px 0;
}

.hero-panel p {
  margin: 0 0 12px 0;
  color: var(--muted);
}

.hero-panel-link {
  font-weight: 600;
  color: var(--primary);
}

.dashboard-hero .hero-panel {
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.85), rgba(14, 165, 233, 0.35));
  border-radius: 26px;
  border: 1px solid rgba(96, 165, 250, 0.4);
  box-shadow: 0 30px 60px rgba(2, 6, 23, 0.6);
  color: #f8fafc;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.dashboard-hero .hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.35), transparent 40%);
  opacity: 0.8;
  pointer-events: none;
}

.support-screen,
.support-admin {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.support-card {
  padding: 28px;
  border-radius: 28px;
}

.support-form {
  margin-top: 16px;
}

.support-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.support-ticket {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 22px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.5);
  box-shadow: 0 20px 35px rgba(2, 6, 23, 0.45);
}

.support-ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.support-ticket-head h3 {
  margin: 0;
}

.support-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.support-status.status-open {
  background: rgba(248, 250, 252, 0.05);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

.support-status.status-in-progress {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border-color: rgba(14, 165, 233, 0.35);
}

.support-status.status-resolved {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

.support-message {
  white-space: pre-wrap;
  margin: 0 0 12px;
  color: var(--text);
}

.support-reply {
  border-left: 3px solid rgba(96, 165, 250, 0.6);
  padding-left: 14px;
  margin-top: 10px;
  color: var(--muted);
}

.support-reply .label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  color: var(--primary);
}

.user-dossier {
  margin: 18px 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 18px;
  padding: 12px 16px;
  background: rgba(2, 6, 23, 0.45);
}

.user-dossier summary {
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}

.user-dossier summary::marker {
  color: var(--primary);
}

.user-dossier[open] {
  background: rgba(15, 23, 42, 0.55);
}

.user-dossier-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.dossier-block {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 16px;
  background: rgba(2, 6, 23, 0.35);
}

.dossier-block h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--text);
}

.dossier-list {
  margin: 0;
  padding: 0;
}

.dossier-list div {
  margin-bottom: 10px;
}

.dossier-list dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.dossier-list dd {
  margin: 2px 0 0;
  font-weight: 600;
  color: var(--text);
}

.dossier-form-block {
  grid-column: span 2;
}

.user-dossier-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 16px;
}

.user-dossier-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
}

.user-dossier-form .actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-dossier-form .actions .helper {
  color: var(--muted);
}

.support-metrics {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.metric-pill {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  padding: 10px 16px;
  min-width: 110px;
  text-align: center;
  background: rgba(15, 23, 42, 0.5);
}

.metric-pill .label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.metric-pill strong {
  font-size: 1.3rem;
  color: var(--text);
}

.support-filters {
  margin-top: 18px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.support-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
}

.support-admin-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 18px;
  margin-top: 10px;
}

.support-admin-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.support-admin-form textarea {
  resize: vertical;
}

.support-admin-form .actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.support-admin-form .helper {
  margin: 0;
}

@media (max-width: 768px) {
  .support-ticket-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .support-admin-form {
    grid-template-columns: 1fr;
  }

  .support-admin-form .actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

.dashboard-hero .hero-panel > * {
  position: relative;
  z-index: 1;
}

.dashboard-hero .hero-panel-label {
  color: rgba(148, 163, 184, 0.85);
  letter-spacing: 0.12em;
}

.dashboard-hero .hero-panel h3 {
  color: #f8fafc;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.dashboard-hero .hero-panel p {
  color: rgba(226, 232, 240, 0.9);
}

.dashboard-hero .hero-panel-link {
  color: #bfdbfe;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dashboard-hero .hero-panel-link::after {
  content: "→";
  font-size: 1.1rem;
}

.dashboard-metrics .section-head,
.category-section .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.metric-card {
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px rgba(37, 99, 235, 0.15);
}

.metric-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.metric-meta {
  margin: 0;
  color: var(--muted);
}

.metric-cta {
  margin-top: auto;
  font-weight: 600;
  color: var(--primary);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.category-card {
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(226, 232, 255, 0.8));
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.18);
}

.category-card.reports {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(99, 102, 241, 0.15));
}

.category-card.calendar {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(6, 182, 212, 0.1));
}

.category-card.portfolio {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(34, 197, 94, 0.08));
}

.category-card.profile {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.12), rgba(251, 146, 60, 0.08));
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.category-content h3 {
  margin: 0;
}

.category-content p {
  margin: 0 0 6px 0;
  color: var(--muted);
}

.category-data {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-stat {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.category-sub {
  margin: 0;
  color: var(--muted);
}

.category-pill {
  margin: 8px 0 0 0;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
}

.category-pill small {
  font-weight: 400;
  color: var(--muted);
}

.category-checklist {
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
}

.category-checklist li::before {
  content: "•";
  display: inline-block;
  margin-right: 6px;
  color: var(--primary);
}

.category-link {
  font-weight: 600;
  color: var(--text);
  margin-top: auto;
}

.split-card.modern {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.04), rgba(37, 99, 235, 0.05));
  border: none;
}

.split-card.modern h3 {
  margin-top: 0;
}

.stats-grid {
  display: grid;

  .badge.category-portfolio {
    background: rgba(37, 99, 235, 0.18);
    color: #1d4ed8;
  }
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: #f9fafb;
}

.stat-label {
  margin: 0 0 6px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

.stat-sub {
  margin: 6px 0 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.overview-card {
  margin-top: 16px;
}

.overview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.insight-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background: #fffdfa;
}

.insight-card.highlight {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(79, 70, 229, 0.08));
  border-color: rgba(37, 99, 235, 0.25);
}

.insight-card h3 {
  margin: 0 0 8px 0;
  font-size: 1rem;
}

.insight-value {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.insight-sub {
  margin: 4px 0 0 0;
  color: var(--muted);
}

.quick-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.split-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.split-card h3 {
  margin-top: 0;
}

.insight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.insight-list li {
  padding-left: 16px;
  position: relative;
  color: var(--text);
}

.insight-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.insight-list.compact li::before {
  color: var(--muted);
}

.link {
  font-weight: 600;
  color: var(--primary);
}

.card {
  background: var(--card);
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  margin-bottom: 24px;
}

.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  gap: 16px;
  font-weight: 600;
}

.nav a {
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav a.active {
  color: var(--text);
  border-color: var(--primary);
}

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

.logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.subtitle {
  color: var(--muted);
  margin-top: -6px;
}

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

.form {
  display: grid;
  gap: 16px;
}

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

.form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.form label.checkbox-field {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.form label.checkbox-field input[type="checkbox"] {
  width: auto;
  height: auto;
  margin: 0;
}

.form label.checkbox-field span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.form label.checkbox-field span small {
  font-size: 0.8rem;
  color: var(--muted);
}

.form .week-row {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
}


.form .week-field {
  flex: 1 1 200px;
  max-width: 240px;
}

.form .week-field input {
  width: 100%;
}

@media (max-width: 520px) {
  .form .week-row {
    flex-wrap: wrap;
  }
}

.form input,
.form textarea,
.form select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font: inherit;
}

.export-range-panel {
  margin: 20px 0 48px;
  padding: 20px 24px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(2, 6, 23, 0.65));
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.45);
}

.export-range-panel h3 {
  margin: 0 0 4px 0;
}

.export-range-panel .helper {
  margin: 0 0 18px 0;
  color: var(--muted);
}

.export-range-form {
  gap: 18px;
}

.export-range-form > label select {
  width: 100%;
}

.export-range-form .range-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: inset 0 0 0 1px rgba(2, 6, 23, 0.35);
}

.export-range-form .range-group + .range-group {
  margin-top: 4px;
}

.export-range-form .week-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.export-range-form .week-pair + .week-pair {
  margin-top: 12px;
}

.export-range-form label {
  padding-bottom: 0;
}

.export-range-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.export-range-actions .btn {
  min-width: 180px;
}

.form .full {
  grid-column: 1 / -1;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
}

.btn.ghost.danger {
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.2);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.report-list {
  display: grid;
  gap: 16px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.pagination .page-info {
  font-weight: 600;
  color: var(--muted);
}

.pagination .btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.report {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: #fff;
}

.report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.report h3 {
  margin: 0 0 6px 0;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.meta.muted {
  font-size: 0.85rem;
}

.content {
  margin: 12px 0 0 0;
  white-space: pre-wrap;
}

.school {
  margin: 12px 0 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--text);
  font-size: 0.9rem;
}

.report-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.portfolio-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.portfolio-hero h1 {
  margin: 0;
}

.portfolio-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portfolio-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portfolio-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.portfolio-head h3 {
  margin: 0 0 6px 0;
}

.portfolio-description {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.portfolio-description .label {
  margin: 0 0 4px 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.portfolio-description p {
  margin: 0;
  line-height: 1.45;
}

.portfolio-media-panel {
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.015);
}

.portfolio-media-panel.disabled {
  opacity: 0.65;
  pointer-events: none;
}

.portfolio-media-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.portfolio-media-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.portfolio-media-actions select {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 8px 14px;
  font: inherit;
}

.portfolio-media-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.portfolio-media-column .label.subtle {
  margin: 0 0 6px 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.portfolio-gallery-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px;
  min-height: 76px;
}

.portfolio-thumb {
  position: relative;
  width: 120px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-thumb .media-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  border: none;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 700;
  cursor: pointer;
}

.portfolio-thumb .media-delete:hover {
  background: rgba(15, 23, 42, 0.9);
}

.portfolio-doc-list {
  list-style: none;
  margin: 8px 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portfolio-doc-list li,
.portfolio-doc {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
}

.portfolio-doc-list p.meta,
.portfolio-doc .meta {
  margin: 4px 0 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.doc-meta strong {
  display: block;
}

.portfolio-documents-preview {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portfolio-documents-preview .label {
  margin: 0 0 8px 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.doc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn.sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.portfolio-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.calendar-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}

.calendar-form-card .form.grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.calendar-form-card .form label {
  min-width: 0;
}

.calendar-form-card input[type="datetime-local"],
.calendar-form-card select {
  width: 100%;
}

.calendar-board {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calendar-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.view-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #eef2ff;
}

.view-toggle {
  border: none;
  background: transparent;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.view-toggle.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
}

.week-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.week-nav {
  display: inline-flex;
  gap: 6px;
}

.btn.icon {
  width: 36px;
  padding: 8px 0;
  text-align: center;
  border-radius: 10px;
}

.week-label {
  font-weight: 600;
  color: var(--text);
}

.calendar-week-view {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff;
}

.calendar-week-view .week-grid {
  min-width: 900px;
}

.week-grid-head,
.week-grid-body {
  display: grid;
  grid-template-columns: 80px repeat(7, minmax(0, 1fr));
}

.week-all-day-row {
  display: grid;
  grid-template-columns: 80px repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.all-day-label {
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 12px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
  white-space: nowrap;
  word-break: keep-all;
}

.all-day-track {
  display: grid;
  grid-column: 2 / 9;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: minmax(34px, auto);
  grid-auto-flow: row dense;
  gap: 6px;
  padding: 10px;
}

.week-grid-head .hour-cell {
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.week-grid-head .hour-cell,
.week-grid-body .hour-cell {
  position: sticky;
  left: 0;
  z-index: 2;
}

.week-grid-head .hour-cell {
  z-index: 3;
}

.day-head {
  padding: 12px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.day-head .day-name {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
}

.day-head .day-date {
  font-weight: 600;
  font-size: 0.95rem;
}

.day-head.today .day-date {
  color: var(--primary);
}

.week-grid-body .hour-cell {
  background: #f3f4f6;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.hour-label {
  height: 48px;
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 6px 8px 0 0;
}

.day-column {
  border-left: 1px solid var(--border);
  background: #fff;
}

.day-column:first-of-type {
  border-left: none;
}

.day-column.is-today {
  background: rgba(37, 99, 235, 0.04);
}

.day-column-body {
  position: relative;
  background-image: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.05) 1px,
    transparent 1px
  );
  background-size: 100% 48px;
  cursor: crosshair;
}

.week-event {
  position: absolute;
  left: 6px;
  width: calc(100% - 12px);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-left: 4px solid transparent;
  border-radius: 14px;
  padding: 8px 12px;
  text-align: left;
  color: #f8fafc;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.85), rgba(14, 165, 233, 0.65));
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.week-all-day {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-left: 4px solid transparent;
  border-radius: 14px;
  padding: 8px 12px;
  text-align: left;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.85), rgba(14, 165, 233, 0.65));
  color: #f8fafc;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  height: 100%;
  transition: box-shadow 0.2s ease;
}

.week-event:focus,
.week-event:hover,
.week-all-day:focus,
.week-all-day:hover {
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.week-event-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
}

.week-event-time {
  display: block;
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.75);
}

.week-all-day strong {
  font-size: 0.85rem;
  font-weight: 600;
}

.week-all-day span {
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.75);
}

.week-event.status-planned,
.week-all-day.status-planned {
  border-left-color: var(--primary);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.85), rgba(59, 130, 246, 0.65));
}

.week-event.status-confirmed,
.week-all-day.status-confirmed {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.82), rgba(234, 88, 12, 0.75));
  color: #0f172a;
  border-left-color: #ea580c;
}

.week-event.status-done,
.week-all-day.status-done {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.78), rgba(45, 212, 191, 0.7));
  color: #052e1b;
  border-left-color: #059669;
}

.week-event.category-school,
.week-all-day.category-school {
  border-left-color: #0ea5e9;
}

.week-event.category-exam,
.week-all-day.category-exam {
  border-left-color: #f43f5e;
}

.week-event.category-meeting,
.week-all-day.category-meeting {
  border-left-color: #8b5cf6;
}

.week-event.category-vacation,
.week-all-day.category-vacation {
  border-left-color: #14b8a6;
}

.week-event.category-portfolio,
.week-all-day.category-portfolio {
  border-left-color: #2563eb;
  background: rgba(37, 99, 235, 0.2);
}

.agenda-view {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.agenda-view .filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.agenda-view select {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 8px 12px;
  font: inherit;
}

.imprint-card {
  max-width: 780px;
  margin: 0 auto;
}

.imprint-block {
  margin-top: 24px;
}

.imprint-block h2,
.imprint-block h3 {
  margin: 0 0 8px 0;
  font-size: 1rem;
}

.imprint-block p {
  margin: 0;
  line-height: 1.6;
}

.imprint-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
}

.imprint-list li {
  line-height: 1.6;
}

.imprint-note {
  margin-top: 28px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--text);
  line-height: 1.5;
}

.legal-footer {
  margin: 32px auto 0;
  padding: 18px 24px;
  max-width: 960px;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-footer a {
  color: var(--primary);
  font-weight: 600;
}

.legal-footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.event-list {
  display: grid;
  gap: 16px;
}

.event-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.event-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.event-range {
  font-weight: 600;
}

.event-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.event-notes {
  color: var(--muted);
  white-space: pre-wrap;
  margin: 0;
}

.event-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.event-empty {
  text-align: center;
  color: var(--muted);
  padding: 32px 0;
}

.badge.status-planned {
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary);
}

.badge.status-confirmed {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

.badge.status-done {
  background: rgba(22, 163, 74, 0.15);
  color: var(--success);
}

.badge.category-school {
  background: rgba(14, 165, 233, 0.15);
  color: #0369a1;
}

.badge.category-exam {
  background: rgba(244, 63, 94, 0.15);
  color: #be123c;
}

.badge.category-meeting {
  background: rgba(139, 92, 246, 0.15);
  color: #6d28d9;
}

.badge.category-vacation {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

.badge.category-general {
  background: rgba(107, 114, 128, 0.15);
  color: var(--muted);
}

.badge.category-portfolio {
  background: rgba(37, 99, 235, 0.18);
  color: #1d4ed8;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #e2e8f0;
  color: #1f2937;
}

.badge.success {
  background: rgba(22, 163, 74, 0.15);
  color: var(--success);
}

.badge.warning {
  background: rgba(234, 179, 8, 0.2);
  color: #92400e;
}

.badge.info {
  background: rgba(59, 130, 246, 0.18);
  color: var(--primary);
}

.alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.alert.error {
  background: rgba(220, 38, 38, 0.1);
  color: var(--danger);
}

.alert.success {
  background: rgba(22, 163, 74, 0.15);
  color: var(--success);
}

.helper {
  margin-top: 12px;
  color: var(--muted);
}

.helper.muted {
  font-style: italic;
}

.form-status {
  margin: 6px 0 0 0;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.empty {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111827;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.profile-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card.info ul {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 720px) {
  .form.grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .calendar-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .week-controls {
    width: 100%;
    justify-content: space-between;
  }
}
