:root {
  color-scheme: dark;

  --bg: #070d19;
  --bg-soft: #0d1728;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: #f6f9ff;
  --muted: #a6b4c6;
  --primary: #5ed8ff;
  --success: #42e88f;
  --warning: #ffd166;
  --danger: #ff5c7a;

  --status-away: #8d99a8;
  --surface-strong: rgba(255, 255, 255, 0.12);
  --surface-soft: rgba(255, 255, 255, 0.055);
  --shadow-sm: 0 14px 36px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 24px 70px rgba(0, 0, 0, 0.38);
  --shadow-glow: 0 0 34px rgba(94, 216, 255, 0.16);
  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --radius: var(--radius-md);
  --shadow: var(--shadow-sm);
  --blur: 24px;
  --transition: 0.28s ease;
}

[data-theme="light"] {
  color-scheme: light;

  --bg: #edf5fb;
  --bg-soft: #dceaf4;
  --card: rgba(255, 255, 255, 0.68);
  --card-border: rgba(20, 44, 68, 0.13);
  --text: #102033;
  --muted: #58687a;
  --primary: #007fb0;
  --success: #138a4e;
  --warning: #9a6800;
  --danger: #c62846;
  --status-away: #7b8490;
  --surface-strong: rgba(255, 255, 255, 0.82);
  --surface-soft: rgba(255, 255, 255, 0.52);
  --shadow-sm: 0 14px 36px rgba(19, 43, 64, 0.12);
  --shadow-md: 0 24px 70px rgba(19, 43, 64, 0.18);
  --shadow-glow: 0 0 34px rgba(0, 127, 176, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(94, 216, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 86% 8%, rgba(66, 232, 143, 0.09), transparent 32rem),
    radial-gradient(circle at 58% 96%, rgba(255, 209, 102, 0.06), transparent 28rem),
    linear-gradient(135deg, var(--bg) 0%, #0b1627 52%, #111827 100%);
  background-attachment: fixed;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  line-height: 1.5;
}

body.theme-light {
  background:
    radial-gradient(circle at 12% 10%, rgba(0, 127, 176, 0.13), transparent 34rem),
    radial-gradient(circle at 86% 8%, rgba(19, 138, 78, 0.08), transparent 32rem),
    linear-gradient(135deg, var(--bg) 0%, #f5fbff 58%, #e5eef7 100%);
}

body.glass-subtle {
  --blur: 14px;
  --card: rgba(255, 255, 255, 0.055);
  --card-border: rgba(255, 255, 255, 0.1);
}

body.glass-strong {
  --blur: 34px;
  --card: rgba(255, 255, 255, 0.12);
  --card-border: rgba(255, 255, 255, 0.18);
}

[data-theme="light"] body.glass-subtle {
  --card: rgba(255, 255, 255, 0.52);
  --card-border: rgba(20, 44, 68, 0.1);
}

[data-theme="light"] body.glass-strong {
  --card: rgba(255, 255, 255, 0.78);
  --card-border: rgba(20, 44, 68, 0.18);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 72%, white);
  outline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.12;
}

p,
.muted,
small {
  color: var(--muted);
}

.zeitpilot-app {
  overflow-x: hidden;
}

.app-shell,
.dashboard-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(270px, 310px) minmax(0, 1fr);
  gap: 24px;
  min-height: 100vh;
  padding: 24px;
}

.main,
.dashboard-main,
main {
  min-width: 0;
}

.glass-panel,
.glass-card,
.card,
.sidebar,
.topbar,
.modal,
.table-wrap {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055)),
    var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

.sidebar {
  position: sticky;
  top: 24px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 48px);
  padding: 20px;
  overflow: hidden;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(2, 8, 18, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

body.sidebar-open .sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}

.app-sidebar {
  border-radius: var(--radius-xl);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055) 45%, rgba(94, 216, 255, 0.06)),
    var(--card);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 4px 4px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.sidebar-brand strong {
  display: block;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 820;
}

.sidebar-brand small {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 1.05rem;
  font-weight: 780;
  letter-spacing: 0;
}

