.demo-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.demo-switch:hover {
  background: #e1ead8;
}
.staff-home .intro {
  margin-bottom: 17px;
}
.staff-home .intro h1 {
  font-size: clamp(24px, 2.1vw, 31px);
}
.salary-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #d2dfbe;
  border-radius: 15px;
  min-height: 265px;
  background: linear-gradient(107deg, #f0f4de 0%, #eaf2d9 54%, #e7f0d3 100%);
  box-shadow: 0 2px 5px #29442a07;
  display: flex;
  align-items: stretch;
}
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: 23px 32px 22px;
  width: 58%;
  pointer-events: none;
}
.hero-copy button {
  pointer-events: auto;
}
.salary-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border: 1px solid #c4d7b7;
  border-radius: 13px;
  background: #f9fcebd4;
  color: #476942;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}
.pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #62965b;
  border-radius: 50%;
}
.salary-hero[data-state='working'] .pulse-dot,
.salary-hero[data-state='overtime'] .pulse-dot {
  animation: salary-pulse 2.2s ease-out infinite;
}
.salary-hero h2 {
  margin-top: 13px;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: 0.005em;
  color: #4c6347;
}
.salary-counter {
  color: #24462f;
  display: flex;
  align-items: baseline;
  gap: 7px;
  line-height: 1.04;
  letter-spacing: -0.055em;
  margin: 5px 0 10px;
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}
.salary-symbol {
  font-size: clamp(25px, 2.7vw, 41px);
  font-weight: 570;
}
.salary-int {
  font-size: clamp(48px, 4.85vw, 76px);
  font-weight: 630;
}
.salary-fraction {
  font-size: clamp(30px, 3.5vw, 53px);
  font-weight: 495;
  color: #51724d;
  letter-spacing: -0.065em;
}
.rate-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
}
.rate-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #486c40;
  border-radius: 5px;
  background: #dce9ca;
  padding: 3px 6px;
  font-size: 12px;
}
.rate-chip b {
  font-weight: 640;
}
.salary-rule-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #65775e;
  padding: 5px 0;
}
.salary-rule-link:hover {
  color: #264c33;
  text-decoration: underline;
}
.hero-progress {
  width: min(100%, 330px);
  margin-top: 22px;
  color: #65785c;
}
.hero-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.hero-progress b {
  font-weight: 530;
}
.hero-rail {
  height: 5px;
  background: #d4e0c3;
  border-radius: 5px;
  margin-top: 7px;
  overflow: hidden;
}
.hero-rail i {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: #73966a;
}
.studio-scene {
  position: absolute;
  z-index: 1;
  right: 2.8%;
  bottom: 0;
  height: 100%;
  width: 44%;
  display: grid;
  place-items: center;
  background: transparent;
  padding: 0;
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  outline-offset: -6px !important;
}
.studio-scene img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  min-width: 0;
  min-height: 0;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 7%,
    black 95%,
    transparent 100%
  );
  transition: transform 0.3s ease;
}

