﻿:root {
  --font-family: "Inter", "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --primary: #134cb0;
  --primary-glow: #2a6ff0;
  --primary-green: #31f081;
  --accent: #f5b625;
  --background: #e0f2ff;
  --overlay: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(191, 219, 254, 0.7));
  --text: rgba(15, 23, 42, 0.95);
  --text-soft: rgba(71, 85, 105, 0.85);
  --card-bg: rgba(255, 255, 255, 0.96);
  --card-border: rgba(15, 23, 42, 0.12);
  --card-hover-bg: rgba(241, 245, 249, 0.98);
  --card-hover-border: rgba(59, 130, 246, 0.25);
  --glow-accent: rgba(245, 182, 37, 0.1);
  --glow-primary: rgba(59, 130, 246, 0.14);
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-family);
  background-color: var(--background);
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--background);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--overlay);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.05) saturate(1.1);
  transform: scale(1.05);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: min(1120px, 92vw);
  padding: 72px 16px;
}

.hero-content--panel {
  text-align: left;
  margin: 0 auto;
  width: min(960px, 94vw);
  padding: clamp(48px, 8vw, 72px) clamp(18px, 5vw, 36px);
}

.hero-title {
  margin: 0 0 1.5rem;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.decorative-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: clamp(2rem, 6vw, 3rem);
}

.decorative-line::before,
.decorative-line::after {
  content: "";
  display: block;
  width: clamp(3rem, 10vw, 6rem);
  height: 1px;
  background: rgba(15, 23, 42, 0.2);
}

.decorative-line span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(245, 182, 37, 0.7);
  animation: pulse 2.5s ease-in-out infinite;
}

.hero-subtitle {
  margin: 0 0 clamp(2.5rem, 6vw, 4rem);
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 300;
  color: var(--text);
  text-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}

.options-grid {
  display: grid;
  gap: clamp(1.25rem, 4vw, 2rem);
}

@media (min-width: 600px) {
  .options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .options-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.option-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  backdrop-filter: blur(8px);
  box-shadow: 0 25px 60px -35px rgba(15, 23, 42, 0.25);
  transform: translateY(30px);
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
  transition: transform 0.45s ease, background 0.45s ease, border-color 0.45s ease,
    box-shadow 0.45s ease;
}

.option-card:hover,
.option-card:focus-visible {
  background: var(--card-hover-bg);
  border-color: var(--card-hover-border);
  box-shadow:
    0 30px 70px -40px rgba(59, 130, 246, 0.45),
    0 0 32px rgba(245, 182, 37, 0.25);
  transform: translateY(-12px) scale(1.02);
  outline: none;
}

.option-card:active {
  transform: translateY(-6px) scale(0.99);
}

.option-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.5rem);
  text-align: center;
}

.option-icon {
  width: clamp(64px, 16vw, 80px);
  height: clamp(64px, 16vw, 80px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 182, 37, 0.22);
  transition: transform 0.45s ease, background 0.45s ease;
}

.option-card:hover .option-icon,
.option-card:focus-visible .option-icon {
  transform: scale(1.08) rotate(8deg);
  background: rgba(245, 182, 37, 0.35);
}

.option-icon svg {
  width: clamp(28px, 7vw, 36px);
  height: clamp(28px, 7vw, 36px);
  stroke: var(--primary);
  stroke-width: 1.8;
}

.option-title {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.option-description {
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  color: var(--text-soft);
  line-height: 1.6;
}

.option-card:hover .option-description,
.option-card:focus-visible .option-description {
  color: rgba(15, 23, 42, 0.95);
}

.option-indicator {
  display: flex;
  justify-content: center;
  margin-top: 0.4rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.option-card:hover .option-indicator,
.option-card:focus-visible .option-indicator {
  opacity: 1;
  transform: translateY(0);
}

.option-indicator span {
  display: block;
  width: 32px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
  z-index: 0;
  animation: breathe 9s ease-in-out infinite;
}

.glow--left {
  top: 25%;
  left: 20%;
  width: 280px;
  height: 280px;
  background: var(--glow-accent);
}

.glow--right {
  bottom: 18%;
  right: 12%;
  width: 300px;
  height: 300px;
  background: var(--glow-primary);
  animation-delay: 1.2s;
}

@media (min-width: 768px) {
  .glow--left {
    width: 420px;
    height: 420px;
  }

  .glow--right {
    width: 460px;
    height: 460px;
  }
}

/* Panel / Form shared styles */
.panel-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 28px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 35px 85px -48px rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(8px);
  padding: clamp(32px, 6vw, 44px);
  display: grid;
  gap: clamp(20px, 4vw, 28px);
  color: #0f172a;
}

.panel-card h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  letter-spacing: 0.01em;
}