.sidebar-brand {
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  color: #03111a;
  background: linear-gradient(135deg, var(--primary), #a9efff);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(94, 216, 255, 0.24);
  font-size: 0.92rem;
  font-weight: 900;
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
  padding: 7px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(94, 216, 255, 0.14);
}

.nav,
.sidebar-nav {
  display: grid;
  gap: 7px;
}

.sidebar-nav {
  flex: 1;
  align-content: start;
  overflow: auto;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.nav a,
.nav button,
.sidebar-nav a,
.sidebar-nav button,
.sidebar-link,
.menu-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 52px;
  padding: 10px 13px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 700;
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: currentColor;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 13px;
  font-size: 0.8rem;
  font-weight: 850;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.nav-icon svg {
  display: block;
  width: 19px;
  height: 19px;
  color: currentColor;
}

.nav-icon svg * {
  vector-effect: non-scaling-stroke;
}

.nav-icon-fallback {
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: currentColor;
  font-size: 0.76rem;
  font-weight: 900;
}

.nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav a:hover,
.nav button:hover,
.sidebar-nav a:hover,
.sidebar-nav button:hover,
.sidebar-link:hover,
.menu-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.082);
  border-color: rgba(255, 255, 255, 0.13);
  transform: translateX(4px);
}

.sidebar-nav a:hover .nav-icon,
.sidebar-nav button:hover .nav-icon,
.sidebar-link:hover .nav-icon {
  color: var(--primary);
  background: rgba(94, 216, 255, 0.12);
  border-color: rgba(94, 216, 255, 0.2);
}

.nav a.active,
.nav button.active,
.sidebar-nav a.active,
.sidebar-nav button.active,
.sidebar-link.active,
.menu-item.active,
[aria-current="page"] {
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(94, 216, 255, 0.26), rgba(255, 255, 255, 0.11)),
    rgba(255, 255, 255, 0.09);
  border-color: rgba(94, 216, 255, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 16px 34px rgba(0, 0, 0, 0.22),
    0 0 26px rgba(94, 216, 255, 0.1);
}