.studio-scene:hover img {
  transform: translateY(-2px);
}
.studio-scene.cheer img {
  animation: desk-bounce 0.58s cubic-bezier(0.4, 0.1, 0.3, 1);
}
#desk-popup {
  position: absolute;
  top: 21%;
  left: 17%;
  transform: translate(-10%, 7px);
  opacity: 0;
  pointer-events: none;
  background: #fffbe4f2;
  border: 1px solid #d5d8aa;
  border-radius: 10px 10px 10px 1px;
  padding: 6px 9px;
  color: #5e6542;
  font-size: 12px;
  transition: 0.2s;
}
.studio-scene.cheer #desk-popup {
  opacity: 1;
  transform: translate(-10%, 0);
}
.hero-day {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  top: 16px;
  right: 17px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #657859;
  pointer-events: none;
}
.section-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 19px 0 11px;
}
.section-line h2 {
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -0.035em;
}
.section-line > span {
  font-size: 12px;
  color: #7b857b;
}
.pay-parts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.pay-part {
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 17px 13px;
  min-width: 0;
  transition:
    background 0.16s,
    border-color 0.16s;
}
.pay-part:hover {
  background: #fcfdf9;
  border-color: #b6c9b0;
}
.part-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #59675e;
  font-size: 14px;
  font-weight: 550;
}
.part-title .ico-box {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}
.part-title .icon {
  width: 16px;
  height: 16px;
}
.ico-box.sky {
  background: #e8eff4;
  color: #6b8797;
}
.part-value {
  margin: 9px 0 4px;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 630;
  letter-spacing: -0.05em;
  color: #29382e;
}
.part-value small {
  font-size: 0.66em;
  font-weight: 545;
  margin-right: 3px;
}
.part-caption {
  font-size: 12px;
  color: #7b857c;
}
.staff-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 15px;
  margin-top: 17px;
}
.staff-lower .card {
  padding: 18px 20px;
}
.staff-lower .rank-card {
  padding-bottom: 14px;
}
.shift-hours {
  font-size: 12px;
  color: #73806e;
  background: #f2f5ef;
  border: 1px solid #e3e8dd;
  border-radius: 5px;
  padding: 3px 7px;
}
.schedule-update {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  margin: 8px 0;
  border-left: 3px solid #70927b;
  background: #f2f5ef;
  color: #3e5545;
  font-size: 12px;
}
.clockline {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #647369;
  font-size: 12px;
  margin: 13px 0 8px;
}
.clockline b {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-weight: 560;
  letter-spacing: 0.04em;
}
.shift-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 47px;
}
.shift-item:not(:last-child):after {
  content: '';
  position: absolute;
  left: 4px;
  top: calc(50% + 5px);
  width: 1px;
  bottom: -20px;
  background: #dce5d5;
}
.shift-pin {
  width: 9px;
  height: 9px;
  z-index: 1;
  border-radius: 50%;
  border: 2px solid #f1f4ed;
  box-shadow: 0 0 0 1px #d0d8c9;
  background: #bbc5b4;
}
.shift-item[data-state='current'] .shift-pin {
  background: #668d63;
  border-color: #e7efdf;
  box-shadow: 0 0 0 2px #dce8d4;
}
.shift-label {
  display: flex;
  gap: 11px;
  align-items: center;
  flex-wrap: wrap;
}
.shift-label b {
  font-size: 14px;
  font-weight: 550;
}
.shift-label span {
  font-size: 12px;
  color: #6e7c70;
  white-space: nowrap;
}
.shift-state {
  font-size: 12px;
  color: #889283;
  margin-left: auto;
  white-space: nowrap;
}
.shift-item[data-state='current'] .shift-state {
  color: #4b7049;
  background: #eaf1e5;
  border-radius: 4px;
  padding: 2px 6px;
}
.shift-footer {
  font-size: 12px;
  color: #758173;
  border-top: 1px solid var(--line);
  padding-top: 11px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.shift-footer span {
  height: 10px;
  width: 1px;
  background: var(--line);
}
.standalone-rank {
  max-width: 620px;
}
.persona-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.persona-item {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fcfdfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  text-align: left;
}
.persona-item:hover {
  border-color: #b6c8b1;
  background: #f1f6eb;
}
.persona-item > span:nth-child(2) {
  flex: 1;
}
.persona-item b,
.persona-item small {
  display: block;
}
.persona-item b {
  font-size: 15px;
}
.persona-item small {
  font-size: 12px;
  color: #70806e;
  margin-top: 3px;
}
@keyframes salary-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(92 139 79 / 0.15);
  }
  55% {
    box-shadow: 0 0 0 4px rgb(92 139 79 / 0.08);
  }
}
@keyframes desk-bounce {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  35% {
    transform: translateY(-5px) rotate(-1deg);
  }
  70% {
    transform: translateY(-1px) rotate(1deg);
  }
}
@media (min-width: 1500px) {
  .salary-hero {
    min-height: 295px;
  }
  .hero-copy {
    padding-left: 36px;
  }
  .pay-part {
    padding: 18px 20px;
  }
}
@media (max-width: 1100px) {
  .hero-copy {
    padding: 23px;
    width: 60%;
  }
  .salary-hero {
    min-height: 250px;
  }
  .hero-progress {
    max-width: 278px;
  }
  .pay-parts {
    gap: 8px;
  }
  .pay-part {
    padding: 12px;
  }
  .staff-lower {
    gap: 11px;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
  .staff-lower .card {
    padding: 15px;
  }
  .shift-label {
    gap: 6px;
  }
  .studio-scene {
    width: 43%;
    right: 1.3%;
  }
}
@media (max-width: 760px) {
  .staff-home .intro h1 {
    font-size: 23px;
  }
  .salary-hero {
    min-height: 235px;
  }
  .pay-parts {
    gap: 8px;
  }
  .staff-lower {
    margin-top: 12px;
  }
  .hero-copy {
    padding: 17px;
  }
  .hero-progress {
    max-width: 250px;
  }
  .hero-day {
    font-size: 11px;
    top: 10px;
    right: 10px;
  }
}
@media (max-width: 610px) {
  .staff-home .intro h1 {
    font-size: 21px;
  }
  .staff-home .intro > .btn {
    min-height: 30px;
    padding: 5px 9px;
  }
  .staff-home .intro {
    gap: 5px;
  }
  .salary-hero {
    min-height: 222px;
  }
  .salary-int {
    font-size: 40px;
  }
  .salary-fraction {
    font-size: 23px;
  }
  .salary-symbol {
    font-size: 22px;
  }
  .salary-counter {
    margin: 10px 0;
  }
  .hero-copy {
    width: 62%;
    padding: 16px 0 14px 14px;
  }
  .salary-hero h2 {
    font-size: 13px;
    margin-top: 10px;
  }
  .studio-scene {
    width: 44%;
    height: 75%;
    bottom: 8%;
    right: -3%;
  }
  .hero-day {
    font-size: 10px;
  }
  .rate-line {
    gap: 4px;
  }
  .rate-chip {
    font-size: 10px;
  }
  .salary-rule-link {
    font-size: 11px;
  }
  .hero-progress {
    margin-top: 15px;
    max-width: 180px;
  }
  .hero-progress > div:first-child {
    font-size: 10px;
  }
  .salary-kicker {
    font-size: 11px;
  }
  .pay-parts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pay-part {
    padding: 11px 13px;
  }
  .part-title {
    font-size: 13px;
  }
  .part-value {
    margin: 6px 0 3px;
  }
  .part-caption {
    font-size: 11px;
  }
  .section-line {
    margin: 14px 0 9px;
  }
  .staff-lower {
    grid-template-columns: 1fr;
  }
  .shift-card .card-head {
    margin-bottom: 3px;
  }
  .staff-lower .rank-card {
    grid-row: 1;
  }
  .standalone-rank {
    max-width: none;
  }
  .staff-home .intro p {
    font-size: 11.5px;
  }
  #desk-popup {
    left: 2%;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .salary-hero *,
  .studio-scene img {
    animation: none !important;
    transition: none !important;
  }
}

.attendance-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  margin-top: 11px;
}
.punch-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 7px 15px;
  border: 1px solid #315b3c;
  border-radius: 7px;
  background: #315b3c;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}
