/*
 * Employee portal reference design.
 *
 * This file intentionally contains no global resets. Every rule is scoped to
 * the authenticated employee content root so the login and admin surfaces keep
 * their own visual contracts.
 */

body[data-role="EMPLOYEE"] .employee-home {
  --employee-page: #f4f7fb;
  --employee-surface: #ffffff;
  --employee-surface-soft: #f7f9fc;
  --employee-line: #e1e8f1;
  --employee-line-strong: #d5dfeb;
  --employee-ink: #172033;
  --employee-ink-soft: #536176;
  --employee-muted: #7b889b;
  --employee-blue: #2476ef;
  --employee-blue-dark: #135fda;
  --employee-blue-soft: #edf5ff;
  --employee-green: #18a66a;
  --employee-green-soft: #ebf9f2;
  --employee-violet: #7257e8;
  --employee-violet-soft: #f2efff;
  --employee-shadow: 0 12px 34px rgba(30, 56, 92, 0.07);
  --employee-shadow-soft: 0 5px 20px rgba(36, 71, 116, 0.055);
  width: 100%;
  margin: 0;
  color: var(--employee-ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-role="EMPLOYEE"] .employee-home *,
body[data-role="EMPLOYEE"] .employee-home *::before,
body[data-role="EMPLOYEE"] .employee-home *::after {
  box-sizing: border-box;
}

body[data-role="EMPLOYEE"] .employee-home button,
body[data-role="EMPLOYEE"] .employee-home a {
  -webkit-tap-highlight-color: transparent;
}

body[data-role="EMPLOYEE"] .employee-home button:focus-visible,
body[data-role="EMPLOYEE"] .employee-home a:focus-visible,
body[data-role="EMPLOYEE"] .employee-home summary:focus-visible {
  outline: 3px solid rgba(36, 118, 239, 0.24);
  outline-offset: 2px;
}

body[data-role="EMPLOYEE"] .employee-home svg {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-role="EMPLOYEE"] .employee-home h1,
body[data-role="EMPLOYEE"] .employee-home h2,
body[data-role="EMPLOYEE"] .employee-home h3,
body[data-role="EMPLOYEE"] .employee-home p {
  margin: 0;
}

body[data-role="EMPLOYEE"] .employee-home #employee-overview,
body[data-role="EMPLOYEE"] .employee-home #employee-subscription-tools,
body[data-role="EMPLOYEE"] .employee-home #employee-guide,
body[data-role="EMPLOYEE"] .employee-home #employee-help,
body[data-role="EMPLOYEE"] .employee-home #employee-clients {
  scroll-margin-top: 92px;
}

/* Hero */

body[data-role="EMPLOYEE"] .employee-home .employee-hero-v3 {
  position: relative;
  display: grid;
  min-height: 340px;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.72fr);
  gap: 36px;
  overflow: hidden;
  padding: 32px 36px;
  border: 1px solid rgba(180, 210, 246, 0.72);
  border-radius: 20px;
  background:
    radial-gradient(
      circle at 84% 18%,
      rgba(76, 145, 239, 0.16),
      transparent 18rem
    ),
    linear-gradient(115deg, #f8fbff 0%, #edf5ff 56%, #e8f2ff 100%);
  box-shadow: 0 14px 36px rgba(33, 83, 145, 0.075);
}

body[data-role="EMPLOYEE"] .employee-home .employee-hero-v3::before,
body[data-role="EMPLOYEE"] .employee-home .employee-hero-v3::after {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  content: "";
}

body[data-role="EMPLOYEE"] .employee-home .employee-hero-v3::before {
  top: -96px;
  right: -80px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(77, 146, 236, 0.13);
}

body[data-role="EMPLOYEE"] .employee-home .employee-hero-v3::after {
  right: 170px;
  bottom: -145px;
  width: 250px;
  height: 250px;
  border: 44px solid rgba(255, 255, 255, 0.24);
}

body[data-role="EMPLOYEE"] .employee-home .employee-hero-copy,
body[data-role="EMPLOYEE"] .employee-home .employee-config-card {
  position: relative;
  z-index: 1;
}

body[data-role="EMPLOYEE"] .employee-home .employee-hero-copy {
  align-self: center;
}