.sidebar-nav a.active .nav-icon {
  color: #03111a;
  background: linear-gradient(135deg, var(--primary), #a9efff);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 10px 22px rgba(94, 216, 255, 0.22);
}

.sidebar-footer {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 16px 2px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.sidebar-footer .status {
  justify-content: center;
}

.sidebar-link.sidebar-logout {
  color: #ffd7df;
}

.sidebar-link.sidebar-logout .nav-icon {
  background: rgba(255, 92, 122, 0.11);
  border-color: rgba(255, 92, 122, 0.18);
}

.sidebar-link[aria-disabled="true"] {
  cursor: default;
  opacity: 0.76;
}

.topbar {
  position: sticky;
  top: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  margin-bottom: 24px;
  padding: 16px 18px;
}

.app-topbar {
  border-radius: var(--radius-xl);
}

.topbar-title,
.topbar-actions,
.user-chip {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-title h1 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-chip {
  min-height: 44px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--card-border);
  border-radius: 999px;
}

.notification-bell {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.notification-bell:hover {
  transform: translateY(-1px);
  border-color: rgba(94, 216, 255, 0.32);
  background: rgba(255, 255, 255, 0.11);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  color: #fff;
  background: var(--danger);
  border: 2px solid var(--bg-soft);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.user-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(94, 216, 255, 0.28);
  background: rgba(255, 255, 255, 0.11);
}

.user-chip strong,
.user-chip small {
  display: block;
  line-height: 1.15;
}

.user-chip strong {
  color: var(--text);
  font-size: 0.9rem;
}

.user-chip small {
  margin-top: 3px;
  font-size: 0.75rem;
}

.icon-btn {
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.mobile-menu-toggle {
  display: none;
}

.btn,
button,
input[type="submit"],
input[type="button"] {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background-color var(--transition),
    border-color var(--transition);
}

.btn-secondary,
.btn.secondary {
  background: rgba(255, 255, 255, 0.075);
}

.btn-warning,
button.warning {
  color: #221603;
  background: linear-gradient(135deg, var(--warning), #ffe6a3);
  border-color: rgba(255, 255, 255, 0.22);
  font-weight: 800;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  transform: translateY(-1px);
  border-color: rgba(94, 216, 255, 0.35);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.btn-primary,
.btn.primary,
button.primary {
  color: #03111a;
  background: linear-gradient(135deg, var(--primary), #9be8ff);
  border-color: rgba(255, 255, 255, 0.22);
  font-weight: 800;
}

.btn-danger,
button.danger {
  color: #ffd7df;
  background: rgba(255, 92, 122, 0.16);
  border-color: rgba(255, 92, 122, 0.32);
}

.btn.danger {
  color: #ffd7df;
  background: rgba(255, 92, 122, 0.16);
  border-color: rgba(255, 92, 122, 0.32);
}

.btn-success {
  color: #052114;
  background: linear-gradient(135deg, var(--success), #a9ffd0);
  border-color: rgba(255, 255, 255, 0.22);
  font-weight: 800;
}

.btn-small {
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.84rem;
}

.button-spinner {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: button-spin 0.75s linear infinite;
}

.is-loading {
  pointer-events: none;
}

.ghost,
.theme-toggle {
  background: rgba(255, 255, 255, 0.055);
}

button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

button:disabled:hover,
input[type="submit"]:disabled:hover,
input[type="button"]:disabled:hover {
  transform: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.status,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  font-size: 0.84rem;
  white-space: nowrap;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--status-away);
  box-shadow: 0 0 0 4px rgba(141, 153, 168, 0.14);
}

.status-working .status-dot,
.status-active .status-dot,
.status-dot.working,
.status-dot.active {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(66, 232, 143, 0.14), 0 0 18px rgba(66, 232, 143, 0.55);
  animation: pulse-glow 1.9s ease-in-out infinite;
}

.status-pause .status-dot,
.status-break .status-dot,
.status-dot.pause,
.status-dot.break {
  background: var(--warning);
  box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.14);
}

.status-away .status-dot,
.status-absent .status-dot,
.status-offline .status-dot,
.status-dot.away,
.status-dot.absent,
.status-dot.offline {
  background: var(--status-away);
}

.status-error .status-dot,
.status-missing .status-dot,
.status-danger .status-dot,
.status-dot.error,
.status-dot.missing,
.status-dot.danger {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 92, 122, 0.14);
}

.page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 4px 2px 2px;
}

.dashboard-hero {
  min-height: 150px;
}

.page-hero h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.page-hero p {
  max-width: 760px;
  margin-bottom: 0;
}

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

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

.dashboard-grid,
.cards-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-grid > *,
.cards-grid > * {
  grid-column: span 4;
}

.span-2 {
  grid-column: span 2;
}

.span-3 {
  grid-column: span 3;
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-6 {
  grid-column: span 6;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

.glass-card,
.card {
  position: relative;
  min-height: 0;
  padding: 22px;
  overflow: hidden;
  animation: card-fade-in 0.48s ease both;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background-color var(--transition);
}

.glass-card::before,
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 42%);
  opacity: 0.42;
}

.glass-card > *,
.card > * {
  position: relative;
  z-index: 1;
}

.glass-card:hover,
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.dashboard-card {
  border-radius: var(--radius-xl);
}

.dashboard-card-primary {
  background:
    linear-gradient(145deg, rgba(94, 216, 255, 0.18), rgba(255, 255, 255, 0.06)),
    var(--card);
}

.compact-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.card-head h3 {
  margin-bottom: 0;
}

.metric {
  margin-bottom: 8px;
  color: var(--text);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 880;
  line-height: 1;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat-item,
.stat-grid > div {
  min-height: 92px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
}

.stat-item strong,
.stat-grid > div strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 880;
  line-height: 1.05;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.target-actual-grid.compact .stat-item strong {
  font-size: clamp(1.15rem, 1.55vw, 1.55rem);
  letter-spacing: 0;
}

.stat-item span,
.stat-grid > div span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.clean-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.clean-list li {
  padding: 10px 0 10px 14px;
  border-left: 2px solid rgba(94, 216, 255, 0.38);
}

.mini-stack {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.mini-stack span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}

.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.progress-row strong {
  color: var(--text);
}

.progress-bar {
  height: 12px;
  margin-top: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  border-radius: 999px;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--success));
  border-radius: inherit;
}

.progress-62 span {
  width: 62%;
}

.compact-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.compact-list li:last-child {
  border-bottom: 0;
}

.list-main {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.list-main strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 760;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-main small {
  overflow: hidden;
  font-size: 0.8rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-list li {
  align-items: flex-start;
}

.activity-list time {
  flex: 0 0 auto;
  min-width: 44px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 820;
}

.activity-list span {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--text);
  font-size: 0.9rem;
}

.activity-list small {
  font-size: 0.78rem;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  object-fit: cover;
}

.avatar-topbar {
  width: 32px;
  height: 32px;
  font-size: 0.68rem;
}

.avatar-large {
  width: 108px;
  height: 108px;
  border-radius: 30px;
  font-size: 1.25rem;
}

.initials-avatar {
  color: #03111a;
  background: linear-gradient(135deg, var(--primary), #a9efff);
  font-size: 0.78rem;
  font-weight: 880;
  box-shadow: 0 10px 20px rgba(94, 216, 255, 0.16);
}

.employee-list .status-dot,
.project-list .status-dot {
  margin-left: auto;
}

.time-pill,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 9px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 760;
  white-space: nowrap;
}

.badge {
  color: var(--primary);
  border-color: rgba(94, 216, 255, 0.2);
}

.badge-success {
  color: var(--success);
  border-color: rgba(66, 232, 143, 0.24);
  background: rgba(66, 232, 143, 0.1);
}

.badge.status-working,
.badge.status-pause,
.badge.status-danger,
.badge.status-offline {
  background: rgba(255, 255, 255, 0.075);
}

.badge.status-working {
  color: var(--success);
  border-color: rgba(66, 232, 143, 0.28);
}

.badge.status-pause {
  color: var(--warning);
  border-color: rgba(255, 209, 102, 0.3);
}

.badge.status-danger {
  color: #ffd7df;
  border-color: rgba(255, 92, 122, 0.3);
}

.badge-warning {
  color: var(--warning);
  border-color: rgba(255, 209, 102, 0.3);
  background: rgba(255, 209, 102, 0.1);
}

.badge-open {
  color: var(--warning);
  border-color: rgba(255, 209, 102, 0.3);
  background: rgba(255, 209, 102, 0.1);
}

.badge-approved {
  color: var(--success);
  border-color: rgba(66, 232, 143, 0.28);
  background: rgba(66, 232, 143, 0.1);
}

.badge-rejected {
  color: #ffd7df;
  border-color: rgba(255, 92, 122, 0.3);
  background: rgba(255, 92, 122, 0.12);
}

.absence-type-badge,
.absence-status-open,
.absence-status-approved,
.absence-status-rejected {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 780;
  white-space: nowrap;
}

.absence-type-badge {
  color: var(--primary);
  background: rgba(94, 216, 255, 0.1);
  border-color: rgba(94, 216, 255, 0.24);
}

.absence-status-open {
  color: var(--warning);
  background: rgba(255, 209, 102, 0.1);
  border-color: rgba(255, 209, 102, 0.3);
}

.absence-status-approved {
  color: var(--success);
  background: rgba(66, 232, 143, 0.1);
  border-color: rgba(66, 232, 143, 0.28);
}

.absence-status-rejected {
  color: #ffd7df;
  background: rgba(255, 92, 122, 0.12);
  border-color: rgba(255, 92, 122, 0.3);
}

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

.toolbar-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  margin-bottom: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px;
}

.inner-table {
  overflow-x: auto;
  border-radius: 18px;
  box-shadow: none;
}

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

.actions-cell form {
  margin: 0;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 112px;
  padding: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  text-align: center;
}

.empty-state-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--primary);
  background: rgba(94, 216, 255, 0.1);
  border: 1px solid rgba(94, 216, 255, 0.2);
  border-radius: 16px;
}

.empty-state-title {
  color: var(--text);
  font-weight: 820;
}

.empty-state-text {
  max-width: 48ch;
  margin: 0;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.calendar-weekdays span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.calendar-day {
  position: relative;
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 146px;
  padding: 14px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045)),
    var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background-color var(--transition);
}