.punch-button:enabled:hover {
  background: #24492e;
}
.punch-button.checkout {
  border-color: #56704e;
  color: #294932;
  background: #fffdf4;
}
.punch-button.checkout:enabled:hover {
  background: #f5f1d9;
}
.punch-button:disabled {
  background: #e2e8d9;
  color: #596955;
  border-color: #c8d3bb;
  cursor: default;
}
.punch-button.punched {
  color: #30533b;
  background: #d6e6ca;
}
.attendance-action small {
  font-size: 12px;
  color: #53694c;
}
.performance-amounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #dce4d6;
  border-radius: 8px;
  background: #f6f8f2;
  margin: 4px 0 16px;
}
.performance-amounts > div {
  padding: 15px;
}
.performance-amounts small,
.performance-amounts strong {
  display: block;
}
.performance-amounts strong {
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink, #21372b);
  font-size: clamp(15px, 2.5vw, 22px);
}
.attendance-page .filters .field {
  margin: 0;
  min-width: 140px;
}
#pay-terms {
  margin-block: 10px;
}
.salary-hero .hero-progress {
  margin-top: 12px;
}
.salary-hero[data-state='awaiting_punch'] .salary-kicker {
  border-color: #d5c493;
  background: #f8f1d7;
  color: #795c23;
}
@media (max-width: 610px) {
  .performance-amounts > div {
    padding: 9px;
  }
  .punch-button {
    min-height: 40px;
    padding: 6px 11px;
    font-size: 13px;
  }
  .attendance-action {
    gap: 4px 8px;
  }
  .attendance-action small {
    font-size: 11px;
  }
}
