:root {
  color-scheme: light;
  --bg: #0b192c;
  --surface: #ffffff;
  --surface-soft: #f3f5f8;
  --line: #e6e8ee;
  --line-strong: #c8ced8;
  --text: #111827;
  --muted: #687386;
  --orange: #ff6500;
  --orange-deep: #df5600;
  --blue: #1e3e62;
  --blue-deep: #0b192c;
  --black: #000000;
  --cyan: #ff6500;
  --red: #d64045;
  --amber: #ff6500;
  --green: #1f9f71;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;
  background: #f4f5f7;
  color: var(--text);
}

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

button {
  border: 0;
  cursor: pointer;
}

.workspace {
  min-height: 100svh;
  display: grid;
  justify-items: center;
  background: #f4f5f7;
}

.app-shell {
  width: min(100%, 480px);
  height: 100svh;
  min-height: 100svh;
  background: #f4f5f7;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
}

.topbar {
  min-height: 64px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #fff;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
}

.topbar-title {
  text-align: center;
  font-size: 17px;
  font-weight: 760;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin: auto;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease;
}

.icon-button:hover {
  background: rgba(255, 101, 0, 0.16);
  color: #fff;
}

.content {
  overflow-y: auto;
  background: #f4f5f7;
  overscroll-behavior: contain;
}

.screen {
  min-height: 100%;
  padding-bottom: 18px;
}

.dashboard-screen {
  min-height: 100%;
  padding-bottom: 0;
  background:
    radial-gradient(circle at 78% 12%, rgba(69, 118, 166, 0.58), transparent 34%),
    linear-gradient(145deg, #061526 0%, #0b192c 58%, #07111d 100%);
}

.dashboard-hero {
  padding: calc(54px + env(safe-area-inset-top)) 24px 82px;
  color: #fff;
  position: relative;
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  left: -18%;
  right: 18%;
  bottom: 64px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transform: rotate(-14deg);
  pointer-events: none;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard-header h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.14;
  font-weight: 830;
  letter-spacing: 0;
}

.dashboard-header p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 17px;
}

.dashboard-refresh {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.dashboard-refresh svg {
  width: 21px;
  height: 21px;
  stroke-width: 2;
}

.summary-card {
  position: relative;
  z-index: 1;
  padding: 24px 20px 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--blue-deep);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.22);
}

.summary-card .gauge-zone {
  padding: 0 0 22px;
}

.premium-gauge {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 55%, transparent 56%),
    conic-gradient(var(--orange) 0 var(--progress), #dfe5ee var(--progress) 360deg);
  box-shadow: 0 18px 28px rgba(11, 25, 44, 0.12);
}

.premium-gauge::before {
  width: 124px;
  height: 124px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(11, 25, 44, 0.03);
}

.premium-gauge::after {
  content: none;
}

.premium-gauge .gauge-copy {
  z-index: 2;
}

.premium-gauge .gauge-label {
  width: auto;
  margin: 0 0 8px;
  color: #111827;
  font-size: 19px;
  line-height: 1;
}

.premium-gauge .gauge-days {
  color: #000;
  font-size: 38px;
  line-height: 1;
  font-weight: 860;
}

.premium-gauge .gauge-days-small {
  font-size: 33px;
}

.summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.summary-metric {
  min-width: 0;
  display: grid;
  gap: 2px;
  place-items: center;
  color: #000;
}

.summary-metric + .summary-metric {
  border-left: 1px solid #dce1e8;
}

.summary-metric strong {
  font-size: 25px;
  line-height: 1;
  font-weight: 830;
}

.summary-metric span {
  font-size: 16px;
  color: #111827;
}

.dashboard-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
}

.pill-button {
  min-width: 190px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid rgba(255, 101, 0, 0.92);
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, var(--orange), #ff4f00);
  box-shadow: 0 14px 26px rgba(255, 101, 0, 0.28);
  font-size: 16px;
  font-weight: 760;
  white-space: nowrap;
}