.calendar-day:hover {
  transform: translateY(-3px);
  border-color: rgba(94, 216, 255, 0.26);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.calendar-day-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 860;
}

.calendar-day .status-dot {
  position: absolute;
  top: 18px;
  right: 18px;
}

.calendar-day-meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.calendar-day-today {
  border-color: rgba(94, 216, 255, 0.44);
  box-shadow: var(--shadow-sm), 0 0 30px rgba(94, 216, 255, 0.15);
}

.calendar-day-weekend {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.055);
}

.calendar-day-empty {
  opacity: 0.78;
}

.calendar-day-working {
  border-color: rgba(66, 232, 143, 0.2);
}

.calendar-day-warning {
  border-color: rgba(255, 209, 102, 0.34);
}

.calendar-day-danger {
  border-color: rgba(255, 92, 122, 0.38);
}

.calendar-day-absence {
  background:
    linear-gradient(145deg, rgba(94, 216, 255, 0.14), rgba(255, 255, 255, 0.045)),
    var(--card);
}

.calendar-day-outside {
  min-height: 146px;
  opacity: 0.25;
  pointer-events: none;
}

.status-dot.warning {
  background: var(--warning);
  box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.14);
}

.status-dot.empty {
  background: var(--status-away);
}

.day-detail-list {
  display: grid;
  gap: 14px;
}

