:root {
  --ink: #201a35;
  --muted: #756d88;
  --line: rgba(105, 80, 159, 0.19);
  --paper: #f7f2ff;
  --white: #ffffff;
  --green: #5738a6;
  --green-dark: #352070;
  --lime: #ffd66b;
  --soft-green: #eee7ff;
  --violet: #8b5cf6;
  --aqua: #38d9c5;
  --rose: #ed77ba;
  --shadow: 0 20px 55px rgba(67, 42, 116, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(139, 92, 246, 0.22), transparent 25rem),
    radial-gradient(circle at 93% 5%, rgba(56, 217, 197, 0.18), transparent 24rem),
    radial-gradient(circle at 70% 85%, rgba(237, 119, 186, 0.13), transparent 28rem),
    var(--paper);
  background-attachment: fixed;
  font-family: "DM Sans", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.auth-screen {
  display: grid;
  min-height: 100vh;
  padding: 32px;
  place-items: center;
  background:
    radial-gradient(circle at 18% 15%, rgba(139, 92, 246, 0.3), transparent 27rem),
    radial-gradient(circle at 86% 12%, rgba(56, 217, 197, 0.22), transparent 25rem),
    radial-gradient(circle at 50% 100%, rgba(255, 214, 107, 0.2), transparent 24rem),
    var(--paper);
}

.auth-brand {
  position: absolute;
  top: 32px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: "Manrope", sans-serif;
  font-size: 19px;
  font-weight: 800;
}

.auth-card {
  width: min(100%, 430px);
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.94),
    rgba(244, 238, 255, 0.88)
  );
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.auth-card h1 {
  margin-bottom: 12px;
  font-size: 36px;
  letter-spacing: -0.05em;
}

.auth-copy {
  margin-bottom: 30px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-card form {
  gap: 18px;
}

.setup-warning {
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid #eed69b;
  border-radius: 12px;
  color: #795d17;
  background: #fff8e5;
  font-size: 12px;
}

.setup-warning code {
  font-weight: 700;
}

.form-error {
  min-height: 18px;
  margin: -5px 0 0;
  color: #b94242;
  font-size: 12px;
}

.primary-button:disabled,
.refresh-button:disabled,
.danger-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.app-shell.queen-theme::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(
      rgba(245, 237, 255, 0.58),
      rgba(238, 249, 248, 0.76)
    ),
    var(--queen-background) center 20% / cover no-repeat;
}

.app-shell.admin-lion-theme::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(
      100deg,
      rgba(247, 242, 255, 0.94) 0%,
      rgba(247, 242, 255, 0.78) 43%,
      rgba(247, 242, 255, 0.48) 72%,
      rgba(28, 15, 53, 0.22) 100%
    ),
    url("lion-admin-background.png") 72% 15% / cover no-repeat;
  background-attachment: fixed;
}

.app-shell.queen-theme > *,
.app-shell.admin-lion-theme > * {
  position: relative;
  z-index: 1;
}

.admin-lion-theme .summary-card,
.admin-lion-theme .panel,
.admin-lion-theme .date-card,
.admin-lion-theme .rate-pill,
.admin-lion-theme .user-pill {
  backdrop-filter: blur(8px);
}

.admin-lion-theme .summary-card,
.admin-lion-theme .panel {
  border-color: rgba(159, 112, 35, 0.21);
  box-shadow:
    0 20px 55px rgba(43, 25, 76, 0.15),
    0 0 0 1px rgba(255, 220, 139, 0.08);
}

.admin-lion-theme .topbar {
  border-bottom-color: rgba(164, 116, 36, 0.28);
}

