/* MICARAMY v3.2.0 - isolated staff UI; no global form/auth/mail changes. */
.mica-icon { width: 22px; height: 22px; flex: 0 0 auto; }
/* A summary is not an anchor: explicitly match the existing navigation type. */
.site-nav > a, .site-nav > .mica-staff-menu > summary {
  font-family: "Manrope", sans-serif; font-size: .78rem; font-weight: 700;
  letter-spacing: .02em; line-height: 1.7;
}
.site-nav > .mica-staff-menu { position: relative; display: block; flex: 0 0 auto; }
.site-nav > .mica-staff-menu > summary {
  display: flex; align-items: center; gap: 7px; padding: 0; list-style: none;
  color: #e8e7e3; cursor: pointer; white-space: nowrap;
}
.site-nav > .mica-staff-menu > summary::after { display: none; }
.site-nav > .mica-staff-menu > summary::-webkit-details-marker { display: none; }
.mica-staff-menu .mica-chevron { width: 14px; height: 14px; transition: transform .18s ease; }
.mica-staff-menu[open] .mica-chevron { transform: rotate(180deg); }
.site-nav > .mica-staff-menu[open] > summary { color: #f0ca7c; }
.site-nav .mica-staff-menu .staff-portals-dropdown {
  position: absolute; top: calc(100% + 22px); left: 50%; transform: translateX(-50%);
  min-width: 278px; padding: 8px; z-index: 100; border: 1px solid #51432d;
  border-radius: 14px; background: #141719; box-shadow: 0 22px 54px #0005;
}
.mica-staff-menu .staff-portals-dropdown::before { background: #141719; }
.site-nav .mica-staff-menu .staff-portals-dropdown a {
  display: flex !important; gap: 12px; padding: 13px 12px !important; border: 0;
  border-radius: 8px; color: #eee !important; font-family: "Manrope", sans-serif;
  font-size: .78rem; font-weight: 700; line-height: 1.7; letter-spacing: .02em;
}
.site-nav .mica-staff-menu .staff-portals-dropdown a::after { display: none; }
.site-nav .mica-staff-menu .staff-portals-dropdown a:hover,
.site-nav .mica-staff-menu .staff-portals-dropdown a[aria-current="page"] {
  color: #ffdc97 !important; background: #cba3511c;
}
.mica-staff-menu .staff-portals-dropdown .mica-menu-icon {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 7px;
  color: #e6bd70; background: transparent;
}
.mica-staff-menu .mica-menu-label { flex: 1; white-space: nowrap; }
.mica-staff-menu .mica-menu-arrow { width: 15px; height: 15px; color: #b6a386; }
.mica-staff-menu a:hover .mica-menu-arrow { transform: translateX(2px); }
html[data-theme="light"] .site-nav > .mica-staff-menu > summary { color: #272117; }
html[data-theme="light"] .site-nav > .mica-staff-menu[open] > summary { color: #8a621e; }

/* One widescreen scene and one actual HTML login form per page. */
body.mica-staff-page {
  color: #eee9de; background: #f3f0ea; min-height: 100vh;
  --mica-gold: #e7bf76; --mica-muted: #b9bec2;
}
.mica-staff-page .theme-toggle, .mica-staff-page .scroll-progress { display: none; }
html .mica-staff-page .site-header,
html[data-theme="light"] .mica-staff-page .site-header.is-scrolled {
  position: sticky; top: 0; background: #111315; border-bottom: 1px solid #a07d3a55;
}
.mica-staff-page .nav-wrap { width: min(1440px, calc(100% - 64px)); min-height: 88px; }
.mica-staff-page .brand--official { width: 168px; padding: 8px 0; }
.mica-staff-page .brand--official img { width: 146px; height: 66px; object-fit: contain; }
html .mica-staff-page .site-nav { background: transparent; }
html .mica-staff-page .site-nav > a:not(.nav-cta),
html .mica-staff-page .site-nav > .mica-staff-menu > summary { color: #e8e7e3; }
html .mica-staff-page .site-nav > a:not(.nav-cta):hover,
html .mica-staff-page .site-nav > .mica-staff-menu[open] > summary { color: #f0ca7c; }
.mica-staff-page .nav-cta { animation: none; border-radius: 8px; box-shadow: none; }
.mica-staff-page .nav-cta::before { display: none; }
.mica-staff-main { width: min(1440px, calc(100% - 64px)); margin: auto; }
.mica-staff-crumbs {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 65px; color: #58534c; font-size: .74rem; font-weight: 500;
}
.mica-staff-crumbs a { display: inline-flex; align-items: center; gap: 9px; }
.mica-staff-crumbs a:hover { color: #8a621e; }
.mica-staff-crumbs .mica-icon { width: 17px; height: 17px; }
.mica-breadcrumb { display: flex; align-items: center; gap: 14px; }
.mica-breadcrumb strong { font-weight: 600; color: #22211f; }
.mica-login-stage {
  position: relative; isolation: isolate; overflow: hidden; display: grid; width: 100%; min-width: 0; max-width: 100%;
  grid-template-columns: minmax(0, 1.3fr) minmax(400px, .95fr);
  min-height: 670px; aspect-ratio: 16 / 8.7;
  border: 1px solid #ab895752; border-radius: 22px; background: #111315;
  box-shadow: 0 24px 56px #43372221;
}
.mica-portal-picture { display: block; position: absolute; inset: 0; z-index: -3; }
.mica-portal-picture img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.mica-portal-shade {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(90deg, #090b0c14 0%, #090b0c08 38%, #090b0c75 64%, #0b0d0eed 100%),
              linear-gradient(0deg, #090b0cf2 0%, #090b0c99 20%, #090b0c05 66%, #090b0c25 100%);
}
.mica-visual-story { padding: 32px 38px 26px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.mica-story-label {
  align-self: flex-start; display: flex; align-items: center; gap: 8px;
  color: #f4ead7; font-size: .59rem; font-family: "Manrope",sans-serif; font-weight: 700;
  letter-spacing: .13em; padding: 8px 12px; border-radius: 6px;
  background: #0b0d0e87; backdrop-filter: blur(8px); border: 1px solid #d7b16b52;
}
.mica-status-dot { width: 5px; height: 5px; border-radius: 50%; background: #e9c77c; flex: 0 0 auto; }
.mica-story-copy { margin-top: auto; padding-top: 210px; }
.mica-story-rule { display: block; width: 44px; height: 3px; background: #e8c275; margin-bottom: 17px; }
.mica-story-eyebrow { margin: 0 0 14px; font-size: .62rem; letter-spacing: .15em; color: #efcc8e; font-weight: 700; text-transform: uppercase; }
.mica-story-copy h2 {
  font-family: "Manrope",sans-serif; font-size: clamp(30px, 3.25vw, 50px); font-weight: 600;
  line-height: 1.14; letter-spacing: -.04em; color: #fffaf1; margin: 0 0 15px;
}
.mica-story-description { max-width: 390px; color: #d0ccbf; font-size: .79rem; line-height: 1.7; margin: 0 0 21px; }
.mica-story-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.mica-story-chips span { padding: 6px 10px; border: 1px solid #e8ca8d45; border-radius: 30px; font-size: .6rem; color: #e0d3b9; background: #10131365; }
.mica-story-foot { margin-top: 34px; display: flex; justify-content: space-between; gap: 16px; color: #bdb5a5; font-family: "Manrope",sans-serif; font-size: .55rem; letter-spacing: .13em; }
.mica-signin-area { display: flex; align-items: center; padding: 32px 32px 32px 12px; outline: none; }
.mica-signin-panel {
  position: relative; width: 100%; padding: clamp(24px, 2.5vw, 42px); color: #efece3;
  border: 1px solid #bb986453; border-radius: 16px;
  background: linear-gradient(140deg, #191c1eea, #0e1011f7);
  box-shadow: 0 18px 70px #0004; backdrop-filter: blur(18px);
}
.mica-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 24px; }
.mica-role-icon { width: 60px; height: 60px; display: inline-grid; place-items: center; color: #e9c37a; border: 1px solid #b7904f; background: linear-gradient(135deg,#d8ad5720,#d8ad5705); border-radius: 14px; flex: 0 0 auto; }
.mica-role-icon .mica-icon { width: 30px; height: 30px; }
.mica-secure-label { display: flex; align-items: center; gap: 6px; font-size: .52rem; letter-spacing: .12em; color: #cec4b1; font-weight: 600; }
.mica-secure-label .mica-icon { width: 14px; height: 14px; color: #cba66b; }
.mica-login-eyebrow { font-family: "Manrope",sans-serif; font-weight: 700; font-size: .57rem; letter-spacing: .14em; color: #d9b778; margin: 0 0 8px; }
.mica-signin-panel h1 { font-family: "Manrope",sans-serif; font-weight: 600; font-size: clamp(27px, 2.6vw, 39px); letter-spacing: -.035em; line-height: 1.2; margin: 0 0 10px; color: #fffaf1; }
.mica-login-intro { margin: 0 0 25px; font-size: .75rem; color: #bfc0bf; line-height: 1.65; }
.mica-signin-form { display: grid; gap: 16px; }
.mica-input-field { display: grid; gap: 8px; min-width: 0; }
.mica-input-field label { color: #ddd9ce; font-size: .7rem; font-weight: 500; }
.mica-input-wrap { position: relative; display: flex; align-items: center; background: #ffffff04; border: 1px solid #7275716e; border-radius: 8px; transition: border-color .18s, box-shadow .18s; }
.mica-input-wrap:focus-within { border-color: #e9c37a; box-shadow: 0 0 0 3px #e9c37a19; }
.mica-input-wrap > .mica-icon { margin-left: 15px; width: 18px; height: 18px; color: #929895; pointer-events: none; }
.mica-signin-form input:not([type="hidden"]) {
  min-width: 0; width: 100%; height: 52px; padding: 12px; margin: 0; border: 0;
  border-radius: 8px; box-shadow: none; outline: none; color: #f8f4eb;
  background: transparent; font-family: inherit; font-size: 16px; line-height: 1.4;
}
.mica-signin-form input::placeholder { color: #888e91; font-size: .8rem; }
.mica-signin-form input:-webkit-autofill { -webkit-text-fill-color: #f8f4eb; box-shadow: 0 0 0 100px #202428 inset; caret-color: #f8f4eb; }
.mica-password-toggle { align-self: stretch; display: grid; place-items: center; min-width: 44px; padding: 0 12px; margin: 0; border: 0; border-radius: 7px; color: #a4aaa9; background: transparent; cursor: pointer; }
.mica-password-toggle .mica-icon { width: 18px; height: 18px; }
.mica-password-toggle:hover, .mica-password-toggle[aria-pressed="true"] { color: #e9c37a; }
.mica-signin-submit {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%;
  min-height: 54px; border: 1px solid #f4d298; border-radius: 8px; margin: 7px 0 0;
  padding: 13px 18px; background: linear-gradient(110deg,#c99a4d,#f2d18c);
  color: #211a0f; font-family: "Manrope",sans-serif; font-size: .8rem; font-weight: 800;
  cursor: pointer; transition: box-shadow .18s, filter .18s; text-align: left;
}
.mica-signin-submit:hover { filter: brightness(1.06); box-shadow: 0 8px 24px #dfb86b22; }
.mica-signin-submit:disabled { cursor: wait; opacity: .7; }
.mica-signin-submit .mica-icon { width: 19px; height: 19px; }
.mica-signin-form .form-status { min-height: 0; margin: 0; font-size: .76rem; line-height: 1.6; }
.mica-signin-form .form-status:empty { display: none; }
.mica-signin-form .form-status.is-error { color: #ffb1aa; }
.mica-signin-form .form-status.is-success { color: #a2ddb5; }
.mica-access-help { margin: 21px 0 0; color: #a7acab; font-size: .64rem; line-height: 1.8; }
.mica-access-help a { color: #e8c788; white-space: nowrap; }
.mica-access-help a .mica-icon { display: inline-block; width: 12px; height: 12px; vertical-align: middle; }
.mica-access-help a:hover { text-decoration: underline; }
.mica-panel-bottom { display: flex; align-items: center; justify-content: center; gap: 7px; padding-top: 20px; margin-top: 23px; border-top: 1px solid #ffffff12; font-size: .56rem; color: #929b9c; }
.mica-panel-bottom .mica-icon { width: 12px; height: 12px; }
.mica-noscript { color: #ffd294; font-size: .8rem; }
.mica-staff-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 24px 0 30px; color: #777169; font-size: .63rem; }
.mica-staff-footer > span:first-child { font-family: "Manrope",sans-serif; font-weight: 600; letter-spacing: .1em; font-size: .55rem; }
.mica-staff-footer strong { font-weight: 600; color: #6c5632; }
.mica-chooser { width: min(1320px,calc(100% - 64px)); margin: 48px auto 0; color: #28231d; }
.mica-chooser-label { color: #8b662f; font-size: .65rem; letter-spacing: .17em; font-weight: 700; }
.mica-chooser h1 { font-size: clamp(30px,4vw,50px); line-height: 1.2; margin: 8px 0 18px; }
.mica-chooser > p:not(.mica-chooser-label) { color: #6d675d; font-size: .9rem; }
.mica-chooser-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; margin: 32px 0 0; }
.mica-chooser-card { display: block; background: #121516; color: #f7eedc; overflow: hidden; border: 1px solid #b193654f; border-radius: 16px; }
.mica-chooser-card > img { width: 100%; height: auto; aspect-ratio:16/9; object-fit:cover; }
.mica-chooser-card > div { padding: 24px; }
.mica-chooser-card h2 { font-size: 25px; margin: 18px 0 6px; line-height: 1.3; }
.mica-chooser-card p { color: #b8b5ae; font-size: .7rem; }
.mica-chooser-action { display:flex; align-items:center; justify-content:space-between; color:#e1bd7b; border-top:1px solid #e1bd7b35; margin-top:22px; padding-top:18px; font-size:.75rem; }
.mica-chooser-card:hover { box-shadow:0 12px 30px #17171725; }
/* Presentation fix only for the two existing staff workspace placeholders. */
.staff-dashboard-shell { color: #25211a; }
.staff-dashboard-card .lead { color: #5c554b; }

@media (min-width: 1600px) {
  .mica-login-stage { min-height: 730px; }
  .mica-visual-story { padding: 40px 48px 32px; }
}
@media (max-width: 1100px) and (min-width: 961px) {
  .mica-staff-page .nav-wrap, .mica-staff-main { width: calc(100% - 36px); }
  .mica-staff-page .nav-wrap { gap: 18px; }
  .mica-staff-page .site-nav { gap: 12px; }
  .mica-login-stage { grid-template-columns: minmax(0,1fr) 400px; min-height: 655px; }
  .mica-visual-story { padding: 24px; }
  .mica-signin-area { padding: 24px 24px 24px 0; }
  .mica-signin-panel { padding: 25px; }
  .mica-story-description { max-width: 280px; }
}
@media (max-width: 960px) {
  .site-nav > a, .site-nav > .mica-staff-menu > summary { font-size: 1rem; line-height: 1.7; }
  .site-nav > .mica-staff-menu { width: 100%; }
  .site-nav > .mica-staff-menu > summary { padding: 17px 12px; border-bottom: 1px solid var(--line); }
  .site-nav > .mica-staff-menu > summary .mica-chevron { margin-left: auto; }
  .site-nav .mica-staff-menu .staff-portals-dropdown { position: static; min-width: 0; transform: none; margin: 6px 0 10px; box-shadow: none; }
  .site-nav .mica-staff-menu .staff-portals-dropdown::before { display: none; }
  .site-nav .mica-staff-menu .staff-portals-dropdown a { font-size: 1rem; }
  .mica-staff-page .nav-wrap { min-height: 76px; width: calc(100% - 32px); }
  .mica-staff-page .brand--official img { height: 56px; width: 133px; }
  .mica-staff-page .brand--official { width: 140px; padding: 6px 0; }
  html .mica-staff-page .site-nav { background: #121516; top: 76px; height: calc(100dvh - 76px); }
  html .mica-staff-page .menu-toggle { color: #e6c27f; border-color: #bd965551; background: #e6c27f08; }
  .mica-staff-main { width: min(660px,calc(100% - 32px)); }
  .mica-staff-crumbs { min-height: 54px; font-size: .67rem; }
  .mica-login-stage { display: block; aspect-ratio: auto; min-height: 0; border-radius: 18px; }
  .mica-portal-picture { position: absolute; inset: 0 0 auto; height: 430px; }
  .mica-portal-picture img { object-position: center 51%; }
  .mica-login-stage--operations .mica-portal-picture img { object-position: center 42%; }
  .mica-login-stage--human-resources .mica-portal-picture img { object-position: center 36%; }
  .mica-portal-shade { height: 431px; background: linear-gradient(0deg, #111315 0%,#111315cc 15%,#11131500 74%); }
  .mica-visual-story { min-height: 290px; padding: 24px 26px 0; }
  .mica-story-label { padding: 6px 8px; font-size: .5rem; }
  .mica-story-copy { padding-top: 150px; }
  .mica-story-eyebrow { font-size: .54rem; margin-bottom: 9px; }
  .mica-story-copy h2 { font-size: 30px; line-height: 1.14; margin-bottom: 0; }
  .mica-story-rule, .mica-story-description, .mica-story-chips, .mica-story-foot { display: none; }
  .mica-signin-area { padding: 22px; }
  .mica-signin-panel { padding: 26px; box-shadow: none; background: linear-gradient(135deg,#1a1d1eee,#111315); border-radius: 12px; }
  .mica-signin-panel h1 { font-size: 31px; }
  .mica-panel-heading { margin-bottom: 20px; }
  .mica-role-icon { width: 52px; height: 52px; border-radius: 12px; }
  .mica-role-icon .mica-icon { width: 27px; height: 27px; }
  .mica-login-intro { margin-bottom: 24px; font-size: .76rem; }
  .mica-staff-footer { padding: 21px 0 26px; justify-content: center; text-align: center; gap: 7px; }
  .mica-staff-footer > span { width: 100%; }
  .mica-chooser { width: calc(100% - 32px); }
  .mica-chooser-grid { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 420px) {
  .mica-staff-main { width: calc(100% - 24px); }
  .mica-staff-crumbs { font-size: .59rem; gap: 8px; }
  .mica-staff-crumbs a { gap: 6px; }
  .mica-breadcrumb { gap: 7px; }
  .mica-visual-story { min-height: 285px; padding: 20px 22px 0; }
  .mica-signin-area { padding: 18px 16px; }
  .mica-signin-panel { padding: 23px 20px; }
  .mica-signin-panel h1 { font-size: 29px; }
  .mica-story-copy h2 { font-size: 28px; }
  .mica-access-help { font-size: .59rem; }
  .mica-signin-submit { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mica-staff-menu *, .mica-staff-page * { scroll-behavior: auto; animation: none !important; transition: none !important; }
}
