:root {
  --bg: #f6f7f3;
  --panel: #ffffff;
  --panel-strong: #f0f5f6;
  --text: #1d2527;
  --muted: #647274;
  --line: #d9e0dc;
  --accent: #146c5f;
  --accent-strong: #0f4f46;
  --danger: #b42318;
  --warning: #9a5b13;
  --shadow: 0 18px 50px rgba(17, 35, 39, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.shell {
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
}

h2 {
  font-size: 24px;
  line-height: 1.2;
}

h3 {
  font-size: 18px;
}

.top-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app {
  width: min(1180px, calc(100vw - 32px));
  margin: 34px auto 72px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 22px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.plain-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.employee-card,
.feedback-item {
  display: grid;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.employee-card.is-deleted {
  background: #fafafa;
  border-style: dashed;
}

.employee-head {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.title-row h2,
.title-row h3 {
  margin-bottom: 0;
}

.status-badge {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eceff1;
  color: #526063;
  font-size: 12px;
  font-weight: 760;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--panel-strong);
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  font-weight: 800;
}

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

.small {
  font-size: 13px;
}

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

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

label,
.label {
  color: #2c383a;
  font-weight: 720;
  font-size: 14px;
}

input,
textarea {
  width: 100%;
  border: 1px solid #c8d2ce;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
}

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

.question textarea {
  min-height: 170px;
}

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

.btn {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 760;
  text-decoration: none;
}

.btn:hover {
  background: var(--accent-strong);
}

.btn.secondary {
  background: #e7eeeb;
  color: var(--text);
}

.btn.secondary:hover {
  background: #dce7e2;
}

.btn.danger {
  background: var(--danger);
}

.notice {
  border-left: 4px solid var(--accent);
  background: #eaf3ef;
  padding: 13px 15px;
  border-radius: 8px;
}

.warning {
  border-left-color: var(--warning);
  background: #fbf0df;
}

.error {
  border-left-color: var(--danger);
  background: #fde8e4;
}

.rating-list {
  display: grid;
  gap: 9px;
}

.rating-option {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.rating-option input {
  width: auto;
  margin-top: 4px;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.metric {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.metric strong {
  display: block;
  font-size: 28px;
}

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #b9c6c1;
  border-radius: 8px;
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .layout {
    grid-template-columns: 1fr;
  }
}
