@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

/* === Delft Color Tokens - Light Theme (Tin-White · Cobalt Blue · Oxford Blue) === */
:root,
[data-theme="light"] {
  --md-sys-color-background: #FFFFFF;
  --md-sys-color-error: #C62828;
  --md-sys-color-error-container: #FFEBEE;
  --md-sys-color-inverse-on-surface: #EBF0FF;
  --md-sys-color-inverse-primary: #8CB4FF;
  --md-sys-color-inverse-surface: #1A2B5A;
  --md-sys-color-on-background: #0D1A3E;
  --md-sys-color-on-error: #FFFFFF;
  --md-sys-color-on-error-container: #7F0000;
  --md-sys-color-on-primary: #FFFFFF;
  --md-sys-color-on-primary-container: #001566;
  --md-sys-color-on-secondary: #FFFFFF;
  --md-sys-color-on-secondary-container: #001566;
  --md-sys-color-on-surface: #0D1A3E;
  --md-sys-color-on-surface-variant: #3A4F7A;
  --md-sys-color-on-tertiary: #FFFFFF;
  --md-sys-color-on-tertiary-container: #001060;
  --md-sys-color-outline: #8896C0;
  --md-sys-color-outline-variant: #C5D3EC;
  --md-sys-color-primary: #1A56DB;
  --md-sys-color-primary-container: #DCEAFF;
  --md-sys-color-scrim: #000000;
  --md-sys-color-secondary: #3B5898;
  --md-sys-color-secondary-container: #E8EFFF;
  --md-sys-color-shadow: #000000;
  --md-sys-color-surface: #FFFFFF;
  --md-sys-color-surface-container: #E8EFFF;
  --md-sys-color-surface-container-high: #DCEAFF;
  --md-sys-color-surface-container-highest: #CDD9F8;
  --md-sys-color-surface-container-low: #F4F7FF;
  --md-sys-color-surface-container-lowest: #FFFFFF;
  --md-sys-color-surface-variant: #D5E0F8;
  --md-sys-color-tertiary: #0D1A3E;
  --md-sys-color-tertiary-container: #D0DEFF;
  --md-sys-color-on-tertiary-container: #001060;

  --md-elevation-1: 0 1px 2px rgba(12,26,62,0.08), 0 1px 3px 1px rgba(12,26,62,0.04);
  --md-elevation-2: 0 1px 2px rgba(12,26,62,0.1), 0 2px 6px 2px rgba(12,26,62,0.06);
  --md-elevation-3: 0 4px 8px 3px rgba(12,26,62,0.07), 0 1px 3px rgba(12,26,62,0.12);

  --nav-drawer-width: 280px;
}

/* === Delft Color Tokens - Dark Theme (Oxford Blue · Cobalt Blue · Tin-White) === */
[data-theme="dark"] {
  --md-sys-color-background: #0D1A3E;
  --md-sys-color-error: #F2B8B5;
  --md-sys-color-error-container: #8C1D18;
  --md-sys-color-inverse-on-surface: #1A2B5A;
  --md-sys-color-inverse-primary: #1A56DB;
  --md-sys-color-inverse-surface: #E8EFFF;
  --md-sys-color-on-background: #E8EFFF;
  --md-sys-color-on-error: #601410;
  --md-sys-color-on-error-container: #F9DEDC;
  --md-sys-color-on-primary: #001566;
  --md-sys-color-on-primary-container: #DCEAFF;
  --md-sys-color-on-secondary: #001566;
  --md-sys-color-on-secondary-container: #E8EFFF;
  --md-sys-color-on-surface: #E8EFFF;
  --md-sys-color-on-surface-variant: #98AFDB;
  --md-sys-color-on-tertiary: #001060;
  --md-sys-color-on-tertiary-container: #D0DEFF;
  --md-sys-color-outline: #4B6499;
  --md-sys-color-outline-variant: #243A68;
  --md-sys-color-primary: #5B8AFF;
  --md-sys-color-primary-container: #143080;
  --md-sys-color-scrim: #000000;
  --md-sys-color-secondary: #98AFDB;
  --md-sys-color-secondary-container: #1A3070;
  --md-sys-color-shadow: #000000;
  --md-sys-color-surface: #0D1A3E;
  --md-sys-color-surface-container: #172550;
  --md-sys-color-surface-container-high: #1E2E5E;
  --md-sys-color-surface-container-highest: #25386C;
  --md-sys-color-surface-container-low: #111F4A;
  --md-sys-color-surface-container-lowest: #070F26;
  --md-sys-color-surface-variant: #1E2E5E;
  --md-sys-color-tertiary: #A8C4FF;
  --md-sys-color-tertiary-container: #082060;
  --md-sys-color-on-tertiary-container: #D0DEFF;

  --md-elevation-1: 0 1px 2px rgba(0,0,0,0.5), 0 1px 3px 1px rgba(0,0,0,0.3);
  --md-elevation-2: 0 1px 2px rgba(0,0,0,0.5), 0 2px 6px 2px rgba(0,0,0,0.3);
  --md-elevation-3: 0 4px 8px 3px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.5);
}

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

body {
  background-color: var(--md-sys-color-background);
  color: var(--md-sys-color-on-background);
  font-family: 'Roboto', sans-serif;
  line-height: 1.5;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

a:hover {
  text-decoration: underline;
}

/* === Material Symbols === */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 24px;
  line-height: 1;
  user-select: none;
  vertical-align: middle;
}

/* === App Shell === */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* === Navigation Drawer === */
.nav-drawer {
  background-color: var(--md-sys-color-surface-container-low);
  border-right: 1px solid var(--md-sys-color-outline-variant);
  display: flex;
  flex-direction: column;
  height: 100vh;
  left: 0;
  overflow-y: auto;
  position: fixed;
  top: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
  width: var(--nav-drawer-width);
  z-index: 200;
}

.nav-drawer-header {
  align-items: center;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  display: flex;
  gap: 12px;
  height: 64px;
  min-height: 64px;
  padding: 0 20px;
}

.nav-drawer-header .material-symbols-outlined {
  color: var(--md-sys-color-primary);
  font-size: 28px;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 28;
}

.nav-drawer-title {
  color: var(--md-sys-color-on-surface);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
}

.nav-drawer-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  padding: 12px 12px 8px;
}

