.employee-page {
  --employee-text: var(--slate-900);
  --employee-muted: var(--slate-600);
  --employee-blue: var(--brand);
  --employee-border: var(--slate-200);
}
.employee-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.employee-shell { min-width: 0; }
.employee-shell svg:not(.bento-vector), #employee-help-dialog svg { width: 20px; height: 20px; flex: none; }
.employee-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

#employee-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 15px;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  background: #fff;
  color: var(--employee-muted);
}
#employee-search:focus-within { border-color: #5279c5; }
#employee-search input {
  border: 0;
  padding: 7px 0;
  min-width: 0;
  color: var(--employee-text);
}
#employee-search input::placeholder { color: #657990; }
#employee-search select {
  font: inherit;
  font-size: 14px;
  padding: 7px 9px;
  border: 0;
  border-left: 1px solid var(--employee-border);
  background: #fff;
  color: var(--employee-text);
}
.employee-page :focus-visible { outline: 2px solid #255bcc; outline-offset: 3px; }
.employee-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin-top: 32px;
  border-bottom: 1px solid var(--employee-border);
}
.employee-section h1 {
  margin: 0;
  border-bottom: 3px solid var(--employee-blue);
  padding: 0 0 9px;
  font-size: 23px;
  line-height: 1.3;
}
.employee-section ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: 17px;
  row-gap: 5px;
  margin: 0;
  padding: 0 0 7px;
  list-style: none;
}
.employee-section li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--employee-muted);
  font-size: 13px;
}
.employee-dot { width: 7px; height: 7px; border-radius: 50%; background: #8296ad; }
.employee-dot[data-tone="work"] { background: #3589b7; }
.employee-dot[data-tone="action"] { background: #c46821; }
.employee-dot[data-tone="approval"] { background: #d69a42; }
.employee-dot[data-tone="complete"] { background: #19805f; }
.employee-body { display: grid; gap: 18px; padding-top: 24px; }
.employee-task {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 26px;
  background: #135bb9;
  color: #fff;
}
.employee-task[hidden] { display: none; }
.employee-task-icon, .employee-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #e7effe;
  color: #2453ad;
}
.employee-task-icon svg, .employee-empty-icon svg { width: 23px; height: 23px; }
.employee-task h2, .employee-empty h2 { margin: 0; font-size: 19px; line-height: 1.35; }
.employee-task p, .employee-empty p { margin: 6px 0 0; color: var(--employee-muted); font-size: 14px; }
.employee-task p { color: #fff; }
.employee-task p.employee-task-label { margin: 0 0 5px; font-weight: 700; font-size: 12px; }
.employee-task :focus-visible { outline-color: #fff; }
.employee-task-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
#employee-start { display: inline-flex; align-items: center; gap: 8px; }
#employee-start svg { width: 15px; height: 15px; }
.employee-empty {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 52px 20px;
  border: 1px solid var(--employee-border);
  border-radius: 26px;
  background: #fff;
}
.employee-empty-icon { margin-bottom: 14px; background: #edf2f8; color: #587393; }
#employee-feedback {
  max-width: none;
  margin: 0;
  padding: 12px 15px;
  border-left: 3px solid #5279c5;
  background: #f0f5ff;
  color: #253f67;
  font-size: 14px;
}
#employee-feedback[data-tone="complete"] { border-color: #19805f; background: #eef9f4; color: #235545; }
#employee-help-dialog {
  width: min(460px, calc(100% - 32px));
  border: 1px solid var(--employee-border);
  border-radius: 10px;
  padding: 22px;
  color: var(--employee-text);
}
#employee-help-dialog::backdrop { background: #1e2d4666; }
.employee-dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.employee-dialog-heading h2 { margin: 0; font-size: 20px; }
.employee-dialog-heading button { background: transparent; color: var(--employee-muted); padding: 4px; display: flex; }
.employee-tour-popover.driver-popover {
  padding: 17px;
  color: #192735;
  border: 1px solid #d5e0f1;
  border-radius: 8px;
  font-family: inherit;
}
.employee-tour-popover .driver-popover-title { font-size: 16px; padding-right: 16px; }
.employee-tour-popover .driver-popover-description { color: #52657a; font-size: 14px; }

@media (max-width: 640px) {
  #employee-search { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; }
  #employee-search select { grid-row: 2; grid-column: 2 / -1; border-left: 0; padding-inline: 0; }
  .employee-section { margin-top: 20px; }
  .employee-task { padding: 15px; gap: 10px; }
}

.employee-body[hidden], .employee-section[hidden] { display: none; }
#employee-results { margin-top: 24px; }
.employee-results-back {
  padding: 2px 0;
  background: transparent;
  color: var(--employee-blue);
  font-size: 14px;
}
.employee-results-back:hover { text-decoration: underline; }
#employee-results-title { margin: 12px 0 5px; font-size: 24px; }
#employee-results-status { margin: 0 0 16px; color: var(--employee-muted); font-size: 14px; }
#employee-results-list { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
#employee-results-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--employee-border);
  border-radius: 8px;
}
#employee-results-list h3 { margin: 3px 0; font-size: 17px; }
#employee-results-list p { margin: 0; color: var(--employee-muted); font-size: 14px; }
#employee-results-list .employee-result-category { color: var(--employee-blue); font-size: 12px; font-weight: 700; }
.employee-empty[hidden], #employee-request-list[hidden] { display: none; }
#employee-request-list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
#employee-request-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--employee-border);
  border-radius: 8px;
}
#employee-request-list button { background: transparent; padding-left: 0; color: var(--employee-blue); text-align: left; }
#employee-request-list span {
  padding: 4px 10px;
  border-radius: 999px;
  color: #174581;
  background: #eaf1ff;
  font-size: 13px;
}
#employee-request-page { margin-top: 24px; }
#employee-request-page h2 { margin: 12px 0 16px; font-size: 24px; }
#employee-request-page .employee-result-category { color: var(--employee-blue); font-size: 13px; font-weight: 700; }
.employee-folder-form, .employee-request-summary {
  width: min(100%, 620px);
  padding: 20px;
  border: 1px solid var(--employee-border);
  border-radius: 8px;
}
.employee-folder-form { display: grid; gap: 8px; background: #fff; }
.employee-folder-form > .btn { justify-self: start; }
.employee-folder-form label { font-size: 14px; font-weight: 700; }
.employee-folder-form textarea { min-height: 100px; }
.employee-folder-form .error { margin: 0; }
.employee-request-summary dt { color: var(--employee-muted); font-size: 13px; }
.employee-request-summary dd { margin: 2px 0 12px; overflow-wrap: anywhere; white-space: pre-wrap; }
.employee-request-summary dd:last-child { margin-bottom: 0; }

.employee-tracking-history, .employee-tracking-controls { max-width: 620px; margin-top: 20px; }
.employee-tracking-history h3, .employee-tracking-controls h3 { margin: 0 0 8px; font-size: 16px; }
#employee-history { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
#employee-history li { padding: 12px 14px; border-left: 2px solid #7695cb; background: #f5f8fe; }
#employee-history strong, #employee-history time { display: block; }
#employee-history time { margin-top: 3px; color: var(--employee-muted); font-size: 12px; }
#employee-history p { margin: 7px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#employee-executor-controls { margin-top: 12px; }
#employee-note-hint { margin: 0; font-size: 13px; }
.employee-tracking-actions { display: flex; flex-wrap: wrap; gap: 8px; }

#employee-rating { max-width: 620px; margin-top: 20px; }
#employee-rating h3 { margin: 0 0 8px; font-size: 16px; }
#employee-rating-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
#employee-rating-form legend { padding: 0; font-size: 14px; font-weight: 700; }
.employee-rating-stars { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 4px; }
#employee-rating-form .employee-rating-stars label {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--employee-border);
  border-radius: 6px;
  color: #647a90;
  font-size: 23px;
  cursor: pointer;
}
#employee-rating-form .employee-rating-stars label.is-filled { color: #855300; border-color: #e7bd60; background: #fff3d4; }
.employee-rating-stars input:focus-visible + label { outline: 2px solid #255bcc; outline-offset: 3px; }
.employee-rating-stars input:disabled + label { cursor: wait; }
#employee-rating-label, .employee-rating-notice { margin: 2px 0; font-size: 13px; }
.employee-rating-notice:not(.error) { color: #145a37; }