.pill-button.active {
  color: #fff;
  background: linear-gradient(145deg, var(--orange), #ff4f00);
  border-color: rgba(255, 101, 0, 0.92);
}

.recent-panel {
  position: relative;
  min-height: 410px;
  margin-top: -74px;
  padding: 44px 24px 112px;
  border-radius: 32px 32px 0 0;
  background:
    radial-gradient(circle at 20% 4%, rgba(255, 255, 255, 0.94), transparent 28%),
    #f8f9fb;
  box-shadow: 0 -22px 54px rgba(0, 0, 0, 0.18);
}

.panel-handle {
  width: 54px;
  height: 6px;
  margin: -18px auto 34px;
  border-radius: 999px;
  background: #d7dde6;
}

.recent-panel h2 {
  margin: 0 0 22px;
  color: #000;
  font-size: 27px;
  line-height: 1.1;
  font-weight: 860;
  letter-spacing: 0;
}

.premium-list {
  display: grid;
  gap: 14px;
}

.premium-leave-item {
  min-height: 92px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(11, 25, 44, 0.05);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(11, 25, 44, 0.1);
}

.leave-status-pending {
  border-color: rgba(214, 64, 69, 0.18);
  background: #fff5f5;
}

.leave-status-approved {
  border-color: rgba(31, 159, 113, 0.18);
  background: #f3fbf7;
}

.leave-status-rejected {
  border-color: rgba(214, 64, 69, 0.22);
  background: #fff1f1;
}

.premium-leave-item.leave-status-pending,
.premium-leave-item.leave-status-rejected {
  box-shadow: 0 12px 30px rgba(214, 64, 69, 0.11);
}

.premium-leave-item.leave-status-approved {
  box-shadow: 0 12px 30px rgba(31, 159, 113, 0.11);
}

.leave-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--blue-deep);
  background: #edf2f8;
}

.leave-icon svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.9;
}

