:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --ink: #101923;
  --muted: #66737f;
  --line: #dfe5e1;
  --dark: #142331;
  --dark-2: #1d3142;
  --green: #196b42;
  --green-2: #2f8f5d;
  --red: #b83232;
  --gold: #d9aa4e;
  --shadow: 0 18px 50px rgba(16, 25, 35, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 8%, rgba(217, 170, 78, 0.13), transparent 28rem),
    linear-gradient(180deg, #fbfcfb 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.login-card {
  width: min(440px, 100%);
  padding: 44px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.login-brand {
  align-items: center;
  justify-content: center;
  text-align: left;
}

.login-logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(16, 25, 35, 0.10));
}

.mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--green);
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
}

h2 {
  font-size: 30px;
  font-weight: 760;
}

h3 {
  font-size: 18px;
}

.subtitle,
.muted {
  color: var(--muted);
}

.subtitle {
  margin: 10px 0 28px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 680;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(47, 143, 93, 0.26);
  outline-offset: 2px;
}

.button,
button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
button:hover {
  background: #125634;
  box-shadow: 0 10px 20px rgba(25, 107, 66, 0.16);
  transform: translateY(-1px);
}

.button.secondary {
  background: #edf2ef;
  color: var(--ink);
}

.button.danger {
  background: #fff2f1;
  color: var(--red);
  border: 1px solid #f0d1ce;
}

.login-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  background: linear-gradient(180deg, var(--dark) 0%, #101b26 100%);
  color: #eef6f0;
  display: flex;
  flex-direction: column;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  margin-bottom: 28px;
  letter-spacing: 0;
}

.side-brand .mark {
  width: 32px;
  height: 32px;
  background: var(--green-2);
}

.logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.18));
}

.nav {
  display: grid;
  gap: 6px;
}

.nav a {
  text-decoration: none;
  padding: 12px 12px;
  border-radius: 6px;
  color: rgba(238, 246, 240, 0.82);
  font-weight: 680;
}

.nav a.active,
.nav a:hover {
  background: rgba(47, 143, 93, 0.42);
  color: #fff;
}

.side-bottom {
  margin-top: auto;
  display: grid;
  gap: 10px;
  color: rgba(238, 246, 240, 0.72);
  font-size: 13px;
}

.main {
  padding: 38px min(5vw, 72px);
}

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

.panel {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.notice,
.error {
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-weight: 680;
}

.notice {
  color: #135438;
  background: #edf8f1;
  border: 1px solid #cfe9d8;
}

.error {
  color: #8d2424;
  background: #fff1f0;
  border: 1px solid #f0cfcb;
}

.role-block {
  margin-top: 26px;
}

.employee-table {
  width: 100%;
  border-collapse: collapse;
}

.employee-table th,
.employee-table td {
  padding: 14px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.employee-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 730;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.ticker-wrap {
  display: grid;
  grid-template-columns: minmax(170px, 260px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 58px);
  padding: clamp(28px, 5vw, 48px);
  text-align: left;
}

.ticker-media {
  display: flex;
  justify-content: center;
}

.ticker-logo {
  width: min(100%, 260px);
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  border-radius: 32px;
  box-shadow: 0 18px 42px rgba(16, 25, 35, 0.13);
}

.ticker-content {
  min-width: 0;
}

.live-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 999px;
  background: var(--green-2);
  box-shadow: 0 0 0 8px rgba(47, 143, 93, 0.12);
}

.ticker {
  margin: 16px 0 8px;
  color: var(--green);
  font-size: clamp(56px, 10vw, 104px);
  line-height: 0.95;
  font-weight: 860;
  font-variant-numeric: tabular-nums;
}

.runtime {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.bar {
  height: 12px;
  min-width: 140px;
  border-radius: 999px;
  background: #ecf0ed;
  overflow: hidden;
}

.bar > span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--green-2));
  transition: width 700ms ease;
}

.admin-grid {
  display: grid;
  gap: 18px;
}

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

.table-actions {
  display: flex;
  gap: 8px;
}

.mini-button {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 13px;
}

.empty {
  padding: 30px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 820px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main {
    padding: 24px 16px;
  }

  .topbar,
  .inline-form {
    grid-template-columns: 1fr;
    display: grid;
  }

  .ticker-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ticker-logo {
    width: min(58vw, 220px);
  }

  .employee-table {
    display: block;
    overflow-x: auto;
  }

  .login-card {
    padding: 28px;
  }
}
