.employee-account {
  --profile-ink: #272626;
  --profile-paper: #fff;
  --profile-border: #e8e5e3;
  --profile-control-border: #8a837d;
  --profile-muted: var(--muted, #686768);
  --profile-accent: var(--wine, #b91c23);
  --profile-tint: color-mix(in srgb, var(--profile-accent) 8%, var(--profile-paper));
  min-width: 0;
  max-width: 12rem;
  position: relative;
  color: var(--profile-ink);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

.employee-account .button {
  max-width: 100%;
  min-height: 34px;
  padding: .3rem .6rem;
  gap: .35rem;
  border: 1px solid var(--profile-border);
  border-radius: 9px;
  background: var(--profile-paper);
  color: var(--profile-ink);
  font-size: .8125rem;
  font-weight: 640;
  letter-spacing: normal;
  white-space: nowrap;
}

.employee-account .button:hover { border-color: var(--profile-control-border); background: #f4f1ed; }
.employee-account .button:focus-visible { outline: 3px solid #80621a; outline-offset: 3px; }

.employee-account summary.button:hover,
.employee-account details[open] summary.button {
  border-color: var(--profile-control-border);
  background: #f7f6f4;
}

.employee-account summary {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.employee-account summary::-webkit-details-marker { display: none; }

.employee-account-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.employee-account summary::after {
  content: '';
  flex: none;
  width: 10px;
  height: 6px;
  background: currentColor;
  clip-path: polygon(0 1.5px, 1.5px 0, 5px 3.5px, 8.5px 0, 10px 1.5px, 5px 6px);
}

.employee-account details[open] summary::after { transform: rotate(180deg); }

.employee-account-menu,
.employee-account > .employee-account-status {
  position: absolute;
  right: 0;
  z-index: 12;
  width: max-content;
  max-width: min(17rem, calc(100vw - 2rem));
  padding: .5rem;
  border: 1px solid var(--profile-border);
  border-radius: .65rem;
  background: var(--profile-paper);
  box-shadow: 0 12px 32px #27262622;
}

.employee-account-menu {
  top: calc(100% + .45rem);
  display: grid;
  width: min(35rem, calc(100vw - 1.5rem));
  max-width: none;
  max-height: min(42rem, calc(100dvh - 6rem));
  gap: .8rem;
  overflow: auto;
  overscroll-behavior: contain;
  padding: .8rem;
  border-radius: .9rem;
  box-shadow: 0 16px 48px #19161735;
}

.employee-account-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .75rem;
  padding: .72rem .8rem;
  border: 1px solid var(--profile-border);
  border-radius: .65rem;
  background: var(--profile-tint);
}

.employee-account-monogram {
  display: grid;
  flex: none;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--profile-accent) 28%, var(--profile-border));
  border-radius: 50%;
  background: var(--profile-paper);
  color: var(--profile-accent);
  font-size: .83rem;
  font-weight: 750;
}

.employee-account-identity-copy {
  display: grid;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.employee-account-identity-copy strong { font-size: .96rem; }
.employee-account-identity-copy > span {
  color: var(--profile-muted);
  font-size: .78rem;
}

.employee-account-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}

.employee-account-section {
  min-width: 0;
  padding: .55rem;
  border: 1px solid var(--profile-border);
  border-radius: .65rem;
}

.employee-account-section h2 {
  margin: 0 0 .3rem;
  padding-inline: .35rem;
  color: var(--profile-ink);
  font-size: .79rem;
  font-weight: 750;
  line-height: 1.35;
}

.employee-account-actions { display: grid; gap: .1rem; }

.employee-account .employee-account-action {
  display: grid;
  justify-content: stretch;
  justify-items: start;
  width: 100%;
  min-height: 3.05rem;
  gap: .06rem;
  padding: .36rem .4rem;
  border-color: transparent;
  background: transparent;
  font-size: .83rem;
  text-align: start;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.employee-account-hint {
  margin: 0;
  color: var(--profile-muted);
  font-size: .75rem;
  font-weight: 400;
  line-height: 1.38;
}

.employee-account-section > .employee-account-hint { padding-inline: .35rem; }

.employee-theme-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem;
  margin-block-start: .48rem;
  padding-inline: .35rem;
}

.employee-account .employee-theme-options button {
  justify-content: center;
  min-height: 2.45rem;
}

.employee-account .employee-theme-options button[aria-pressed="true"] {
  border-color: var(--profile-accent);
  background: var(--profile-tint);
  color: var(--profile-accent);
}

.employee-account-status { font-size: .8125rem; }
.employee-account-menu > .employee-account-status {
  margin: 0;
  color: var(--profile-ink);
  overflow-wrap: anywhere;
}
.employee-account > .employee-account-status { top: calc(100% + .45rem); }

@media (max-width: 32rem) {
  .employee-account { max-width: 9rem; }
  .employee-account .button { padding-inline: .5rem; }
  .employee-account-menu { padding: .55rem; border-radius: .75rem; }
  .employee-account-sections { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
}

.employee-gate { min-height: 100vh; display: grid; place-items: center; padding: 1.25rem; }
.employee-gate-card { display: grid; justify-items: start; gap: .85rem; width: min(100%, 28rem); padding: clamp(1.3rem, 4vw, 2.2rem); }
.employee-gate-card h1 { margin: 0; font-size: clamp(1.65rem, 5vw, 2.25rem); }
.employee-gate-card p { margin: 0; color: var(--muted); }
.employee-gate-card .brand-logo { width: 65px; height: 27px; }