body[data-role="EMPLOYEE"] .employee-home .employee-permission-badge {
  display: inline-flex;
  width: max-content;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0 11px;
  border: 1px solid #cfe2fa;
  border-radius: 999px;
  color: var(--employee-blue);
  background: rgba(255, 255, 255, 0.72);
}

body[data-role="EMPLOYEE"]
  .employee-home
  .employee-permission-badge.is-inactive {
  border-color: #f0d9d9;
  color: #c25656;
  background: rgba(255, 248, 248, 0.86);
}

body[data-role="EMPLOYEE"] .employee-home .connection-state-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--employee-green);
  box-shadow: 0 0 0 4px rgba(24, 166, 106, 0.1);
}

body[data-role="EMPLOYEE"]
  .employee-home
  .employee-permission-badge.is-inactive
  .connection-state-dot {
  background: #d35d5d;
  box-shadow: 0 0 0 4px rgba(211, 93, 93, 0.09);
}

body[data-role="EMPLOYEE"] .employee-home .employee-permission-badge > strong {
  color: currentColor;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.025em;
}

body[data-role="EMPLOYEE"] .employee-home .dashboard-status-pill {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  color: #16885a;
  background: #e5f7ee;
  font-size: 9px;
  font-weight: 720;
}

body[data-role="EMPLOYEE"] .employee-home .dashboard-status-pill.disabled {
  color: #bd5454;
  background: #fff0f0;
}

body[data-role="EMPLOYEE"] .employee-home .employee-hero-copy h1 {
  margin-top: 17px;
  color: #17243b;
  letter-spacing: -0.01em;
}

body[data-role="EMPLOYEE"] .employee-home .employee-hero-copy h1 > span {
  display: block;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 610;
}

body[data-role="EMPLOYEE"] .employee-home .employee-hero-copy h1 > strong {
  display: block;
  margin-top: 5px;
  color: #112b53;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

body[data-role="EMPLOYEE"] .employee-home .employee-hero-copy > p {
  max-width: 660px;
  margin-top: 14px;
  color: #60728b;
  font-size: 14px;
  line-height: 1.8;
}

body[data-role="EMPLOYEE"] .employee-home .employee-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

body[data-role="EMPLOYEE"] .employee-home .employee-primary-action,
body[data-role="EMPLOYEE"] .employee-home .employee-secondary-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 11px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 660;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

body[data-role="EMPLOYEE"] .employee-home .employee-primary-action {
  border: 1px solid var(--employee-blue);
  color: #fff;
  background: linear-gradient(135deg, #2d7ff1, #1766de);
  box-shadow: 0 8px 18px rgba(36, 118, 239, 0.23);
}

body[data-role="EMPLOYEE"] .employee-home .employee-primary-action svg {
  font-size: 18px;
}

body[data-role="EMPLOYEE"] .employee-home .employee-primary-action:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(36, 118, 239, 0.29);
}

body[data-role="EMPLOYEE"] .employee-home .employee-secondary-action {
  border: 1px solid #d4e0ee;
  color: #38516f;
  background: rgba(255, 255, 255, 0.82);
}

body[data-role="EMPLOYEE"] .employee-home .employee-secondary-action:hover {
  border-color: #bfcfe2;
  background: #fff;
}

body[data-role="EMPLOYEE"] .employee-home .employee-primary-action:disabled,
body[data-role="EMPLOYEE"] .employee-home .employee-config-actions button:disabled,
body[data-role="EMPLOYEE"] .employee-home .employee-steps button:disabled,
body[data-role="EMPLOYEE"]
  .employee-home
  .subscription-device-actions
  button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

body[data-role="EMPLOYEE"] .employee-home .employee-hero-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: #8996a8;
  font-size: 10px;
  line-height: 1.55;
}

body[data-role="EMPLOYEE"] .employee-home .employee-hero-note svg {
  font-size: 15px;
}

/* Personal connection card */

body[data-role="EMPLOYEE"] .employee-home .employee-config-card {
  align-self: center;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 35px rgba(54, 91, 133, 0.09);
  backdrop-filter: blur(15px);
}

body[data-role="EMPLOYEE"] .employee-home .employee-config-heading {
  min-width: 0;
}

body[data-role="EMPLOYEE"] .employee-home .employee-config-heading > span,
body[data-role="EMPLOYEE"]
  .employee-home
  .employee-panel-heading
  > div
  > span,