.admin-lion-theme .brand-mark {
  background: linear-gradient(135deg, #b57a20, #5b347e);
  box-shadow:
    0 8px 22px rgba(115, 70, 20, 0.3),
    inset 0 1px 0 rgba(255, 244, 203, 0.45);
}

.nature-flight {
  position: fixed !important;
  z-index: 0 !important;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.butterfly {
  position: absolute;
  left: -70px;
  display: block;
  filter: drop-shadow(0 5px 8px rgba(67, 42, 116, 0.24));
  line-height: 1;
  opacity: 0;
  will-change: transform;
  animation: butterfly-flight 18s linear infinite;
}

.butterfly-one {
  top: 24%;
  font-size: 31px;
  animation-delay: -2s;
}

.butterfly-two {
  top: 48%;
  font-size: 23px;
  animation-delay: -10s;
  animation-duration: 22s;
}

.butterfly-three {
  top: 70%;
  font-size: 27px;
  animation-delay: -15s;
  animation-duration: 25s;
}

.butterfly-four {
  top: 36%;
  font-size: 19px;
  animation-delay: -18s;
  animation-duration: 28s;
}

.flying-bird {
  position: absolute;
  left: -90px;
  width: 46px;
  height: 22px;
  opacity: 0;
  will-change: transform;
  animation: bird-flight 30s linear infinite;
}

.flying-bird i,
.flying-bird i::after {
  position: absolute;
  top: 7px;
  width: 24px;
  height: 10px;
  border-top: 3px solid rgba(53, 32, 112, 0.72);
  content: "";
}

.flying-bird i {
  left: 1px;
  border-radius: 80% 0 0;
  transform: rotate(13deg);
  transform-origin: right center;
  animation: bird-wing-left 900ms ease-in-out infinite alternate;
}

.flying-bird i::after {
  left: 21px;
  border-radius: 0 80% 0 0;
  transform: rotate(-26deg);
  transform-origin: left center;
  animation: bird-wing-right 900ms ease-in-out infinite alternate;
}

.bird-one {
  top: 15%;
  animation-delay: -4s;
}

.bird-two {
  top: 31%;
  transform: scale(0.72);
  animation-delay: -19s;
  animation-duration: 36s;
}

.bird-three {
  top: 58%;
  transform: scale(0.58);
  animation-delay: -27s;
  animation-duration: 41s;
}

@keyframes butterfly-flight {
  0% {
    opacity: 0;
    transform: translate3d(-5vw, 4vh, 0) rotate(-10deg) scale(0.85);
  }

  8%,
  90% {
    opacity: 0.9;
  }

  25% {
    transform: translate3d(30vw, -5vh, 0) rotate(8deg) scale(1);
  }

  50% {
    transform: translate3d(58vw, 7vh, 0) rotate(-7deg) scale(0.9);
  }

  75% {
    transform: translate3d(85vw, -4vh, 0) rotate(10deg) scale(1.05);
  }

  100% {
    opacity: 0;
    transform: translate3d(115vw, 3vh, 0) rotate(-5deg) scale(0.9);
  }
}

@keyframes bird-flight {
  0% {
    opacity: 0;
    transform: translate3d(-8vw, 2vh, 0) scale(0.8);
  }

  8%,
  91% {
    opacity: 0.75;
  }

  42% {
    transform: translate3d(48vw, -5vh, 0) scale(0.9);
  }

  75% {
    transform: translate3d(87vw, 2vh, 0) scale(0.82);
  }

  100% {
    opacity: 0;
    transform: translate3d(116vw, -3vh, 0) scale(0.75);
  }
}

@keyframes bird-wing-left {
  to {
    transform: rotate(-8deg);
  }
}

@keyframes bird-wing-right {
  to {
    transform: rotate(8deg);
  }
}

.queen-theme .summary-card,
.queen-theme .panel,
.queen-theme .date-card {
  backdrop-filter: blur(7px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  border-bottom: 1px solid var(--line);
}

.topbar::after {
  position: absolute;
  right: 15%;
  bottom: -1px;
  left: 15%;
  height: 1px;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    var(--violet),
    var(--aqua),
    transparent
  );
  opacity: 0.65;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--violet), var(--green-dark));
  box-shadow:
    0 7px 18px rgba(87, 56, 166, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.rate-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.78),
    rgba(238, 231, 255, 0.68)
  );
  box-shadow: 0 8px 22px rgba(87, 56, 166, 0.09);
  font-size: 13px;
}

.rate-pill strong {
  color: var(--green);
}

.account-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 8px 7px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.84),
    rgba(239, 233, 255, 0.74)
  );
  box-shadow: 0 8px 24px rgba(75, 50, 122, 0.1);
}

.user-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 2px solid var(--lime);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  box-shadow:
    0 0 0 3px rgba(139, 92, 246, 0.18),
    0 5px 18px rgba(67, 42, 116, 0.25);
}

.user-pill > span {
  display: grid;
  gap: 1px;
  max-width: 180px;
}

.user-pill strong {
  color: var(--ink);
  font-size: 11px;
}

.user-pill small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
}

.user-pill button {
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  color: var(--green);
  background: var(--soft-green);
  font-size: 10px;
  font-weight: 700;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow:
    0 0 0 4px rgba(56, 217, 197, 0.15),
    0 0 14px rgba(56, 217, 197, 0.65);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 64px 0 46px;
}

