:root {
  --bg: #f6f1e8;
  --panel: rgba(255, 252, 247, 0.94);
  --ink: #1d2b25;
  --muted: #5e6a63;
  --accent: #c35f34;
  --accent-2: #2d6a5c;
  --warn: #ba3f38;
  --border: rgba(29, 43, 37, 0.14);
  --shadow: 0 18px 40px rgba(52, 44, 36, 0.12);
  --radius: 20px;
  --font-display: "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(195, 95, 52, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(45, 106, 92, 0.14), transparent 28%),
    linear-gradient(180deg, #fbf8f2 0%, var(--bg) 100%);
  min-height: 100vh;
}

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.hero {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 251, 245, 0.98), rgba(255, 245, 235, 0.9));
  border: 1px solid rgba(195, 95, 52, 0.14);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.hero h1,
.hero h2,
.section h2,
.section h3,
.card h3 {
  font-family: var(--font-display);
  margin: 0;
}

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

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

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card,
.section,
.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section {
  padding: 20px;
}

.card {
  padding: 18px;
}

.stat {
  padding: 18px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(45, 106, 92, 0.1);
  color: var(--accent-2);
  font-size: 0.9rem;
  font-weight: 700;
}

.stack {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

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

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(29, 43, 37, 0.16);
  background: rgba(255, 255, 255, 0.96);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  background: var(--ink);
  color: white;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
}

button.secondary {
  background: rgba(45, 106, 92, 0.92);
}

button.ghost {
  background: rgba(29, 43, 37, 0.08);
  color: var(--ink);
}

button.warn {
  background: var(--warn);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.item {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(29, 43, 37, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.item-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(29, 43, 37, 0.08);
}

.badge.success {
  background: rgba(45, 106, 92, 0.14);
  color: var(--accent-2);
}

.badge.warning {
  background: rgba(195, 95, 52, 0.14);
  color: var(--accent);
}

.badge.danger {
  background: rgba(186, 63, 56, 0.12);
  color: var(--warn);
}

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

.topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hidden {
  display: none !important;
}

.employee-tabbar {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 0 0;
  margin-top: 18px;
  background: linear-gradient(180deg, rgba(246, 241, 232, 0), rgba(246, 241, 232, 0.95) 36%);
}

.employee-tabbar-item {
  background: rgba(29, 43, 37, 0.08);
  color: var(--ink);
  border-radius: 18px;
  padding: 14px 10px;
}

.employee-tabbar-item.active {
  background: var(--accent);
  color: white;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab {
  background: rgba(29, 43, 37, 0.08);
  color: var(--ink);
}

.tab.active {
  background: var(--accent);
  color: white;
}

.photo-preview {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  min-height: 180px;
  object-fit: cover;
  background: rgba(29, 43, 37, 0.05);
}

.notice {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(45, 106, 92, 0.1);
}

.notice.error {
  background: rgba(186, 63, 56, 0.1);
  color: var(--warn);
}

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

.table th,
.table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid rgba(29, 43, 37, 0.08);
  vertical-align: top;
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 16px, 100%);
    padding-top: 12px;
  }

  .hero,
  .section {
    padding: 16px;
  }

  .item-header,
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