body[data-role="EMPLOYEE"]
  .employee-home
  .employee-section-heading
  > div
  > span {
  color: var(--employee-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

body[data-role="EMPLOYEE"] .employee-home .employee-config-heading > strong {
  color: #1c3556;
  font-size: 15px;
  font-weight: 720;
}

body[data-role="EMPLOYEE"] .employee-home .employee-qr-frame {
  position: relative;
  display: grid;
  width: 142px;
  height: 142px;
  place-items: center;
  margin: 9px auto;
  padding: 5px;
  border: 1px solid #dbe5f0;
  border-radius: 15px;
  background: #fff;
}

body[data-role="EMPLOYEE"] .employee-home .employee-qr-frame::before,
body[data-role="EMPLOYEE"] .employee-home .employee-qr-frame::after {
  display: none;
  content: none;
}

body[data-role="EMPLOYEE"] .employee-home .employee-qr-frame > img {
  display: none;
  width: 132px;
  height: 132px;
  border-radius: 7px;
  object-fit: contain;
}

body[data-role="EMPLOYEE"] .employee-home .employee-qr-frame.has-image > img {
  display: block;
}

body[data-role="EMPLOYEE"]
  .employee-home
  .employee-qr-frame.has-image
  .qr-placeholder {
  display: none;
}

body[data-role="EMPLOYEE"] .employee-home .qr-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  align-content: center;
  gap: 8px;
  border-radius: 9px;
  color: #8493a8;
  background:
    linear-gradient(90deg, rgba(228, 235, 247, 0.58) 1px, transparent 1px),
    linear-gradient(rgba(228, 235, 247, 0.58) 1px, transparent 1px),
    #f8fafd;
  background-size: 11px 11px;
}

body[data-role="EMPLOYEE"] .employee-home .qr-placeholder svg {
  padding: 8px;
  border-radius: 12px;
  color: var(--employee-blue);
  background: #eaf3ff;
  font-size: 43px;
}

body[data-role="EMPLOYEE"] .employee-home .qr-placeholder small {
  font-size: 9px;
}

body[data-role="EMPLOYEE"] .employee-home .employee-connection-link {
  padding: 9px 10px;
  border: 1px solid var(--employee-line);
  border-radius: 11px;
  background: #f8fafc;
}

body[data-role="EMPLOYEE"] .employee-home .employee-connection-link code {
  display: block;
  margin-top: 0;
  overflow: visible;
  overflow-wrap: anywhere;
  color: #53657c;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  line-height: 1.5;
  text-overflow: clip;
  user-select: text;
  white-space: normal;
}

body[data-role="EMPLOYEE"] .employee-home .employee-config-actions {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 7px;
  margin-top: 7px;
}

body[data-role="EMPLOYEE"] .employee-home .employee-config-actions button {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid #cfe0f5;
  border-radius: 10px;
  color: var(--employee-blue);
  background: var(--employee-blue-soft);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 660;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

body[data-role="EMPLOYEE"]
  .employee-home
  .employee-config-actions
  button:first-child {
  border-color: var(--employee-blue);
  color: #fff;
  background: var(--employee-blue);
  box-shadow: 0 8px 18px rgba(36, 118, 239, 0.18);
}

body[data-role="EMPLOYEE"]
  .employee-home
  .employee-config-actions
  button:not(:disabled):hover {
  border-color: #a9cdf8;
  background: #e8f2ff;
}

body[data-role="EMPLOYEE"]
  .employee-home
  .employee-config-actions
  button:first-child:not(:disabled):hover {
  border-color: var(--employee-blue-dark);
  background: var(--employee-blue-dark);
}

body[data-role="EMPLOYEE"] .employee-home .employee-config-actions button svg {
  font-size: 15px;
}

body[data-role="EMPLOYEE"] .employee-home .employee-config-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  color: #758499;
  font-size: 10px;
  font-weight: 590;
  line-height: 1.5;
}

body[data-role="EMPLOYEE"] .employee-home .employee-config-note svg {
  color: var(--employee-green);
  font-size: 14px;
}

/* Summary */

body[data-role="EMPLOYEE"] .employee-home .employee-summary-grid-v3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 16px;
}