.hero > div:first-child {
  width: 100%;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero-marquee {
  position: relative;
  width: 100%;
  margin-bottom: -6px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 100px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.72),
    rgba(237, 230, 255, 0.84),
    rgba(226, 250, 247, 0.72)
  );
  box-shadow:
    0 8px 24px rgba(76, 48, 132, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  grid-column: 1 / -1;
}

.hero-marquee::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 25%,
    rgba(255, 255, 255, 0.9) 45%,
    rgba(255, 214, 107, 0.5) 50%,
    transparent 68%
  );
  transform: translateX(-130%);
  animation: marquee-shine 3.4s ease-in-out infinite;
}

.hero-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 18px;
  padding: 9px 18px;
  animation: marquee-slide 18s linear infinite;
}

.hero-marquee-track span {
  color: transparent;
  background: linear-gradient(90deg, var(--green-dark), var(--violet), #a56e12);
  background-clip: text;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.hero-marquee-track i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  box-shadow:
    0 0 0 3px rgba(255, 214, 107, 0.18),
    0 0 12px rgba(255, 214, 107, 0.8);
}

@keyframes marquee-slide {
  to {
    transform: translateX(-50%);
  }
}

@keyframes marquee-shine {
  0%,
  25% {
    transform: translateX(-130%);
  }

  70%,
  100% {
    transform: translateX(130%);
  }
}

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

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(39px, 6vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

h1 span {
  color: transparent;
  background: linear-gradient(100deg, var(--violet), var(--rose), #b17b21);
  background-clip: text;
}

.hero-copy {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.viewer-welcome {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: -18px 0 26px;
  padding: 22px 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 214, 107, 0.65);
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 10% 30%, rgba(255, 226, 137, 0.24), transparent 30%),
    linear-gradient(120deg, rgba(53, 32, 112, 0.94), rgba(112, 68, 199, 0.9), rgba(43, 143, 145, 0.88));
  box-shadow:
    0 18px 45px rgba(55, 31, 109, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: welcome-arrive 700ms ease both;
}

.viewer-welcome::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.18), transparent 62%);
  transform: translateX(-120%);
  animation: welcome-shine 4.5s ease-in-out infinite 800ms;
}

.welcome-crown {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 235, 170, 0.7);
  border-radius: 18px;
  color: #ffe28a;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 24px rgba(255, 214, 107, 0.22);
  font-size: 29px;
}

.viewer-welcome p {
  margin-bottom: 5px;
  color: #ffe28a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.viewer-welcome h2 {
  margin-bottom: 4px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(18px, 2.5vw, 27px);
  letter-spacing: -0.025em;
}

.viewer-welcome div > span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

@keyframes welcome-arrive {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes welcome-shine {
  0%,
  25% {
    transform: translateX(-120%);
  }

  65%,
  100% {
    transform: translateX(120%);
  }
}

.date-card {
  min-width: 190px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.74),
    rgba(239, 231, 255, 0.64)
  );
  box-shadow: 0 12px 32px rgba(77, 50, 132, 0.09);
}

.date-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.date-card strong {
  font-family: "Manrope", sans-serif;
  font-size: 15px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-bottom: 22px;
}

.summary-card {
  min-height: 150px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.9),
    rgba(246, 241, 255, 0.78)
  );
  box-shadow: 0 15px 38px rgba(65, 42, 110, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.summary-card:hover {
  box-shadow: 0 20px 45px rgba(65, 42, 110, 0.15);
  transform: translateY(-2px);
}

.summary-card p {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 13px;
}

.summary-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(22px, 2.3vw, 30px);
  letter-spacing: -0.04em;
}

.summary-card > span,
.summary-card div > span {
  color: var(--muted);
  font-size: 11px;
}