.time-entry-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(360px, 1.4fr);
  gap: 18px;
}

.time-entry-main h3 {
  margin: 12px 0 6px;
}

.time-entry-main p,
.time-entry-note {
  margin-bottom: 0;
}

.time-entry-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.time-entry-facts div {
  padding: 12px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 16px;
}

.time-entry-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.time-entry-facts dd {
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 800;
}

.time-entry-note {
  grid-column: 1 / -1;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.correction-compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.approval-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.approval-actions form {
  display: grid;
  gap: 12px;
  margin: 0;
}

.absence-list {
  margin-top: 8px;
}

.request-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  outline: none;
  padding: 11px 13px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input[type="checkbox"],
input[type="radio"],
input[type="color"] {
  width: auto;
  min-height: auto;
}

input[type="color"] {
  width: 54px;
  height: 44px;
  padding: 5px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(94, 216, 255, 0.54);
  box-shadow: 0 0 0 4px rgba(94, 216, 255, 0.13);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-row,
.form-group {
  display: grid;
  gap: 7px;
}

.form-help,
.form-error,
.required {
  font-size: 0.84rem;
}

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

.form-error,
.required {
  color: var(--danger);
}

.input-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-wrap {
  width: min(100%, 760px);
}

.auth-card {
  padding: 32px;
}

.auth-card h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.install-brand {
  margin-bottom: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.stack-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

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

.alert {
  margin: 0 0 18px;
  padding: 14px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  border-radius: 16px;
}

.alert p {
  margin-bottom: 0;
}

.alert-success {
  background: rgba(66, 232, 143, 0.12);
  border-color: rgba(66, 232, 143, 0.28);
}

.alert-danger {
  background: rgba(255, 92, 122, 0.13);
  border-color: rgba(255, 92, 122, 0.32);
}

.detail-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

.detail-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 720;
}

.time-actions {
  display: grid;
  gap: 18px;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
  text-transform: uppercase;
}

tr {
  transition: background-color var(--transition);
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.045);
}

.analysis-filter-card {
  margin-bottom: 18px;
}

.analysis-filter-card .filter-bar {
  grid-template-columns: repeat(5, minmax(150px, 1fr)) auto;
  margin-bottom: 0;
  padding: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.stat-card {
  min-height: 116px;
  padding: 18px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.stat-card strong {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  line-height: 1;
}

.stat-warning {
  border-color: rgba(255, 209, 102, 0.28);
  box-shadow: 0 18px 46px rgba(255, 209, 102, 0.08);
}

.chart-card {
  min-height: 330px;
}

.chart-card canvas,
.analysis-chart {
  display: block;
  width: 100%;
  height: 240px;
}

.chart-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 18px;
}

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

.table-wrap,
.inner-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.responsive-table,
.table-wrap table,
.table-scroll table,
.inner-table table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap th,
.table-wrap td,
.table-scroll th,
.table-scroll td,
.inner-table th,
.inner-table td {
  padding: 12px 14px;
  vertical-align: top;
}

.table-wrap th,
.table-scroll th,
.inner-table th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
  text-align: left;
  text-transform: uppercase;
}

.table-wrap tr,
.table-scroll tr,
.inner-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.analysis-table {
  min-width: 760px;
}

.analysis-table th,
.analysis-table td {
  vertical-align: top;
}

.export-button {
  border-color: rgba(94, 216, 255, 0.36);
  background: linear-gradient(135deg, rgba(94, 216, 255, 0.22), rgba(255, 255, 255, 0.08));
}

.settings-form {
  display: grid;
  gap: 18px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.settings-card {
  padding: 20px;
}

.span-settings {
  grid-column: 1 / -1;
}

.settings-logo-row,
.settings-design-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.logo-preview {
  display: grid;
  place-items: center;
  width: 156px;
  height: 156px;
  overflow: hidden;
  color: #03111a;
  background: linear-gradient(135deg, var(--primary), rgba(255, 255, 255, 0.72));
  border: 1px solid var(--card-border);
  border-radius: 26px;
  box-shadow: var(--shadow-sm);
  font-size: 1.4rem;
  font-weight: 900;
}

.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}

.field-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}

.checkbox-row input {
  width: auto;
}

.design-preview {
  min-height: 190px;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)),
    var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.design-preview h4 {
  margin: 18px 0 6px;
  font-size: 1.35rem;
}

