:root {
  color-scheme: light;
  --ink: #071d49;
  --muted: #66738a;
  --line: #d8e1ef;
  --panel: #ffffff;
  --soft: #f4f8fc;
  --accent: #d8941f;
  --accent-soft: #fff6e8;
  --ok-soft: #eaf7f3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f7faff 0%, #eef4fb 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.employee-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 18px 18px 10px;
}

.employee-top img {
  width: 150px;
  height: auto;
}

.employee-shell {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 10px 16px 28px;
}

.hero-block,
.surface {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(7, 29, 73, 0.07);
}

.hero-block {
  padding: 24px 20px;
}

.surface {
  padding: 18px;
  margin-top: 12px;
}

.login-view {
  display: grid;
  gap: 18px;
  padding-top: 12vh;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.remember-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
  text-transform: none !important;
}

.primary-button,
.text-button {
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  width: 100%;
  padding: 14px 16px;
  background: var(--ink);
  color: #fff;
}

.text-button {
  padding: 9px 10px;
  background: transparent;
  color: var(--muted);
}

.form-error {
  border: 1px solid #f0c8c8;
  border-radius: 8px;
  background: #fff5f5;
  padding: 10px 12px;
  color: #8a2020;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 8px;
  font-size: 31px;
  line-height: 1.08;
}

h2 {
  margin-bottom: 7px;
  font-size: 21px;
  line-height: 1.16;
}

.muted {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.today-card {
  background: var(--ok-soft);
}

.info-grid {
  display: grid;
  gap: 12px;
}

.term-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.term-list div,
.absence-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.term-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.term-list dd {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  text-align: right;
}

.absence-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.absence-list span {
  color: var(--muted);
  font-weight: 700;
  text-align: right;
}

@media (min-width: 720px) {
  .employee-top {
    padding-top: 24px;
  }

  .employee-shell {
    padding-bottom: 42px;
  }

  .login-view,
  .info-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}


.employee-brand {
  display: inline-flex;
  align-items: center;
}

.employee-menu {
  position: relative;
  z-index: 20;
}

.employee-menu summary {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  list-style: none;
}

.employee-menu summary::-webkit-details-marker {
  display: none;
}

.hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--ink);
}

.employee-menu__panel {
  position: absolute;
  top: 50px;
  right: 0;
  display: grid;
  gap: 4px;
  width: min(300px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(7, 29, 73, 0.16);
  padding: 10px;
}

.employee-menu__panel a,
.employee-menu__panel button {
  display: flex;
  width: 100%;
  align-items: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.employee-menu__panel a:hover,
.employee-menu__panel button:hover {
  background: var(--soft);
}

.employee-menu__panel form {
  margin: 0;
}

.employee-identity {
  padding: 18px;
}

.employee-identity h1 {
  margin-bottom: 6px;
  font-size: 24px;
  line-height: 1.12;
}

.calendar-card {
  overflow: visible;
}

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

.calendar-head h2 {
  margin-bottom: 0;
}

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

.icon-button,
.today-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.icon-button {
  width: 38px;
  font-size: 26px;
}

.today-link {
  padding: 0 12px;
  font-size: 13px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.calendar-weekdays {
  margin-bottom: 7px;
}

.calendar-weekdays span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.calendar-day summary {
  display: flex;
  min-height: 102px;
  flex-direction: column;
  gap: 6px;
  padding: 7px;
  cursor: pointer;
  list-style: none;
}

.calendar-day summary::-webkit-details-marker {
  display: none;
}

.calendar-day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.calendar-day.is-today .calendar-day-number {
  background: var(--accent);
  color: #fff;
}

.calendar-day.is-muted {
  opacity: 0.34;
}

.calendar-day.is-weekend {
  background: var(--soft);
}

.calendar-day[open] {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(7, 29, 73, 0.12);
}

.calendar-event-stack {
  display: grid;
  gap: 4px;
}

.calendar-event-chip,
.calendar-more,
.calendar-event-empty {
  display: block;
  border-radius: 6px;
  padding: 4px 5px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event-time {
  display: block;
  margin-bottom: 2px;
  font-size: 9px;
  opacity: 0.76;
}

.calendar-event-empty {
  color: #98a4b7;
  font-weight: 800;
}

.calendar-more {
  background: #edf2f9;
  color: var(--muted);
  text-align: center;
}

.calendar-event-chip--work,
.calendar-detail-item--work {
  background: #edf5ff;
  color: #164476;
}

.calendar-event-chip--installation,
.calendar-detail-item--installation {
  background: #fff1db;
  color: #8a5605;
}

.calendar-event-chip--vacation,
.calendar-detail-item--vacation {
  background: #eaf7f3;
  color: #096653;
}

.calendar-event-chip--sick,
.calendar-detail-item--sick {
  background: #fff0f0;
  color: #8a2020;
}

.calendar-event-chip--company,
.calendar-detail-item--company {
  background: #f1edff;
  color: #48308b;
}

.calendar-event-chip--other,
.calendar-detail-item--other {
  background: #f0f3f7;
  color: #415064;
}

.calendar-day-details {
  border-top: 1px solid var(--line);
  padding: 8px;
}

.calendar-day-details > strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.calendar-day-details ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.calendar-detail-item {
  display: grid;
  gap: 2px;
  border-radius: 8px;
  padding: 8px;
}

.calendar-detail-item span,
.calendar-detail-item small,
.calendar-detail-item em {
  font-size: 11px;
  line-height: 1.25;
}

.calendar-detail-item span {
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-detail-item b {
  font-size: 13px;
}

.calendar-detail-item em {
  color: var(--muted);
  font-style: normal;
}

@media (max-width: 560px) {
  .employee-top img {
    width: 126px;
  }

  .calendar-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-actions {
    width: 100%;
  }

  .today-link {
    flex: 1;
  }

  .calendar-grid {
    gap: 4px;
  }

  .calendar-day {
    min-height: 86px;
  }

  .calendar-day summary {
    min-height: 84px;
    padding: 6px 4px;
  }

  .calendar-day[open] {
    grid-column: 1 / -1;
  }

  .calendar-event-chip,
  .calendar-more,
  .calendar-event-empty {
    padding: 3px 4px;
    font-size: 9px;
  }

  .calendar-event-time {
    font-size: 8px;
  }
}