.nav-item {
  align-items: center;
  border-radius: 50px;
  color: var(--md-sys-color-on-surface-variant);
  display: flex;
  font-size: 14px;
  font-weight: 500;
  gap: 12px;
  letter-spacing: 0.1px;
  overflow: hidden;
  padding: 12px 16px;
  position: relative;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.nav-item::before {
  background-color: currentColor;
  border-radius: inherit;
  content: '';
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.2s;
}

.nav-item:hover {
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
}

.nav-item:hover::before { opacity: 0.08; }
.nav-item:active::before { opacity: 0.12; }

.nav-item--active {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.nav-item--active .nav-item-icon {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.nav-item--active:hover {
  color: var(--md-sys-color-on-secondary-container);
}

.nav-item-icon {
  flex-shrink: 0;
  font-size: 22px;
}

.nav-drawer-footer {
  border-top: 1px solid var(--md-sys-color-outline-variant);
  padding: 8px 12px 16px;
}

.nav-user {
  align-items: center;
  display: flex;
  gap: 12px;
  padding: 12px 16px 8px;
}

.nav-user-avatar {
  align-items: center;
  background-color: var(--md-sys-color-primary-container);
  border-radius: 50%;
  color: var(--md-sys-color-on-primary-container);
  display: flex;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 500;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.nav-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nav-user-name {
  color: var(--md-sys-color-on-surface);
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-role {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === Nav Overlay (mobile) === */
.nav-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  inset: 0;
  opacity: 0;
  position: fixed;
  transition: opacity 0.3s;
  z-index: 199;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* === Main Container === */
.main-container {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-left: var(--nav-drawer-width);
  min-height: 100vh;
  transition: margin-left 0.3s cubic-bezier(0.2, 0, 0, 1);
}

/* === Top App Bar === */
.top-app-bar {
  align-items: center;
  background-color: var(--md-sys-color-surface-container);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  display: flex;
  gap: 4px;
  height: 64px;
  padding: 0 8px 0 4px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-app-bar-title {
  color: var(--md-sys-color-on-surface);
  flex: 1;
  font-size: 20px;
  font-weight: 500;
  overflow: hidden;
  padding: 0 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-app-bar-actions {
  align-items: center;
  display: flex;
  gap: 4px;
}

/* === Icon Button === */
.icon-button {
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--md-sys-color-on-surface-variant);
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  height: 48px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: color 0.2s;
  width: 48px;
}

.icon-button::before {
  background-color: currentColor;
  border-radius: 50%;
  content: '';
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.2s;
}

.icon-button:hover { color: var(--md-sys-color-on-surface); }
.icon-button:hover::before { opacity: 0.08; }
.icon-button:active::before { opacity: 0.12; }

/* === Main Content === */
.main-content {
  flex: 1;
  padding: 28px 24px;
  width: 100%;
}

/* === Page Content === */
.page-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 1200px;
}

/* === Cards === */
.card {
  background-color: var(--md-sys-color-surface-container);
  border-radius: 8px;
  box-shadow: var(--md-elevation-1);
  padding: 16px;
  transition: box-shadow 0.2s;
}

.card:hover { box-shadow: var(--md-elevation-2); }

.card--elevated {
  background-color: var(--md-sys-color-surface-container-low);
  box-shadow: var(--md-elevation-2);
}

/* === Stats Grid === */
.stats-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.stat-card {
  align-items: center;
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  padding: 24px 16px;
  text-align: center;
}

.stat-card-icon {
  color: var(--md-sys-color-primary);
  font-size: 32px;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 32;
}

.stat-card-value {
  color: var(--md-sys-color-on-surface);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.stat-card-label {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 13px;
  font-weight: 500;
}

/* === Section === */
.section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.section-title {
  color: var(--md-sys-color-on-surface);
  font-size: 20px;
  font-weight: 500;
}

/* === Card Grid === */
.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* === Project Card === */
.project-card {
  color: var(--md-sys-color-on-surface);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.15s;
}

.project-card:hover {
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
  transform: translateY(-2px);
}

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

.project-card-icon {
  color: var(--md-sys-color-primary);
  font-size: 28px;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 28;
}

.project-card-title {
  color: var(--md-sys-color-on-surface);
  font-size: 16px;
  font-weight: 500;
}

.project-card-desc {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--md-sys-color-on-surface-variant);
  display: -webkit-box;
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
}

.project-card-footer {
  align-items: center;
  color: var(--md-sys-color-on-surface-variant);
  display: flex;
  font-size: 12px;
  gap: 6px;
  margin-top: 4px;
}

.project-card-footer .material-symbols-outlined {
  font-size: 15px;
}

.project-card-date {
  margin-left: auto;
}

/* === Badges === */
.badge {
  border-radius: 50px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 3px 10px;
  text-transform: capitalize;
}

.badge--active {
  background-color: #DCEAFF;
  color: #001566;
}

[data-theme="dark"] .badge--active {
  background-color: #143080;
  color: #A8C4FF;
}

.badge--completed {
  background-color: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface-variant);
}

.badge--planning {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

/* === Buttons === */
.btn {
  align-items: center;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  gap: 8px;
  letter-spacing: 0.1px;
  overflow: hidden;
  padding: 10px 24px;
  position: relative;
  text-decoration: none;
  transition: box-shadow 0.2s;
}

.btn .material-symbols-outlined {
  font-size: 18px;
}

.btn::before {
  content: '';
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.2s;
}

.btn:hover::before { opacity: 0.08; }
.btn:active::before { opacity: 0.12; }

.btn-filled {
  background-color: var(--md-sys-color-primary);
  box-shadow: var(--md-elevation-1);
  color: var(--md-sys-color-on-primary);
}

.btn-filled::before { background-color: var(--md-sys-color-on-primary); }
.btn-filled:hover { box-shadow: var(--md-elevation-2); color: var(--md-sys-color-on-primary); text-decoration: none; }

.btn-outlined {
  background-color: transparent;
  border: 1px solid var(--md-sys-color-outline);
  color: var(--md-sys-color-primary);
}

.btn-outlined::before { background-color: var(--md-sys-color-primary); }
.btn-outlined:hover { color: var(--md-sys-color-primary); text-decoration: none; }

.btn-text {
  background-color: transparent;
  color: var(--md-sys-color-primary);
  padding: 10px 12px;
}

.btn-text::before { background-color: var(--md-sys-color-primary); }
.btn-text:hover { color: var(--md-sys-color-primary); text-decoration: none; }

/* === Text Fields === */
.text-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.text-field-label {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 12px;
  font-weight: 500;
  padding-left: 4px;
}

.text-field-input {
  background-color: var(--md-sys-color-surface-container-highest);
  border: none;
  border-bottom: 1px solid var(--md-sys-color-outline);
  border-radius: 4px 4px 0 0;
  color: var(--md-sys-color-on-surface);
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  height: 56px;
  outline: none;
  padding: 0 16px;
  transition: border-bottom-color 0.2s;
}

.text-field-input:focus {
  border-bottom: 2px solid var(--md-sys-color-primary);
}

.text-field-input::placeholder {
  color: var(--md-sys-color-on-surface-variant);
  opacity: 0.7;
}

/* === Breadcrumb === */
.breadcrumb {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 2px;
  margin-bottom: 8px;
}

.breadcrumb-item {
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
}

.breadcrumb-item:hover {
  color: var(--md-sys-color-primary);
  text-decoration: none;
}

.breadcrumb-sep {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 16px;
  opacity: 0.5;
}

.breadcrumb-current {
  color: var(--md-sys-color-on-surface);
  font-weight: 500;
}

/* === Page Header === */
.page-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-title {
  color: var(--md-sys-color-on-surface);
  font-size: 28px;
  font-weight: 400;
}

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

.page-subtitle {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 14px;
}

/* === Actions Row === */
.actions-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

/* === Detail Card === */
.detail-card {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  padding: 24px;
}

.detail-field label {
  color: var(--md-sys-color-on-surface-variant);
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.detail-field span {
  color: var(--md-sys-color-on-surface);
  font-size: 15px;
}

/* === Session List === */
.session-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.session-item {
  align-items: flex-start;
  background-color: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: 12px;
  color: var(--md-sys-color-on-surface);
  display: flex;
  gap: 16px;
  padding: 16px;
  text-decoration: none;
  transition: background-color 0.15s, box-shadow 0.15s;
}

.session-item:hover {
  background-color: var(--md-sys-color-surface-container-low);
  box-shadow: var(--md-elevation-1);
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
}

.session-item-icon {
  align-items: center;
  background-color: var(--md-sys-color-secondary-container);
  border-radius: 50%;
  display: flex;
  flex-shrink: 0;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.session-item-icon .material-symbols-outlined {
  color: var(--md-sys-color-on-secondary-container);
  font-size: 20px;
}

.session-item-content {
  flex: 1;
  min-width: 0;
}

.session-item-title {
  color: var(--md-sys-color-on-surface);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.session-item-desc {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-item-meta {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 6px;
}

.session-item-date {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 12px;
}

.session-item-duration {
  align-items: center;
  color: var(--md-sys-color-on-surface-variant);
  display: flex;
  font-size: 12px;
  gap: 3px;
}

.session-item-duration .material-symbols-outlined {
  font-size: 14px;
}

/* === Notes Card === */
.notes-card {
  padding: 20px;
}

.notes-label {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.notes-text {
  color: var(--md-sys-color-on-surface);
  font-size: 15px;
  line-height: 1.6;
}

/* === Empty State === */
.empty-state {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  padding: 56px 24px;
  text-align: center;
}

/* === Error Message === */
.error-message {
  align-items: center;
  background-color: var(--md-sys-color-error-container);
  border-radius: 8px;
  color: var(--md-sys-color-on-error-container);
  display: flex;
  font-size: 14px;
  gap: 8px;
  padding: 12px 16px;
}

.error-message .material-symbols-outlined {
  flex-shrink: 0;
  font-size: 18px;
}

/* === Login Page === */
.login-page {
  align-items: center;
  background-color: var(--md-sys-color-background);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  position: relative;
  transition: background-color 0.2s;
}

.login-card {
  background-color: var(--md-sys-color-surface-container-low);
  border-radius: 12px;
  box-shadow: var(--md-elevation-3);
  max-width: 400px;
  padding: 40px 32px;
  width: 100%;
}

.login-header {
  margin-bottom: 32px;
  text-align: center;
}

.login-logo {
  align-items: center;
  background-color: var(--md-sys-color-primary-container);
  border-radius: 50%;
  display: flex;
  height: 56px;
  justify-content: center;
  margin: 0 auto 16px;
  width: 56px;
}

.login-logo .material-symbols-outlined {
  color: var(--md-sys-color-on-primary-container);
  font-size: 28px;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 28;
}

.login-title {
  color: var(--md-sys-color-on-surface);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 6px;
}

.login-subtitle {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 14px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

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

.login-theme-toggle {
  position: absolute;
  right: 16px;
  top: 16px;
}

/* === Landing Page === */
.landing-page {
  align-items: center;
  background-color: var(--md-sys-color-background);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  position: relative;
  transition: background-color 0.2s;
}

.landing-theme-toggle {
  position: absolute;
  right: 16px;
  top: 16px;
}

.landing-card {
  background-color: var(--md-sys-color-surface-container-low);
  border-radius: 28px;
  box-shadow: var(--md-elevation-3);
  max-width: 440px;
  padding: 48px 40px;
  text-align: center;
  width: 100%;
}

.landing-logo {
  align-items: center;
  background-color: var(--md-sys-color-primary-container);
  border-radius: 50%;
  display: flex;
  height: 72px;
  justify-content: center;
  margin: 0 auto 20px;
  width: 72px;
}

.landing-logo .material-symbols-outlined {
  color: var(--md-sys-color-on-primary-container);
  font-size: 36px;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 36;
}

.landing-title {
  color: var(--md-sys-color-on-surface);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 12px;
}

.landing-subtitle {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.landing-features {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

.landing-feature {
  align-items: center;
  background-color: var(--md-sys-color-surface-container);
  border-radius: 12px;
  color: var(--md-sys-color-on-surface-variant);
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 500;
  gap: 6px;
  padding: 12px 10px;
  width: 88px;
}

.landing-feature .material-symbols-outlined {
  color: var(--md-sys-color-primary);
  font-size: 24px;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.landing-cta {
  justify-content: center;
  width: 100%;
}

/* === Google Sign-In Button === */
.btn-google {
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  color: #3c4043;
  cursor: pointer;
  display: flex;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  gap: 12px;
  justify-content: center;
  letter-spacing: 0.25px;
  padding: 10px 24px;
  text-decoration: none;
  transition: background-color 0.15s, box-shadow 0.15s;
  width: 100%;
}

.btn-google:hover {
  background-color: #f8f9fa;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  color: #3c4043;
  text-decoration: none;
}

[data-theme="dark"] .btn-google {
  background-color: #303134;
  border-color: #5f6368;
  color: #e8eaed;
}

[data-theme="dark"] .btn-google:hover {
  background-color: #3c4043;
  color: #e8eaed;
}

/* === Login Note === */
.login-note {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 16px;
  text-align: center;
}

.login-note code {
  background-color: var(--md-sys-color-surface-container-highest);
  border-radius: 4px;
  font-size: 11px;
  padding: 1px 4px;
}

/* === Data List (Projects index) === */
.data-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.data-list-item {
  display: flex;
  overflow: hidden;
  padding: 0;
}

.data-list-item-link {
  align-items: center;
  color: var(--md-sys-color-on-surface);
  display: flex;
  flex: 1;
  gap: 16px;
  min-width: 0;
  padding: 16px;
  text-decoration: none;
  transition: background-color 0.15s;
}

.data-list-item-link:hover {
  background-color: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
}

.data-list-item-icon {
  align-items: center;
  background-color: var(--md-sys-color-primary-container);
  border-radius: 50%;
  display: flex;
  flex-shrink: 0;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.data-list-item-icon .material-symbols-outlined {
  color: var(--md-sys-color-on-primary-container);
  font-size: 20px;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.data-list-item-content {
  flex: 1;
  min-width: 0;
}

.data-list-item-title {
  color: var(--md-sys-color-on-surface);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 3px;
}

.data-list-item-desc {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-list-item-meta {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 6px;
}

.data-list-item-date {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 12px;
}

.data-list-item-actions {
  align-items: center;
  border-left: 1px solid var(--md-sys-color-outline-variant);
  display: flex;
  flex-shrink: 0;
  gap: 2px;
  padding: 8px;
}

/* === Inline Form (delete button container) === */
.inline-form {
  display: inline;
}

/* === Icon Button Danger === */
.icon-button--danger {
  color: var(--md-sys-color-error);
}

/* === Danger Button === */
.btn--danger {
  border-color: var(--md-sys-color-error);
  color: var(--md-sys-color-error);
}

.btn--danger::before {
  background-color: var(--md-sys-color-error);
}

/* === Project Form (new / edit) === */
.project-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 600px;
  padding: 28px;
}

.text-field-textarea {
  height: auto;
  padding-top: 14px;
  resize: vertical;
}

.text-field-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%233A4F7A' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  cursor: pointer;
}

[data-theme="dark"] .text-field-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%2398AFDB' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
}

.form-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 4px;
}

/* === Spondylus Logo Images === */
.lp-brand-logo {
  border-radius: 50%;
  display: block;
  height: 32px;
  object-fit: cover;
  width: 32px;
}

.nav-drawer-logo {
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  height: 32px;
  object-fit: cover;
  width: 32px;
}

.login-logo-img {
  border-radius: 50%;
  display: block;
  height: 56px;
  object-fit: cover;
  width: 56px;
}

/* === Nav User Avatar Photo === */
.nav-user-avatar--photo {
  background: none;
  border-radius: 50%;
  height: 40px;
  object-fit: cover;
  width: 40px;
}

/* === Delft Landing Page === */

.lp-root {
  background-color: var(--md-sys-color-background);
  color: var(--md-sys-color-on-background);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---- Header ---- */
.lp-header {
  align-items: center;
  background-color: var(--md-sys-color-background);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  display: flex;
  height: 60px;
  left: 0;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 100;
}

.lp-header-inner {
  align-items: center;
  display: flex;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 24px;
  width: 100%;
}

.lp-brand {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 8px;
  margin-right: 32px;
  text-decoration: none;
}

.lp-brand-icon {
  color: var(--md-sys-color-primary);
  font-size: 20px;
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 20;
}

.lp-brand-name {
  color: var(--md-sys-color-on-surface);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.lp-nav {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 2px;
}

.lp-nav-link {
  border-radius: 4px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.lp-nav-link:hover {
  background-color: var(--md-sys-color-surface-container-low);
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
}

.lp-header-actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.lp-header-signin {
  border-radius: 4px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.lp-header-signin:hover {
  background-color: var(--md-sys-color-surface-container-low);
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
}

.lp-header-cta {
  background-color: var(--md-sys-color-primary);
  border-radius: 4px;
  color: var(--md-sys-color-on-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 16px;
  text-decoration: none;
  transition: box-shadow 0.15s, opacity 0.15s;
}

.lp-header-cta:hover {
  box-shadow: var(--md-elevation-2);
  color: var(--md-sys-color-on-primary);
  opacity: 0.92;
  text-decoration: none;
}

/* ---- Hero ---- */
.lp-hero {
  overflow: hidden;
  padding: 64px 0 48px;
}

.lp-hero-inner {
  align-items: center;
  display: flex;
  gap: 48px;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 24px;
}

.lp-hero-text {
  flex: 1;
  min-width: 0;
}

.lp-verified-badge {
  align-items: center;
  background-color: var(--md-sys-color-primary-container);
  border-radius: 50px;
  color: var(--md-sys-color-primary);
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  gap: 5px;
  letter-spacing: 0.4px;
  margin-bottom: 20px;
  padding: 4px 12px 4px 8px;
  text-transform: uppercase;
}

.lp-verified-badge .material-symbols-outlined {
  font-size: 14px;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 14;
}

.lp-h1 {
  color: var(--md-sys-color-on-background);
  font-size: clamp(26px, 3.5vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.lp-h1 em {
  color: var(--md-sys-color-primary);
  font-style: italic;
}

.lp-hero-body {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 500px;
}

.lp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.lp-btn-primary {
  align-items: center;
  background-color: var(--md-sys-color-primary);
  border-radius: 4px;
  color: var(--md-sys-color-on-primary);
  display: inline-flex;
  font-size: 15px;
  font-weight: 500;
  gap: 8px;
  padding: 10px 22px;
  text-decoration: none;
  transition: box-shadow 0.15s, opacity 0.15s;
}

.lp-btn-primary:hover {
  box-shadow: var(--md-elevation-2);
  color: var(--md-sys-color-on-primary);
  opacity: 0.92;
  text-decoration: none;
}

.lp-btn-primary .material-symbols-outlined { font-size: 18px; }

.lp-btn-ghost {
  align-items: center;
  background-color: transparent;
  border: 1.5px solid var(--md-sys-color-outline);
  border-radius: 4px;
  color: var(--md-sys-color-on-surface);
  display: inline-flex;
  font-size: 15px;
  font-weight: 500;
  gap: 8px;
  padding: 10px 22px;
  text-decoration: none;
  transition: background-color 0.15s;
}

.lp-btn-ghost:hover {
  background-color: var(--md-sys-color-surface-container-low);
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
}

.lp-btn-ghost .material-symbols-outlined { font-size: 18px; }

.lp-trust-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.lp-trust-item {
  align-items: center;
  color: var(--md-sys-color-on-surface-variant);
  display: flex;
  font-size: 13px;
  gap: 5px;
}

.lp-trust-item .material-symbols-outlined {
  color: var(--md-sys-color-primary);
  font-size: 14px;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 14;
}

/* ---- Product Mockup ---- */
.lp-hero-visual {
  flex: 0 0 480px;
  max-width: 480px;
}

.lp-mockup {
  background-color: var(--md-sys-color-surface-container-lowest);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: 8px;
  box-shadow: var(--md-elevation-3);
  overflow: hidden;
}

.lp-mockup-frame {
  display: flex;
  height: 340px;
}

.lp-mock-sidebar {
  background-color: var(--md-sys-color-surface-container-low);
  border-right: 1px solid var(--md-sys-color-outline-variant);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 2px;
  padding: 10px 6px;
  width: 110px;
}

.lp-mock-nav-item {
  align-items: center;
  border-radius: 6px;
  color: var(--md-sys-color-on-surface-variant);
  cursor: default;
  display: flex;
  font-size: 11px;
  font-weight: 500;
  gap: 6px;
  padding: 7px 8px;
}

.lp-mock-nav-item .material-symbols-outlined {
  flex-shrink: 0;
  font-size: 14px;
}

.lp-mock-nav-item--active {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.lp-mock-nav-item--active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 14;
}

.lp-mock-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.lp-mock-topbar {
  align-items: center;
  background-color: var(--md-sys-color-surface-container);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
}

.lp-mock-topbar-title {
  color: var(--md-sys-color-on-surface);
  font-size: 12px;
  font-weight: 600;
}

.lp-mock-topbar-date {
  background-color: var(--md-sys-color-surface-container-high);
  border-radius: 4px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 10px;
  padding: 2px 7px;
}

.lp-mock-stats {
  background-color: var(--md-sys-color-outline-variant);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
}

.lp-mock-stat {
  background-color: var(--md-sys-color-surface);
  cursor: default;
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
}

.lp-mock-stat-label {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 8px;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.lp-mock-stat-value {
  color: var(--md-sys-color-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 2px;
}

.lp-mock-stat-sub {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 8px;
}

.lp-mock-chart {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 8px 12px 4px;
}

.lp-mock-chart-svg {
  height: 100%;
  width: 100%;
}

.lp-mock-chart-line {
  fill: none;
  stroke: var(--md-sys-color-primary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.lp-mock-chart-area {
  fill: var(--md-sys-color-primary-container);
  opacity: 0.4;
}

.lp-mock-activity {
  border-top: 1px solid var(--md-sys-color-outline-variant);
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px 12px 9px;
}

.lp-mock-activity-title {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.lp-mock-row {
  align-items: center;
  display: flex;
  gap: 6px;
}

.lp-mock-row-icon {
  color: var(--md-sys-color-primary);
  flex-shrink: 0;
  font-size: 12px;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 12;
}

.lp-mock-row-name {
  color: var(--md-sys-color-on-surface);
  flex: 1;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-mock-pill {
  border-radius: 4px;
  flex-shrink: 0;
  font-size: 8px;
  font-weight: 600;
  padding: 1px 5px;
  text-transform: capitalize;
}

.lp-mock-pill--active {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-primary);
}

.lp-mock-pill--planning {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.lp-mock-pill--done {
  background-color: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface-variant);
}

/* ---- Shared section layout ---- */
.lp-section-inner {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 24px;
}

.lp-section-eyebrow {
  color: var(--md-sys-color-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-align: center;
  text-transform: uppercase;
}

.lp-section-h2 {
  color: var(--md-sys-color-on-background);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  text-align: center;
}

.lp-section-lead {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 auto 40px;
  max-width: 600px;
  text-align: center;
}

/* ---- Features ---- */
.lp-features-section {
  background-color: var(--md-sys-color-surface-container-lowest);
  border-top: 1px solid var(--md-sys-color-outline-variant);
  padding: 64px 0;
}

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

.lp-feature-card {
  background-color: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lp-feature-card:hover {
  border-color: var(--md-sys-color-primary);
  box-shadow: var(--md-elevation-1);
}

.lp-feature-icon {
  align-items: center;
  background-color: var(--md-sys-color-primary-container);
  border-radius: 8px;
  display: flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.lp-feature-icon .material-symbols-outlined {
  color: var(--md-sys-color-primary);
  font-size: 20px;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.lp-feature-title {
  color: var(--md-sys-color-on-surface);
  font-size: 14px;
  font-weight: 600;
}

.lp-feature-body {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 13px;
  line-height: 1.6;
}

/* ---- Methodology ---- */
.lp-method-section {
  border-top: 1px solid var(--md-sys-color-outline-variant);
  padding: 64px 0;
}

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

.lp-method-card {
  background-color: var(--md-sys-color-surface-container-low);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: 8px;
  padding: 24px;
}

.lp-method-card-icon {
  align-items: center;
  background-color: var(--md-sys-color-primary-container);
  border-radius: 8px;
  display: flex;
  height: 44px;
  justify-content: center;
  margin-bottom: 14px;
  width: 44px;
}

.lp-method-card-icon .material-symbols-outlined {
  color: var(--md-sys-color-primary);
  font-size: 22px;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 22;
}

.lp-method-card-title {
  color: var(--md-sys-color-on-surface);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.lp-method-card-body {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 13px;
  line-height: 1.65;
}

/* ---- Proven ---- */
.lp-proven-section {
  background-color: var(--md-sys-color-surface-container-low);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  border-top: 1px solid var(--md-sys-color-outline-variant);
  padding: 56px 0;
}

.lp-proven-inner {
  align-items: center;
  display: flex;
  gap: 40px;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 24px;
}

.lp-proven-globe {
  color: var(--md-sys-color-primary);
  flex-shrink: 0;
  font-size: 64px;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
  opacity: 0.85;
}

.lp-proven-text { flex: 1; }

.lp-proven-h2 {
  color: var(--md-sys-color-on-background);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  margin-bottom: 12px;
}

.lp-proven-body {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 15px;
  line-height: 1.65;
}

/* ---- Final CTA ---- */
.lp-cta-section {
  border-top: 1px solid var(--md-sys-color-outline-variant);
  padding: 72px 24px;
  text-align: center;
}

.lp-cta-h2 {
  color: var(--md-sys-color-on-background);
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 700;
  margin-bottom: 14px;
}

.lp-cta-body {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 auto 32px;
  max-width: 580px;
}

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

/* ---- Footer ---- */
.lp-footer {
  background-color: var(--md-sys-color-surface-container-low);
  border-top: 1px solid var(--md-sys-color-outline-variant);
  color: var(--md-sys-color-on-surface-variant);
  font-size: 13px;
  padding: 20px 24px;
  text-align: center;
}

/* ---- Landing Page Responsive ---- */
@media (max-width: 960px) {
  .lp-hero-inner {
    flex-direction: column;
  }

  .lp-hero-visual {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .lp-hero-text { text-align: center; }
  .lp-hero-body, .lp-trust-row, .lp-cta-row { margin-left: auto; margin-right: auto; }
  .lp-cta-row, .lp-trust-row { justify-content: center; }
  .lp-nav { display: none; }
}

@media (max-width: 600px) {
  .lp-hero { padding: 40px 0 32px; }
  .lp-features-section, .lp-method-section { padding: 40px 0; }
  .lp-cta-section { padding: 48px 16px; }
  .lp-proven-inner { flex-direction: column; text-align: center; }
  .lp-header-signin { display: none; }
  .lp-mockup-frame { height: 280px; }
  .lp-mock-sidebar { width: 88px; }
}

/* === Responsive === */
@media (max-width: 900px) {
  .nav-drawer {
    transform: translateX(-100%);
  }

  .nav-drawer.open {
    transform: translateX(0);
  }

  .main-container {
    margin-left: 0;
  }

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

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

  .detail-card {
    grid-template-columns: 1fr;
  }

  .main-content {
    padding: 16px;
  }

  .page-title {
    font-size: 22px;
  }

  .session-item-meta {
    display: none;
  }

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

/* === Delft Design Application Overrides === */
:root,
[data-theme="light"] {
  --delft-tin: #ffffff;
  --delft-cobalt: #0f5bd8;
  --delft-cobalt-strong: #0646b7;
  --delft-oxford: #061b3b;
  --delft-ink-muted: #3c527a;
  --delft-line: #d6e2f7;
  --delft-line-strong: #b9caec;
  --delft-surface-soft: #f7faff;
  --delft-surface-blue: #edf4ff;

  --md-sys-color-background: var(--delft-tin);
  --md-sys-color-surface: var(--delft-tin);
  --md-sys-color-surface-container-lowest: var(--delft-tin);
  --md-sys-color-surface-container-low: var(--delft-surface-soft);
  --md-sys-color-surface-container: #f3f7ff;
  --md-sys-color-surface-container-high: var(--delft-surface-blue);
  --md-sys-color-surface-container-highest: #dfeafe;
  --md-sys-color-primary: var(--delft-cobalt);
  --md-sys-color-primary-container: #e5efff;
  --md-sys-color-on-primary-container: #063174;
  --md-sys-color-secondary-container: #edf4ff;
  --md-sys-color-on-secondary-container: #0b367d;
  --md-sys-color-on-background: var(--delft-oxford);
  --md-sys-color-on-surface: var(--delft-oxford);
  --md-sys-color-on-surface-variant: var(--delft-ink-muted);
  --md-sys-color-outline: #8fa4ca;
  --md-sys-color-outline-variant: var(--delft-line);
  --md-elevation-1: 0 1px 2px rgba(6, 27, 59, 0.06);
  --md-elevation-2: 0 8px 18px rgba(6, 27, 59, 0.08);
  --md-elevation-3: 0 18px 44px rgba(6, 27, 59, 0.12);
}

[data-theme="dark"] {
  --delft-tin: #f4f8ff;
  --delft-cobalt: #3b82ff;
  --delft-cobalt-strong: #67a0ff;
  --delft-oxford: #061326;
  --delft-ink-muted: #aac2eb;
  --delft-line: #203a66;
  --delft-line-strong: #365686;
  --delft-surface-soft: #0a1e3f;
  --delft-surface-blue: #102a55;

  --md-sys-color-background: #04152d;
  --md-sys-color-surface: #071a36;
  --md-sys-color-surface-container-lowest: #041226;
  --md-sys-color-surface-container-low: #071b39;
  --md-sys-color-surface-container: #0a2145;
  --md-sys-color-surface-container-high: #102a55;
  --md-sys-color-surface-container-highest: #183564;
  --md-sys-color-primary: var(--delft-cobalt);
  --md-sys-color-primary-container: #123c7d;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-on-primary-container: #dceaff;
  --md-sys-color-secondary-container: #102a55;
  --md-sys-color-on-secondary-container: #dceaff;
  --md-sys-color-on-background: #f4f8ff;
  --md-sys-color-on-surface: #f4f8ff;
  --md-sys-color-on-surface-variant: var(--delft-ink-muted);
  --md-sys-color-outline: #5c78a7;
  --md-sys-color-outline-variant: var(--delft-line);
  --md-elevation-1: 0 1px 2px rgba(0, 0, 0, 0.34);
  --md-elevation-2: 0 12px 24px rgba(0, 0, 0, 0.28);
  --md-elevation-3: 0 22px 54px rgba(0, 0, 0, 0.32);
}

body {
  background:
    linear-gradient(180deg, var(--md-sys-color-background), var(--md-sys-color-surface-container-low));
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: 0;
}

.card,
.project-card,
.session-item,
.data-list-item,
.login-card,
.text-field-input {
  border: 1px solid var(--md-sys-color-outline-variant);
  box-shadow: var(--md-elevation-1);
}

.card,
.project-card,
.session-item,
.data-list-item,
.login-card,
.lp-feature-card,
.lp-method-card,
.lp-mockup {
  border-radius: 8px;
}

.nav-drawer,
.top-app-bar {
  background-color: color-mix(in srgb, var(--md-sys-color-surface-container-lowest) 88%, var(--md-sys-color-primary-container));
  backdrop-filter: blur(14px);
}

.nav-item,
.btn,
.lp-header-cta,
.lp-btn-primary,
.lp-btn-ghost,
.lp-card-link,
.badge {
  border-radius: 6px;
}

.nav-item--active {
  background-color: var(--md-sys-color-primary-container);
  box-shadow: inset 3px 0 0 var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary-container);
}

.stat-card {
  align-items: flex-start;
  text-align: left;
}

.stat-card-icon {
  background-color: var(--md-sys-color-primary-container);
  border-radius: 8px;
  color: var(--md-sys-color-primary);
  padding: 8px;
}

.stat-card-value,
.page-title,
.section-title,
.top-app-bar-title {
  color: var(--md-sys-color-on-surface);
  font-weight: 700;
  letter-spacing: 0;
}

.btn-filled,
.lp-header-cta,
.lp-btn-primary {
  background: linear-gradient(180deg, var(--md-sys-color-primary), var(--delft-cobalt-strong));
  border: 1px solid color-mix(in srgb, var(--md-sys-color-primary) 85%, #ffffff);
}

.btn-outlined,
.lp-btn-ghost,
.text-field-input {
  background-color: color-mix(in srgb, var(--md-sys-color-surface) 82%, var(--md-sys-color-primary-container));
}

.badge--active,
.badge--planning,
.badge--completed {
  border: 1px solid var(--md-sys-color-outline-variant);
}

/* Landing page: Delft trust homepage */
.lp-root {
  background:
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--md-sys-color-primary-container) 58%, transparent) 0, transparent 24rem),
    linear-gradient(180deg, var(--md-sys-color-background), var(--md-sys-color-surface-container-low));
}

[data-theme="dark"] .lp-root {
  background:
    radial-gradient(circle at 70% 8%, rgba(59, 130, 255, 0.16) 0, transparent 28rem),
    linear-gradient(180deg, #031126 0%, #061a38 46%, #04152d 100%);
}

.lp-header {
  background-color: color-mix(in srgb, var(--md-sys-color-background) 88%, transparent);
  backdrop-filter: blur(16px);
  height: 72px;
}

.lp-header-inner,
.lp-hero-inner,
.lp-section-inner,
.lp-proof-inner {
  max-width: 1280px;
}

.lp-brand {
  background-color: var(--md-sys-color-primary-container);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: 8px;
  height: 42px;
  justify-content: center;
  margin-right: 56px;
  width: 42px;
}

.lp-brand-icon {
  color: var(--md-sys-color-primary);
  font-size: 28px;
}

.lp-brand-name {
  display: none;
}

.lp-nav {
  gap: 24px;
}

.lp-nav-link {
  border-radius: 0;
  color: var(--md-sys-color-on-surface);
  font-size: 14px;
  padding: 26px 0 23px;
  position: relative;
}

.lp-nav-link::after {
  background-color: var(--md-sys-color-primary);
  bottom: 0;
  content: '';
  height: 3px;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
}

.lp-nav-link--active,
.lp-nav-link:hover {
  background-color: transparent;
  color: var(--md-sys-color-primary);
}

.lp-nav-link--active::after,
.lp-nav-link:hover::after {
  opacity: 1;
}

.lp-theme-toggle {
  border: 1px solid var(--md-sys-color-outline-variant);
  height: 42px;
  width: 42px;
}

.lp-header-signin,
.lp-header-cta {
  font-size: 14px;
  padding: 11px 18px;
}

.lp-header-signin {
  color: var(--md-sys-color-on-surface);
}

.lp-header-cta {
  box-shadow: var(--md-elevation-1);
  color: var(--md-sys-color-on-primary);
  min-width: 118px;
  text-align: center;
}

.lp-hero {
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  min-height: 610px;
  padding: 58px 0 34px;
  position: relative;
}

.lp-hero::before {
  background:
    linear-gradient(var(--md-sys-color-outline-variant), var(--md-sys-color-outline-variant)) 0 70% / 100% 1px no-repeat,
    repeating-radial-gradient(ellipse at 16% 58%, transparent 0 16px, color-mix(in srgb, var(--md-sys-color-primary) 22%, transparent) 17px 18px, transparent 19px 30px);
  content: '';
  inset: 0;
  opacity: 0.42;
  pointer-events: none;
  position: absolute;
}

.lp-hero-inner {
  gap: 58px;
  position: relative;
  z-index: 1;
}

.lp-ornament {
  border: 1px solid color-mix(in srgb, var(--md-sys-color-primary) 55%, transparent);
  border-left: 0;
  border-radius: 0 100px 100px 0;
  height: 170px;
  opacity: 0.38;
  position: absolute;
  top: 185px;
  width: 76px;
}

.lp-ornament::before,
.lp-ornament::after {
  border: 1px solid color-mix(in srgb, var(--md-sys-color-primary) 55%, transparent);
  border-left: 0;
  border-radius: inherit;
  content: '';
  inset: 18px 14px 18px 0;
  position: absolute;
}

.lp-ornament::after {
  inset: 42px 28px 42px 0;
}

.lp-ornament--left {
  left: 0;
}

.lp-ornament--right {
  right: 0;
  transform: scaleX(-1);
}

.lp-hero-text {
  max-width: 520px;
}

.lp-verified-badge {
  background-color: var(--md-sys-color-primary-container);
  border: 1px solid var(--md-sys-color-outline-variant);
  color: var(--md-sys-color-primary);
  font-size: 13px;
  letter-spacing: 0;
  margin-bottom: 24px;
  padding: 8px 14px 8px 10px;
  text-transform: none;
}

.lp-h1 {
  color: var(--md-sys-color-on-background);
  font-size: clamp(42px, 4.3vw, 64px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.12;
  margin-bottom: 20px;
}

.lp-h1 em {
  color: var(--md-sys-color-primary);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
}

.lp-hero-body {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 520px;
}

.lp-btn-primary,
.lp-btn-ghost {
  min-height: 48px;
  padding: 12px 24px;
}

.lp-trust-row {
  gap: 28px;
  margin-top: 22px;
}

.lp-trust-item {
  color: var(--md-sys-color-on-surface);
  font-size: 13px;
  gap: 8px;
}

.lp-trust-item .material-symbols-outlined {
  color: var(--md-sys-color-primary);
  font-size: 21px;
}

.lp-hero-visual {
  flex: 1 1 650px;
  max-width: 720px;
}

.lp-mockup {
  background-color: color-mix(in srgb, var(--md-sys-color-surface) 84%, transparent);
  border: 1px solid var(--md-sys-color-outline-variant);
  box-shadow: var(--md-elevation-3);
}

.lp-mockup-frame {
  height: 370px;
}

.lp-mock-sidebar {
  background-color: color-mix(in srgb, var(--md-sys-color-surface-container-low) 80%, transparent);
  gap: 10px;
  padding: 30px 14px;
  width: 125px;
}

.lp-mock-nav-item {
  border-radius: 6px;
  font-size: 12px;
  padding: 9px 10px;
}

.lp-mock-nav-item--active {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-primary);
}

.lp-mock-body {
  padding: 22px;
}

.lp-mock-topbar {
  background-color: transparent;
  border-bottom: 0;
  padding: 0 0 16px;
}

.lp-mock-topbar-title {
  font-size: 18px;
}

.lp-mock-topbar-date {
  align-items: center;
  background-color: transparent;
  border: 1px solid var(--md-sys-color-outline-variant);
  display: inline-flex;
  gap: 7px;
  font-size: 12px;
  padding: 8px 12px;
}

.lp-mock-topbar-date .material-symbols-outlined {
  color: var(--md-sys-color-primary);
  font-size: 16px;
}

.lp-mock-stats {
  background: transparent;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.lp-mock-stat,
.lp-mock-chart,
.lp-mock-activity {
  background-color: color-mix(in srgb, var(--md-sys-color-surface) 84%, transparent);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: 8px;
}

.lp-mock-stat {
  padding: 16px;
}

.lp-mock-stat-label {
  color: var(--md-sys-color-on-surface);
  font-size: 12px;
  letter-spacing: 0;
  margin-bottom: 12px;
  text-transform: none;
}

.lp-mock-stat-value {
  color: var(--md-sys-color-on-surface);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 8px;
}

.lp-mock-stat-sub {
  font-size: 11px;
}

.lp-trend-up {
  color: #087a4a;
}

[data-theme="dark"] .lp-trend-up {
  color: #80d996;
}

.lp-mock-panel-row {
  display: grid;
  flex: 1;
  gap: 16px;
  grid-template-columns: minmax(0, 1.45fr) minmax(190px, 0.85fr);
  min-height: 0;
}

.lp-mock-panel-title {
  color: var(--md-sys-color-on-surface);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}

.lp-mock-chart {
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.lp-mock-chart-svg {
  flex: 1;
  min-height: 0;
}

.lp-mock-chart-svg line {
  stroke: var(--md-sys-color-outline-variant);
  stroke-width: 1;
}

.lp-mock-chart-line {
  stroke-width: 3;
}

.lp-mock-chart-area {
  fill: var(--md-sys-color-primary-container);
  opacity: 0.78;
}

.lp-mock-activity {
  border-top: 1px solid var(--md-sys-color-outline-variant);
  gap: 12px;
  padding: 16px;
}

.lp-mock-row {
  gap: 10px;
}

.lp-mock-row-icon {
  background-color: var(--md-sys-color-primary-container);
  border-radius: 50%;
  color: var(--md-sys-color-primary);
  font-size: 16px;
  padding: 4px;
}

.lp-mock-row-name {
  color: var(--md-sys-color-on-surface);
  font-size: 12px;
}

.lp-mock-row-time {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 11px;
}

.lp-proof-strip {
  background-color: color-mix(in srgb, var(--md-sys-color-surface-container-low) 75%, transparent);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.lp-proof-inner {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  padding: 22px 24px;
}

.lp-proof-item {
  align-items: center;
  border-right: 1px solid var(--md-sys-color-outline-variant);
  display: flex;
  gap: 16px;
  justify-content: center;
  min-width: 0;
}

.lp-proof-item:last-child {
  border-right: 0;
}

.lp-proof-item > .material-symbols-outlined {
  color: var(--md-sys-color-primary);
  font-size: 34px;
}

.lp-proof-item strong,
.lp-proof-item span {
  display: block;
}

.lp-proof-item strong {
  color: var(--md-sys-color-on-surface);
  font-size: 14px;
  font-weight: 500;
}

.lp-proof-item div span {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 13px;
}

.lp-features-section {
  background-color: var(--md-sys-color-background);
  padding: 34px 0 36px;
}

.lp-feature-grid {
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}

.lp-feature-card {
  background-color: color-mix(in srgb, var(--md-sys-color-surface) 90%, var(--md-sys-color-primary-container));
  min-height: 132px;
  padding: 20px;
}

.lp-feature-icon,
.lp-method-card-icon {
  background: linear-gradient(180deg, var(--md-sys-color-primary-container), color-mix(in srgb, var(--md-sys-color-surface-container-high) 70%, transparent));
}

.lp-feature-title {
  font-size: 15px;
}

.lp-card-link {
  align-items: center;
  color: var(--md-sys-color-primary);
  display: inline-flex;
  font-size: 13px;
  gap: 6px;
  margin-top: auto;
}

.lp-card-link .material-symbols-outlined {
  font-size: 16px;
}

.lp-method-section {
  background-color: color-mix(in srgb, var(--md-sys-color-surface-container-low) 70%, transparent);
  padding: 58px 0;
}

.lp-method-layout {
  align-items: start;
  display: grid;
  gap: 44px;
  grid-template-columns: 0.65fr 1fr;
}

.lp-section-eyebrow,
.lp-section-h2,
.lp-section-lead {
  text-align: left;
}

.lp-section-eyebrow {
  color: var(--md-sys-color-primary);
  letter-spacing: 0;
  text-transform: none;
}

.lp-section-h2 {
  font-size: clamp(32px, 3vw, 44px);
  letter-spacing: 0;
}

.lp-section-lead {
  margin-left: 0;
}

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

.lp-method-card {
  background-color: var(--md-sys-color-surface);
}

.lp-cta-section {
  background-color: var(--md-sys-color-background);
}

.lp-cta-h2 {
  letter-spacing: 0;
}

@media (max-width: 1120px) {
  .lp-hero-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .lp-hero-text,
  .lp-hero-body {
    max-width: 720px;
  }

  .lp-hero-visual {
    flex: none;
    max-width: 100%;
  }

  .lp-proof-inner,
  .lp-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-proof-item:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  .lp-header {
    height: auto;
  }

  .lp-header-inner {
    gap: 12px;
    padding: 12px 16px;
  }

  .lp-brand {
    margin-right: auto;
  }

  .lp-nav,
  .lp-header-signin {
    display: none;
  }

  .lp-header-cta {
    min-width: 0;
    padding: 10px 12px;
  }

  .lp-hero {
    min-height: 0;
    padding: 42px 0 28px;
  }

  .lp-hero-inner {
    gap: 30px;
    padding: 0 16px;
  }

  .lp-h1 {
    font-size: 40px;
  }

  .lp-hero-text {
    text-align: left;
  }

  .lp-hero-body,
  .lp-trust-row,
  .lp-cta-row {
    margin-left: 0;
    margin-right: 0;
  }

  .lp-cta-row,
  .lp-trust-row {
    justify-content: flex-start;
  }

  .lp-mockup-frame {
    height: auto;
    min-height: 520px;
  }

  .lp-mock-sidebar {
    display: none;
  }

  .lp-mock-body {
    padding: 16px;
  }

  .lp-mock-stats,
  .lp-mock-panel-row,
  .lp-method-layout,
  .lp-method-grid,
  .lp-proof-inner,
  .lp-feature-grid {
    grid-template-columns: 1fr;
  }

  .lp-proof-item {
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    border-right: 0;
    justify-content: flex-start;
    padding: 14px 0;
  }

  .lp-proof-item:last-child {
    border-bottom: 0;
  }

  .lp-section-inner,
  .lp-proof-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .lp-ornament {
    display: none;
  }
}

.nav-drawer-title,
.lp-brand-name,
.btn-google {
  letter-spacing: 0;
}

.login-page {
  background:
    radial-gradient(circle at 18% 14%, color-mix(in srgb, var(--md-sys-color-primary-container) 68%, transparent) 0, transparent 22rem),
    linear-gradient(180deg, var(--md-sys-color-background), var(--md-sys-color-surface-container-low));
}

.login-card,
.landing-card,
.landing-feature,
.login-logo,
.landing-logo {
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: 8px;
}

.login-logo,
.landing-logo {
  background: linear-gradient(180deg, var(--md-sys-color-primary-container), var(--md-sys-color-surface-container-high));
}

.login-title,
.landing-title {
  color: var(--md-sys-color-on-surface);
  font-weight: 700;
  letter-spacing: 0;
}

.btn-google {
  background-color: var(--md-sys-color-surface);
  border-color: var(--md-sys-color-outline-variant);
  color: var(--md-sys-color-on-surface);
}