.design-preview p {
  margin: 0 0 18px;
  color: var(--muted);
}

.settings-savebar {
  position: sticky;
  bottom: 18px;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  padding: 14px;
  background: rgba(7, 13, 25, 0.68);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.settings-remove-logo {
  margin-top: 14px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.profile-card,
.password-card,
.upload-card {
  padding: 20px;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-identity.compact {
  align-items: center;
}

.profile-identity h3 {
  margin: 0 0 4px;
  font-size: 1.45rem;
}

.profile-identity p {
  margin: 0;
  color: var(--muted);
}

.profile-badges,
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.profile-actions {
  align-items: center;
}

.profile-details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.profile-details div {
  display: grid;
  grid-template-columns: minmax(130px, 0.6fr) minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-details div:last-child {
  border-bottom: 0;
}

.profile-details dt {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.profile-details dd {
  margin: 0;
  color: var(--text);
  font-weight: 720;
}

.target-actual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

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

.overtime-positive {
  color: var(--success);
  border-color: rgba(66, 232, 143, 0.28);
  background: rgba(66, 232, 143, 0.1);
}

.overtime-negative {
  color: #ffb1a3;
  border-color: rgba(255, 92, 122, 0.28);
  background: rgba(255, 92, 122, 0.11);
}

.overtime-neutral {
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

.progress-bar {
  width: 100%;
  height: 9px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--success));
  border-radius: inherit;
  transition: width var(--transition);
}

.auto-break-hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--card-border);
  border-radius: 18px;
}

.checkbox-group legend {
  padding: 0 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 760;
}

.report-preview-card {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.report-preview-card h3 {
  margin: 0;
}

.welcome-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 168px;
  margin-bottom: 18px;
  padding: 26px;
}

.welcome-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.welcome-card p {
  margin: 0;
  color: var(--muted);
}

.quick-action-button {
  min-height: 46px;
}

.live-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.warning-list,
.live-list,
.activity-timeline {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.warning-item,
.live-employee-row,
.live-project-row,
.activity-timeline li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.warning-item:hover,
.live-employee-row:hover,
.live-project-row:hover,
.activity-timeline li:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 216, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.warning-item {
  align-items: flex-start;
  justify-content: space-between;
  border-left: 4px solid var(--warning);
}

.warning-item-danger {
  border-left-color: var(--danger);
}

.warning-item-warning {
  border-left-color: var(--warning);
}

.warning-general {
  border-left-color: var(--primary);
}

.warning-item strong,
.activity-timeline strong {
  display: block;
  color: var(--text);
}

.warning-item p,
.activity-timeline small,
.live-row-meta small,
.project-budget small {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.live-row-meta,
.project-budget {
  display: grid;
  justify-items: end;
  gap: 6px;
  margin-left: auto;
}

.activity-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  background: var(--primary);
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(94, 216, 255, 0.12);
}

.budget-progress {
  width: 128px;
  height: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
}

.budget-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--success));
  border-radius: inherit;
}

.notification-filterbar,
.notification-actions,
.notification-head,
.notification-mini-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.notification-list {
  display: grid;
  gap: 14px;
}

.notification-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.notification-unread {
  border-color: rgba(94, 216, 255, 0.36);
  box-shadow: var(--shadow-sm), 0 0 28px rgba(94, 216, 255, 0.1);
}

.notification-main h3 {
  margin: 10px 0 6px;
}

.notification-main p {
  margin-bottom: 0;
}

.notification-priority-low {
  color: var(--muted);
}

.notification-priority-normal {
  color: var(--primary);
  border-color: rgba(94, 216, 255, 0.24);
}

.notification-priority-high {
  color: var(--warning);
  border-color: rgba(255, 209, 102, 0.34);
  background: rgba(255, 209, 102, 0.1);
}

.notification-priority-danger {
  color: #ffd7df;
  border-color: rgba(255, 92, 122, 0.34);
  background: rgba(255, 92, 122, 0.12);
}

.app-footer {
  color: var(--muted);
  font-size: 0.82rem;
  padding: 16px 4px 4px;
  text-align: right;
}

.support-search-card {
  margin-bottom: 18px;
}