.panel-subtitle {
  margin: 0;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  color: rgba(15, 23, 42, 0.75);
  max-width: 620px;
}

.panel-form {
  display: grid;
  gap: clamp(18px, 3vw, 24px);
}

.panel-field {
  display: grid;
  gap: 10px;
}

.panel-field label {
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.panel-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.panel-hint {
  font-size: 0.9rem;
  color: rgba(71, 85, 105, 0.85);
  font-weight: 400;
}

.panel-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.panel-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 0.9rem;
  border-radius: 16px;
  background: rgba(226, 232, 240, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.4);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.panel-radio:hover,
.panel-radio:focus-within {
  border-color: rgba(59, 130, 246, 0.45);
}

.panel-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #2a6ff0;
}

.panel-radio-group--stacked {
  flex-direction: column;
}

.panel-radio--block {
  width: 100%;
  justify-content: flex-start;
}

.panel-checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.panel-checkbox-grid--columns {
  gap: 10px 18px;
}

.panel-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  cursor: pointer;
}

.panel-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2a6ff0;
}

.panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.panel-tags--soft .panel-tag {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.35);
}

.panel-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(245, 182, 37, 0.15);
  border: 1px solid rgba(245, 182, 37, 0.35);
  color: rgba(99, 102, 241, 0.9);
}