.premium-leave-main,
.premium-leave-side {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.premium-leave-main strong,
.premium-leave-side strong {
  color: #000;
  font-size: 20px;
  line-height: 1.05;
  font-weight: 830;
}

.premium-leave-main span,
.premium-leave-side span {
  color: #111827;
  font-size: 15px;
  line-height: 1.15;
}

.premium-leave-side {
  justify-items: end;
  text-align: right;
}

.band-title {
  height: 38px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(11, 25, 44, 0.08);
  background: #fff;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-summary {
  margin: 14px 14px 0;
  padding: 18px 18px 20px;
  background:
    linear-gradient(145deg, rgba(30, 62, 98, 0.94), rgba(11, 25, 44, 1)),
    var(--blue-deep);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(11, 25, 44, 0.22);
  color: #fff;
}

.vacation-line {
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  line-height: 1.55;
}

.vacation-line strong {
  font-weight: 750;
}

.small-muted {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.gauge-zone {
  display: grid;
  place-items: center;
  padding: 18px 0 8px;
}

.gauge {
  --progress: 0deg;
  width: 172px;
  height: 172px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #fff 0 56%, transparent 57%),
    conic-gradient(var(--orange) 0 var(--progress), rgba(255, 255, 255, 0.14) var(--progress) 360deg);
  position: relative;
}

.gauge::before {
  content: "";
  width: 122px;
  height: 122px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
}

.gauge-copy {
  position: relative;
  z-index: 1;
  text-align: center;
}

.gauge-days {
  display: block;
  color: var(--blue-deep);
  font-size: 31px;
  line-height: 1;
  font-weight: 760;
}

.gauge-label {
  display: block;
  width: 98px;
  margin-top: 7px;
  color: #596476;
  font-size: 12px;
  line-height: 1.15;
}

.gauge.premium-gauge {
  background:
    radial-gradient(circle at center, #fff 0 55%, transparent 56%),
    conic-gradient(var(--orange) 0 var(--progress), #dfe5ee var(--progress) 360deg);
  box-shadow: 0 18px 28px rgba(11, 25, 44, 0.12);
}

.gauge.premium-gauge::before {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(11, 25, 44, 0.03);
}

.gauge.premium-gauge::after {
  content: none;
}

.primary-button {
  width: min(100%, 210px);
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: var(--orange);
  border-radius: 10px;
  box-shadow: 0 12px 22px rgba(255, 101, 0, 0.25);
  font-weight: 740;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.primary-button:hover {
  background: var(--orange-deep);
}

.primary-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke-width: 2.2;
}

.button-row {
  display: flex;
  justify-content: center;
  padding: 8px 24px 0;
}

.section-head {
  height: 38px;
  display: grid;
  place-items: center;
  margin-top: 12px;
  border-top: 1px solid rgba(11, 25, 44, 0.08);
  border-bottom: 1px solid rgba(11, 25, 44, 0.08);
  color: var(--blue-deep);
  background: #fff;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.list {
  padding: 10px 14px 16px;
}

.leave-item {
  min-height: 76px;
  display: grid;
  grid-template-columns: 62px 1fr 38px;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 0 10px;
  border: 1px solid rgba(11, 25, 44, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(11, 25, 44, 0.06);
}

.leave-item:last-child {
  border-bottom: 0;
}

.leave-item-past {
  border-color: rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(145deg, rgba(30, 62, 98, 0.92), rgba(11, 25, 44, 0.96)),
    var(--blue-deep);
  box-shadow: 0 10px 22px rgba(11, 25, 44, 0.12);
  opacity: 0.88;
}

.leave-item.leave-status-approved {
  border-color: rgba(31, 159, 113, 0.18);
  background: #f3fbf7;
}

.leave-item.leave-status-pending,
.leave-item.leave-status-rejected {
  border-color: rgba(214, 64, 69, 0.18);
  background: #fff5f5;
}

.date-pair {
  font-size: 13px;
  line-height: 1.25;
  padding-left: 8px;
}

.item-meta {
  min-width: 0;
  line-height: 1.25;
}

.item-days {
  color: var(--muted);
  font-size: 12px;
}

.item-type {
  font-size: 14px;
  font-weight: 720;
}

.item-note {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leave-item-past .date-pair,
.leave-item-past .item-type,
.leave-item-past .menu-button {
  color: #fff;
}

.leave-item-past .item-days,
.leave-item-past .item-note {
  color: rgba(255, 255, 255, 0.68);
}

.leave-item-past .menu-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.chevron {
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(30, 62, 98, 0.35);
  border-bottom: 2px solid rgba(30, 62, 98, 0.35);
  transform: rotate(-45deg);
}

.leave-menu {
  position: relative;
  display: grid;
  justify-items: end;
}

.menu-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--blue-deep);
  background: transparent;
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 1px;
}

.menu-button:hover {
  background: rgba(11, 25, 44, 0.06);
}

.menu-popover {
  position: absolute;
  top: 36px;
  right: 0;
  z-index: 8;
  min-width: 118px;
  padding: 6px;
  border: 1px solid rgba(11, 25, 44, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(11, 25, 44, 0.18);
}

.menu-popover button {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--blue-deep);
  background: transparent;
  text-align: left;
  font-weight: 720;
}

.menu-popover button:hover {
  background: rgba(255, 101, 0, 0.1);
}

.empty {
  margin: 36px 28px;
  padding: 28px 20px;
  border: 1px dashed rgba(30, 62, 98, 0.32);
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.tabs {
  min-height: 82px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(calc(100% - 28px), 452px);
  margin: 0 auto max(14px, env(safe-area-inset-bottom));
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 34px rgba(11, 25, 44, 0.18);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.tab {
  color: #000;
  background: transparent;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 7px 2px 8px;
  font-size: 11px;
}

.tab.active {
  color: var(--blue-deep);
}

.tab svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.7;
}

@supports (height: 100dvh) {
  body,
  .workspace,
  .app-shell {
    min-height: 100dvh;
  }

  .app-shell {
    height: 100dvh;
  }
}

.form {
  padding: 18px 24px 24px;
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(30, 62, 98, 0.18);
  border-radius: 10px;
  color: var(--text);
  background: #fff;
  outline: none;
}

.field textarea {
  min-height: 74px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 101, 0, 0.14);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  width: 38px;
  height: 38px;
  position: absolute;
  right: 4px;
  top: 50%;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(30, 62, 98, 0.18);
  border-radius: 10px;
  overflow: hidden;
}

.segment {
  min-height: 42px;
  background: #fff;
  color: var(--blue);
  font-weight: 650;
}

.segment + .segment {
  border-left: 1px solid rgba(30, 62, 98, 0.18);
}

.segment.active {
  color: #fff;
  background: var(--blue);
}

.calendar {
  margin: 12px 14px 0;
  border: 1px solid rgba(11, 25, 44, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(11, 25, 44, 0.05);
  overflow: hidden;
}

.calendar-head {
  height: 58px;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
}

.calendar-month {
  text-align: center;
  font-size: 14px;
  color: var(--blue-deep);
  font-weight: 750;
}

.weekdays,
.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  column-gap: 5px;
  padding: 0 22px;
}

.weekdays {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  padding-bottom: 5px;
}

.day-button {
  width: 38px;
  height: 38px;
  margin: 2px 0;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  color: var(--blue-deep);
  background: transparent;
  font-size: 12px;
}

.day-button.weekend {
  color: var(--red);
}

.day-button.outside {
  color: #b6bbc5;
}

.day-button.range {
  width: 38px;
  border-radius: 10px;
  color: #fff;
  background: rgba(30, 62, 98, 0.74);
}

.day-button.selected {
  width: 38px;
  border-radius: 50%;
  color: #fff;
  background: var(--orange);
}

.day-button.anchor {
  width: 38px;
  border-radius: 50%;
  color: #fff;
  background: var(--orange);
}

.selected-box {
  display: grid;
  gap: 10px;
  padding: 16px 14px;
  text-align: center;
  border: 1px solid rgba(255, 101, 0, 0.14);
  border-radius: 12px;
  background: rgba(255, 101, 0, 0.08);
}

.selected-line {
  font-size: 14px;
}

.selected-line strong {
  font-weight: 760;
}

.totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px;
}

.settings-screen .form {
  gap: 10px;
  padding-top: 14px;
}

.settings-screen .field {
  gap: 5px;
}

.settings-screen .field input {
  min-height: 38px;
  padding: 8px 12px;
}

.settings-screen .totals {
  padding: 8px 14px;
}

.settings-screen .metric {
  min-height: 62px;
}

.metric {
  min-height: 74px;
  border: 1px solid rgba(11, 25, 44, 0.08);
  border-radius: 12px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(11, 25, 44, 0.05);
}

.metric strong {
  font-size: 20px;
  color: var(--blue-deep);
}

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

.login-card {
  padding: 24px;
  display: grid;
  gap: 18px;
  background:
    linear-gradient(180deg, var(--blue-deep) 0 220px, #f4f5f7 220px 100%);
}

.brand {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 10px 0 8px;
  text-align: center;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 12px 25px rgba(255, 101, 0, 0.28);
}

.brand h1 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  letter-spacing: 0;
}

.brand p {
  max-width: 250px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.45;
}

.link-button {
  color: var(--orange);
  background: transparent;
  font-weight: 700;
}

.login-switch {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.admin-screen {
  min-height: 100%;
  padding-bottom: 24px;
  background: #f4f5f7;
}

.admin-hero {
  min-height: 178px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding: calc(34px + env(safe-area-inset-top)) 24px 34px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 8%, rgba(69, 118, 166, 0.58), transparent 34%),
    linear-gradient(145deg, #061526 0%, #0b192c 58%, #07111d 100%);
}

.admin-detail-hero {
  grid-template-columns: 42px 1fr auto;
  align-items: start;
}

.admin-back {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.admin-back svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.admin-eyebrow {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-hero h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: 0;
}

.admin-hero p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.35;
}

.admin-hero-actions {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.admin-logout,
.admin-hero-button {
  width: 92px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 780;
  backdrop-filter: blur(12px);
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: -34px 18px 14px;
  position: relative;
  z-index: 1;
}

.admin-next-card {
  width: calc(100% - 36px);
  display: grid;
  gap: 5px;
  margin: -34px 18px 16px;
  padding: 18px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(11, 25, 44, 0.06);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(11, 25, 44, 0.1);
  text-align: left;
}

.admin-approval-card.has-pending {
  border-color: rgba(214, 64, 69, 0.2);
  background: #fff5f5;
  box-shadow: 0 14px 30px rgba(214, 64, 69, 0.12);
}

.admin-next-card span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-next-card strong {
  color: #000;
  font-size: 23px;
  line-height: 1.1;
  font-weight: 860;
}

.admin-next-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}

.admin-detail-summary {
  margin-bottom: 18px;
}

.admin-stat {
  min-height: 76px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  border: 1px solid rgba(11, 25, 44, 0.06);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(11, 25, 44, 0.1);
}

.admin-stat strong {
  color: var(--blue-deep);
  font-size: 22px;
  line-height: 1;
  font-weight: 850;
}

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

.admin-list {
  display: grid;
  gap: 12px;
  padding: 0 18px;
}

.admin-user-card {
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(11, 25, 44, 0.06);
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-align: left;
  box-shadow: 0 10px 24px rgba(11, 25, 44, 0.08);
}

.admin-user-card:active {
  transform: translateY(1px);
}

.admin-user-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-user-head strong {
  display: block;
  color: #000;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 850;
}

.admin-user-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.admin-left-pill {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  font-size: 13px;
  font-weight: 820;
  box-shadow: 0 10px 20px rgba(255, 101, 0, 0.2);
}

.admin-user-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 24px;
}

.admin-user-metrics div {
  min-height: 58px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  border-radius: 12px;
  background: #f4f6f9;
}

.admin-user-metrics strong {
  color: var(--blue-deep);
  font-size: 18px;
  line-height: 1;
  font-weight: 840;
}

.admin-user-metrics span {
  color: var(--muted);
  font-size: 11px;
}

.admin-user-footer {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.admin-detail-section {
  padding: 0 18px;
}

.admin-approvals-section,
.viewer-section {
  padding-top: 22px;
}

.admin-section-title {
  margin: 0 0 10px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-entry-list {
  display: grid;
  gap: 10px;
}

.admin-entry {
  min-height: 82px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(11, 25, 44, 0.06);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(11, 25, 44, 0.08);
}

.approval-entry {
  width: 100%;
  text-align: left;
}

.admin-entry.leave-status-approved {
  border-color: rgba(31, 159, 113, 0.18);
  background: #f3fbf7;
}

.admin-entry.leave-status-pending,
.admin-entry.leave-status-rejected {
  border-color: rgba(214, 64, 69, 0.18);
  background: #fff5f5;
}

.admin-entry-past {
  border-color: rgba(255, 255, 255, 0.06);
  color: #fff;
  background:
    linear-gradient(145deg, rgba(30, 62, 98, 0.92), rgba(11, 25, 44, 0.96)),
    var(--blue-deep);
  box-shadow: 0 10px 22px rgba(11, 25, 44, 0.12);
}

.admin-entry-date {
  display: grid;
  gap: 2px;
  color: var(--blue-deep);
  font-size: 13px;
  line-height: 1.1;
}

.admin-entry-date strong,
.admin-entry-date span {
  display: block;
}

.admin-entry-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.admin-entry-main span {
  color: var(--muted);
  font-size: 12px;
}

.admin-entry-main strong {
  color: #000;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 820;
}

.admin-entry-main em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-entry-status {
  align-self: center;
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--blue-deep);
  background: #eef2f7;
  font-size: 11px;
  font-weight: 780;
  white-space: nowrap;
}

.admin-entry-past .admin-entry-date,
.admin-entry-past .admin-entry-main strong {
  color: #fff;
}

.admin-entry-past .admin-entry-main span,
.admin-entry-past .admin-entry-main em {
  color: rgba(255, 255, 255, 0.68);
}

.admin-entry-past .admin-entry-status {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.team-calendar {
  margin: 0 18px 16px;
  padding: 16px;
  border: 1px solid rgba(11, 25, 44, 0.06);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(11, 25, 44, 0.08);
}

.team-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.team-calendar-head span {
  display: block;
  color: var(--orange);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-calendar-head strong {
  display: block;
  margin-top: 3px;
  color: #000;
  font-size: 19px;
  line-height: 1.15;
  font-weight: 860;
}

.team-calendar-nav {
  display: inline-flex;
  gap: 8px;
}

.team-calendar-nav button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(11, 25, 44, 0.08);
  border-radius: 12px;
  color: var(--blue-deep);
  background: #f3f5f8;
}

.team-calendar-nav button:last-child svg {
  transform: rotate(180deg);
}

.team-calendar-nav svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.team-calendar-grid {
  display: grid;
  grid-template-columns: repeat(var(--days), minmax(38px, 1fr));
  grid-auto-rows: minmax(32px, auto);
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.team-calendar-day {
  min-height: 42px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 6px;
  border-radius: 10px;
  background: #f3f5f8;
  color: var(--blue-deep);
}

.team-calendar-day.weekend {
  background: #fff1f1;
  color: var(--red);
}

.team-calendar-day strong {
  font-size: 13px;
  line-height: 1;
}

.team-calendar-day span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
}

.team-calendar-bar {
  grid-column: var(--start) / span var(--span);
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 10px;
  border-radius: 10px;
  color: #fff;
  background: var(--color);
  box-shadow: 0 10px 18px rgba(11, 25, 44, 0.14);
}

.team-calendar-bar strong,
.team-calendar-bar span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-calendar-bar strong {
  font-size: 12px;
  font-weight: 820;
}

.team-calendar-bar span {
  opacity: 0.86;
  font-size: 11px;
}

.team-calendar-empty {
  grid-column: 1 / -1;
  padding: 14px;
  border-radius: 12px;
  color: var(--muted);
  background: #f3f5f8;
  font-size: 13px;
}

.team-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
}

.team-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.team-calendar-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.viewer-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.viewer-controls button {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(30, 62, 98, 0.16);
  border-radius: 12px;
  color: var(--blue-deep);
  background: #fff;
  font-size: 13px;
  font-weight: 780;
}

.viewer-controls button.active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.viewer-group {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.viewer-group h3 {
  margin: 0;
  color: var(--blue-deep);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 850;
}

.approval-detail-card {
  display: grid;
  gap: 7px;
  margin: -34px 18px 18px;
  padding: 18px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(11, 25, 44, 0.06);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(11, 25, 44, 0.1);
}

.approval-detail-card.leave-status-pending,
.approval-detail-card.leave-status-rejected {
  border-color: rgba(214, 64, 69, 0.18);
  background: #fff5f5;
}

.approval-detail-card.leave-status-approved {
  border-color: rgba(31, 159, 113, 0.18);
  background: #f3fbf7;
}

.approval-detail-card.leave-status-past {
  border-color: rgba(255, 255, 255, 0.06);
  color: #fff;
  background:
    linear-gradient(145deg, rgba(30, 62, 98, 0.92), rgba(11, 25, 44, 0.96)),
    var(--blue-deep);
}

.approval-detail-card span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.approval-detail-card strong {
  color: #000;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 860;
}

.approval-detail-card em,
.approval-detail-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-style: normal;
}

.approval-detail-card.leave-status-past strong,
.approval-detail-card.leave-status-past p {
  color: #fff;
}

.approval-detail-card.leave-status-past em {
  color: rgba(255, 255, 255, 0.7);
}

.overlap-list {
  display: grid;
  gap: 8px;
}

.overlap-item {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 101, 0, 0.14);
  border-radius: 14px;
  background: rgba(255, 101, 0, 0.08);
}

.overlap-item strong {
  color: var(--blue-deep);
  font-size: 14px;
  line-height: 1.2;
}

.overlap-item span {
  color: var(--muted);
  font-size: 12px;
}

.compact-empty {
  margin: 0;
  padding: 18px 14px;
}

.approval-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 18px;
}

.approval-actions .primary-button,
.approval-actions .danger-button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
}

.reject-reason {
  width: 100%;
  min-height: 86px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(30, 62, 98, 0.18);
  border-radius: 12px;
  color: var(--text);
  background: #fff;
  resize: vertical;
  outline: none;
}

.reject-reason:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 101, 0, 0.14);
}

