:root {
  --green: #123f32;
  --green-2: #1d5a45;
  --cream: #f7f8f5;
  --text: #1c2b25;
  --muted: #738078;
  --line: #e5e9e5;
  --white: #ffffff;
  --sidebar: #10372d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
}

button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.login-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  background:
    radial-gradient(circle at 15% 75%, rgba(110, 155, 120, 0.16), transparent 26%),
    linear-gradient(135deg, #153e32 0%, #0d3027 100%);
}

.login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
  padding: 60px 9vw;
  color: white;
  overflow: hidden;
}

.login-brand::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: -260px;
  bottom: -320px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018);
}

.brand-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 18px;
  margin-bottom: 36px;
}

.brand-mark svg, .mini-mark svg {
  width: 46px;
  fill: none;
  stroke: #b6d8b5;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  margin: 0 0 12px;
  color: #b9d1c1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.eyebrow.dark { color: #76857d; }

.login-brand h1 {
  max-width: 580px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -2px;
  text-wrap: balance;
}

.brand-copy {
  max-width: 500px;
  margin: 24px 0 0;
  color: #cadad1;
  font-size: 15px;
  line-height: 1.8;
}

.login-product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.login-product-list span {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255,255,255,.07);
  color: #e5eee7;
  font-size: 11px;
  font-weight: 650;
}
.login-promise {
  margin: 22px 0 0;
  color: #b7d0bf;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .2px;
}

.login-card {
  align-self: center;
  justify-self: start;
  width: min(410px, calc(100% - 70px));
  margin: 40px 0;
  padding: 48px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(5, 31, 23, 0.3);
}

.login-heading h2 {
  margin: 0 0 32px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 1.15;
}