.member-inline {
  margin: 18px 0 28px;
  font-size: 1rem;
  color: rgba(15, 23, 42, 0.85);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.panel-card--light {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #0f172a;
  box-shadow: 0 24px 70px -32px rgba(15, 23, 42, 0.35);
}

.panel-card--light .panel-subtitle,
.panel-card--light label,
.panel-card--light .panel-label,
.panel-card--light .panel-radio span,
.panel-card--light .panel-switch-label {
  color: rgba(15, 23, 42, 0.85);
}

.panel-card--light .panel-input,
.panel-card--light .panel-select {
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

.panel-card--light .panel-radio {
  background: rgba(226, 232, 240, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.panel-card--light .panel-radio:hover,
.panel-card--light .panel-radio:focus-within {
  border-color: rgba(37, 99, 235, 0.55);
}

.panel-card--light .panel-radio span {
  color: rgba(15, 23, 42, 0.85);
}

.panel-card--light .panel-switch {
  background: rgba(226, 232, 240, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.panel-card--light .panel-switch:hover,
.panel-card--light .panel-switch:focus-within {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 18px 40px -22px rgba(37, 99, 235, 0.35);
}

.panel-card--light .panel-input:focus,
.panel-card--light .panel-select:focus {
  border-color: rgba(21, 128, 61, 0.45);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.panel-input--month {
  font-size: 1.1rem;
  padding: 1rem;
}

.panel-input--large {
  font-size: 1.05rem;
}

.panel-select--large {
  font-size: 1.05rem;
}

.hero--light .panel-button,
.hero--light .panel-link {
  color: inherit;
}

.panel-button--primary {
  background: linear-gradient(135deg, #6ee7b7, #a7f3d0);
  color: #0f172a;
}

.panel-button--primary:hover {
  box-shadow: 0 24px 52px -26px rgba(110, 231, 183, 0.45);
}

.panel-button--next,
.panel-button--confirm {
  background: var(--primary-green);
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #052e16;
}

.panel-button--next:hover,
.panel-button--confirm:hover {
  background: var(--primary-green);
  box-shadow: 0 24px 52px -26px rgba(22, 163, 74, 0.4);
}

/* Pulsing emphasis for confirm button */
@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.panel-button--confirm {
  animation: pulse-green 1.8s ease-out infinite;
}

/* Simple modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.45);
  z-index: 9999;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  width: min(520px, 92vw);
  padding: 1.25rem 1.35rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #0f172a;
  box-shadow: 0 30px 85px -42px rgba(15, 23, 42, 0.45);
}
.modal-card--success {
  border-color: rgba(34, 197, 94, 0.38);
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.92), rgba(255,255,255,0.98));
}
.modal-card h3 { margin: 0 0 6px; }
.modal-card p { margin: 0 0 14px; color: rgba(15, 23, 42, 0.8); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }

.panel-button--edit {
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #78350f;
}

.panel-button--edit:hover {
  box-shadow: 0 24px 52px -26px rgba(245, 158, 11, 0.45);
}

.panel-button--delete {
  background: linear-gradient(135deg, #f87171, #ef4444);
  color: #fff;
}

.panel-button--delete:hover {
  box-shadow: 0 24px 52px -26px rgba(239, 68, 68, 0.5);
}

.step-indicator {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.step-indicator-item {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 0.5rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  color: rgba(15, 23, 42, 0.55);
  transition: background 0.3s ease, color 0.3s ease;
}

.step-indicator-item.is-active {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
}

.step-indicator-item.is-complete {
  background: rgba(34, 197, 94, 0.2);
  color: #166534;
}

.step {
  display: grid;
  gap: 18px;
}

.step[hidden] {
  display: none;
}

.step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.step-actions .panel-button {
  flex: 1 1 auto;
}

@media (min-width: 640px) {
  .step-actions .panel-button {
    flex: 0 0 auto;
  }
}

.summary-box {
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  color: #0f172a;
}

.summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 1rem;
}

.summary-list strong {
  font-weight: 700;
}

.panel-form--inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: flex-end;
}

.kpi-grid {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

@media (min-width: 768px) {
  .kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.kpi-item {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 1.1rem 1.25rem;
  display: grid;
  gap: 6px;
}

.kpi-item h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(51, 65, 85, 0.85);
}

.kpi-item strong {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
}

.kpi-item span {
  font-size: 0.9rem;
  color: rgba(71, 85, 105, 0.8);
}

.kpi-item--success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(34, 197, 94, 0.08));
  border-color: rgba(34, 197, 94, 0.45);
}

.kpi-item--warning {
  background: linear-gradient(135deg, rgba(252, 165, 67, 0.18), rgba(252, 165, 67, 0.08));
  border-color: rgba(251, 191, 36, 0.45);
}

.kpi-item--ratio {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0.08));
  border-color: rgba(59, 130, 246, 0.45);
}

.table-wrapper {
  max-width: 100%;
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.97);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  color: rgba(15, 23, 42, 0.92);
  font-size: 0.95rem;
}

.data-table thead {
  background: rgba(241, 245, 249, 0.92);
}

.data-table th,
.data-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.data-table tbody tr:nth-child(every) {
  background: rgba(15, 23, 42, 0.45);
}

.data-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.15);
}

@media (max-width: 720px) {
  .data-table thead {
    display: none;
  }

  .data-table tbody tr {
    display: grid;
    gap: 10px;
    padding: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  }

  .data-table tbody td {
    border: none;
    padding: 0;
  }

  .data-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: rgba(208, 213, 221, 0.75);
  }
}

.panel-switch-grid {
  display: grid;
  gap: 12px;
}

.panel-switch-grid--columns {
  gap: 10px 16px;
}

@media (min-width: 720px) {
  .panel-switch-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.panel-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: rgba(226, 232, 240, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.35);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.panel-switch:hover,
.panel-switch:focus-within {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 12px 30px -18px rgba(59, 130, 246, 0.35);
}

.panel-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.panel-switch-track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.35);
  transition: background 0.25s ease;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
}

.panel-switch-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transform: translateX(0);
  transition: transform 0.25s ease, background 0.25s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.3);
}

.panel-switch input[type="checkbox"]:checked + .panel-switch-track {
  background: linear-gradient(135deg, #134cb0, #2a6ff0);
}

.panel-switch input[type="checkbox"]:checked + .panel-switch-track .panel-switch-thumb {
  transform: translateX(18px);
  background: #fff;
}

.panel-switch-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.85);
}

.panel-input,
.panel-select {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(241, 245, 249, 0.9);
  color: #0f172a;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.panel-input:focus,
.panel-select:focus {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

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

.panel-actions--end {
  justify-content: flex-end;
}

.panel-actions--center {
  justify-content: center;
}

.password-field {
  position: relative;
}

.password-field .panel-input {
  padding-right: 4.5rem;
  margin-bottom: 0;
}

.toggle-visibility {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  padding: 0.25rem 0.5rem;
  border: none;
  background: none;
  color: rgba(71, 85, 105, 0.85);
  font-size: 0.82rem;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.2s ease;
}

.toggle-visibility:hover {
  color: rgba(59, 130, 246, 0.85);
}

.panel-button {
  padding: 0.95rem 1.8rem;
  border-radius: 18px;
  border: none;
  background: linear-gradient(135deg, #13b061, #2af09d);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.panel-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px -28px rgba(42, 111, 240, 0.85);
}

.panel-button--link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.panel-button--ghost {
  background: rgba(248, 113, 113, 0.22);
  border: 1px solid rgba(248, 113, 113, 0.45);
}

.panel-button--ghost:hover {
  box-shadow: 0 20px 45px -28px rgba(248, 113, 113, 0.65);
}

.panel-alert {
  padding: 0.95rem 1.1rem;
  border-radius: 18px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.4;
}

.panel-alert--success {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.38);
  color: #166534;
}

.panel-alert--error {
  background: rgba(248, 113, 113, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #991b1b;
}

.panel-history {
  display: grid;
  gap: clamp(16px, 3vw, 22px);
}

.panel-history h2 {
  margin: 0;
  font-size: clamp(1.2rem, 3.2vw, 1.4rem);
}

.panel-history .panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: clamp(12px, 2.5vw, 16px);
}

.panel-history .panel-list li {
  display: grid;
  gap: 0.4rem;
  padding: clamp(16px, 3vw, 20px);
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 45px -32px rgba(15, 23, 42, 0.25);
}

.panel-history .panel-list strong {
  font-size: 1.05rem;
}

.panel-meta {
  display: grid;
  gap: 0.2rem;
  font-size: 0.88rem;
  color: rgba(71, 85, 105, 0.85);
}

.panel-meta small {
  color: rgba(100, 116, 139, 0.75);
  font-size: 0.8rem;
}

.panel-table {
  width: 100%;
  overflow-x: auto;
}

.panel-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.panel-table th,
.panel-table td {
  padding: clamp(0.75rem, 2.4vw, 1.1rem);
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.95rem;
  color: rgba(30, 41, 59, 0.85);
}

.panel-table th {
  font-weight: 600;
  color: rgba(15, 23, 42, 0.9);
}

.panel-table--compact table {
  table-layout: auto;
}

.panel-table--compact th,
.panel-table--compact td {
  vertical-align: top;
  padding: clamp(0.65rem, 2vw, 0.9rem);
  min-width: clamp(110px, 12vw, 160px);
  white-space: normal;
  word-break: break-word;
}

.panel-table--compact th:first-child,
.panel-table--compact td:first-child {
  min-width: clamp(90px, 9vw, 130px);
}

.panel-table--compact th:nth-child(2),
.panel-table--compact td:nth-child(2) {
  min-width: clamp(55px, 5vw, 80px);
  text-align: center;
}

.panel-table--compact th:nth-child(n + 3),
.panel-table--compact td:nth-child(n + 3) {
  min-width: clamp(120px, 15vw, 190px);
}

.panel-table--compact td small {
  display: block;
  margin-top: 4px;
  color: rgba(71, 85, 105, 0.75);
  font-size: 0.82rem;
}

.panel-table__actions {
  text-align: center;
  white-space: nowrap;
  min-width: clamp(100px, 12vw, 140px);
}

.panel-designations-table {
  overflow-x: auto;
}

.panel-designations-table .panel-table {
  min-width: 900px;
}

.panel-field--padded {
  padding: clamp(0.5rem, 2vw, 0.75rem);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
}

.panel-grid {
  display: grid;
  gap: 12px;
}

.panel-grid--cleaning-order {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.panel-cleaning-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(241, 245, 249, 0.85);
}

.panel-cleaning-order__name {
  font-weight: 600;
  color: rgba(15, 23, 42, 0.9);
}

.panel-input--order {
  max-width: 72px;
  text-align: center;
}

.designation-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}

.designation-cell span {
  font-weight: 600;
  color: rgba(15, 23, 42, 0.92);
}

.panel-filter {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(16px, 3vw, 24px);
}

@media (min-width: 768px) {
  .panel-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: clamp(16px, 2.5vw, 20px);
  }
}

.panel-filter__field {
  display: grid;
  gap: 8px;
}

.panel-filter__field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.8);
}

.panel-filter__actions {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding-top: 4px;
}

.panel-link--reset {
  font-weight: 500;
}

.panel-table thead th {
  background: rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.panel-table tbody tr:nth-child(even) {
  background: rgba(226, 232, 240, 0.35);
}

.panel-table tbody tr:hover {
  background: rgba(191, 219, 254, 0.55);
  transition: background 0.2s ease;
}

.panel-table tbody tr.assignment-row-current {
  background: rgba(59, 130, 246, 0.2);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.panel-table tbody tr.assignment-row-current:hover {
  background: rgba(59, 130, 246, 0.28);
}

.panel-table td.assignment-cell-current {
  font-weight: 600;
  color: rgba(30, 64, 175, 0.95);
}

.panel-table--compact td.assignment-cell-current span {
  color: rgba(30, 64, 175, 0.95);
}

.panel-button--inline {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  line-height: 1.2;
}

.panel-empty {
  text-align: center;
  color: rgba(148, 163, 184, 0.85);
  font-size: 0.95rem;
}

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

.panel-link {
  color: rgba(37, 99, 235, 0.85);
  text-decoration: none;
  font-weight: 600;
}

.panel-link:hover {
  color: rgba(30, 64, 175, 0.95);
}

@media (min-width: 768px) {
  .panel-history .panel-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.45;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.75;
  }
}

/* Back button (outside card) overrides */
.hero-content--panel { position: relative; }
.panel-card { position: static; }
.panel-back {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(226, 232, 240, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1;
  z-index: 5;
}
.panel-back svg { width: 16px; height: 16px; }
.panel-back:hover { background: rgba(226, 232, 240, 0.9); border-color: rgba(37, 99, 235, 0.45); }
.panel-back:focus { outline: none; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25); }