body[data-role="EMPLOYEE"] .employee-home .employee-summary-v3 {
  display: flex;
  min-height: 125px;
  align-items: flex-start;
  gap: 13px;
  padding: 17px;
  border: 1px solid var(--employee-line);
  border-radius: 15px;
  background: var(--employee-surface);
  box-shadow: var(--employee-shadow-soft);
}

body[data-role="EMPLOYEE"] .employee-home .employee-summary-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
}

body[data-role="EMPLOYEE"] .employee-home .employee-summary-icon svg {
  font-size: 21px;
}

body[data-role="EMPLOYEE"] .employee-home .employee-summary-icon.blue {
  color: var(--employee-blue);
  background: var(--employee-blue-soft);
}

body[data-role="EMPLOYEE"] .employee-home .employee-summary-icon.green {
  color: var(--employee-green);
  background: var(--employee-green-soft);
}

body[data-role="EMPLOYEE"] .employee-home .employee-summary-icon.violet {
  color: var(--employee-violet);
  background: var(--employee-violet-soft);
}

body[data-role="EMPLOYEE"] .employee-home .employee-summary-v3 > div {
  min-width: 0;
  flex: 1;
}

body[data-role="EMPLOYEE"] .employee-home .employee-summary-v3 p {
  color: #7a8799;
  font-size: 11px;
  font-weight: 600;
}

body[data-role="EMPLOYEE"] .employee-home .employee-summary-v3 strong {
  display: flex;
  align-items: baseline;
  margin-top: 4px;
  color: #16243b;
  font-size: 24px;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
}

body[data-role="EMPLOYEE"] .employee-home .employee-summary-v3 strong small {
  color: #7c8999;
  font-size: 11px;
  font-weight: 550;
}

body[data-role="EMPLOYEE"]
  .employee-home
  .employee-summary-v3
  .employee-date-value {
  font-size: 20px;
  letter-spacing: -0.02em;
}

body[data-role="EMPLOYEE"] .employee-home .employee-summary-v3 .progress-track {
  width: 100%;
  height: 5px;
  overflow: hidden;
  margin-top: 8px;
  border-radius: 999px;
  background: #edf1f6;
}

body[data-role="EMPLOYEE"]
  .employee-home
  .employee-summary-v3
  .progress-track
  > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2b7ff0, #68a7f8);
}

body[data-role="EMPLOYEE"] .employee-home .employee-summary-v3 > div > small {
  display: block;
  margin-top: 7px;
  color: #929dac;
  font-size: 9px;
}

/* Guide and help */

body[data-role="EMPLOYEE"] .employee-home .employee-content-grid-v3 {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.72fr);
  gap: 16px;
  margin-top: 16px;
}

body[data-role="EMPLOYEE"] .employee-home .employee-panel-v3,
body[data-role="EMPLOYEE"] .employee-home .employee-clients-v3 {
  padding: 22px;
  border: 1px solid var(--employee-line);
  border-radius: 16px;
  background: var(--employee-surface);
  box-shadow: var(--employee-shadow-soft);
}

body[data-role="EMPLOYEE"] .employee-home .employee-panel-heading,
body[data-role="EMPLOYEE"] .employee-home .employee-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

body[data-role="EMPLOYEE"] .employee-home .employee-panel-heading h2,
body[data-role="EMPLOYEE"] .employee-home .employee-section-heading h2 {
  margin-top: 5px;
  color: #1b2940;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body[data-role="EMPLOYEE"] .employee-home .employee-panel-heading p,
body[data-role="EMPLOYEE"] .employee-home .employee-section-heading p {
  margin-top: 6px;
  color: #8793a4;
  font-size: 11px;
  line-height: 1.6;
}

body[data-role="EMPLOYEE"] .employee-home .employee-panel-heading > em {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--employee-line);
  border-radius: 999px;
  color: #6e7d91;
  background: #f9fbfd;
  font-size: 10px;
  font-style: normal;
  font-weight: 620;
}

body[data-role="EMPLOYEE"] .employee-home .employee-platform-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 20px;
  padding: 5px;
  border-radius: 12px;
  background: #f5f7fa;
}

body[data-role="EMPLOYEE"] .employee-home .employee-platform-tabs > span {
  display: grid;
  min-width: 0;
  height: 35px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #778598;
  font-size: 10px;
  font-weight: 620;
}