.accent-card {
  display: flex;
  align-items: center;
  gap: 18px;
  border-color: rgba(255, 214, 107, 0.58);
  color: var(--white);
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 214, 107, 0.25), transparent 35%),
    linear-gradient(135deg, #352070, #7044c7 55%, #2b8f91);
  box-shadow:
    0 18px 45px rgba(67, 32, 126, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.accent-card p,
.accent-card div > span {
  color: rgba(255, 255, 255, 0.68);
}

.summary-icon {
  display: grid;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 14px;
  color: var(--green-dark);
  background: linear-gradient(135deg, #fff0a6, var(--lime));
  box-shadow:
    0 0 24px rgba(255, 214, 107, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 23px;
  font-weight: 700;
}

.legacy-import {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 17px 20px;
  border: 1px solid #b9d9c8;
  border-radius: 14px;
  background: var(--soft-green);
}

.legacy-import div {
  display: grid;
  gap: 3px;
}

.legacy-import strong {
  font-size: 13px;
}

.legacy-import span {
  color: var(--muted);
  font-size: 11px;
}

.legacy-import button {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 0;
  border-radius: 9px;
  color: var(--white);
  background: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.salary-panel {
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(0, 2fr);
  gap: 30px;
  margin-bottom: 22px;
  padding: 25px 28px;
  overflow: visible;
}

.salary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.salary-heading h2 {
  margin-bottom: 5px;
  font-family: "Manrope", sans-serif;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.salary-heading > div > span {
  color: var(--muted);
  font-size: 11px;
}

.salary-symbol {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px;
  color: var(--green-dark);
  background: linear-gradient(135deg, #fff0a6, var(--lime));
  box-shadow: 0 0 24px rgba(255, 214, 107, 0.28);
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.salary-form {
  display: grid;
  grid-template-columns: 0.75fr 1fr 1fr 1.15fr auto;
  align-items: end;
  gap: 12px;
}

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

.salary-save {
  width: 160px;
}

.salary-delete {
  min-width: 92px;
  color: #a13d62;
  border-color: rgba(161, 61, 98, 0.25);
  background: rgba(255, 242, 247, 0.82);
}

.salary-summary strong {
  color: var(--green);
}

.overtime-summary strong {
  color: var(--violet);
}

.income-summary strong {
  color: #9a6714;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 22px;
}

.workspace-grid.viewer-layout {
  grid-template-columns: 1fr;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.95),
    rgba(248, 245, 255, 0.91)
  );
  box-shadow: var(--shadow);
}

.form-panel {
  padding: 30px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}

.panel-heading h2 {
  margin-bottom: 0;
  font-family: "Manrope", sans-serif;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.panel-number {
  color: #c7d0cb;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

form {
  display: grid;
  gap: 19px;
}

label {
  display: grid;
  gap: 8px;
  color: #534a69;
  font-size: 12px;
  font-weight: 600;
}

input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus {
  border-color: var(--violet);
  box-shadow:
    0 0 0 3px rgba(139, 92, 246, 0.13),
    0 7px 18px rgba(91, 59, 159, 0.08);
}

.money-input {
  position: relative;
}

.money-input span {
  position: absolute;
  top: 50%;
  left: 15px;
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
  transform: translateY(-50%);
}

.money-input input {
  padding-left: 39px;
  font-size: 17px;
  font-weight: 600;
}

.commission-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.13);
  background: linear-gradient(
    120deg,
    rgba(238, 231, 255, 0.9),
    rgba(225, 250, 246, 0.82)
  );
}

.commission-preview span,
.commission-preview small {
  display: block;
}

.commission-preview span {
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 600;
}

.commission-preview small {
  color: var(--muted);
  font-size: 10px;
}

.commission-preview strong {
  color: var(--green);
  font-family: "Manrope", sans-serif;
  font-size: 18px;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 51px;
  padding: 0 18px;
  border: 0;
  border-radius: 11px;
  color: var(--white);
  background: linear-gradient(105deg, var(--green-dark), var(--violet), #2b9695);
  background-size: 180% 100%;
  box-shadow: 0 12px 26px rgba(87, 56, 166, 0.23);
  font-size: 13px;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease;
}

.primary-button:hover {
  background-position: 100% 0;
  box-shadow: 0 15px 32px rgba(87, 56, 166, 0.31);
}

.primary-button:active {
  transform: translateY(1px);
}

.primary-button span {
  font-size: 19px;
}

.records-panel {
  display: flex;
  min-height: 540px;
  flex-direction: column;
}

.records-heading {
  align-items: center;
  margin: 0;
  padding: 30px;
  border-bottom: 1px solid var(--line);
}

.records-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.refresh-button {
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--green);
  background: var(--white);
  font-size: 11px;
  font-weight: 700;
}

.sync-status {
  padding: 10px 30px;
  color: var(--muted);
  background: #fafbf9;
  font-size: 11px;
}

.month-filter {
  display: block;
}

.month-filter span {
  display: none;
}

.month-filter input {
  width: 155px;
  height: 40px;
  background: var(--white);
  font-size: 12px;
}

.table-wrap {
  position: relative;
  flex: 1;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  padding: 14px 20px;
  color: #8b9690;
  background: #fafbf9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

td {
  padding: 17px 20px;
  border-top: 1px solid #edf0ed;
  color: #536059;
}

td:nth-child(3),
td:nth-child(4) {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

td:nth-child(4) {
  color: var(--green);
}

td:last-child {
  width: 45px;
  padding-left: 5px;
}

.description-cell {
  max-width: 210px;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delete-button {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #a4ada8;
  background: transparent;
  transition: color 150ms ease, background 150ms ease;
}

.delete-button:hover {
  color: #b94242;
  background: #fff0f0;
}

.empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 35px;
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-icon {
  display: grid;
  width: 45px;
  height: 45px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--soft-green);
  font-size: 20px;
}

.empty-state h3 {
  margin-bottom: 6px;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.records-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 30px;
  border-top: 1px solid var(--line);
  background: #fafbf9;
}

.records-total > span {
  color: var(--muted);
  font-size: 11px;
}

.records-total div {
  text-align: right;
}

.records-total small,
.records-total strong {
  display: block;
}

.records-total small {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
}

.records-total strong {
  color: var(--green);
  font-family: "Manrope", sans-serif;
  font-size: 17px;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 35px 0;
  color: #9ba49f;
  font-size: 11px;
}

footer p {
  margin: 0;
}

footer span {
  color: #637068;
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast span {
  color: var(--lime);
  font-weight: 700;
}

.toast.error span:first-child {
  color: #ff9898;
}

.confirm-dialog {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgba(15, 27, 21, 0.5);
  backdrop-filter: blur(4px);
}

.confirm-card {
  width: min(100%, 390px);
  padding: 28px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.confirm-card h3 {
  margin-bottom: 9px;
  font-family: "Manrope", sans-serif;
  font-size: 19px;
}

.confirm-card p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.confirm-card > div {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.secondary-button,
.danger-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
}

.danger-button {
  border: 0;
  color: var(--white);
  background: #b94242;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

  .accent-card {
    grid-column: auto;
  }

  .salary-panel {
    grid-template-columns: 1fr;
  }

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

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

  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .auth-screen {
    align-content: start;
    padding: 105px 16px 24px;
  }

  .auth-brand {
    top: 28px;
    left: 20px;
  }

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

  .auth-card h1 {
    font-size: 31px;
  }

  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .app-shell.admin-lion-theme::before {
    background:
      linear-gradient(
        rgba(247, 242, 255, 0.75),
        rgba(247, 242, 255, 0.88)
      ),
      url("lion-admin-background.png") 64% top / cover no-repeat;
    background-attachment: scroll;
  }

  .topbar {
    align-items: flex-start;
    height: 72px;
  }

  .account-area {
    align-items: flex-end;
    flex-direction: column;
    gap: 5px;
    padding-top: 10px;
  }

  .rate-pill {
    padding: 6px 10px;
    font-size: 10px;
  }

  .user-pill {
    padding: 4px 5px 4px 9px;
  }

  .user-avatar {
    width: 32px;
    height: 32px;
  }

  .user-pill > span {
    max-width: 110px;
  }

  .user-pill small {
    display: none;
  }

  .user-pill button {
    padding: 5px 7px;
  }

  .hero {
    display: flex;
    align-items: flex-start;
    padding: 45px 0 35px;
    flex-direction: column;
  }

  .hero-marquee {
    width: 100%;
  }

  h1 {
    font-size: 41px;
  }

  .date-card {
    width: 100%;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .salary-panel {
    padding: 22px;
  }

  .viewer-welcome {
    align-items: flex-start;
    margin-top: -12px;
    padding: 20px;
  }

  .welcome-crown {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .butterfly-four,
  .bird-three {
    display: none;
  }

  .salary-form {
    grid-template-columns: 1fr;
  }

  .salary-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .salary-save,
  .salary-delete {
    width: 100%;
  }

  .summary-card {
    min-height: 125px;
  }

  .legacy-import {
    align-items: stretch;
    flex-direction: column;
  }

  .form-panel,
  .records-heading {
    padding: 22px;
  }

  .records-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .records-actions {
    width: 100%;
  }

  .refresh-button {
    flex: 0 0 auto;
  }

  .month-filter,
  .month-filter input {
    width: 100%;
  }

  th,
  td {
    padding-right: 14px;
    padding-left: 14px;
  }

  th:nth-child(2),
  td:nth-child(2) {
    display: none;
  }

  .records-total {
    padding: 18px 22px;
  }

  footer {
    gap: 8px;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-marquee-track,
  .hero-marquee::after,
  .viewer-welcome,
  .viewer-welcome::after,
  .butterfly,
  .flying-bird,
  .flying-bird i,
  .flying-bird i::after {
    animation: none;
  }

  .nature-flight {
    display: none;
  }
}