.support-search-card label {
  color: var(--muted);
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.support-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.support-card {
  align-content: start;
  display: grid;
  gap: 14px;
  min-height: 230px;
}

.support-card-icon {
  align-items: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  color: var(--primary);
  display: inline-flex;
  font-size: 1.28rem;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.support-card h3,
.manual-section h3,
.help-note h3,
.changelog-item h3 {
  margin-bottom: 8px;
}

.support-card p,
.manual-section p,
.help-note p,
.faq-answer p,
.changelog-item li {
  color: var(--muted);
  line-height: 1.65;
}

.manual-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 260px minmax(0, 1fr);
}

.manual-toc {
  display: grid;
  gap: 8px;
  position: sticky;
  top: 112px;
}

.manual-toc strong {
  margin-bottom: 6px;
}

.manual-toc a {
  border-radius: 14px;
  color: var(--muted);
  padding: 9px 10px;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.manual-toc a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transform: translateX(2px);
}

.manual-content {
  display: grid;
  gap: 16px;
}

.manual-section {
  scroll-margin-top: 118px;
}

.help-note {
  display: grid;
  gap: 12px;
}

.help-note-inline {
  border-left: 3px solid var(--warning);
  padding-left: 12px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  overflow: hidden;
  padding: 0;
}

.faq-question {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 800;
  justify-content: space-between;
  padding: 18px 20px;
  text-align: left;
  width: 100%;
}

.faq-question strong {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--primary);
  display: inline-flex;
  height: 28px;
  justify-content: center;
  transition: transform 0.25s ease;
  width: 28px;
}

.faq-question[aria-expanded="true"] strong {
  transform: rotate(45deg);
}

.faq-answer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 20px 18px;
}

.changelog-timeline {
  display: grid;
  gap: 16px;
}

.changelog-item {
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr);
}

.changelog-item ul {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding-left: 18px;
}

.system-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.system-card {
  display: grid;
  gap: 10px;
}

.system-card p {
  color: var(--muted);
}

.system-status-ok {
  border-color: rgba(66, 232, 143, 0.32);
  color: var(--success);
}

.system-status-warning {
  border-color: rgba(255, 209, 102, 0.34);
  color: var(--warning);
}

.system-status-error {
  border-color: rgba(255, 92, 122, 0.36);
  color: var(--danger);
}

.migration-list,
.check-table {
  min-width: 760px;
}

.security-warning {
  margin-bottom: 18px;
}

.system-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.system-tabs a {
  padding: 10px 14px;
  color: var(--muted);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.system-tabs a:hover,
.system-tabs a.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(255, 255, 255, 0.08));
  border-color: rgba(94, 216, 255, 0.34);
  transform: translateY(-1px);
}

.backup-card,
.export-card,
.cleanup-card,
.demo-card {
  display: grid;
  gap: 16px;
}

.privacy-warning {
  padding: 14px;
  color: #dff6ff;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 18px;
}

.danger-zone {
  border-color: rgba(255, 92, 122, 0.24);
}

.demo-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.demo-card h3 {
  margin: 0;
}

.demo-card > strong {
  color: var(--text);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}

.demo-danger-zone {
  border-color: rgba(255, 92, 122, 0.34);
  box-shadow: 0 20px 48px rgba(255, 92, 122, 0.08);
}

.demo-result-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-result-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
}

.demo-warning {
  border-color: rgba(255, 209, 102, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 209, 102, 0.1), rgba(255, 255, 255, 0.055)),
    var(--card);
}

.cleanup-result {
  padding: 12px;
  color: var(--success);
  background: rgba(66, 232, 143, 0.1);
  border: 1px solid rgba(66, 232, 143, 0.22);
  border-radius: 16px;
}

.orphan-list {
  display: grid;
  gap: 12px;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.check-line input {
  width: auto;
}

.import-card,
.import-preview,
.import-result,
.csv-template-card {
  display: grid;
  gap: 16px;
}

.import-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.import-stepper span {
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--card-border);
  border-radius: 999px;
}

.import-errors,
.import-warnings {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
}

.import-errors {
  color: #ffd7df;
  background: rgba(255, 92, 122, 0.1);
  border: 1px solid rgba(255, 92, 122, 0.28);
}

.import-warnings {
  color: #ffe8a6;
  background: rgba(255, 209, 102, 0.1);
  border: 1px solid rgba(255, 209, 102, 0.26);
}

.import-errors h4,
.import-warnings h4,
.import-errors p,
.import-warnings p {
  margin: 0;
}

.csv-template-card pre {
  overflow-x: auto;
  padding: 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  font-size: 0.82rem;
}

.access-denied-card {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin: 40px auto;
  text-align: center;
}

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