body[data-role="EMPLOYEE"]
  .employee-home
  .employee-platform-tabs
  > span:first-child {
  border-color: #dce5f0;
  color: var(--employee-blue);
  background: #fff;
  box-shadow: 0 3px 10px rgba(49, 71, 99, 0.07);
}

body[data-role="EMPLOYEE"] .employee-home .employee-steps {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

body[data-role="EMPLOYEE"] .employee-home .employee-steps li {
  position: relative;
  display: grid;
  min-height: 69px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #edf1f5;
}

body[data-role="EMPLOYEE"] .employee-home .employee-steps li:first-child {
  border-top: 0;
}

body[data-role="EMPLOYEE"]
  .employee-home
  .employee-steps
  li:not(:last-child)::after {
  position: absolute;
  bottom: -12px;
  left: 16px;
  z-index: 1;
  width: 1px;
  height: 23px;
  background: #dbe5f1;
  content: "";
}

body[data-role="EMPLOYEE"] .employee-home .employee-steps li > span {
  z-index: 2;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #cfe1f7;
  border-radius: 10px;
  color: var(--employee-blue);
  background: #f0f6ff;
  font-size: 12px;
  font-weight: 720;
}

body[data-role="EMPLOYEE"] .employee-home .employee-steps li > span.done {
  border-color: #d0ebdf;
  color: var(--employee-green);
  background: var(--employee-green-soft);
}

body[data-role="EMPLOYEE"] .employee-home .employee-steps li > div {
  min-width: 0;
}

body[data-role="EMPLOYEE"] .employee-home .employee-steps strong {
  color: #304058;
  font-size: 12px;
  font-weight: 650;
}

body[data-role="EMPLOYEE"] .employee-home .employee-steps p {
  margin-top: 4px;
  color: #8a96a6;
  font-size: 10px;
  line-height: 1.5;
}

body[data-role="EMPLOYEE"] .employee-home .employee-steps button {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 0;
  color: var(--employee-blue);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 640;
}

body[data-role="EMPLOYEE"] .employee-home .employee-steps li > em {
  padding: 5px 8px;
  border-radius: 999px;
  color: #8b97a7;
  background: #f3f6f9;
  font-size: 9px;
  font-style: normal;
}

body[data-role="EMPLOYEE"] .employee-home .employee-home-help {
  height: 100%;
  margin: 0;
}

body[data-role="EMPLOYEE"] .employee-home .employee-home-help details {
  border-top: 1px solid #edf1f5;
}

body[data-role="EMPLOYEE"] .employee-home .employee-home-help details:first-of-type {
  margin-top: 17px;
}

body[data-role="EMPLOYEE"] .employee-home .employee-home-help summary {
  display: grid;
  min-height: 58px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  color: #354258;
  cursor: pointer;
  font-size: 12px;
  font-weight: 620;
  list-style: none;
}

body[data-role="EMPLOYEE"]
  .employee-home
  .employee-home-help
  summary::-webkit-details-marker {
  display: none;
}

body[data-role="EMPLOYEE"] .employee-home .home-help-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: var(--employee-blue);
  background: var(--employee-blue-soft);
  font-size: 10px;
  font-weight: 720;
}

body[data-role="EMPLOYEE"] .employee-home .home-help-icon.warning {
  color: #c97922;
  background: #fff5e7;
}

body[data-role="EMPLOYEE"] .employee-home .employee-home-help summary i {
  color: #758198;
  font-size: 17px;
  font-style: normal;
  transition: transform 180ms ease;
}

body[data-role="EMPLOYEE"]
  .employee-home
  .employee-home-help
  details[open]
  summary
  i {
  transform: rotate(45deg);
}

body[data-role="EMPLOYEE"] .employee-home .employee-home-help details > p {
  padding: 0 3px 17px 41px;
  color: #758198;
  font-size: 10px;
  line-height: 1.7;
}

/* Downloads */

body[data-role="EMPLOYEE"] .employee-home .employee-clients-v3 {
  margin-top: 16px;
}

body[data-role="EMPLOYEE"] .employee-home .employee-safety-tag {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #d7ebe1;
  border-radius: 999px;
  color: #49806a;
  background: #f3faf6;
  font-size: 10px;
  font-weight: 620;
}

body[data-role="EMPLOYEE"] .employee-home .employee-safety-tag svg {
  font-size: 15px;
}

body[data-role="EMPLOYEE"]
  .employee-home
  .employee-clients-v3
  .subscription-device-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