.notice {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #17553e;
  background: rgba(31, 159, 113, 0.12);
  font-size: 13px;
  line-height: 1.35;
}

.notice.error {
  color: #8f2528;
  background: rgba(214, 64, 69, 0.12);
}

.settings-actions {
  display: grid;
  gap: 8px;
}

.settings-button-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.settings-actions .primary-button,
.settings-actions .danger-button {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  box-shadow: 0 8px 18px rgba(255, 101, 0, 0.18);
}

.settings-button-row button {
  min-height: 38px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.settings-button-row .primary-button {
  border-radius: 12px;
}

.settings-actions .small-muted {
  color: var(--muted);
  padding: 2px 0;
}

.danger-button {
  width: 100%;
  min-height: 38px;
  padding: 0 8px;
  color: #fff;
  background: var(--black);
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
}

.logout-button {
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid rgba(11, 25, 44, 0.12);
  border-radius: 12px;
  color: var(--blue-deep);
  background: #fff;
  font-weight: 780;
  font-size: 13px;
  box-shadow: 0 8px 18px rgba(11, 25, 44, 0.05);
}

.confirm-backdrop {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(11, 25, 44, 0.34);
  backdrop-filter: blur(8px);
}

.confirm-card {
  width: min(100%, 340px);
  padding: 20px;
  border: 1px solid rgba(11, 25, 44, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(11, 25, 44, 0.26);
}

.confirm-card h3 {
  margin: 0;
  color: var(--blue-deep);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0;
}

.confirm-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.confirm-cancel,
.confirm-danger {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 780;
}

.confirm-cancel {
  color: var(--blue-deep);
  background: #f1f3f6;
}

.confirm-danger {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 10px 20px rgba(255, 101, 0, 0.22);
}

.toast {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 104px;
  z-index: 5;
  padding: 12px 14px;
  border-radius: 12px;
  color: #fff;
  background: rgba(11, 25, 44, 0.94);
  text-align: center;
  font-size: 13px;
  animation: toast-in 0.18s ease;
}

@keyframes toast-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
}

@media (max-width: 520px) {
  .workspace {
    justify-items: stretch;
  }

  .app-shell {
    width: 100%;
    height: 100svh;
    min-height: 100svh;
  }

  @supports (height: 100dvh) {
    .app-shell {
      height: 100dvh;
      min-height: 100dvh;
    }
  }
}

@media (max-width: 380px) {
  .dashboard-hero {
    padding-inline: 16px;
  }

  .dashboard-header h1 {
    font-size: 31px;
  }

  .summary-card {
    padding-inline: 16px;
  }

  .premium-gauge {
    width: 172px;
    height: 172px;
  }

  .premium-gauge::before {
    width: 122px;
    height: 122px;
  }

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

  .pill-button {
    width: auto;
    min-width: 178px;
    min-height: 48px;
    padding-inline: 9px;
    font-size: 14px;
  }

  .recent-panel {
    padding-inline: 16px;
  }

  .premium-leave-item {
    grid-template-columns: 50px 1fr auto;
    gap: 10px;
    padding: 14px;
  }

  .premium-leave-main strong,
  .premium-leave-side strong {
    font-size: 17px;
  }
}

@media (max-height: 700px) {
  .dashboard-hero {
    padding-top: calc(30px + env(safe-area-inset-top));
    padding-bottom: 74px;
  }

  .dashboard-header {
    margin-bottom: 20px;
  }

  .dashboard-header h1 {
    font-size: 31px;
  }

  .dashboard-header p {
    margin-top: 6px;
    font-size: 15px;
  }

  .summary-card {
    padding: 18px 20px 18px;
    border-radius: 24px;
  }

  .summary-card .gauge-zone {
    padding-bottom: 18px;
  }

  .premium-gauge {
    width: 150px;
    height: 150px;
  }

  .premium-gauge::before {
    width: 106px;
    height: 106px;
  }

  .premium-gauge .gauge-label {
    font-size: 16px;
  }

  .premium-gauge .gauge-days {
    font-size: 33px;
  }

  .summary-metric strong {
    font-size: 22px;
  }

  .summary-metric span {
    font-size: 14px;
  }

  .dashboard-actions {
    margin-top: 10px;
  }

  .pill-button {
    min-height: 46px;
    border-radius: 16px;
  }

  .recent-panel {
    margin-top: -64px;
    padding-top: 38px;
  }

  .panel-handle {
    margin-bottom: 24px;
  }

  .recent-panel h2 {
    font-size: 25px;
    margin-bottom: 18px;
  }

}
