:root {
  --bg: #f3f0e8;
  --bg-deep: #16313a;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #fffdfa;
  --line: rgba(22, 49, 58, 0.12);
  --text: #13272f;
  --muted: #607079;
  --accent: #0f766e;
  --accent-strong: #0b5e57;
  --warn: #b45309;
  --danger: #b42318;
  --shadow: 0 25px 60px rgba(13, 34, 41, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(196, 165, 108, 0.18), transparent 28%),
    linear-gradient(135deg, #efe7d8 0%, #eef4f2 55%, #dde9e6 100%);
  min-height: 100vh;
}

.shell-bg {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(15, 118, 110, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.view {
  display: none;
}

.view-active {
  display: block;
}

.hero-panel,
.panel,
.summary-card,
.topbar {
  backdrop-filter: blur(18px);
}

.hero-panel {
  min-height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.hero-copy {
  background: linear-gradient(180deg, rgba(22, 49, 58, 0.92), rgba(22, 49, 58, 0.82));
  color: #f4efe3;
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow);
}

.hero-copy h1,
.topbar h2,
.panel h3,
.login-card h2 {
  font-family: "Manrope", sans-serif;
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 0.98;
  margin-top: 18px;
}

.hero-copy p {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 50rem;
  color: rgba(244, 239, 227, 0.84);
}

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
}

.hero-metrics {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.hero-metrics article {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.hero-metrics strong,
.summary-card strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.hero-metrics span {
  color: rgba(244, 239, 227, 0.72);
}

.login-card,
.panel,
.summary-card,
.topbar {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.login-card {
  border-radius: var(--radius-xl);
  padding: 34px;
  display: grid;
  gap: 18px;
}

.login-card h2 {
  font-size: 2rem;
  margin-top: 10px;
}

.login-card p,
.form-note,
.form-error,
.summary-card span,
.user-badge small,
.data-sub {
  color: var(--muted);
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: help;
}

.tooltip {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 220px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #16313a;
  color: #f5f3ed;
  font-size: 0.82rem;
  line-height: 1.45;
  box-shadow: 0 16px 36px rgba(12, 28, 33, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 10;
}

.tooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 10px;
  width: 12px;
  height: 12px;
  background: #16313a;
  transform: rotate(45deg);
}

.info-tip:hover .tooltip,
.info-tip:focus .tooltip {
  opacity: 1;
  transform: translateY(0);
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.96);
  border-radius: 14px;
  padding: 14px 15px;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #13857c);
  color: white;
}

.btn-secondary {
  background: rgba(19, 39, 47, 0.08);
  color: var(--text);
}

.topbar {
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  animation: lift 0.5s ease;
}

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

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(19, 39, 47, 0.06);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.is-active {
  background: rgba(15, 118, 110, 0.14);
  color: var(--accent-strong);
}

.user-badge {
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(15, 118, 110, 0.08);
}

.user-badge span,
.data-title {
  display: block;
  font-weight: 700;
}

.summary-grid,
.content-grid,
.tables-grid {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

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

.summary-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  animation: lift 0.55s ease;
}

.summary-card strong {
  font-size: 2rem;
}

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

.tables-grid {
  grid-template-columns: 1.05fr 1fr;
}

.panel {
  border-radius: var(--radius-xl);
  padding: 24px;
  animation: lift 0.6s ease;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

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

.field-grid {
  display: grid;
  gap: 14px;
}

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

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

.form-error,
.form-note {
  min-height: 20px;
  margin: 0;
  font-size: 0.92rem;
}

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

.data-list {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.data-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  display: grid;
  gap: 8px;
}

.data-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 700;
}

.chip.warn {
  background: rgba(180, 83, 9, 0.1);
  color: var(--warn);
}

.empty-state {
  border: 1px dashed rgba(96, 112, 121, 0.45);
  border-radius: 18px;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

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

@media (max-width: 1100px) {
  .hero-panel,
  .content-grid,
  .tables-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .login-card {
    padding: 28px;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 20px, 100%);
    padding-top: 10px;
  }

  .topbar {
    padding: 20px;
    align-items: flex-start;
    flex-direction: column;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .three-col {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }
}
