:root {
  --oz-coral: #ef7f7a;
  --oz-coral-soft: #ffd7d4;
  --oz-ink: #292428;
  --oz-nest: #8a6545;
  --oz-leaf: #7ea13d;
  --oz-sky: #385a82;
  --oz-paper: #fffdfb;
  --oz-muted: #f5efeb;
}

body {
  color: var(--oz-ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 0% 0%, #ffe6e1 0%, transparent 28%),
    radial-gradient(circle at 100% 0%, #f4ece8 0%, transparent 32%),
    linear-gradient(180deg, #fffdfa 0%, #f6f1ed 100%);
}

.oz-navbar {
  position: relative;
  z-index: 120;
  overflow: visible;
  border-bottom: 1px solid #eadfd8;
  background: color-mix(in srgb, white 86%, var(--oz-coral) 14%);
  backdrop-filter: blur(12px);
}

.oz-main {
  animation: rise 240ms ease-out;
  flex: 1 0 auto;
  width: 100%;
}

.oz-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--oz-ink);
}

.oz-brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  box-shadow: 0 2px 10px #0000001f;
}

.oz-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid color-mix(in srgb, var(--oz-coral) 45%, #d8cbc4);
  color: var(--oz-ink);
  background: #fff6f5;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.oz-profile-btn:hover {
  border-color: var(--oz-coral);
  background: #fff6f5;
  transform: translateY(-1px);
}

.oz-profile-btn svg {
  width: 1.05rem;
  height: 1.05rem;
}

.btn-primary {
  background: var(--oz-coral);
  border-color: color-mix(in srgb, var(--oz-coral) 84%, #000 16%);
  color: white;
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--oz-coral) 85%, #000 15%);
}

.link-primary {
  color: color-mix(in srgb, var(--oz-coral) 88%, #000 12%);
}

.oz-panel {
  background: linear-gradient(180deg, color-mix(in srgb, white 96%, var(--oz-coral) 4%), white 55%);
  border: 1px solid #e9ddd6;
  box-shadow: 0 12px 30px -18px #0000004a;
}

.oz-alert-soft {
  border: 1px solid #e8dbd2;
  color: var(--oz-ink);
  background: linear-gradient(140deg, #fff8f5, #fff3f1);
}

.oz-login-shell {
  display: grid;
  gap: 1rem;
  align-items: stretch;
  max-width: 980px;
  margin: 2rem auto 0;
}

.oz-login-visual {
  border-radius: 1.25rem;
  padding: 1.2rem;
  border: 1px solid #ebdfd8;
  background: linear-gradient(155deg, #fff3f2 0%, #fff 55%);
  box-shadow: 0 18px 32px -22px #0000004d;
  text-align: center;
}

.oz-login-visual img {
  width: min(260px, 70%);
  margin: 0 auto 1rem;
}

.oz-login-visual h1 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.4rem;
}

.oz-login-visual p {
  opacity: 0.8;
  margin: 0;
}

.oz-login-card {
  border-radius: 1.25rem;
}

.oz-field {
  display: grid;
  gap: 0.35rem;
}

.oz-field span {
  font-size: 0.92rem;
  font-weight: 600;
  color: #43363d;
}

.oz-field .input {
  width: 100%;
  border-radius: 0.85rem;
  border-color: #d7c8c0;
  background: #fff;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.oz-field .input:focus,
.input:focus {
  border-color: var(--oz-coral);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--oz-coral) 22%, transparent);
}

.oz-table-compact th,
.oz-table-compact td {
  font-size: 0.83rem;
  line-height: 1.25rem;
  white-space: normal;
  word-break: break-word;
}

.oz-stat-value {
  font-size: 1.1rem;
  line-height: 1.4rem;
  white-space: normal;
  word-break: break-word;
}

.tooltip[data-tip]::before {
  max-width: min(20rem, 85vw);
  white-space: normal;
  text-align: left;
  font-size: 0.78rem;
  line-height: 1.1rem;
}

.oz-chart-box {
  position: relative;
  height: 18rem;
  width: 100%;
  overflow: hidden;
}

.oz-chart-box canvas {
  width: 100% !important;
  height: 100% !important;
}

.oz-form-grid {
  min-width: 0;
}

.oz-form-grid .input,
.oz-form-grid .select {
  width: 100%;
  max-width: 100%;
}

.oz-footer {
  flex: 0 0 auto;
  border-top: 1px solid #eadfd8;
  background: linear-gradient(180deg, #fff7f4 0%, #fffdfb 100%);
}

.oz-footer-inner {
  display: flex;
  min-height: 3.5rem;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  color: #4f454b;
  font-size: 0.8rem;
}

.oz-tour-coach {
  position: fixed;
  width: min(24rem, calc(100vw - 1.5rem));
  padding: 0.75rem 0.8rem;
  border: 1px solid #e6d5cc;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #fffdfa 0%, #fff6f3 100%);
  box-shadow: 0 12px 34px -20px #00000066;
  z-index: 90;
}

.oz-tour-coach.hidden {
  display: none !important;
}

.oz-tour-prompt-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(36, 27, 30, 0.35);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 95;
}

.oz-tour-prompt-backdrop.hidden {
  display: none !important;
}

.oz-tour-prompt {
  width: min(28rem, calc(100vw - 1.5rem));
  border: 1px solid #e6d5cc;
  border-radius: 1rem;
  background: linear-gradient(180deg, #fffdfb 0%, #fff6f3 100%);
  box-shadow: 0 16px 40px -18px #00000070;
  padding: 1rem;
}

.oz-tour-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.oz-tour-highlight {
  position: relative;
  z-index: 85;
  outline: 2px solid color-mix(in srgb, var(--oz-coral) 70%, white);
  outline-offset: 2px;
  border-radius: 0.65rem;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--oz-coral) 18%, transparent);
}

.oz-tour-highlight::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid color-mix(in srgb, var(--oz-coral) 72%, white);
  border-radius: inherit;
  pointer-events: none;
  animation: oz-pulse 1.6s ease-out infinite;
}

.oz-mobile-menu {
  position: relative;
}

.oz-mobile-menu > summary {
  list-style: none;
}

.oz-mobile-menu > summary::-webkit-details-marker {
  display: none;
}

.oz-mobile-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 140;
  width: min(16rem, calc(100vw - 1rem));
  border: 1px solid #e5d9d2;
  border-radius: 0.75rem;
  padding: 0.35rem;
  background: #fffdfb;
  box-shadow: 0 14px 28px -18px #00000066;
}

.oz-mobile-menu:not([open]) .oz-mobile-menu-panel {
  display: none;
}

@media (min-width: 900px) {
  .oz-login-shell {
    grid-template-columns: 1.1fr 1fr;
    gap: 1.2rem;
  }

  .oz-login-visual {
    text-align: left;
    padding: 2rem;
    display: grid;
    align-content: center;
  }

  .oz-login-visual img {
    margin: 0 0 1.2rem;
    width: min(300px, 80%);
  }
}

@media (max-width: 640px) {
  .oz-brand {
    font-size: 1.05rem;
    gap: 0.5rem;
  }

  .oz-brand img {
    width: 1.75rem;
    height: 1.75rem;
  }

  .oz-footer-inner {
    font-size: 0.76rem;
  }

  .oz-tour-coach {
    width: calc(100vw - 1rem);
    max-width: none;
  }

  .oz-chart-box {
    height: 12.5rem;
  }

  .stat .stat-value {
    font-size: 1rem;
    line-height: 1.35rem;
  }
}

@keyframes oz-pulse {
  0% {
    opacity: 0.95;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

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