.login-card label {
  display: block;
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.input-wrap {
  height: 50px;
  display: flex;
  align-items: center;
  border: 1px solid #dfe5e0;
  border-radius: 7px;
  background: #fafbfa;
  transition: 0.2s;
}

.input-wrap:focus-within {
  border-color: #6d927e;
  box-shadow: 0 0 0 3px rgba(79, 126, 101, 0.1);
  background: #fff;
}

.input-wrap svg {
  width: 17px;
  margin: 0 12px 0 15px;
  fill: none;
  stroke: #7e8c84;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.input-wrap input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.password-toggle {
  margin-right: 10px;
  border: 0;
  background: transparent;
  color: #607269;
  font-size: 12px;
  font-weight: 700;
}

.login-error {
  min-height: 20px;
  margin: 10px 0 4px;
  color: #b33d3d;
  font-size: 12px;
  font-weight: 700;
}

.login-error.success { color: #28754f; }

.login-button {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--green);
  color: white;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(18,63,50,.18);
  transition: 0.2s;
}

.login-button:hover { background: #1b5140; transform: translateY(-1px); }
.login-button span { font-size: 20px; }

.portal-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 245px 1fr;
  background: #f5f7f4;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  background: var(--sidebar);
  color: white;
  z-index: 20;
}

.sidebar-brand {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.mini-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 9px;
}
.mini-mark svg { width: 28px; }
.sidebar-brand strong, .sidebar-brand span { display: block; }
.sidebar-brand strong { font-family: Georgia, serif; font-size: 15px; }
.sidebar-brand span { margin-top: 3px; color: #91a99e; font-size: 10px; }

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
}

.nav-item {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 7px;
  padding: 0 14px;
  background: transparent;
  color: #bac8c1;
  text-align: left;
  font-size: 13px;
  font-weight: 650;
}

.nav-item:hover { background: rgba(255,255,255,.05); color: white; }
.nav-item.active { background: #eaf1ea; color: #174936; }
.nav-icon { width: 18px; text-align: center; font-size: 16px; }

.logout-button {
  height: 44px;
  margin-top: auto;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  background: transparent;
  color: #9db0a6;
  text-align: left;
  padding: 12px 12px 0;
  font-size: 13px;
}
.logout-button span { margin-right: 10px; }

.portal-main { min-width: 0; }

.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
}

.topbar-title { margin-right: auto; }
.topbar-title p { margin: 0 0 4px; font-family: Georgia, serif; font-size: 20px; font-weight: 700; }
.topbar-title span { color: var(--muted); font-size: 11px; }
.menu-button { display: none; }

.profile {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}
.profile-avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  border-radius: 50%;
  border: 1px solid #d5e5d9;
  background: linear-gradient(145deg, #f0f7f1, #dcebe0);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}
.profile > div { min-width: 0; }
.profile > div > strong, .profile > div > span { display: block; }
.profile strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.profile div > span { margin-top: 3px; color: var(--muted); font-size: 10px; }

.content { padding: 28px 38px 60px; }
.page { display: none; }
.page.active { display: block; }

.welcome-banner {
  position: relative;
  min-height: 178px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 10px;
  padding: 28px 32px;
  background: linear-gradient(120deg, #174735 0%, #215940 75%, #2d684b 100%);
  color: white;
}
.welcome-banner h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 28px; }
.welcome-banner p:last-child { margin: 0; color: #d1dfd6; font-size: 13px; }
.welcome-banner .eyebrow { color: #a9c7b5; }
.banner-art { position: absolute; right: 35px; bottom: 0; width: 180px; height: 150px; }
.banner-leaf {
  position: absolute;
  width: 70px;
  height: 150px;
  bottom: -75px;
  border-radius: 100% 0 100% 0;
  border: 1px solid rgba(210,231,216,.22);
  transform: rotate(35deg);
}
.leaf-one { right: 75px; }
.leaf-two { right: 20px; bottom: -60px; transform: rotate(55deg); }
.leaf-three { right: 110px; transform: rotate(10deg); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.stat-card {
  height: 92px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px;
  background: white;
}
.stat-icon, .quick-icon {
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-weight: 800;
}
.stat-icon { width: 46px; height: 46px; }
.stat-card strong, .stat-card span { display: block; }
.stat-card strong { margin-bottom: 3px; font-family: Georgia, serif; font-size: 21px; }
.stat-card span { color: var(--muted); font-size: 11px; }
.green { background: #e8f1eb; color: #34744f; }
.blue { background: #edf1f7; color: #52759b; }
.amber { background: #faf1df; color: #a47a31; }
.purple { background: #f1edf7; color: #785b9d; }
.red { background: #f8eaea; color: #9a5252; }

.section-title { margin: 24px 0 12px; font-family: Georgia, serif; font-size: 16px; }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.quick-card {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px;
  background: white;
  color: var(--text);
  text-align: left;
  transition: .2s;
}
.quick-card:hover { transform: translateY(-2px); border-color: #cbd7cf; box-shadow: 0 8px 20px rgba(38,68,52,.07); }
.quick-icon { width: 38px; height: 38px; margin-bottom: 12px; }
.quick-card strong { font-size: 12px; }
.quick-card small { margin-top: 5px; color: var(--muted); font-size: 10px; }

.company-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: stretch;
  gap: 28px;
  margin-top: 18px;
  border: 1px solid #dfe9e1;
  border-radius: 16px;
  padding: 26px;
  background: linear-gradient(135deg, #fff 0%, #f1f7f1 100%);
  box-shadow: 0 12px 30px rgba(27,65,43,.05);
}
.company-intro h3 { max-width: 520px; margin: 0 0 12px; font-family: Georgia, serif; font-size: 22px; line-height: 1.25; }
.company-intro > p:last-child { max-width: 620px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.company-highlights { display: grid; align-content: center; gap: 18px; }
.company-highlights > div { display: flex; align-items: flex-start; gap: 12px; }
.company-highlight-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e3efe5;
  color: #286045;
  font-size: 10px;
  font-weight: 800;
}
.company-highlights strong { display: block; margin: 1px 0 4px; color: #274c38; font-size: 12px; }
.company-highlights p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }

.document-toolbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.document-toolbar h3 { margin: 0 0 5px; font-family: Georgia, serif; font-size: 22px; }
.document-toolbar p { margin: 0; color: var(--muted); font-size: 12px; }
.employee-toolbar-actions { display: flex; align-items: center; gap: 10px; }
.employee-search {
  width: 220px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  outline: 0;
  background: white;
  font-size: 12px;
}
.employee-search:focus { border-color: #87a492; }
.employee-add-button { white-space: nowrap; }
.employee-storage-note { margin: -5px 0 14px; color: var(--muted); font-size: 11px; }
.employee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.employee-empty-state { grid-column: 1 / -1; }
.employee-card {
  min-width: 0;
  min-height: 154px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px;
  background: white;
  text-align: left;
  color: var(--text);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.employee-card:hover { transform: translateY(-3px); border-color: #aac3b0; box-shadow: 0 12px 26px rgba(38,68,52,.1); }
.employee-avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  margin: 0 0 12px;
  border: 1px solid #d9e8dc;
  background: linear-gradient(145deg, #eff7f0, #dcebe0);
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}
.employee-card > strong, .employee-card > span:not(.employee-avatar) { display: block; }
.employee-card > strong {
  min-height: 34px;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.4;
}
.employee-card > span:not(.employee-avatar) { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.back-button {
  border: 0;
  margin: 0 0 12px;
  padding: 0;
  background: transparent;
  color: #587064;
  font-size: 12px;
  font-weight: 700;
}
.employee-profile {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
}
.employee-profile--summary-only { grid-template-columns: minmax(0, 340px); }
.employee-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  max-width: 1400px;
  overflow: hidden;
  border: 1px solid #e0e8e1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(27,65,43,.06);
}
.employee-detail-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: linear-gradient(120deg, #edf5ee, #f8faf7);
  border-bottom: 1px solid #e7eee8;
}
.employee-detail-info { min-width: 0; }
.employee-detail-header .employee-avatar {
  flex-basis: 60px;
  width: 60px;
  height: 60px;
  margin: 0;
  font-size: 18px;
}
.employee-detail-header h3 {
  margin: 0;
  overflow-wrap: anywhere;
  color: #173c2e;
  font-family: Georgia, serif;
  font-size: 21px;
}
.employee-detail-header p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.employee-data-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px 20px 8px; }
.employee-data-group {
  min-width: 0;
  border: 1px solid #e8ede8;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}
.employee-data-group h4 { margin: 0 0 12px; color: #315d43; font-family: Georgia, serif; font-size: 14px; }
.employee-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.employee-data-field { min-width: 0; }
.employee-data-field span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.employee-data-field strong { display: block; overflow-wrap: anywhere; color: var(--text); font-size: 12px; line-height: 1.45; }
.employee-data-note { margin: 0; padding: 4px 20px 18px; color: #77857d; font-size: 10px; line-height: 1.5; }
.employee-summary, .employee-documents {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}
.employee-summary {
  padding: 22px;
  text-align: center;
}
.employee-summary .employee-avatar {
  flex-basis: 76px;
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  font-size: 20px;
}
.employee-summary h3 { overflow-wrap: anywhere; margin: 0; font-family: Georgia, serif; font-size: 17px; }
.employee-summary p { margin: 6px 0 18px; color: var(--muted); font-size: 11px; }
.employee-meta {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  text-align: left;
}
.employee-meta div { display: flex; justify-content: space-between; padding: 7px 0; font-size: 10px; }
.employee-meta span { color: var(--muted); }
.employee-documents {
  grid-column: 2;
  grid-row: 2;
  align-self: stretch;
  margin: 18px 18px 18px 0;
  padding: 18px;
  background: #fbfcfb;
}
.employee-documents .document-row { grid-template-columns: 36px minmax(0, 1fr); gap: 9px; padding: 12px; }
.employee-documents .document-file-icon { width: 36px; height: 36px; }
.employee-documents .document-row > div:nth-child(2) { min-width: 0; }
.employee-documents .document-row strong { overflow-wrap: anywhere; font-size: 11px; }
.employee-documents .document-actions { grid-column: 2; flex-wrap: wrap; }
.employee-documents .document-actions button { padding: 0 8px; }
.employee-document-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.employee-document-head h4 { margin: 0; font-family: Georgia, serif; }
.employee-upload-actions { display: flex; gap: 7px; }
.employee-upload-actions button {
  height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  background: var(--green);
  color: white;
  font-size: 10px;
  font-weight: 700;
}
.employee-document-list { min-width: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.upload-button {
  height: 42px;
  border: 0;
  border-radius: 7px;
  padding: 0 16px;
  background: var(--green);
  color: white;
  font-size: 12px;
  font-weight: 800;
}
.employee-dialog {
  width: min(620px, calc(100% - 32px));
  max-width: 620px;
  max-height: min(90vh, 760px);
  overflow: auto;
  border: 1px solid #dfe8df;
  border-radius: 16px;
  padding: 0;
  color: var(--text);
  background: #fff;
  box-shadow: 0 24px 70px rgba(13, 48, 39, .24);
}
.employee-dialog::backdrop { background: rgba(15, 35, 28, .54); backdrop-filter: blur(2px); }
.employee-form { padding: 28px; }
.employee-form-header { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.employee-form-header .eyebrow { margin-bottom: 7px; color: #63806d; }
.employee-form-header h2 { margin: 0 0 7px; color: #173c2e; font-family: Georgia, serif; font-size: 25px; }
.employee-form-header p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.dialog-close {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #526158;
  background: white;
  font-size: 22px;
  line-height: 1;
}
.employee-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.employee-form-grid label { display: grid; gap: 7px; color: #405349; font-size: 11px; font-weight: 700; }
.employee-form-grid input {
  width: 100%;
  height: 42px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 11px;
  outline: 0;
  color: var(--text);
  background: #fff;
  font-size: 12px;
  font-weight: 400;
}
.employee-form-grid input:focus { border-color: #87a492; box-shadow: 0 0 0 3px rgba(29, 90, 69, .08); }
.employee-form-wide { grid-column: 1 / -1; }
.employee-additional-details { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 15px; }
.employee-additional-details summary { color: #315d43; cursor: pointer; font-size: 12px; font-weight: 700; }
.employee-additional-details .employee-form-grid { margin-top: 16px; }
.employee-form-error { min-height: 18px; margin: 14px 0 4px; color: #a52e26; font-size: 12px; line-height: 1.5; }
.employee-form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.secondary-button {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 16px;
  color: #526158;
  background: white;
  font-size: 12px;
  font-weight: 700;
}

.document-list {
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  overflow: hidden;
}
.empty-state {
  min-height: 300px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
}
.empty-state strong { display: block; margin-bottom: 6px; color: #526158; font-size: 14px; }
.empty-state span { font-size: 11px; }
.document-row {
  min-height: 74px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 18px;
}
.document-row:last-child { border-bottom: 0; }
.document-file-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #edf3ef;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}
.document-row strong, .document-row span { display: block; }
.document-row strong { font-size: 13px; }
.document-row span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.document-actions { display: flex; gap: 7px; }
.document-actions button {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: #56665e;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 700;
}
.document-actions .delete-doc { color: #9b4e4e; }

.progress-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.progress-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
  background: white;
}
.progress-head { display: flex; justify-content: space-between; font-size: 12px; }
.progress-head strong { font-family: Georgia, serif; font-size: 18px; }
.progress-track { height: 8px; margin-top: 18px; border-radius: 10px; background: #edf1ed; overflow: hidden; }
.progress-track span { display: block; height: 100%; border-radius: 10px; background: #4e8064; }
.blue-progress span { background: #66829e; }
.amber-progress span { background: #b28a45; }

.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.policy-card {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 22px;
  background: white;
}
.policy-card h4 { margin: 0 0 14px; font-family: Georgia, serif; font-size: 16px; }
.policy-card p { color: var(--muted); font-size: 12px; line-height: 1.8; }

@media (max-width: 980px) {
  .login-view { grid-template-columns: 1fr; }
  .login-brand { min-height: 280px; max-width: none; padding: 45px 8vw; }
  .brand-mark { width: 56px; height: 56px; margin-bottom: 20px; }
  .login-brand h1 { font-size: 42px; }
  .brand-copy { max-width: 600px; margin-top: 14px; }
  .login-product-list { margin-top: 14px; }
  .login-promise { margin-top: 14px; }
  .login-card { justify-self: center; margin: -10px 20px 50px; width: min(410px, calc(100% - 40px)); }
  .portal-view { grid-template-columns: 210px 1fr; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .employee-grid { grid-template-columns: repeat(3, 1fr); }
  .company-strip { gap: 20px; padding: 22px; }
  .progress-grid, .policy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1000px) {
  .employee-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 990px) {
  .employee-detail-card { grid-template-columns: minmax(0, 1fr); }
  .employee-detail-header { grid-column: 1; }
  .employee-documents { grid-column: 1; grid-row: auto; margin: 0 18px 18px; }
  #employeesPage .document-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  #employeesPage .employee-toolbar-actions { width: 100%; flex-wrap: nowrap; justify-content: space-between; }
  #employeesPage .employee-search { flex: 1 1 auto; width: auto; min-width: 0; }
  .employee-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .login-view { display: block; }
  .login-brand { min-height: 250px; padding: 32px 8vw 48px; }
  .login-brand h1 { font-size: clamp(30px, 8vw, 38px); letter-spacing: -1px; }
  .brand-copy { font-size: 13px; line-height: 1.6; }
  .login-product-list { gap: 6px; }
  .login-product-list span { padding: 6px 9px; font-size: 10px; }
  .login-promise { font-size: 11px; line-height: 1.5; }
  .login-card { width: calc(100% - 32px); margin: -15px auto 35px; padding: 34px 26px; }
  .portal-view { display: block; }
  .sidebar {
    position: fixed;
    left: -245px;
    width: 245px;
    transition: left .25s;
  }
  .sidebar.open { left: 0; box-shadow: 12px 0 40px rgba(0,0,0,.18); }
  .topbar { height: 70px; padding: 0 16px; }
  .menu-button { display: block; width: 38px; height: 38px; margin-right: 10px; border: 1px solid var(--line); border-radius: 7px; background: white; }
  .profile div { display: none; }
  .content { padding: 18px 16px 40px; }
  .welcome-banner { min-height: 190px; padding: 24px; }
  .welcome-banner h2 { font-size: 24px; }
  .banner-art { opacity: .35; right: -20px; }
  .stats-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .employee-grid { grid-template-columns: repeat(2, 1fr); }
  .employee-profile { grid-template-columns: 1fr; }
  .employee-data-groups { grid-template-columns: 1fr; padding: 16px 16px 8px; }
  .employee-data-note { padding-right: 16px; padding-left: 16px; }
  .employee-detail-header { padding: 20px 18px; }
  .employee-documents { margin: 0 12px 12px; padding: 14px; }
  .company-strip { grid-template-columns: 1fr; }
  .company-strip { padding: 20px; }
  .company-intro h3 { font-size: 20px; }
  .document-toolbar { align-items: flex-end; }
  .employee-toolbar-actions { flex-wrap: wrap; justify-content: flex-end; }
  .upload-button { max-width: 150px; }
  .document-row { grid-template-columns: 44px 1fr; }
  .document-actions { grid-column: 2; }
}

@media (max-width: 420px) {
  .employee-grid { grid-template-columns: 1fr; }
  .employee-card { min-height: 136px; }
  .employee-form { padding: 22px 18px; }
  .employee-form-grid { grid-template-columns: 1fr; gap: 13px; }
  .employee-form-wide { grid-column: auto; }
}