body[data-role="EMPLOYEE"]
  .employee-home
  .employee-clients-v3
  .subscription-device-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 218px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  padding: 16px;
  border: 1px solid var(--employee-line);
  border-radius: 13px;
  color: inherit;
  background: linear-gradient(155deg, #fff, #fbfcfe);
  text-align: left;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

body[data-role="EMPLOYEE"]
  .employee-home
  .employee-clients-v3
  .subscription-device-card:hover {
  transform: translateY(-2px);
  border-color: #cbd9e8;
  box-shadow: 0 10px 24px rgba(46, 72, 107, 0.08);
}

body[data-role="EMPLOYEE"] .employee-home .employee-download-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 12px;
  color: #3a75c5;
  background: #eef4fc;
}

body[data-role="EMPLOYEE"] .employee-home .employee-download-icon svg {
  font-size: 25px;
}

body[data-role="EMPLOYEE"]
  .employee-home
  .subscription-device-card:nth-child(2)
  .employee-download-icon
  svg {
  fill: currentColor;
  stroke: none;
}

body[data-role="EMPLOYEE"] .employee-home .employee-download-eyebrow {
  display: block;
  margin-top: 13px;
  color: #9aa5b3;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

body[data-role="EMPLOYEE"]
  .employee-home
  .employee-clients-v3
  .subscription-device-card
  h3 {
  margin-top: 4px;
  color: #304058;
  font-size: 14px;
}

body[data-role="EMPLOYEE"]
  .employee-home
  .employee-clients-v3
  .subscription-device-card
  > p {
  min-height: 30px;
  margin-top: 7px;
  color: #7f8c9d;
  font-size: 9px;
  line-height: 1.55;
}

body[data-role="EMPLOYEE"] .employee-home .subscription-device-actions {
  display: grid;
  width: 100%;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 13px;
}

body[data-role="EMPLOYEE"] .employee-home .subscription-device-actions a,
body[data-role="EMPLOYEE"] .employee-home .subscription-device-actions button {
  display: grid;
  min-height: 36px;
  place-items: center;
  margin: 0;
  padding: 0 8px;
  border: 1px solid #cfddec;
  border-radius: 9px;
  color: #4a617e;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 650;
}

body[data-role="EMPLOYEE"] .employee-home .subscription-device-actions button {
  border-color: var(--employee-blue);
  color: #fff;
  background: var(--employee-blue);
}

body[data-role="EMPLOYEE"]
  .employee-home
  .subscription-device-actions
  a:hover {
  border-color: #bdd2e9;
  color: var(--employee-blue);
}

body[data-role="EMPLOYEE"]
  .employee-home
  .subscription-device-actions
  button:hover:not(:disabled) {
  border-color: var(--employee-blue-dark);
  background: var(--employee-blue-dark);
}

/* IT support */

body[data-role="EMPLOYEE"] .employee-home .employee-support-bar {
  display: grid;
  min-height: 88px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  overflow: hidden;
  padding: 14px 18px;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(
      circle at 95% 20%,
      rgba(105, 167, 249, 0.25),
      transparent 13rem
    ),
    linear-gradient(120deg, #1c64d2, #2478e9 72%, #3989ef);
  box-shadow: 0 12px 26px rgba(31, 104, 213, 0.16);
}

body[data-role="EMPLOYEE"] .employee-home .employee-support-bar > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.13);
}

body[data-role="EMPLOYEE"] .employee-home .employee-support-bar > span svg {
  font-size: 23px;
}

body[data-role="EMPLOYEE"] .employee-home .employee-support-bar > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