.role-badge {
  border-color: rgba(94, 216, 255, 0.3);
  color: var(--primary);
  text-transform: capitalize;
}

.notification-mini-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notification-mini-list li {
  justify-content: flex-start;
  padding: 10px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
}

.notification-mini-list strong,
.notification-mini-list small {
  display: block;
}

@keyframes card-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(66, 232, 143, 0.14), 0 0 14px rgba(66, 232, 143, 0.42);
  }

  50% {
    transform: scale(1.12);
    box-shadow: 0 0 0 7px rgba(66, 232, 143, 0.08), 0 0 22px rgba(66, 232, 143, 0.62);
  }
}

@media (max-width: 1100px) {
  .app-shell,
  .dashboard-shell {
    grid-template-columns: 224px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
  }

  .dashboard-grid > *,
  .cards-grid > *,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8 {
    grid-column: span 6;
  }

  .calendar-grid,
  .calendar-weekdays {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-grid,
  .analysis-filter-card .filter-bar,
  .settings-grid,
  .profile-grid,
  .settings-design-grid,
  .support-grid,
  .system-grid,
  .demo-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-day-outside {
    display: none;
  }

  .time-entry-row,
  .time-entry-facts,
  .correction-compare {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .button-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.sidebar-open {
    overflow: hidden;
  }

  .app-shell,
  .dashboard-shell {
    display: grid;
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .sidebar {
    position: fixed;
    inset: 12px auto 12px 12px;
    z-index: 45;
    width: min(86vw, 330px);
    height: auto;
    margin: 0;
    padding: 16px;
    transform: translateX(calc(-100% - 24px));
    transition: transform var(--transition), box-shadow var(--transition);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.08);
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .topbar {
    position: sticky;
    top: 10px;
    z-index: 30;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 12px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .user-chip span,
  .theme-toggle {
    display: none;
  }

  .dashboard-main {
    width: 100%;
  }

  .page-hero {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .dashboard-grid,
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .dashboard-actions-card {
    order: 2;
  }

  .dashboard-warnings-card {
    order: 3;
  }

  .dashboard-today-card {
    order: 4;
  }

  .dashboard-live-status-card {
    order: 5;
  }

  .dashboard-activity-card {
    order: 6;
  }

  .dashboard-notifications-card {
    order: 7;
  }

  .dashboard-live-employees-card {
    order: 8;
  }

  .dashboard-live-projects-card {
    order: 9;
  }

  .dashboard-grid > *,
  .cards-grid > *,
  .span-2,
  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8,
  .span-12 {
    grid-column: 1 / -1;
  }

  .form-grid,
  .button-grid,
  .toolbar-form,
  .filter-bar,
  .stat-grid,
  .stats-grid,
  .analysis-filter-card .filter-bar,
  .settings-grid,
  .profile-grid,
  .target-actual-grid,
  .live-status-grid,
  .settings-logo-row,
  .settings-design-grid,
  .support-grid,
  .manual-layout,
  .system-grid,
  .demo-status-grid {
    grid-template-columns: 1fr;
  }

  .manual-toc {
    position: static;
  }

  .welcome-card,
  .warning-item,
  .live-employee-row,
  .live-project-row,
  .notification-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-row-meta,
  .project-budget {
    justify-items: start;
    margin-left: 0;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .profile-identity {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .span-settings {
    grid-column: 1 / -1;
  }

  .settings-savebar {
    position: static;
    justify-content: stretch;
  }

  .settings-savebar .btn {
    width: 100%;
  }

  .calendar-weekdays {
    display: none;
  }

  .calendar-grid,
  .time-entry-row,
  .time-entry-facts,
  .correction-compare,
  .approval-actions {
    grid-template-columns: 1fr;
  }

  .calendar-day {
    min-height: 116px;
  }

  .table-wrap table,
  .table-scroll table,
  .inner-table table {
    min-width: 720px;
  }

  .actions-cell .btn,
  .actions-cell button,
  td .btn,
  td button {
    min-height: 44px;
  }

  .btn,
  button,
  input[type="submit"],
  input[type="button"] {
    min-height: 44px;
  }

  .auth-card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .glass-card:hover,
  .card:hover,
  .btn:hover,
  button:hover,
  input[type="submit"]:hover,
  input[type="button"]:hover,
  .nav a:hover,
  .nav button:hover,
  .sidebar-nav a:hover,
  .sidebar-nav button:hover,
  .sidebar-link:hover,
  .menu-item:hover {
    transform: none;
  }
}