body[data-role="EMPLOYEE"] .employee-home .employee-support-bar small {
  color: #bcd9ff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

body[data-role="EMPLOYEE"] .employee-home .employee-support-bar strong {
  margin-top: 2px;
  font-size: 15px;
  letter-spacing: -0.02em;
}

body[data-role="EMPLOYEE"] .employee-home .employee-support-bar p {
  margin-top: 3px;
  color: #d9eaff;
  font-size: 9px;
}

body[data-role="EMPLOYEE"] .employee-home .employee-support-bar > button {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  color: #1d67d5;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 680;
}

body[data-role="EMPLOYEE"] .employee-home .employee-support-bar > button:hover {
  background: #f5f9ff;
}

/* Responsive */

@media (max-width: 1180px) {
  body[data-role="EMPLOYEE"] .employee-home .employee-hero-v3 {
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.68fr);
    padding: 32px;
  }

  body[data-role="EMPLOYEE"] .employee-home .employee-content-grid-v3 {
    grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
  }

  body[data-role="EMPLOYEE"]
    .employee-home
    .employee-clients-v3
    .subscription-device-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body[data-role="EMPLOYEE"] .employee-home .employee-hero-v3 {
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
    gap: 24px;
  }

  body[data-role="EMPLOYEE"] .employee-home .employee-content-grid-v3 {
    grid-template-columns: 1fr;
  }

  body[data-role="EMPLOYEE"] .employee-home .employee-home-help {
    grid-row: 2;
  }
}

@media (max-width: 780px) {
  body[data-role="EMPLOYEE"] .employee-home #employee-overview,
  body[data-role="EMPLOYEE"] .employee-home #employee-subscription-tools,
  body[data-role="EMPLOYEE"] .employee-home #employee-guide,
  body[data-role="EMPLOYEE"] .employee-home #employee-help,
  body[data-role="EMPLOYEE"] .employee-home #employee-clients {
    scroll-margin-top: 78px;
  }

  body[data-role="EMPLOYEE"] .employee-home .employee-hero-v3 {
    grid-template-columns: 1fr;
    padding: 26px 24px;
  }

  body[data-role="EMPLOYEE"] .employee-home .employee-config-card {
    width: min(100%, 420px);
    justify-self: center;
  }

  body[data-role="EMPLOYEE"] .employee-home .employee-summary-grid-v3 {
    grid-template-columns: 1fr;
  }

  body[data-role="EMPLOYEE"] .employee-home .employee-summary-v3 {
    min-height: 112px;
  }

}

@media (max-width: 560px) {
  body[data-role="EMPLOYEE"] .employee-home .employee-hero-v3 {
    min-height: 0;
    padding: 23px 20px;
    border-radius: 17px;
  }

  body[data-role="EMPLOYEE"] .employee-home .employee-hero-copy h1 > strong {
    font-size: 29px;
    line-height: 1.25;
  }

  body[data-role="EMPLOYEE"] .employee-home .employee-hero-copy > p {
    font-size: 12px;
  }

  body[data-role="EMPLOYEE"] .employee-home .employee-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-role="EMPLOYEE"] .employee-home .employee-hero-actions button {
    width: 100%;
  }

  body[data-role="EMPLOYEE"] .employee-home .employee-config-card {
    padding: 15px;
    border-radius: 15px;
  }

  body[data-role="EMPLOYEE"] .employee-home .employee-summary-grid-v3 {
    gap: 10px;
    margin-top: 10px;
  }

  body[data-role="EMPLOYEE"] .employee-home .employee-panel-v3,
  body[data-role="EMPLOYEE"] .employee-home .employee-clients-v3 {
    padding: 18px;
    border-radius: 14px;
  }

  body[data-role="EMPLOYEE"] .employee-home .employee-panel-heading,
  body[data-role="EMPLOYEE"] .employee-home .employee-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }

  body[data-role="EMPLOYEE"] .employee-home .employee-platform-tabs {
    grid-template-columns: 1fr 1fr;
  }

  body[data-role="EMPLOYEE"] .employee-home .employee-steps li {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 10px 0;
  }

  body[data-role="EMPLOYEE"] .employee-home .employee-steps button,
  body[data-role="EMPLOYEE"] .employee-home .employee-steps li > em {
    width: max-content;
    grid-column: 2;
    padding-left: 0;
  }

  body[data-role="EMPLOYEE"]
    .employee-home
    .employee-clients-v3
    .subscription-device-grid {
    grid-template-columns: 1fr;
  }

  body[data-role="EMPLOYEE"]
    .employee-home
    .employee-clients-v3
    .subscription-device-card {
    min-height: 205px;
  }

  body[data-role="EMPLOYEE"] .employee-home .employee-support-bar {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  body[data-role="EMPLOYEE"] .employee-home .employee-support-bar > button {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-role="EMPLOYEE"] .employee-home *,
  body[data-role="EMPLOYEE"] .employee-home *::before,
  body[data-role="EMPLOYEE"] .employee-home *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
