:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #647085;
  --line: #d8deea;
  --surface: #ffffff;
  --band: #f3f6fa;
  --blue: #174a8b;
  --blue-dark: #113463;
  --green: #16855b;
  --danger: #a51d2d;
}

body[data-theme="yellow"] {
  --ink: #2b230d;
  --muted: #7a6a3d;
  --line: #ead89a;
  --surface: #fffdf5;
  --band: #fff8dc;
  --blue: #b8860b;
  --blue-dark: #6f5300;
  --green: #6b8e23;
  --danger: #b55200;
}

body[data-theme="burgundy"] {
  --ink: #24131a;
  --muted: #806273;
  --line: #e2c9d4;
  --surface: #fff8fb;
  --band: #f7edf2;
  --blue: #8a1744;
  --blue-dark: #4b0d25;
  --green: #0f7a5a;
  --danger: #b91f3b;
}

body[data-theme="tanishq"] {
  --ink: #2b2118;
  --muted: #786653;
  --line: #dfcfb8;
  --surface: #fffaf2;
  --band: #f3eadc;
  --blue: #8b6336;
  --blue-dark: #4d341d;
  --green: #426d3d;
  --danger: #9b3f28;
}

body[data-theme="green"] {
  --ink: #10231c;
  --muted: #557467;
  --line: #c8ded3;
  --surface: #fbfffd;
  --band: #edf8f2;
  --blue: #12805a;
  --blue-dark: #0b4834;
  --green: #10925f;
  --danger: #a12d2d;
}

body[data-runtime-mode="offline"] {
  --ink: #16221d;
  --muted: #5b6f65;
  --line: #cbd9d0;
  --surface: #fbfdf9;
  --band: #eef5ef;
  --blue: #1f6f55;
  --blue-dark: #173c33;
  --green: #13805b;
  --danger: #a51d2d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--band);
}

button,
input,
select,
textarea {
  font: inherit;
}

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-showcase {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(420px, 0.82fr) minmax(440px, 0.9fr);
  gap: clamp(28px, 5vw, 86px);
  align-items: center;
  justify-content: center;
  padding: clamp(26px, 5vw, 70px);
  color: #f5f9ff;
  background:
    radial-gradient(circle at 10% 8%, rgba(176, 61, 61, 0.35), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(118, 27, 27, 0.34), transparent 32%),
    linear-gradient(135deg, #2b0808 0%, #761B1B 48%, #190404 100%);
}

.login-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(45, 8, 8, 0.08), rgba(18, 3, 3, 0.72)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 78px);
  pointer-events: none;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.login-backdrop::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(31, 5, 5, 0.78));
}

.tower {
  position: absolute;
  bottom: 0;
  width: 140px;
  border: 1px solid rgba(255, 207, 207, 0.22);
  background:
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(255, 207, 207, 0.16) 34px 36px),
    repeating-linear-gradient(90deg, rgba(180, 70, 70, 0.16) 0 30px, rgba(255, 255, 255, 0.05) 30px 32px),
    linear-gradient(180deg, rgba(118, 27, 27, 0.44), rgba(50, 9, 9, 0.72));
  box-shadow: inset 0 0 35px rgba(255, 120, 120, 0.12), 0 0 60px rgba(25, 2, 2, 0.45);
  transform: skewY(-7deg);
}

.tower-one {
  left: 42%;
  height: 74%;
}

.tower-two {
  left: 35%;
  height: 49%;
  opacity: 0.65;
}

.tower-three {
  left: 53%;
  height: 42%;
  opacity: 0.52;
}

.login-marketing,
.login-glass {
  position: relative;
  z-index: 1;
}

.login-marketing {
  width: min(560px, 100%);
  display: grid;
  gap: 28px;
}

.suite-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.suite-logo {
  position: relative;
  width: 82px;
  height: 82px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(118, 27, 27, 0.94), rgba(228, 126, 98, 0.62));
  box-shadow: 0 0 28px rgba(180, 61, 61, 0.48);
}

.suite-logo span {
  width: 14px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #ffe2e2, #c94a4a 60%, #761B1B);
}

.suite-logo span:nth-child(1) {
  height: 34px;
}

.suite-logo span:nth-child(2) {
  height: 52px;
}

.suite-logo span:nth-child(3) {
  height: 68px;
}

.suite-logo.mini {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  padding: 10px;
}

.suite-logo.mini span {
  width: 9px;
}

.suite-brand h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 0;
}

.suite-brand h1 span,
.login-copy h2 span {
  color: #ffb0a8;
}

.suite-brand p,
.login-copy p {
  color: #d8e8ff;
}

.login-copy h2 {
  margin: 0 0 18px;
  width: min(520px, 100%);
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

.login-copy p {
  width: min(520px, 100%);
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
}

.feature-stack {
  display: grid;
  gap: 12px;
  width: min(430px, 100%);
}

.feature-stack article,
.trust-strip,
.platform-card,
.create-account-btn {
  border: 1px solid rgba(186, 218, 255, 0.24);
  background: linear-gradient(135deg, rgba(118, 27, 27, 0.24), rgba(255, 255, 255, 0.07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 18px 36px rgba(31, 3, 3, 0.24);
  backdrop-filter: blur(18px);
}

.feature-stack article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 86px;
  padding: 16px;
  border-radius: 12px;
}

.feature-stack b {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 28px;
  background: linear-gradient(145deg, #761B1B, #c94a4a);
  box-shadow: 0 0 22px rgba(201, 74, 74, 0.42);
}

.feature-stack article:nth-child(2) b {
  background: linear-gradient(145deg, #9e2b2b, #e07a5f);
}

.feature-stack article:nth-child(3) b {
  background: linear-gradient(145deg, #5b1414, #ad3434);
}

.feature-stack article:nth-child(4) b {
  background: linear-gradient(145deg, #d38a2f, #f2bc68);
}

.feature-stack article:nth-child(5) b {
  background: linear-gradient(145deg, #761B1B, #ff9d8d);
}

.feature-stack strong,
.platform-card strong {
  display: block;
  color: #ffffff;
  font-weight: 800;
}

.feature-stack span,
.platform-card small,
.trust-strip span,
.login-foot {
  color: #d5e6ff;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: min(540px, 100%);
  padding: 18px 20px;
  border-radius: 12px;
}

.trust-strip div {
  display: grid;
  gap: 4px;
  padding: 0 18px;
  border-right: 1px solid rgba(218, 234, 255, 0.2);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong {
  font-size: 28px;
}

.login-glass {
  width: min(610px, 100%);
  padding: clamp(36px, 4vw, 64px);
  border-radius: 30px;
  border: 1px solid rgba(185, 219, 255, 0.36);
  background: linear-gradient(140deg, rgba(118, 27, 27, 0.42), rgba(48, 9, 9, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 0 1px rgba(201, 74, 74, 0.14), 0 28px 90px rgba(28, 3, 3, 0.54);
  backdrop-filter: blur(24px);
}

.login-language {
  position: absolute;
  right: 34px;
  top: 32px;
  padding: 12px 18px;
  border: 1px solid rgba(207, 226, 255, 0.22);
  border-radius: 10px;
  color: #eef6ff;
  background: rgba(255, 255, 255, 0.08);
}

.login-orb {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 190, 180, 0.45);
  background: radial-gradient(circle, rgba(201, 74, 74, 0.42), rgba(118, 27, 27, 0.22));
  box-shadow: 0 0 30px rgba(201, 74, 74, 0.48);
}

.login-glass h1 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 38px;
  letter-spacing: 0;
}

.login-glass p {
  color: #dcecff;
  line-height: 1.5;
}

.login-field {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  color: #ffffff;
  font-weight: 800;
}

.login-field > div {
  display: grid;
  grid-template-columns: 28px 1fr 24px;
  align-items: center;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(217, 233, 255, 0.3);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
}

.login-field b,
.login-field em,
.login-field .password-toggle {
  color: #e4f0ff;
  font-style: normal;
}

.login-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
}

.login-field input::placeholder {
  color: #c8d9f2;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 18px 0 14px;
  color: #ffffff;
}

.login-options label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-options input {
  width: 17px;
  height: 17px;
  accent-color: #761B1B;
}

.login-options button {
  border: 0;
  background: transparent;
  color: #ffb0a8;
  cursor: pointer;
  font-weight: 800;
}

.login-submit {
  width: 100%;
  min-height: 58px;
  margin-top: 8px;
  border: 0;
  border-radius: 9px;
  color: #ffffff;
  background: linear-gradient(100deg, #761B1B, #b33a3a 65%, #e07a5f);
  box-shadow: 0 0 22px rgba(201, 74, 74, 0.38);
  font-size: 17px;
}

.login-submit.primary,
.auth-glass .primary {
  background: linear-gradient(100deg, #761B1B, #b33a3a 65%, #e07a5f);
  box-shadow: 0 0 22px rgba(201, 74, 74, 0.38);
}

.login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  margin: 28px 0;
  color: #d8e9ff;
}

.login-divider span {
  height: 1px;
  background: rgba(217, 233, 255, 0.28);
}

.create-account-btn {
  width: 100%;
  min-height: 56px;
  border-radius: 9px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
}

.secondary-auth-btn {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.login-downloads {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.login-downloads > span {
  display: block;
  margin-bottom: 10px;
  color: #f4d5d5;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-downloads > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.download-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border-radius: 9px;
  color: #ffffff;
  text-decoration: none;
  background: rgba(118, 27, 27, 0.65);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.download-pill:hover {
  background: rgba(179, 58, 58, 0.85);
}

.download-pill svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex: 0 0 auto;
}

.download-pill b {
  font-size: 14px;
}

.platform-card {
  display: grid;
  grid-template-columns: 175px 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 34px;
  padding: 20px;
  border-radius: 12px;
}

.platform-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  height: 112px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(118, 27, 27, 0.38), rgba(224, 122, 95, 0.28));
  box-shadow: inset 0 0 28px rgba(255, 190, 180, 0.18);
}

.platform-preview span {
  border-radius: 8px;
  background: linear-gradient(135deg, #f0a090, #761B1B);
}

.platform-preview span:nth-child(2),
.platform-preview span:nth-child(4) {
  background: rgba(255, 255, 255, 0.28);
}

.platform-card small {
  display: block;
  margin-top: 9px;
}

.login-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  font-size: 13px;
}

.login-foot b {
  color: #ffb0a8;
}

.login-panel,
.work-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.08);
}

.login-panel {
  width: min(420px, 100%);
  padding: 24px;
}

.auth-wide {
  width: min(760px, 100%);
}

.auth-showcase {
  grid-template-columns: minmax(320px, 760px);
}

.auth-glass {
  color: #f5f9ff;
}

.auth-glass.login-panel {
  width: min(760px, 100%);
}

.auth-glass .login-orb {
  margin-inline: auto;
}

.auth-glass h1,
.auth-glass p,
.auth-glass .field span,
.auth-glass .muted {
  color: #ffffff;
}

.auth-glass .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-glass .field input,
.auth-glass .field select,
.auth-glass .field textarea {
  border: 1px solid rgba(217, 233, 255, 0.3);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  outline: 0;
}

.auth-glass .field input::placeholder,
.auth-glass .field textarea::placeholder {
  color: #c8d9f2;
}

.auth-glass .modal-actions button:not(.primary) {
  border-color: rgba(217, 233, 255, 0.3);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.login-panel h1,
.work-panel h2 {
  margin: 0 0 8px;
}

.login-panel p {
  margin: 0 0 20px;
  color: var(--muted);
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.auth-links button,
.modal-actions button:not(.primary) {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--blue);
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
}

.login-glass.login-panel {
  background: linear-gradient(140deg, rgba(118, 27, 27, 0.42), rgba(48, 9, 9, 0.82));
}

.login-glass .login-field > div {
  border: 1px solid rgba(217, 233, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.login-glass .login-field input {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #ffffff;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 1050px) {
  .login-showcase {
    grid-template-columns: 1fr;
  }

  .login-marketing {
    width: min(760px, 100%);
  }

  .feature-stack {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-stack article {
    min-height: 100px;
  }
}

@media (max-width: 680px) {
  .login-showcase {
    padding: 18px;
  }

  .login-marketing {
    gap: 20px;
  }

  .suite-brand h1 {
    font-size: 34px;
  }

  .suite-logo {
    width: 64px;
    height: 64px;
  }

  .feature-stack,
  .trust-strip,
  .platform-card {
    grid-template-columns: 1fr;
  }

  .login-downloads > div {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(218, 234, 255, 0.2);
    padding: 10px 0;
  }

  .trust-strip div:last-child {
    border-bottom: 0;
  }

  .login-glass {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .login-language {
    position: static;
    width: max-content;
    margin-left: auto;
    margin-bottom: 18px;
  }

  .login-options,
  .login-foot {
    align-items: flex-start;
    flex-direction: column;
  }
}

.erp-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(242, 246, 251, 0.92)),
    var(--band);
}

.erp-shell.offline-shell {
  grid-template-columns: 286px 1fr;
  background:
    linear-gradient(180deg, rgba(248, 252, 247, 0.94), rgba(231, 240, 232, 0.98)),
    var(--band);
}

.premium-login {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(18, 18, 20, 0.88), rgba(118, 27, 27, 0.92)),
    radial-gradient(circle at 14% 20%, rgba(255, 148, 122, 0.2), transparent 31%),
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.12), transparent 22%),
    #761B1B;
}

.premium-login::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

.offline-login {
  background:
    radial-gradient(circle at 16% 16%, rgba(33, 117, 86, 0.28), transparent 28%),
    radial-gradient(circle at 84% 14%, rgba(212, 166, 70, 0.18), transparent 26%),
    linear-gradient(135deg, #10221c 0%, #1f6f55 48%, #081510 100%);
}

.offline-auth-shell {
  width: min(430px, 100%);
  min-height: auto;
  display: block;
}

.offline-auth-page {
  grid-template-columns: 1fr;
  place-items: center;
  padding: 22px;
}

.offline-auth-card {
  width: min(430px, 100%);
  padding: 30px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: #15221d;
  box-shadow: 0 26px 80px rgba(3, 17, 12, 0.26);
}

.offline-auth-card .premium-card-head,
.offline-auth-card > h1,
.offline-auth-card > p {
  text-align: left;
}

.offline-auth-card .premium-card-head span {
  color: #1f6f55;
  font-size: 11px;
  font-weight: 700;
}

.offline-auth-card .premium-card-head h1,
.offline-auth-card h1 {
  margin: 8px 0 4px;
  color: #14211c;
  font-size: 24px;
  font-weight: 700;
}

.offline-auth-card .premium-card-head p,
.offline-auth-card > p {
  color: #6a746f;
  font-size: 13px;
}

.offline-auth-card .login-field > span,
.offline-auth-card .field > span {
  color: #4d5d55;
  font-size: 12px;
  font-weight: 600;
}

.offline-auth-card .login-field > div,
.offline-auth-card .field input,
.offline-auth-card .field select {
  border: 0;
  border-radius: 8px;
  background: #f3f7f4;
  box-shadow: none;
}

.offline-auth-card .login-field > div {
  min-height: 44px;
}

.offline-auth-card .login-field input,
.offline-auth-card .field input,
.offline-auth-card .field select {
  color: #14211c;
  background: #f3f7f4 !important;
  font-size: 14px;
}

.offline-auth-card .login-field input::placeholder,
.offline-auth-card .field input::placeholder {
  color: transparent;
}

.offline-auth-card .password-toggle {
  color: #1f6f55 !important;
  font-weight: 600 !important;
}

.offline-login-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

.offline-login-options button {
  justify-self: start;
  padding: 0;
  color: #0b66c3 !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.offline-auth-card .login-submit {
  width: auto;
  min-height: 38px;
  margin-top: 8px;
  padding: 0 28px;
  border-radius: 8px;
  font-size: 14px;
}

.offline-signup-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.offline-signup-row button {
  border: 0;
  color: #0b66c3;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.offline-login-foot {
  display: none !important;
}

.offline-login .offline-auth-shell {
  width: min(410px, calc(100vw - 32px));
  min-height: auto;
  display: block;
}

.offline-login .offline-auth-card,
.offline-login .offline-auth-card,
.offline-login .offline-auth-card.login-glass,
.offline-login .offline-auth-card.auth-glass,
.offline-login .offline-auth-card.auth-wide {
  width: min(410px, 100%);
  padding: 28px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  color: #161b18;
  box-shadow: 0 24px 70px rgba(3, 17, 12, 0.28);
}

.offline-login .offline-auth-card .premium-card-head span {
  color: #23634e;
  font-size: 11px;
  font-weight: 700;
}

.offline-login .offline-auth-card .premium-card-head h1,
.offline-login .offline-auth-card h1 {
  margin: 8px 0 4px;
  color: #111a16;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
}

.offline-login .offline-auth-card .premium-card-head p,
.offline-login .offline-auth-card > p {
  color: #5d6862;
  font-size: 13px;
}

.offline-login .offline-auth-card .login-field > span,
.offline-login .offline-auth-card .field > span,
.offline-login .offline-auth-card .muted,
.offline-login .offline-auth-card .remember-me {
  color: #26352e;
}

.offline-login .offline-auth-card .login-field > div,
.offline-login .offline-auth-card .field input,
.offline-login .offline-auth-card .field select,
.offline-login .offline-auth-card .field textarea {
  border: 0;
  border-radius: 10px;
  background: #f2f5f3;
  color: #111a16;
  box-shadow: none;
}

.offline-login .offline-auth-card .login-field input,
.offline-login .offline-auth-card .field input,
.offline-login .offline-auth-card .field select,
.offline-login .offline-auth-card .field textarea {
  color: #111a16;
  background: #f2f5f3;
}

.offline-login .offline-auth-card .login-field input::placeholder,
.offline-login .offline-auth-card .field input::placeholder,
.offline-login .offline-auth-card .field textarea::placeholder {
  color: transparent;
}

.offline-login .offline-auth-card .password-toggle,
.offline-login .offline-auth-card .offline-login-options button,
.offline-login .offline-auth-card .offline-signup-row button {
  color: #0b66c3;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 13px;
  font-weight: 500;
}

.offline-login .offline-auth-card .login-submit {
  width: auto;
  min-height: 40px;
  margin-top: 10px;
  padding: 0 28px;
  border-radius: 10px;
  font-size: 14px;
}

/* Reference-auth final override: keep this at EOF so the login card matches the supplied mockup. */
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login),
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) {
  position: relative !important;
  min-height: 100svh !important;
  overflow: hidden !important;
  display: grid !important;
  place-items: center !important;
  padding: 28px !important;
  color: #0b2b6f !important;
  background:
    radial-gradient(circle at 6% 88%, rgba(30, 115, 255, 0.16) 0 13%, transparent 28%),
    radial-gradient(circle at 94% 8%, rgba(42, 128, 255, 0.18) 0 12%, transparent 26%),
    radial-gradient(circle at 48% 45%, rgba(255, 255, 255, 0.92) 0 12%, transparent 38%),
    linear-gradient(135deg, #f8fdff 0%, #e0f0ff 45%, #ffffff 100%) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login)::before,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login)::before {
  content: "" !important;
  position: absolute !important;
  inset: -13% -8% !important;
  pointer-events: none !important;
  opacity: 1 !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1680 940'%3E%3Cg fill='none' stroke='%236aa8ff' stroke-opacity='.22' stroke-width='1.05'%3E%3Cpath d='M-120 220 C 160 38 330 332 595 176 S 960 50 1230 215 1395 375 1790 150'/%3E%3Cpath d='M-135 300 C 150 122 355 420 620 258 S 985 94 1260 285 1435 430 1810 230'/%3E%3Cpath d='M-165 390 C 120 214 370 512 665 340 S 1040 150 1290 372 1480 505 1840 318'/%3E%3Cpath d='M-100 590 C 200 410 440 720 720 540 S 1080 326 1370 552 1535 700 1810 515'/%3E%3Cpath d='M-160 665 C 155 478 430 795 745 610 S 1115 400 1410 630 1560 770 1830 595'/%3E%3C/g%3E%3Cg fill='none' stroke='%230f6dff' stroke-opacity='.1' stroke-width='1'%3E%3Cpath d='M160 350c125-140 285-136 410 0-126 148-286 148-410 0Z'/%3E%3Cpath d='M1140 360c122-138 280-135 405 0-125 145-280 145-405 0Z'/%3E%3Cpath d='M240 350c25-190 215-270 370-160-28 198-215 275-370 160Z'/%3E%3Cpath d='M1215 360c28-190 215-272 372-158-30 195-215 274-372 158Z'/%3E%3C/g%3E%3C/svg%3E") !important;
  background-size: cover !important;
  background-position: center !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login)::after,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login)::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 18% 77%, rgba(255, 255, 255, 0.9) 0 1px, transparent 3px),
    radial-gradient(circle at 37% 20%, rgba(255, 255, 255, 0.9) 0 1px, transparent 3px),
    radial-gradient(circle at 74% 43%, rgba(255, 255, 255, 0.86) 0 1px, transparent 3px),
    linear-gradient(134deg, transparent 0 68%, rgba(255, 255, 255, 0.5) 68% 69%, transparent 69%) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-shell {
  position: relative !important;
  z-index: 1 !important;
  width: min(1680px, 100%) !important;
  min-height: min(860px, calc(100svh - 56px)) !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  place-items: center !important;
  padding: 0 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-brand-panel {
  display: none !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-login-card.crystal-login-card,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-panel.auth-glass {
  position: relative !important;
  z-index: 2 !important;
  width: 318px !important;
  max-width: calc(100vw - 34px) !important;
  max-height: calc(100svh - 52px) !important;
  overflow: auto !important;
  display: block !important;
  padding: 26px 26px 22px !important;
  color: #0b2b6f !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(228, 243, 255, 0.68)),
    rgba(255, 255, 255, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.86) !important;
  border-radius: 14px !important;
  box-shadow:
    0 24px 68px rgba(27, 89, 176, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(22px) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-card-head {
  display: grid !important;
  gap: 8px !important;
  margin: 0 0 18px !important;
  text-align: center !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-card-brand {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-card-brand img {
  width: 54px !important;
  height: 54px !important;
  object-fit: contain !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-card-brand strong {
  display: block !important;
  color: #082563 !important;
  font-size: 22px !important;
  line-height: 1.02 !important;
  font-weight: 800 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-card-brand span {
  display: block !important;
  margin-top: 3px !important;
  color: #4d6595 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-divider {
  display: block !important;
  width: 108px !important;
  height: 10px !important;
  margin: 4px auto 8px !important;
  background:
    radial-gradient(circle, #126eff 0 2px, transparent 3px),
    linear-gradient(90deg, transparent 0, rgba(18, 110, 255, 0.24) 18%, rgba(18, 110, 255, 0.24) 82%, transparent 100%) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 100% 1px, 100% 1px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-card-head h1,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-panel.auth-glass h1,
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-card-head p {
  display: none !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field {
  display: grid !important;
  gap: 0 !important;
  margin: 0 0 11px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field > span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field > div,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .field input,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .field select,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .field textarea {
  min-height: 42px !important;
  color: #0c2c66 !important;
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(111, 159, 226, 0.38) !important;
  border-radius: 6px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field b {
  width: 22px !important;
  color: #2871e8 !important;
  font-size: 17px !important;
  text-align: center !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field input {
  height: 100% !important;
  color: #0c2c66 !important;
  background: transparent !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field input::placeholder {
  color: #5b74a8 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .password-toggle {
  width: 32px !important;
  min-width: 32px !important;
  color: transparent !important;
  font-size: 0 !important;
  position: relative !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .password-toggle::before {
  content: "" !important;
  position: absolute !important;
  left: 8px !important;
  top: 50% !important;
  width: 15px !important;
  height: 9px !important;
  border: 2px solid #2368d7 !important;
  border-radius: 50% !important;
  transform: translateY(-50%) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .password-toggle::after {
  content: "" !important;
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: #2368d7 !important;
  transform: translateY(-50%) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-options {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 2px 0 14px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-options label {
  color: #2f4b82 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-options input {
  width: 14px !important;
  height: 14px !important;
  accent-color: #1b6ff0 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-options button {
  color: #1b6ff0 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .error {
  margin: 0 !important;
  min-height: 0 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-submit,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .primary {
  width: 100% !important;
  min-height: 43px !important;
  border-radius: 6px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #2b91ff, #0b55e4) !important;
  box-shadow: 0 15px 34px rgba(19, 94, 224, 0.3) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-or {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 13px 0 13px !important;
  color: #7b8daf !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-or::before,
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-or::after {
  content: "" !important;
  height: 1px !important;
  background: rgba(91, 139, 207, 0.27) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin: 0 0 18px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row a {
  min-height: 35px !important;
  display: grid !important;
  grid-template-columns: 20px 1fr 14px !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 0 8px !important;
  color: #071f55 !important;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.47) !important;
  border: 1px solid rgba(87, 145, 226, 0.38) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row svg {
  width: 18px !important;
  height: 18px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row .windows-mark {
  fill: #1185ff !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row .android-mark {
  fill: #76b900 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row span {
  color: #071f55 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row small {
  width: 13px !important;
  height: 13px !important;
  overflow: hidden !important;
  color: transparent !important;
  position: relative !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row small::before {
  content: "" !important;
  position: absolute !important;
  left: 5px !important;
  top: 1px !important;
  width: 2px !important;
  height: 8px !important;
  background: #6e84a8 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row small::after {
  content: "" !important;
  position: absolute !important;
  left: 2px !important;
  top: 6px !important;
  width: 8px !important;
  height: 8px !important;
  border-right: 2px solid #6e84a8 !important;
  border-bottom: 2px solid #6e84a8 !important;
  transform: rotate(45deg) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-signup-line {
  margin: 0 !important;
  color: #4e6694 !important;
  text-align: center !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-signup-line button {
  display: inline !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #075ee8 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-secondary-actions.crystal-create-only,
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-foot,
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-feature-bar {
  display: none !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) {
  display: grid !important;
  place-items: center !important;
  padding: 24px !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-backdrop {
  display: none !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .form-grid {
  grid-template-columns: 1fr !important;
  gap: 11px !important;
}

/* Exact-reference lock: this block is intentionally last so older auth rules cannot override it. */
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login),
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) {
  position: relative !important;
  min-height: 100svh !important;
  overflow: hidden !important;
  display: grid !important;
  place-items: center !important;
  padding: clamp(18px, 3vw, 36px) !important;
  color: #0b2b6f !important;
  background:
    radial-gradient(circle at 8% 91%, rgba(255, 255, 255, 0.9) 0 5%, transparent 18%),
    radial-gradient(circle at 94% 9%, rgba(255, 255, 255, 0.82) 0 4%, transparent 17%),
    radial-gradient(circle at 52% 38%, rgba(255, 255, 255, 0.86) 0 10%, transparent 35%),
    linear-gradient(135deg, #f8fdff 0%, #dceeff 42%, #ffffff 100%) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login)::before,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login)::before {
  content: "" !important;
  position: absolute !important;
  inset: -12% -8% !important;
  pointer-events: none !important;
  opacity: 1 !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 760'%3E%3Cg fill='none' stroke='%236aa8ff' stroke-opacity='.23' stroke-width='1.1'%3E%3Cpath d='M-90 210 C 150 38 280 360 510 196 S 810 45 1045 228 1240 382 1530 160'/%3E%3Cpath d='M-120 280 C 120 118 300 420 540 258 S 830 92 1085 285 1245 430 1540 230'/%3E%3Cpath d='M-160 360 C 105 200 325 505 585 340 S 900 152 1120 360 1290 492 1580 320'/%3E%3Cpath d='M-80 475 C 180 320 360 600 610 452 S 930 250 1160 470 1330 585 1530 420'/%3E%3C/g%3E%3Cg fill='none' stroke='%230f6dff' stroke-opacity='.1' stroke-width='1'%3E%3Cpath d='M245 312c96-108 220-106 318 0-98 113-222 113-318 0Z'/%3E%3Cpath d='M900 396c118-132 268-130 386 0-118 137-268 137-386 0Z'/%3E%3Cpath d='M312 300c21-150 168-216 292-128-24 156-169 219-292 128Z'/%3E%3Cpath d='M950 390c26-180 199-257 346-151-29 185-201 258-346 151Z'/%3E%3C/g%3E%3C/svg%3E") !important;
  background-size: cover !important;
  background-position: center !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login)::after,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login)::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(135deg, transparent 0 66%, rgba(70, 145, 255, 0.15) 66% 67%, transparent 67%),
    linear-gradient(45deg, transparent 0 72%, rgba(255, 255, 255, 0.72) 72% 73%, transparent 73%) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-shell {
  position: relative !important;
  z-index: 1 !important;
  width: min(1180px, calc(100vw - 44px)) !important;
  min-height: min(720px, calc(100svh - 44px)) !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  place-items: center !important;
  padding: 24px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-brand-panel {
  display: none !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-login-card.crystal-login-card,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-panel.auth-glass {
  position: relative !important;
  z-index: 2 !important;
  width: min(374px, calc(100vw - 34px)) !important;
  max-height: calc(100svh - 52px) !important;
  overflow: auto !important;
  display: grid !important;
  gap: 0 !important;
  padding: 30px 28px 24px !important;
  color: #0b2b6f !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(224, 241, 255, 0.66)),
    rgba(255, 255, 255, 0.58) !important;
  border: 1px solid rgba(255, 255, 255, 0.84) !important;
  border-radius: 18px !important;
  box-shadow:
    0 30px 80px rgba(24, 92, 186, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(24px) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-card-head {
  display: grid !important;
  gap: 8px !important;
  margin: 0 0 18px !important;
  text-align: center !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-card-brand {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-card-brand img {
  width: 58px !important;
  height: 58px !important;
  object-fit: contain !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-card-brand strong {
  display: block !important;
  color: #07296d !important;
  font-size: 24px !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-card-brand span {
  display: block !important;
  margin-top: 4px !important;
  color: #4a6698 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-divider {
  display: block !important;
  width: 118px !important;
  height: 10px !important;
  margin: 3px auto 2px !important;
  background:
    radial-gradient(circle, #126eff 0 2px, transparent 3px),
    linear-gradient(90deg, transparent 0, rgba(18, 110, 255, 0.22) 20%, rgba(18, 110, 255, 0.22) 80%, transparent 100%) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 100% 1px, 100% 1px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-card-head h1,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-panel.auth-glass h1 {
  margin: 0 !important;
  color: #082563 !important;
  font-size: 22px !important;
  line-height: 1.12 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-card-head p,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-panel.auth-glass p,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .muted {
  margin: 0 !important;
  color: #526d9e !important;
  font-size: 12px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field {
  display: grid !important;
  gap: 8px !important;
  margin: 0 0 10px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field > span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field > div,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .field input,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .field select,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .field textarea {
  min-height: 46px !important;
  color: #0c2c66 !important;
  background: rgba(255, 255, 255, 0.58) !important;
  border: 1px solid rgba(108, 157, 229, 0.38) !important;
  border-radius: 7px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field b {
  color: #2368d7 !important;
  font-size: 18px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field input {
  color: #0c2c66 !important;
  background: transparent !important;
  font-size: 13px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field input::placeholder {
  color: #5573a8 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-options {
  margin: 4px 0 10px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .remember-me,
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-options label {
  color: #2f4b82 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-options button,
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .password-toggle {
  color: #1b6ff0 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-submit,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .primary {
  min-height: 44px !important;
  border-radius: 7px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #268dff, #0a55e5) !important;
  box-shadow: 0 16px 36px rgba(19, 94, 224, 0.3) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-or {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 12px 0 !important;
  color: #6981ad !important;
  font-size: 11px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-or::before,
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-or::after {
  content: "" !important;
  height: 1px !important;
  background: rgba(91, 139, 207, 0.28) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-secondary-actions.crystal-create-only {
  display: block !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-secondary-actions.crystal-create-only button,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .modal-actions button {
  width: 100% !important;
  min-height: 42px !important;
  color: #1464e8 !important;
  background: rgba(255, 255, 255, 0.42) !important;
  border: 1px solid rgba(74, 139, 226, 0.42) !important;
  border-radius: 7px !important;
  box-shadow: none !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-foot {
  justify-content: center !important;
  margin-top: 14px !important;
  color: #5f75a0 !important;
  font-size: 10px !important;
  text-align: center !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-foot span:first-child {
  display: none !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-feature-bar {
  position: absolute !important;
  z-index: 2 !important;
  left: 50% !important;
  bottom: clamp(22px, 5vh, 54px) !important;
  transform: translateX(-50%) !important;
  width: min(900px, calc(100vw - 48px)) !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  color: #17366f !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-feature-bar div {
  min-height: 54px !important;
  display: grid !important;
  align-content: center !important;
  gap: 3px !important;
  padding-left: 64px !important;
  border-left: 1px solid rgba(63, 128, 220, 0.22) !important;
  position: relative !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-feature-bar div::before {
  content: "" !important;
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  width: 38px !important;
  height: 38px !important;
  transform: translateY(-50%) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.54) !important;
  border: 1px solid rgba(93, 151, 232, 0.36) !important;
  box-shadow: 0 12px 28px rgba(36, 102, 200, 0.14) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-feature-bar b {
  color: #0a2b6d !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-feature-bar span {
  color: #526d9e !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) {
  display: grid !important;
  place-items: center !important;
  padding: 24px !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-backdrop {
  display: none !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .form-grid {
  grid-template-columns: 1fr !important;
  gap: 11px !important;
}

@media (max-width: 760px) {
  body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-feature-bar {
    display: none !important;
  }
}

/* Final crystal-auth polish: keep the web login panel faithful to the reference mockup. */
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login),
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: #0b2b6f;
  background:
    radial-gradient(circle at 8% 88%, rgba(48, 126, 255, 0.24) 0 12%, transparent 29%),
    radial-gradient(circle at 91% 9%, rgba(25, 119, 255, 0.2) 0 10%, transparent 25%),
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.9) 0 9%, transparent 36%),
    linear-gradient(135deg, #f7fcff 0%, #dcefff 43%, #ffffff 100%);
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login)::before,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login)::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 760'%3E%3Cg fill='none' stroke='%236aa8ff' stroke-opacity='.23' stroke-width='1.1'%3E%3Cpath d='M-90 210 C 150 38 280 360 510 196 S 810 45 1045 228 1240 382 1530 160'/%3E%3Cpath d='M-120 280 C 120 118 300 420 540 258 S 830 92 1085 285 1245 430 1540 230'/%3E%3Cpath d='M-160 360 C 105 200 325 505 585 340 S 900 152 1120 360 1290 492 1580 320'/%3E%3Cpath d='M-80 475 C 180 320 360 600 610 452 S 930 250 1160 470 1330 585 1530 420'/%3E%3C/g%3E%3Cg fill='none' stroke='%230f6dff' stroke-opacity='.1' stroke-width='1'%3E%3Cpath d='M245 312c96-108 220-106 318 0-98 113-222 113-318 0Z'/%3E%3Cpath d='M900 396c118-132 268-130 386 0-118 137-268 137-386 0Z'/%3E%3Cpath d='M312 300c21-150 168-216 292-128-24 156-169 219-292 128Z'/%3E%3Cpath d='M950 390c26-180 199-257 346-151-29 185-201 258-346 151Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  opacity: 0.98;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login)::after,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 66%, rgba(70, 145, 255, 0.15) 66% 67%, transparent 67%),
    radial-gradient(circle at 2% 92%, rgba(255, 255, 255, 0.8) 0 6%, transparent 19%),
    radial-gradient(circle at 98% 8%, rgba(255, 255, 255, 0.75) 0 5%, transparent 18%);
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 44px));
  min-height: min(720px, calc(100svh - 46px));
  display: grid;
  place-items: center;
  padding: 28px;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-brand-panel {
  display: none;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-login-card.crystal-login-card,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-panel.auth-glass {
  position: relative;
  z-index: 1;
  width: min(376px, calc(100vw - 34px));
  max-height: calc(100svh - 42px);
  overflow: auto;
  padding: 30px 28px 24px;
  color: #0b2b6f;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(225, 242, 255, 0.66)),
    rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  box-shadow:
    0 30px 80px rgba(24, 92, 186, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-card-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  text-align: center;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-card-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-card-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-card-brand strong {
  display: block;
  color: #07296d;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 800;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-card-brand span {
  display: block;
  margin-top: 4px;
  color: #4a6698;
  font-size: 12px;
  font-weight: 700;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-divider {
  width: 118px;
  height: 10px;
  margin: 3px auto 2px;
  background:
    radial-gradient(circle, #126eff 0 2px, transparent 3px),
    linear-gradient(90deg, transparent 0, rgba(18, 110, 255, 0.22) 20%, rgba(18, 110, 255, 0.22) 80%, transparent 100%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 1px, 100% 1px;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-card-head h1,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-panel.auth-glass h1 {
  margin: 0;
  color: #082563;
  font-size: 22px;
  line-height: 1.12;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-card-head p,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-panel.auth-glass p,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .muted {
  margin: 0;
  color: #526d9e;
  font-size: 12px;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field {
  gap: 8px;
  margin-bottom: 10px;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field > div,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .field input,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .field select,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .field textarea {
  min-height: 46px;
  color: #0c2c66;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(108, 157, 229, 0.38);
  border-radius: 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field b {
  color: #2368d7;
  font-size: 18px;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field input {
  color: #0c2c66;
  background: transparent;
  font-size: 13px;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field input::placeholder {
  color: #5573a8;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-options {
  margin: 4px 0 10px;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .remember-me,
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-options label {
  color: #2f4b82;
  font-size: 11px;
  font-weight: 700;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-options button,
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .password-toggle {
  color: #1b6ff0;
  font-size: 11px;
  font-weight: 700;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-submit,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .primary {
  min-height: 44px;
  border-radius: 7px;
  color: #ffffff;
  background: linear-gradient(135deg, #268dff, #0a55e5);
  box-shadow: 0 16px 36px rgba(19, 94, 224, 0.3);
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  color: #6981ad;
  font-size: 11px;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-or::before,
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-or::after {
  content: "";
  height: 1px;
  background: rgba(91, 139, 207, 0.28);
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-secondary-actions.crystal-create-only {
  display: block;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-secondary-actions.crystal-create-only button,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .modal-actions button {
  width: 100%;
  min-height: 42px;
  color: #1464e8;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(74, 139, 226, 0.42);
  border-radius: 7px;
  box-shadow: none;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-foot {
  justify-content: center;
  margin-top: 14px;
  color: #5f75a0;
  font-size: 10px;
  text-align: center;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-foot span:first-child {
  display: none;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) {
  display: grid;
  place-items: center;
  padding: 24px;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-backdrop {
  display: none;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .form-grid {
  grid-template-columns: 1fr;
  gap: 11px;
}

/* Crystal wave authentication theme for the online web portal. */
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login),
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) {
  min-height: 100svh;
  overflow: hidden;
  color: #102b66;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.94) 0 8%, transparent 22%),
    radial-gradient(circle at 83% 22%, rgba(70, 150, 255, 0.22) 0 12%, transparent 31%),
    radial-gradient(circle at 48% 78%, rgba(255, 255, 255, 0.92) 0 9%, transparent 28%),
    linear-gradient(135deg, #f7fcff 0%, #dceeff 42%, #ffffff 100%);
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login)::before,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login)::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 760'%3E%3Cg fill='none' stroke='%236aa8ff' stroke-opacity='.22' stroke-width='1.15'%3E%3Cpath d='M-90 210 C 150 38 280 360 510 196 S 810 45 1045 228 1240 382 1530 160'/%3E%3Cpath d='M-120 280 C 120 118 300 420 540 258 S 830 92 1085 285 1245 430 1540 230'/%3E%3Cpath d='M-160 360 C 105 200 325 505 585 340 S 900 152 1120 360 1290 492 1580 320'/%3E%3Cpath d='M-80 475 C 180 320 360 600 610 452 S 930 250 1160 470 1330 585 1530 420'/%3E%3C/g%3E%3Cg fill='none' stroke='%230f6dff' stroke-opacity='.08' stroke-width='1'%3E%3Cpath d='M235 300c95-105 215-100 310 0-95 110-215 110-310 0Z'/%3E%3Cpath d='M880 390c118-128 265-126 380 0-116 136-264 132-380 0Z'/%3E%3Cpath d='M310 300c20-146 164-210 285-126-23 152-165 215-285 126Z'/%3E%3Cpath d='M940 390c25-176 196-252 340-148-28 181-198 253-340 148Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  opacity: 0.95;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login)::after,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 67%, rgba(82, 158, 255, 0.17) 67% 68%, transparent 68%),
    linear-gradient(45deg, transparent 0 73%, rgba(255, 255, 255, 0.74) 73% 74%, transparent 74%),
    radial-gradient(circle at 2% 92%, rgba(33, 118, 255, 0.18) 0 11%, transparent 27%),
    radial-gradient(circle at 98% 8%, rgba(26, 109, 255, 0.2) 0 10%, transparent 25%);
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-shell {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100vw - 44px));
  min-height: min(680px, calc(100svh - 46px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 380px);
  gap: clamp(28px, 5vw, 82px);
  align-items: center;
  padding: clamp(20px, 4vw, 56px);
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-brand-panel {
  min-height: 0;
  padding: 0;
  color: #10306f;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-brand-lockup {
  align-items: center;
  margin-bottom: clamp(22px, 5vh, 54px);
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-brand-lockup img {
  width: 74px;
  height: 74px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 46px rgba(38, 110, 220, 0.17);
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-brand-lockup h2 {
  color: #0d2b69;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.02;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-brand-lockup span,
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-brand-panel > span,
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-brand-panel p {
  color: #43649b;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-brand-panel h1 {
  max-width: 720px;
  color: #082563;
  font-size: clamp(46px, 6.7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-status-grid {
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  max-width: 680px;
  margin-top: clamp(28px, 7vh, 70px);
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-status-grid button,
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-status-grid a,
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-downloads a {
  color: #123873;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(114, 164, 231, 0.28);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(31, 99, 200, 0.1);
  backdrop-filter: blur(12px);
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-downloads {
  max-width: 560px;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-login-card,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-panel.auth-glass {
  position: relative;
  z-index: 1;
  width: min(380px, 100%);
  padding: 28px;
  color: #102b66;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(231, 244, 255, 0.64)),
    rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  box-shadow:
    0 26px 70px rgba(20, 85, 180, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(22px);
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-card-head {
  gap: 6px;
  margin-bottom: 18px;
  text-align: center;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-card-head span,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-panel.auth-glass > span {
  color: #2368d7;
  font-size: 11px;
  letter-spacing: 0;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-card-head h1,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-panel.auth-glass h1 {
  color: #082563;
  font-size: 30px;
  line-height: 1.08;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-card-head p,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-panel.auth-glass p,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .muted {
  color: #4a6391;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field > span,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .field > span {
  color: #18376f;
  font-size: 12px;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field > div,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .field input,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .field select,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .field textarea {
  min-height: 46px;
  color: #0c2c66;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(109, 157, 229, 0.36);
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field input {
  color: #0c2c66;
  background: transparent;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .password-toggle,
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-options button,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) button.secondary {
  color: #1d63d5;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .remember-me {
  color: #29446f;
  font-size: 12px;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-submit,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .primary {
  min-height: 44px;
  border-radius: 11px;
  color: #ffffff;
  background: linear-gradient(135deg, #1479ff, #0b53d9);
  box-shadow: 0 16px 34px rgba(20, 104, 230, 0.28);
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-secondary-actions {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-secondary-actions button,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .modal-actions button {
  min-height: 42px;
  color: #1459c8;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(81, 139, 222, 0.34);
  border-radius: 11px;
  box-shadow: none;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) {
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-backdrop {
  display: none;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-panel.auth-glass {
  max-height: calc(100svh - 48px);
  overflow: auto;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .form-grid {
  grid-template-columns: 1fr;
  gap: 11px;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .form-row,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .modal-actions.flat-actions {
  gap: 10px;
}

@media (max-width: 900px) {
  body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-shell {
    width: min(430px, calc(100vw - 28px));
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 22px 0;
  }

  body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-brand-panel {
    display: none;
  }

  body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-login-card {
    width: 100%;
  }
}

.premium-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  min-height: min(650px, calc(100svh - 44px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 430px;
  gap: 18px;
  align-items: stretch;
}

.premium-brand-panel,
.premium-login-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(42, 9, 11, 0.62);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
}

.premium-brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 3.4vw, 38px);
}

.premium-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.premium-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  padding: 7px;
}

.premium-brand strong,
.premium-brand span,
.premium-copy span,
.premium-copy h2,
.premium-copy p,
.premium-status-grid a,
.premium-downloads a {
  letter-spacing: 0;
}

.premium-brand strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.premium-brand span,
.premium-copy > span {
  color: #f2c9c9;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.premium-copy {
  max-width: 650px;
}

.premium-copy h2 {
  margin: 14px 0;
  max-width: 680px;
  color: #ffffff;
  font-size: clamp(38px, 4.3vw, 56px);
  line-height: 1;
}

.premium-copy p {
  max-width: 560px;
  margin: 0;
  color: #f5dddd;
  font-size: 17px;
  line-height: 1.55;
}

.premium-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.premium-status-grid a,
.premium-downloads a {
  color: #ffffff;
  text-decoration: none;
}

.premium-status-grid a {
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.premium-status-grid b {
  display: block;
  margin-bottom: 8px;
  color: #ffb7a8;
  font-size: 13px;
}

.premium-status-grid span {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.3;
}

.premium-downloads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.premium-downloads a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #761B1B, #b23a33);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16), 0 14px 34px rgba(0,0,0,0.18);
  font-weight: 900;
}

.premium-downloads a:hover,
.premium-status-grid a:hover,
.premium-secondary-actions button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
}

.premium-downloads svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.premium-login-card {
  align-self: center;
  min-height: auto;
  padding: 28px;
}

.premium-card-head {
  margin-bottom: 24px;
}

.premium-card-head span {
  color: #ffb7a8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.premium-card-head h1 {
  margin: 8px 0;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
}

.premium-card-head p {
  margin: 0;
  color: #e9caca;
  font-size: 14px;
}

.premium-login-card .login-field {
  gap: 8px;
  margin-bottom: 15px;
}

.premium-login-card .login-field > span {
  color: #ffffff;
  font-size: 13px;
}

.premium-login-card .login-field > div {
  min-height: 50px;
  border-radius: 12px;
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.18);
}

.premium-login-card .login-field input {
  color: #ffffff;
  background: transparent !important;
  font-size: 15px;
}

.premium-login-card .login-field input::placeholder {
  color: #e9caca;
}

.premium-login-card .login-field .password-toggle {
  min-width: 42px;
  border: 0;
  color: #ffb7a8;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.premium-login-card .login-options {
  margin: 4px 0 10px;
  font-size: 13px;
}

.premium-login-card .error {
  min-height: 18px;
  margin: 0 0 8px;
  color: #ffd0c9;
  font-size: 13px;
}

.premium-login-card .login-submit {
  min-height: 52px;
  margin-top: 0;
  border-radius: 12px;
}

.premium-secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.premium-secondary-actions button {
  min-height: 44px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: #ffffff;
  background: rgba(255,255,255,0.07);
  cursor: pointer;
  font-weight: 900;
}

.premium-login-card .login-foot {
  margin-top: 18px;
}

.premium-login-card .login-foot a {
  color: #ffb7a8;
}

@media (max-width: 980px) {
  .premium-login {
    overflow: auto;
  }

  .premium-shell {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .premium-copy h2 {
    font-size: 38px;
  }
}

@media (max-width: 620px) {
  .premium-login {
    padding: 14px;
  }

  .premium-brand-panel,
  .premium-login-card {
    border-radius: 16px;
    padding: 20px;
  }

  .premium-copy h2 {
    font-size: 31px;
  }

  .premium-copy p {
    font-size: 15px;
  }

  .premium-status-grid,
  .premium-downloads,
  .premium-secondary-actions {
    grid-template-columns: 1fr;
  }
}

.sidebar {
  position: relative;
  height: 100vh;
  border-right: 1px solid rgba(173, 213, 255, 0.22);
  background:
    radial-gradient(circle at 18% 2%, rgba(79, 166, 255, 0.24), transparent 30%),
    radial-gradient(circle at 100% 22%, rgba(95, 88, 255, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(21, 51, 101, 0.96), rgba(6, 18, 43, 0.98));
  color: white;
  padding: 18px 14px;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(152, 207, 255, 0.58) transparent;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08), 18px 0 46px rgba(6, 17, 40, 0.16);
}

.sidebar::-webkit-scrollbar {
  width: 7px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(152, 207, 255, 0.52);
}

.offline-shell .sidebar {
  border-right-color: rgba(181, 213, 186, 0.32);
  background:
    radial-gradient(circle at 18% 2%, rgba(57, 181, 122, 0.26), transparent 32%),
    radial-gradient(circle at 100% 22%, rgba(222, 178, 76, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(27, 76, 58, 0.98), rgba(9, 31, 24, 0.99));
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 44px);
  pointer-events: none;
}

.brand {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 14px 12px 18px;
  margin-bottom: 10px;
  border: 1px solid rgba(190, 223, 255, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 190, 255, 0.17), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 16px 30px rgba(0, 8, 26, 0.16);
  backdrop-filter: blur(14px);
}

.offline-side-status {
  position: relative;
  display: grid;
  gap: 3px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(203, 226, 209, 0.24);
  border-radius: 12px;
  color: #eafff4;
  background: rgba(8, 34, 25, 0.44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.offline-side-status b {
  font-size: 12px;
  letter-spacing: 0;
}

.offline-side-status span {
  color: #bfe4cf;
  font-size: 11px;
}

.brand-custom {
  display: grid;
  gap: 6px;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.brand-custom.inline {
  grid-template-columns: var(--brand-logo) 1fr;
  justify-items: start;
  text-align: left;
}

.brand-custom.compact {
  grid-template-columns: var(--brand-logo) 1fr;
  gap: 8px;
  justify-items: start;
  text-align: left;
}

.brand-custom.align-left,
.brand-preview.align-left {
  justify-items: start;
  text-align: left;
}

.brand-custom.align-center,
.brand-preview.align-center {
  justify-items: center;
  text-align: center;
}

.brand-custom.align-right,
.brand-preview.align-right {
  justify-items: end;
  text-align: right;
}

.brand-custom.inline.align-right,
.brand-custom.compact.align-right,
.brand-preview.inline.align-right,
.brand-preview.compact.align-right {
  grid-template-columns: 1fr var(--brand-logo);
}

.brand-custom.inline.align-right img,
.brand-custom.inline.align-right .brand-fallback,
.brand-custom.compact.align-right img,
.brand-custom.compact.align-right .brand-fallback,
.brand-preview.inline.align-right img,
.brand-preview.inline.align-right .brand-fallback,
.brand-preview.compact.align-right img,
.brand-preview.compact.align-right .brand-fallback {
  order: 2;
}

.brand-custom img,
.brand-fallback {
  width: var(--brand-logo);
  height: var(--brand-logo);
  object-fit: contain;
  border: 1px solid rgba(194, 224, 255, 0.22);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(74, 165, 255, 0.28), rgba(255, 255, 255, 0.1));
  box-shadow: 0 0 24px rgba(49, 160, 255, 0.18);
}

.brand-fallback {
  display: grid;
  place-items: center;
  font-weight: 800;
}

.brand strong {
  font-size: var(--brand-name, 24px);
  color: var(--brand-color, #ffffff);
  font-family: var(--brand-font, Arial), Arial, Helvetica, sans-serif;
  font-weight: var(--brand-weight, 800);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.brand span,
.nav-label {
  color: #b8c5d8;
  font-size: 12px;
}

.sidebar nav {
  position: relative;
  display: grid;
  gap: 9px;
}

.sidebar button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  color: white;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  line-height: 1.25;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.sidebar > nav > button {
  margin-bottom: 6px;
}

.sidebar button:hover,
.sidebar button.active,
.menu-section.active .menu-parent {
  border-color: rgba(183, 219, 255, 0.24);
  background: linear-gradient(135deg, rgba(75, 160, 255, 0.28), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 26px rgba(3, 12, 31, 0.18);
}

.menu-section {
  border: 1px solid rgba(180, 217, 255, 0.12);
  border-radius: 14px;
  padding: 6px;
  margin-top: 3px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(94, 159, 255, 0.045));
  backdrop-filter: blur(10px);
}

.menu-parent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.menu-parent b {
  font-size: 16px;
  line-height: 1;
  text-align: center;
}

.menu-label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.menu-icon {
  display: block;
  width: 18px;
  line-height: 1.3;
  text-align: center;
}

.menu-text {
  min-width: 0;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.menu-children {
  display: none;
  gap: 4px;
  margin-left: 16px;
  padding: 6px 0 5px 8px;
  border-left: 1px solid rgba(164, 211, 255, 0.22);
}

.menu-children button {
  position: relative;
  color: #dbeaff;
  font-size: 13px;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.menu-children button:hover {
  transform: translateX(2px);
}

.menu-children button.active::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -9px;
  width: 2px;
  border-radius: 999px;
  background: #8dceff;
  box-shadow: 0 0 10px rgba(141, 206, 255, 0.92);
}

.workspace {
  min-width: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 14px 24px;
  color: white;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 44%),
    linear-gradient(135deg, var(--blue-dark), var(--blue));
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 34px rgba(22, 35, 60, 0.16);
}

.offline-shell .topbar {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 44%),
    linear-gradient(135deg, #173c33, #1f6f55);
}

.topbar h1 {
  margin: 0 0 3px;
  font-size: 22px;
}

.topbar span {
  color: #cbd6e6;
  font-size: 13px;
}

.topbar button {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fy-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #cbd6e6;
  font-size: 12px;
}

.fy-switch select {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  color: #102447;
  background: rgba(255, 255, 255, 0.94);
  padding: 8px 10px;
  min-width: 92px;
}

.bell-button {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0 !important;
}

.bell-button span {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: #ef233c;
  font-size: 11px;
}

.fy-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid rgba(0, 90, 220, 0.14);
  background: #eef6ff;
  color: #12386b;
  font-size: 13px;
}

.fy-banner.backdate {
  border-color: rgba(185, 105, 0, 0.22);
  background: #fff7e8;
  color: #6b3d00;
}

.fy-banner.offline-mode {
  border-color: rgba(31, 111, 85, 0.28);
  background: #eef9f1;
  color: #174936;
}

.fy-banner span {
  color: inherit;
  opacity: 0.9;
}

.ca-report-title {
  text-align: center;
}

.ca-report-title h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.app-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 8px;
  color: white;
  background: #0b4ea2;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  font-weight: 700;
}

.content {
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 22px;
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at 12% 0%, rgba(23, 74, 139, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 246, 250, 0.96));
}

.offline-shell .content {
  background:
    radial-gradient(circle at 12% 0%, rgba(31, 111, 85, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(252, 255, 249, 0.96), rgba(238, 245, 239, 0.98));
}

#screen {
  max-width: 1680px;
  margin: 0 auto;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.kpi-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.kpi-grid strong {
  display: block;
  font-size: 30px;
}

.kpi-grid span {
  color: var(--muted);
}

.work-panel {
  padding: 16px;
  margin-bottom: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.quick-grid button {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  text-align: left;
  padding: 12px;
  cursor: pointer;
}

.quick-grid span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-v2 {
  display: grid;
  gap: 18px;
}

.dash-hero,
.dash-card,
.dash-summary-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);
}

.dash-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
}

.dash-hero h2 {
  margin: 0;
  font-size: 26px;
}

.dash-hero p {
  margin: 4px 0 0;
  color: var(--muted);
}

.offline-dashboard {
  gap: 18px;
}

.offline-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid rgba(31, 111, 85, 0.18);
  border-radius: 10px;
  color: #f5fff9;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 45%),
    linear-gradient(135deg, #173c33, #1f6f55);
  box-shadow: 0 18px 42px rgba(18, 66, 48, 0.18);
}

.offline-hero span {
  display: inline-block;
  margin-bottom: 8px;
  color: #bee8cf;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

.offline-hero h2 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.08;
}

.offline-hero p {
  margin: 0;
  max-width: 760px;
  color: #dff5e8;
  line-height: 1.55;
}

.offline-health {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(226, 247, 233, 0.22);
  border-radius: 8px;
  background: rgba(5, 29, 22, 0.34);
}

.offline-health strong {
  font-size: 20px;
}

.offline-health small {
  color: #c8ead4;
  line-height: 1.45;
}

.offline-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.offline-workflow article {
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 16px;
  border: 1px solid rgba(31, 111, 85, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(27, 72, 54, 0.08);
}

.offline-workflow b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: #1f6f55;
}

.offline-workflow span {
  color: var(--muted);
  line-height: 1.45;
}

.dash-tools {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dash-tools input {
  width: min(360px, 48vw);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}

.icon-refresh {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--blue);
  cursor: pointer;
  font-size: 20px;
}

.dash-kpis,
.dash-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dash-kpi {
  min-height: 118px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 0;
  border-radius: 8px;
  color: white;
  padding: 18px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.12);
}

.dash-kpi.blue { background: linear-gradient(135deg, #0b84f3, #0758d8); }
.dash-kpi.green { background: linear-gradient(135deg, #24b866, #087c3d); }
.dash-kpi.purple { background: linear-gradient(135deg, #7067ff, #4536cc); }
.dash-kpi.orange { background: linear-gradient(135deg, #ff8726, #ff4b1f); }

.kpi-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 28px;
}

.dash-kpi b {
  display: block;
  margin: 4px 0;
  font-size: 28px;
}

.dash-kpi strong,
.dash-kpi small {
  display: block;
}

.dash-kpi small {
  color: rgba(255, 255, 255, 0.82);
}

.dash-main-grid,
.dash-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr);
  gap: 16px;
}

.dash-card {
  padding: 16px;
}

.dash-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.dash-card-head h3 {
  margin: 0;
}

.dash-card-head button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--blue);
  padding: 8px 10px;
  cursor: pointer;
}

.analytics-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: center;
}

.donut-wrap {
  display: flex;
  gap: 18px;
  align-items: center;
}

.donut {
  width: 156px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at center, white 0 44%, transparent 45%), conic-gradient(#18a957 0 var(--done), #1479f2 var(--done) 72%, #ff7a18 72% 100%);
}

.donut strong,
.donut span {
  grid-area: 1 / 1;
}

.donut strong {
  font-size: 30px;
}

.donut span {
  margin-top: 48px;
  color: var(--muted);
  font-size: 12px;
}

.legend {
  display: grid;
  gap: 12px;
  min-width: 150px;
}

.legend span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 6px;
}

.green-dot { background: #18a957; }
.blue-dot { background: #1479f2; }
.orange-dot { background: #ff7a18; }

.trend-box h4 {
  margin: 0 0 12px;
}

.trend-row {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.trend-row span {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.trend-row i {
  height: 9px;
  display: block;
  border-radius: 999px;
}

.trend-row i.blue { background: #1479f2; }
.trend-row i.orange { background: #ff7a18; }
.trend-row i.green { background: #18a957; }
.trend-row i.purple { background: #6658ee; }

.activity-list {
  display: grid;
  gap: 10px;
}

.activity-list button {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 0 10px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  text-align: left;
  padding: 8px 0 12px;
  cursor: pointer;
}

.activity-icon {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef5ff;
  color: #1479f2;
}

.activity-list small {
  color: var(--muted);
}

.dash-table table {
  min-width: 0;
}

.dash-table tr[data-dash-nav] {
  cursor: pointer;
}

.quick-title {
  margin: -16px -16px 14px;
  border-radius: 8px 8px 0 0;
  background: #0670ea;
  color: white;
  padding: 12px 16px;
  font-weight: 700;
}

.dash-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dash-actions button {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
  cursor: pointer;
}

.dash-actions span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 28px;
}

.dash-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dash-summary-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  padding: 16px;
  text-align: left;
  cursor: pointer;
}

.dash-summary-card span {
  color: var(--blue);
  font-weight: 700;
}

.dash-summary-card strong {
  color: var(--ink);
  font-size: 28px;
}

.dash-summary-card small {
  color: var(--muted);
}

.entry-layout {
  display: grid;
  grid-template-columns: minmax(280px, 430px) 1fr;
  gap: 16px;
  align-items: start;
}

.form-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span,
.field label {
  font-weight: 700;
  font-size: 13px;
}

.field input,
.field select,
.field textarea {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  background: white;
}

.field textarea {
  resize: vertical;
  line-height: 1.45;
}

.compact-field {
  min-width: 180px;
  margin: 0;
}

.primary {
  border: 0;
  border-radius: 6px;
  padding: 11px 14px;
  color: white;
  background: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

.excel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  padding: 11px 14px;
  color: white;
  background: #14823c;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(20, 130, 60, 0.18);
}

.excel-button span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #14823c;
  background: white;
  font-size: 14px;
  line-height: 1;
}

.excel-button:hover {
  background: #0f6f32;
}

.modal-actions .excel-button,
.flat-actions .excel-button {
  border: 0;
  color: white;
  background: #14823c;
}

.modal-actions button.excel-button:not(.primary),
.flat-actions button.excel-button:not(.primary) {
  border: 0;
  color: white;
  background: #14823c;
}

.modal-actions .excel-button:hover,
.flat-actions .excel-button:hover {
  background: #0f6f32;
}

.modal-actions button.excel-button:not(.primary):hover,
.flat-actions button.excel-button:not(.primary):hover {
  background: #0f6f32;
}

.secondary {
  border: 1px solid var(--blue);
  border-radius: 6px;
  padding: 11px 14px;
  color: var(--blue);
  background: white;
  font-weight: 700;
  cursor: pointer;
}

.link-button {
  border: 0;
  color: var(--blue);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.compact-action {
  align-self: center;
  min-height: 38px;
  padding: 0 8px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.danger-link {
  color: var(--danger);
  margin-left: 10px;
}

.error {
  color: var(--danger);
  min-height: 20px;
  font-size: 13px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  font-size: 14px;
}

th {
  background: #edf2f8;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.muted {
  color: var(--muted);
  margin-top: 0;
}

.notice-box {
  border: 1px solid rgba(118, 27, 27, 0.18);
  background: rgba(118, 27, 27, 0.08);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 14px 0;
}

.notice-box strong {
  display: block;
  color: var(--primary);
  margin-bottom: 6px;
}

.notice-box code {
  display: block;
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  background: #fff;
  color: #2b1212;
  border: 1px solid rgba(118, 27, 27, 0.22);
  border-radius: 6px;
  padding: 8px 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.notice-box p {
  margin: 6px 0 0;
}

.module-table {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.module-table button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  text-align: left;
  padding: 12px;
  cursor: pointer;
}

.module-table button:hover {
  border-color: var(--blue);
}

.module-table span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.financial-report {
  display: grid;
  gap: 14px;
}

.report-print-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: white;
}

.report-print-block h3 {
  margin: 0 0 10px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(13, 24, 43, 0.55);
}

.employee-modal {
  width: min(1180px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--band);
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.wide-modal {
  width: min(1500px, 100%);
}

.preview-modal {
  width: min(980px, 100%);
  max-height: calc(100vh - 40px);
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.register-preview-body {
  height: min(72vh, 760px);
  padding: 14px;
  background: #f5f7fb;
}

.register-preview-body iframe,
.register-preview-body img {
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.register-preview-body img {
  object-fit: contain;
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  color: white;
  background: var(--blue-dark);
}

.modal-head h2 {
  margin: 0 0 3px;
}

.modal-head span {
  color: #cbd6e6;
}

.modal-head button {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  color: white;
  background: transparent;
  padding: 8px 12px;
  cursor: pointer;
}

.employee-sections {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.form-section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.form-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.employee-modal .form-grid,
.document-form {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.passport-photo-panel {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(34, 112, 231, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(227, 239, 255, 0.8), rgba(255, 255, 255, 0.96));
}

.passport-frame {
  position: relative;
  width: 148px;
  aspect-ratio: 35 / 45;
  overflow: hidden;
  border: 2px solid #1d4ed8;
  border-radius: 6px;
  background: #f8fbff;
  box-shadow: 0 12px 24px rgba(15, 42, 84, 0.12);
}

.passport-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transform: scale(1.72);
  transform-origin: center 18%;
  display: block;
}

.passport-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 12px;
  color: #60708a;
  text-align: center;
  font-size: 12px;
  line-height: 1.35;
}

.passport-guide {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.passport-photo-actions {
  display: grid;
  gap: 8px;
}

.passport-photo-actions strong {
  color: var(--ink);
  font-size: 15px;
}

.passport-photo-actions input[type="file"] {
  max-width: 340px;
}

.passport-photo-actions small {
  max-width: 540px;
  color: var(--muted);
  line-height: 1.45;
}

.phone-combo {
  display: grid;
  grid-template-columns: 25% 75%;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.phone-combo .phone-code,
.phone-combo .phone-local {
  min-width: 0;
  height: 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.phone-combo .phone-code {
  padding: 0 3px;
  border-right: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  text-align: center;
  text-align-last: center;
}

.phone-combo .phone-code::-ms-expand {
  display: none;
}

.phone-combo .phone-local {
  padding: 0 10px;
}

@media (max-width: 640px) {
  .passport-photo-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .passport-photo-actions input[type="file"] {
    max-width: 100%;
  }
}

.brand-preview {
  display: grid;
  gap: 8px;
  align-items: center;
  justify-items: center;
  margin: 12px 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--band);
}

.brand-preview.inline,
.brand-preview.compact {
  grid-template-columns: var(--brand-logo) 1fr;
}

.brand-preview img,
.brand-preview .brand-fallback {
  width: var(--brand-logo);
  height: var(--brand-logo);
  object-fit: contain;
}

.brand-preview strong {
  font-size: var(--brand-name);
  color: var(--brand-color, var(--ink));
  font-family: var(--brand-font, Arial), Arial, Helvetica, sans-serif;
  font-weight: var(--brand-weight, 800);
  overflow-wrap: anywhere;
}

.brand-preview small {
  color: var(--muted);
}

.checkbox-field > label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
}

.modal-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px;
  background: rgba(243, 246, 250, 0.95);
  border-top: 1px solid var(--line);
}

.flat-actions {
  position: static;
  padding: 12px 0 0;
  background: transparent;
  border-top: 0;
}

.compact-table table {
  min-width: 1320px;
}

.wo-items-table th,
.wo-items-table td {
  padding: 6px;
  vertical-align: top;
}

.wo-items-table input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px;
}

.challan-items-table th,
.challan-items-table td {
  padding: 6px;
  vertical-align: top;
}

.challan-items-table input,
.challan-items-table select {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px;
}

.wo-items-table .service-cell {
  min-width: 260px;
}

.print-only {
  display: none;
}

.generated-preview-panel {
  position: fixed;
  top: 84px;
  right: 18px;
  z-index: 1600;
  width: min(372px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid rgba(28, 55, 91, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 60px rgba(10, 28, 55, 0.22);
  backdrop-filter: blur(18px);
}

.generated-preview-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: #13233f;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(222, 231, 244, 0.72));
  border-bottom: 1px solid rgba(28, 55, 91, 0.13);
}

.generated-preview-panel header strong,
.generated-preview-panel header span {
  display: block;
}

.generated-preview-panel header span {
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
}

.generated-preview-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.generated-preview-actions button {
  border: 1px solid rgba(22, 52, 94, 0.22);
  border-radius: 6px;
  padding: 7px 9px;
  color: #12305f;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.generated-preview-actions button:first-child {
  color: #fff;
  background: linear-gradient(135deg, #12366f, #1f5a9b);
  box-shadow: 0 8px 18px rgba(18, 54, 111, 0.22);
}

.generated-preview-canvas {
  height: 430px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(196, 151, 67, 0.16), transparent 32%),
    linear-gradient(135deg, #eef4fb, #ffffff 54%, #edf4fb);
}

.generated-preview-page {
  width: 210mm;
  min-height: 297mm;
  color: #111827;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
  transform: scale(0.22);
  transform-origin: center;
  pointer-events: none;
}

.generated-preview-page > article {
  min-height: 297mm;
  box-sizing: border-box;
}

.po-print {
  color: #000;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  padding: 16px;
}

.po-print header {
  text-align: center;
  border-bottom: 2px solid #000;
  margin-bottom: 12px;
  padding-bottom: 8px;
}

.po-print h1,
.po-print h2,
.po-print p {
  margin: 4px 0;
}

.po-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}

.po-meta > div {
  border: 1px solid #555;
  padding: 8px;
  min-height: 84px;
}

.po-print table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.po-print th,
.po-print td {
  border: 1px solid #555;
  color: #000;
  background: #fff;
  padding: 6px;
  font-size: 11px;
}

.po-print footer {
  margin-top: 22px;
  text-align: right;
}

.challan-print,
.whomsoever-print {
  width: 100%;
  min-height: 185mm;
  color: #000;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  padding: 10px;
  page-break-after: always;
}

.challan-print h1,
.whomsoever-print h1 {
  margin: 12px 0;
  text-align: center;
  font-size: 20px;
  text-decoration: underline;
}

.challan-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
}

.challan-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 8px 0;
  border: 1px solid #000;
}

.challan-meta span {
  min-height: 30px;
  border-right: 1px solid #000;
  padding: 6px;
  font-size: 12px;
}

.challan-meta span:last-child {
  border-right: 0;
}

.challan-address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #000;
  margin: 10px 0;
}

.challan-address-grid > div {
  min-height: 86px;
  border-right: 1px solid #000;
  padding: 8px;
}

.challan-address-grid > div:last-child {
  border-right: 0;
}

.challan-address-grid p {
  margin: 4px 0;
  white-space: pre-line;
}

.challan-print-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.challan-print-table th,
.challan-print-table td {
  border: 1px solid #000;
  color: #000;
  background: #fff;
  padding: 6px;
  font-size: 11px;
  line-height: 1.2;
  vertical-align: top;
}

.challan-print-table th:nth-child(1),
.challan-print-table td:nth-child(1) {
  width: 42px;
  text-align: center;
}

.challan-print-table th:nth-child(6),
.challan-print-table td:nth-child(6) {
  width: 50px;
  text-align: center;
}

.whomsoever-matter {
  min-height: 95px;
  margin: 14px 0;
  border: 1px solid #000;
  padding: 10px;
  font-size: 13px;
  line-height: 1.55;
}

.challan-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 34px;
  font-size: 12px;
}

.challan-foot > div {
  min-height: 54px;
  border-top: 1px solid #000;
  padding-top: 8px;
  text-align: center;
}

.tax-invoice-print {
  color: #000;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  padding: 10px;
  font-size: 10px;
}

.tax-invoice-print p,
.tax-invoice-print h3 {
  margin: 2px 0;
}

.invoice-title {
  border: 1px solid #000;
  border-bottom: 0;
  padding: 4px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

.invoice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-left: 1px solid #000;
  border-top: 1px solid #000;
}

.invoice-grid > div {
  min-height: 92px;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  padding: 6px;
}

.top-grid > div {
  min-height: 110px;
}

.tax-invoice-print table {
  width: 100%;
  border-collapse: collapse;
}

.tax-invoice-print th,
.tax-invoice-print td {
  border: 1px solid #000;
  color: #000;
  background: #fff;
  padding: 5px;
  font-size: 10px;
  vertical-align: top;
}

.invoice-total-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
}

.invoice-total-grid > div {
  border-left: 1px solid #000;
  border-bottom: 1px solid #000;
  padding: 6px;
  white-space: pre-line;
}

.bank-sign {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-left: 1px solid #000;
  border-bottom: 1px solid #000;
}

.bank-sign > div {
  min-height: 76px;
  border-right: 1px solid #000;
  padding: 6px;
}

.bank-sign > div:last-child {
  text-align: right;
}

.invoice-template-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(31, 74, 128, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(240, 246, 255, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.invoice-template-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
}

.invoice-template-head h3 {
  margin: 0;
  color: #14264a;
  font-size: 18px;
}

.invoice-template-head p,
.template-locked {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 12px;
}

.invoice-template-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.invoice-template-actions button {
  border: 1px solid rgba(25, 61, 110, 0.18);
  border-radius: 6px;
  padding: 9px 12px;
  color: #173563;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  cursor: pointer;
}

.invoice-template-actions button:first-child {
  color: #fff;
  background: linear-gradient(135deg, #153b77, #b8862f);
}

.invoice-template-editor {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.tax-invoice-print {
  --invoice-accent: #000;
  --invoice-header-bg: #fff;
  --invoice-border: #000;
  --invoice-font: 10px;
  --invoice-pad: 5px;
}

.tax-invoice-print {
  font-size: var(--invoice-font);
  border-color: var(--invoice-border);
}

.tax-invoice-print .invoice-title {
  color: var(--invoice-accent);
  border-color: var(--invoice-border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), var(--invoice-header-bg));
}

.tax-invoice-print .invoice-grid,
.tax-invoice-print .invoice-grid > div,
.tax-invoice-print .invoice-total-grid > div,
.tax-invoice-print .bank-sign,
.tax-invoice-print .bank-sign > div {
  border-color: var(--invoice-border);
}

.tax-invoice-print th,
.tax-invoice-print td {
  border-color: var(--invoice-border);
  padding: var(--invoice-pad);
  font-size: var(--invoice-font);
}

.tax-invoice-print th {
  color: var(--invoice-accent);
  background: var(--invoice-header-bg);
}

.tax-invoice-print.tpl-navy-gold .invoice-title,
.tax-invoice-print.tpl-premium-gold .invoice-title,
.tax-invoice-print.tpl-burgundy-edge .invoice-title {
  color: #fff;
  background: linear-gradient(135deg, var(--invoice-accent), var(--invoice-header-bg));
}

.tax-invoice-print.tpl-minimal-white {
  letter-spacing: 0;
}

.tax-invoice-print.tpl-service-pro table tbody tr:nth-child(even),
.tax-invoice-print.tpl-gst-ledger table tbody tr:nth-child(even),
.tax-invoice-print.tpl-corporate-blue table tbody tr:nth-child(even) {
  background: rgba(15, 59, 115, 0.035);
}

.field-entry-table input {
  width: 100%;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px;
}

.timesheet-print,
.logbook-print {
  color: #000;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  padding: 10px;
  font-size: 10px;
}

.timesheet-print h1,
.logbook-print h1 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 18px;
  text-decoration: underline;
}

.field-doc-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 18px;
  margin-bottom: 8px;
}

.field-doc-head p,
.service-line {
  margin: 2px 0;
}

.timesheet-print table,
.logbook-print table {
  width: 100%;
  border-collapse: collapse;
}

.timesheet-print th,
.timesheet-print td,
.logbook-print th,
.logbook-print td {
  border: 1px solid #000;
  color: #000;
  background: #fff;
  padding: 4px;
  font-size: 9px;
  text-align: center;
  vertical-align: middle;
}

.timesheet-print td:nth-child(2),
.logbook-print td:nth-child(2) {
  white-space: nowrap;
}

.field-doc-foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 0;
  margin-top: 8px;
  border-left: 1px solid #000;
  border-top: 1px solid #000;
}

.field-doc-foot > div {
  min-height: 70px;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  padding: 6px;
}

.logbook-print footer {
  margin-top: 10px;
  text-align: center;
  font-weight: 800;
}

.attendance-wrap {
  border-radius: 8px;
  max-height: calc(100vh - 260px);
  overflow: auto;
}

.attendance-wrap table {
  table-layout: fixed;
  min-width: 1480px;
}

.attendance-table th,
.attendance-table td {
  padding: 6px;
  text-align: center;
  vertical-align: middle;
}

.attendance-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #e8eef7;
  color: #172033;
}

.attendance-table th:nth-child(1),
.attendance-table td:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 84px;
  background: #ffffff;
  text-align: left;
}

.attendance-table th:nth-child(2),
.attendance-table td:nth-child(2) {
  position: sticky;
  left: 84px;
  z-index: 3;
  width: 52px;
  background: #ffffff;
  text-align: center;
}

.attendance-table th:nth-child(3),
.attendance-table td:nth-child(3) {
  position: sticky;
  left: 136px;
  z-index: 3;
  background: #ffffff;
  width: 58px;
  text-align: center;
}

.attendance-table th:nth-child(1),
.attendance-table th:nth-child(2),
.attendance-table th:nth-child(3) {
  z-index: 4;
  background: #dfe9f6;
}

.attendance-table th:nth-child(4),
.attendance-table td:nth-child(4) {
  position: sticky;
  left: 194px;
  z-index: 3;
  background: #ffffff;
  width: 160px;
  text-align: left;
}

.attendance-table th:nth-child(4) {
  z-index: 4;
  background: #dfe9f6;
}

.attendance-table th:nth-child(5),
.attendance-table td:nth-child(5) {
  width: 140px;
  text-align: left;
}

.attendance-table th:nth-child(6),
.attendance-table td:nth-child(6) {
  width: 78px;
}

.attendance-table th:nth-child(n+7):nth-child(-n+37),
.attendance-table td:nth-child(n+7):nth-child(-n+37) {
  width: 42px;
  min-width: 42px;
  max-width: 42px;
}

.attendance-table th span,
.attendance-table th small {
  display: block;
  line-height: 1.1;
}

.attendance-table th small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.attendance-table input,
.attendance-table select {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px;
  text-align: center;
  font-weight: 800;
  color: var(--ink);
  background: #ffffff;
}

.attendance-mark {
  appearance: none;
  cursor: pointer;
}

.attendance-mark:disabled {
  opacity: 0.86;
  cursor: not-allowed;
}

.attendance-lock-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
}

.attendance-lock-cell span {
  font-size: 13px;
  line-height: 1;
}

.attendance-lock-cell input {
  width: 16px;
  min-height: 16px;
  accent-color: #0f6e45;
}

.attendance-mark.mark-p {
  border-color: #178a58;
  color: #0f6e45;
  background: #e9f8f0;
}

.attendance-mark.mark-a {
  border-color: #b4232d;
  color: #9a1d26;
  background: #fdebec;
}

.attendance-mark.mark-l {
  border-color: #b7791f;
  color: #8a560f;
  background: #fff4dd;
}

.attendance-table .sunday-col {
  background: #fff1f1;
}

.attendance-table th.sunday-col {
  color: #9a1d26;
  background: #ffdede;
}

.total-p,
.total-a,
.total-l {
  width: 70px;
  font-weight: 800;
}

.total-p {
  color: #0f6e45;
}

.total-a {
  color: #9a1d26;
}

.total-l {
  color: #8a560f;
}

.attendance-filters {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.attendance-bulk-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
}

.attendance-bulk-key {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.attendance-bulk-key.mark-p {
  border-color: #178a58;
  color: #0f6e45;
  background: #e9f8f0;
}

.attendance-bulk-key.mark-a {
  border-color: #b4232d;
  color: #9a1d26;
  background: #fdebec;
}

.attendance-bulk-key.mark-l {
  border-color: #b7791f;
  color: #8a560f;
  background: #fff4dd;
}

.payroll-workflow-table select,
.payroll-workflow-table input {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 8px;
}

.payroll-line-select {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.payroll-workflow-table button:disabled,
.payroll-workflow-table select:disabled,
.payroll-workflow-table input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.payroll-selection-help {
  align-items: center;
}

.payroll-selection-help span {
  color: var(--muted);
  font-size: 13px;
}

.payroll-due-button {
  border: 1px solid #d97706;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  margin-right: 6px;
  padding: 5px 9px;
}

.payroll-due-button:hover {
  background: #ffedd5;
}

.payroll-due-clear {
  color: #64748b;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  margin-right: 6px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #7a4c00;
  background: #fff4dd;
  font-size: 12px;
  font-weight: 800;
}

.status-pill.paid {
  color: #0f6e45;
  background: #e9f8f0;
}

.status-pill.hold {
  color: #9a1d26;
  background: #fdebec;
}

.status-pill.finalized {
  color: #1f3f78;
  background: #e9f0ff;
}

.lock-icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
}

.lock-icon-button:disabled {
  color: #0f6e45;
  background: #e9f8f0;
  cursor: not-allowed;
}

.payroll-history-panel {
  margin-top: 16px;
}

.lock-status {
  align-self: center;
  margin-right: auto;
  color: #0f6e45;
  font-weight: 800;
}

.lock-register-button {
  margin-right: auto;
}

#uploadAttendanceRegister:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#printArea {
  display: none;
}

#payslipPrintArea {
  display: none;
}

.print-select {
  width: 18px;
  height: 18px;
}

@media (max-width: 900px) {
  .generated-preview-panel {
    top: 72px;
    right: 10px;
    width: min(330px, calc(100vw - 20px));
  }

  .generated-preview-canvas {
    height: 360px;
  }

  .generated-preview-page {
    transform: scale(0.18);
  }

  .invoice-template-head,
  .invoice-template-editor {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media print {
  .generated-preview-panel {
    display: none !important;
  }

  .no-print,
  .erp-shell > .sidebar,
  .topbar {
    display: none !important;
  }

  .erp-shell,
  .workspace,
  .content {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .print-only {
    display: block !important;
  }

  body {
    background: white;
  }

  .sidebar,
  .topbar,
  .content > .work-panel > :not(#printArea):not(#payslipPrintArea),
  .modal-actions,
  .panel-head,
  .attendance-wrap,
  #attendanceError {
    display: none !important;
  }

  .erp-shell,
  .workspace,
  .content,
  .work-panel,
  #printArea,
  #payslipPrintArea {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: white !important;
  }

  @page {
    size: A4 landscape;
    margin: 8mm;
  }

  .print-sheet {
    display: block;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
  }

  .print-heading {
    text-align: center;
    margin-bottom: 8px;
  }

  .print-heading h1 {
    margin: 0;
    font-size: 18px;
  }

  .print-heading h2,
  .print-heading h3,
  .print-heading p {
    margin: 2px 0;
    font-size: 11px;
  }

  .print-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
  }

  .print-table th,
  .print-table td {
    border: 1px solid #555;
    padding: 2px;
    color: #000;
    background: white;
    font-size: 8px;
    text-align: center;
    line-height: 1.15;
  }

  .print-table th:nth-child(1),
  .print-table td:nth-child(1) {
    width: 18px;
  }

  .print-table th:nth-child(2),
  .print-table td:nth-child(2) {
    width: 42px;
  }

  .print-table th:nth-child(3),
  .print-table td:nth-child(3) {
    width: 95px;
    text-align: left;
  }

  .print-table th:nth-child(4),
  .print-table td:nth-child(4) {
    width: 72px;
    text-align: left;
  }

  .salary-slip {
    page-break-after: always;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
  }

  .salary-slip header {
    text-align: center;
    margin-bottom: 8px;
  }

  .salary-slip h1 {
    margin: 0;
    font-size: 18px;
  }

  .salary-slip h2,
  .salary-slip p {
    margin: 3px 0;
    font-size: 11px;
  }

  .salary-slip table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 8px;
  }

  .salary-slip th,
  .salary-slip td {
    border: 1px solid #555;
    padding: 5px;
    color: #000;
    background: white;
    font-size: 10px;
    text-align: left;
  }

  .compliance-panel {
    display: none !important;
  }
}

.document-form {
  display: grid;
  gap: 12px;
  align-items: end;
}

.document-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.document-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.document-list span {
  color: var(--muted);
  font-size: 13px;
}

.document-list a {
  grid-row: span 2;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.module-group {
  margin-bottom: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.module-group h2 {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 12px 14px;
  font-size: 16px;
  color: white;
  background: var(--blue);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
}

.module {
  min-height: 64px;
  padding: 12px;
  background: white;
}

.module span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.inline-form {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}

.inline-form .field {
  min-width: 120px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.summary-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
}

.summary-grid span,
.summary-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.summary-grid strong {
  display: block;
  margin: 6px 0;
  color: var(--ink);
  font-size: 20px;
}

.ledger-entry {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.ledger-hint {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--blue);
  font-weight: 700;
}

@media (max-width: 860px) {
  .erp-shell,
  .entry-layout {
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .dash-hero,
  .dash-tools,
  .donut-wrap {
    display: grid;
  }

  .dash-kpis,
  .dash-main-grid,
  .dash-lower-grid,
  .dash-summary-grid,
  .analytics-split,
  .offline-hero,
  .offline-workflow {
    grid-template-columns: 1fr;
  }

  .dash-tools input {
    width: 100%;
  }

  .dash-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    position: static;
    height: auto;
    max-height: 42vh;
  }

  .workspace {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .topbar {
    position: sticky;
    top: 0;
  }

  .content {
    height: auto;
    overflow: visible;
    padding: 14px;
  }
}

body[data-client-mode="mobile-app"] {
  background: #f4f7fb;
}

body[data-client-mode="mobile-app"] .premium-login {
  min-height: 100svh;
  padding: 16px;
  overflow: auto;
  background:
    linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
  color: #162033;
}

body[data-client-mode="mobile-app"] .premium-login::before,
body[data-client-mode="mobile-app"] .premium-brand-panel,
body[data-client-mode="mobile-app"] .premium-status-grid,
body[data-client-mode="mobile-app"] .premium-downloads,
body[data-client-mode="mobile-app"] .premium-secondary-actions,
body[data-client-mode="mobile-app"] .login-foot {
  display: none;
}

body[data-client-mode="mobile-app"] .premium-shell {
  width: min(430px, 100%);
  min-height: auto;
  display: block;
}

body[data-client-mode="mobile-app"] .premium-login-card {
  width: 100%;
  padding: 28px 24px 24px;
  border: 1px solid #e6edf5;
  border-radius: 16px;
  background: #ffffff;
  color: #162033;
  box-shadow: 0 18px 42px rgba(23, 36, 62, 0.10);
}

body[data-client-mode="mobile-app"] .premium-login-card .premium-card-head {
  margin-bottom: 24px;
  text-align: left;
}

body[data-client-mode="mobile-app"] .premium-login-card .premium-card-head span {
  color: #7b8798;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

body[data-client-mode="mobile-app"] .premium-login-card .premium-card-head h1 {
  margin: 8px 0 6px;
  color: #111827;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
}

body[data-client-mode="mobile-app"] .premium-login-card .premium-card-head p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
}

body[data-client-mode="mobile-app"] .login-field {
  display: grid;
  gap: 7px;
  margin: 0 0 16px;
}

body[data-client-mode="mobile-app"] .login-field > span {
  color: #344054;
  font-size: 13px;
  font-weight: 600;
}

body[data-client-mode="mobile-app"] .login-field > div {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d0d7e2;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
}

body[data-client-mode="mobile-app"] .login-field b {
  display: none;
}

body[data-client-mode="mobile-app"] .login-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #111827;
  background: transparent;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  padding: 0 12px;
}

body[data-client-mode="mobile-app"] .login-field input::placeholder {
  color: #98a2b3;
  font-size: 15px;
  font-weight: 400;
}

body[data-client-mode="mobile-app"] .password-toggle {
  width: auto;
  min-width: 48px;
  border: 0;
  color: #2563eb;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  padding: 0 12px 0 4px;
  box-shadow: none;
}

body[data-client-mode="mobile-app"] .login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 22px;
}

body[data-client-mode="mobile-app"] .login-options label {
  color: #667085;
  font-size: 13px;
  font-weight: 400;
}

body[data-client-mode="mobile-app"] .login-options input {
  width: 16px;
  height: 16px;
}

body[data-client-mode="mobile-app"] .login-options button {
  border: 0;
  color: #2563eb;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
}

body[data-client-mode="mobile-app"] .login-submit {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: #1d4ed8;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(29, 78, 216, 0.22);
}

body[data-client-mode="mobile-app"] .error {
  color: #b42318;
  font-size: 13px;
  font-weight: 500;
}

.mobile-shell {
  min-height: 100svh;
  color: #172033;
  background: #fbf6f7;
}

.mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #4b0f24, #8b1e3f);
  box-shadow: 0 10px 28px rgba(75, 15, 36, 0.24);
}

.mobile-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mobile-topbar-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-topbar-brand strong {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-topbar span {
  display: block;
  margin-top: 2px;
  color: #d7e5fb;
  font-size: 12px;
}

.mobile-menu-button,
.mobile-drawer-head button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 22px;
}

.mobile-content {
  padding: 14px;
}

.mobile-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: min(320px, calc(100vw - 48px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 14px;
  color: #ffffff;
  background: linear-gradient(180deg, #12284f, #071a35);
  box-shadow: 22px 0 44px rgba(7, 26, 53, 0.28);
  transform: translateX(-105%);
  transition: transform 0.18s ease;
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-head {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 10px;
  align-items: start;
}

.mobile-drawer-brand {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 8px 0 12px;
}

.mobile-drawer-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-drawer-brand strong {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

.mobile-drawer .brand {
  margin: 0;
  padding: 12px;
}

.mobile-drawer nav {
  display: grid;
  gap: 8px;
}

.mobile-drawer nav button,
.mobile-signout {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #eaf2ff;
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
  padding: 10px 12px;
}

.mobile-drawer nav button.active {
  color: #ffffff;
  background: rgba(83, 156, 255, 0.32);
  border-color: rgba(168, 208, 255, 0.34);
}

.mobile-menu-section {
  display: grid;
  gap: 6px;
  padding-top: 8px;
}

.mobile-menu-section strong {
  color: #9ebce9;
  font-size: 11px;
  text-transform: uppercase;
}

.mobile-signout {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  border: 0;
  background: rgba(6, 15, 31, 0.48);
}

.mobile-scrim.show {
  display: block;
}

.mobile-card {
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid #dce5f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(22, 35, 60, 0.08);
}

.mobile-dashboard-hero {
  margin: 0 0 14px;
  padding: 18px 16px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #17325d, #2667ad);
  box-shadow: 0 12px 28px rgba(23, 50, 93, 0.2);
}

.mobile-dashboard-hero h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.mobile-profile-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.mobile-profile-list div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 8px;
  align-items: start;
}

.mobile-profile-list dt {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 700;
}

.mobile-profile-list dd {
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.mobile-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mobile-quick-action {
  display: grid;
  align-content: end;
  gap: 7px;
  min-height: 132px;
  padding: 14px;
  border: 1px solid #dce5f0;
  border-radius: 8px;
  color: #ffffff;
  text-align: left;
  box-shadow: 0 12px 26px rgba(22, 35, 60, 0.1);
}

.mobile-quick-action span {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.mobile-quick-action small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.25;
}

.mobile-quick-action.employee {
  background: linear-gradient(135deg, #1d4f91, #3575c6);
}

.mobile-quick-action.salary {
  background: linear-gradient(135deg, #74551c, #b8862d);
}

.mobile-quick-action.expense {
  grid-column: 1 / -1;
  min-height: 112px;
  background: linear-gradient(135deg, #1f5b4a, #2d8c72);
}

.mobile-hero-card {
  color: #ffffff;
  background: linear-gradient(135deg, #17325d, #2667ad);
  border: 0;
}

.mobile-hero-card.expense {
  background: linear-gradient(135deg, #1f5b4a, #2d8c72);
}

.mobile-hero-card.salary {
  background: linear-gradient(135deg, #5d2a16, #a75e27);
}

.mobile-hero-card span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.mobile-hero-card h2 {
  margin: 8px 0 6px;
  font-size: 24px;
}

.mobile-hero-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.45;
}

.mobile-form {
  display: grid;
  gap: 12px;
}

.mobile-form .field {
  display: grid;
  gap: 6px;
}

.mobile-form .field span {
  color: #435067;
  font-size: 12px;
  font-weight: 700;
}

.mobile-form input,
.mobile-form select,
.mobile-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d8e1ed;
  border-radius: 8px;
  color: #172033;
  background: #f9fbfe;
  padding: 10px 11px;
  font-size: 15px;
}

.mobile-form textarea {
  min-height: 86px;
  resize: vertical;
  font-family: inherit;
}

.mobile-primary {
  width: 100%;
  min-height: 48px;
  border-radius: 8px;
}

.mobile-scan-button {
  min-height: 46px;
  border: 1px solid #c9d6e7;
  border-radius: 8px;
  color: #17325d;
  background: #eef4ff;
  font-weight: 700;
}

.mobile-scan-status {
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
}

.mobile-scanner-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 12px;
  background: rgba(6, 15, 31, 0.58);
}

.mobile-scanner {
  width: min(430px, 100%);
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(7, 26, 53, 0.28);
}

.mobile-scanner header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.mobile-scanner h2 {
  margin: 0 0 3px;
  color: #172033;
  font-size: 18px;
}

.mobile-scanner span {
  color: #667085;
  font-size: 12px;
}

.mobile-scanner header button {
  border: 0;
  color: #1d4ed8;
  background: transparent;
  font-weight: 700;
}

.mobile-scanner video {
  width: 100%;
  min-height: 320px;
  max-height: 62vh;
  border-radius: 10px;
  background: #111827;
  object-fit: cover;
}

.mobile-scanner-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-scanner-actions button {
  min-height: 46px;
  border-radius: 8px;
}

.mobile-slip {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #dce5f0;
}

.mobile-slip h3,
.mobile-slip p {
  margin: 0;
}

.mobile-slip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-slip-grid span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: #f4f7fb;
  color: #5b6678;
  font-size: 12px;
}

.mobile-slip-grid b {
  color: #172033;
  font-size: 16px;
}

body[data-client-mode="mobile-app"] .admin-content .work-panel,
body[data-client-mode="mobile-app"] .admin-content .dashboard-v2 {
  margin-bottom: 14px;
}

body[data-client-mode="mobile-app"] .admin-content .panel-head,
body[data-client-mode="mobile-app"] .admin-content .topbar-actions,
body[data-client-mode="mobile-app"] .admin-content .inline-form {
  align-items: stretch;
  flex-direction: column;
}

body[data-client-mode="mobile-app"] .admin-content .table-wrap {
  border-radius: 8px;
}

/* Offline desktop authentication intentionally stays simpler than the online portal. */
.offline-login .offline-auth-shell {
  width: min(410px, calc(100vw - 32px));
  min-height: auto;
  display: block;
}

.offline-login .offline-auth-card.login-glass,
.offline-login .offline-auth-card.auth-glass,
.offline-login .offline-auth-card.auth-wide {
  width: min(410px, 100%);
  padding: 28px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  color: #161b18;
  box-shadow: 0 24px 70px rgba(3, 17, 12, 0.28);
}

.offline-login .offline-auth-card .premium-card-head span {
  color: #23634e;
  font-size: 11px;
  font-weight: 700;
}

.offline-login .offline-auth-card .premium-card-head h1,
.offline-login .offline-auth-card h1 {
  margin: 8px 0 4px;
  color: #111a16;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
}

.offline-login .offline-auth-card .premium-card-head p,
.offline-login .offline-auth-card > p {
  color: #5d6862;
  font-size: 13px;
}

.offline-login .offline-auth-card .login-field > span,
.offline-login .offline-auth-card .field > span,
.offline-login .offline-auth-card .muted,
.offline-login .offline-auth-card .remember-me {
  color: #26352e;
}

.offline-login .offline-auth-card .login-field > div,
.offline-login .offline-auth-card .field input,
.offline-login .offline-auth-card .field select,
.offline-login .offline-auth-card .field textarea {
  border: 0;
  border-radius: 10px;
  background: #f2f5f3;
  color: #111a16;
  box-shadow: none;
}

.offline-login .offline-auth-card .login-field input,
.offline-login .offline-auth-card .field input,
.offline-login .offline-auth-card .field select,
.offline-login .offline-auth-card .field textarea {
  color: #111a16;
  background: #f2f5f3;
}

.offline-login .offline-auth-card .login-field input::placeholder,
.offline-login .offline-auth-card .field input::placeholder,
.offline-login .offline-auth-card .field textarea::placeholder {
  color: transparent;
}

.offline-login .offline-auth-card .password-toggle,
.offline-login .offline-auth-card .offline-login-options button,
.offline-login .offline-auth-card .offline-signup-row button {
  color: #0b66c3;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 13px;
  font-weight: 500;
}

.offline-login .offline-auth-card .login-submit {
  width: auto;
  min-height: 40px;
  margin-top: 10px;
  padding: 0 28px;
  border-radius: 10px;
  font-size: 14px;
}

/* Reference-auth final override: keep this at EOF so the login card matches the supplied mockup. */
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login),
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) {
  position: relative !important;
  min-height: 100svh !important;
  overflow: hidden !important;
  display: grid !important;
  place-items: center !important;
  padding: 28px !important;
  color: #0b2b6f !important;
  background:
    radial-gradient(circle at 6% 88%, rgba(30, 115, 255, 0.16) 0 13%, transparent 28%),
    radial-gradient(circle at 94% 8%, rgba(42, 128, 255, 0.18) 0 12%, transparent 26%),
    radial-gradient(circle at 48% 45%, rgba(255, 255, 255, 0.92) 0 12%, transparent 38%),
    linear-gradient(135deg, #f8fdff 0%, #e0f0ff 45%, #ffffff 100%) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login)::before,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login)::before {
  content: "" !important;
  position: absolute !important;
  inset: -13% -8% !important;
  pointer-events: none !important;
  opacity: 1 !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1680 940'%3E%3Cg fill='none' stroke='%236aa8ff' stroke-opacity='.22' stroke-width='1.05'%3E%3Cpath d='M-120 220 C 160 38 330 332 595 176 S 960 50 1230 215 1395 375 1790 150'/%3E%3Cpath d='M-135 300 C 150 122 355 420 620 258 S 985 94 1260 285 1435 430 1810 230'/%3E%3Cpath d='M-165 390 C 120 214 370 512 665 340 S 1040 150 1290 372 1480 505 1840 318'/%3E%3Cpath d='M-100 590 C 200 410 440 720 720 540 S 1080 326 1370 552 1535 700 1810 515'/%3E%3Cpath d='M-160 665 C 155 478 430 795 745 610 S 1115 400 1410 630 1560 770 1830 595'/%3E%3C/g%3E%3Cg fill='none' stroke='%230f6dff' stroke-opacity='.1' stroke-width='1'%3E%3Cpath d='M160 350c125-140 285-136 410 0-126 148-286 148-410 0Z'/%3E%3Cpath d='M1140 360c122-138 280-135 405 0-125 145-280 145-405 0Z'/%3E%3Cpath d='M240 350c25-190 215-270 370-160-28 198-215 275-370 160Z'/%3E%3Cpath d='M1215 360c28-190 215-272 372-158-30 195-215 274-372 158Z'/%3E%3C/g%3E%3C/svg%3E") !important;
  background-size: cover !important;
  background-position: center !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login)::after,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login)::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 18% 77%, rgba(255, 255, 255, 0.9) 0 1px, transparent 3px),
    radial-gradient(circle at 37% 20%, rgba(255, 255, 255, 0.9) 0 1px, transparent 3px),
    radial-gradient(circle at 74% 43%, rgba(255, 255, 255, 0.86) 0 1px, transparent 3px),
    linear-gradient(134deg, transparent 0 68%, rgba(255, 255, 255, 0.5) 68% 69%, transparent 69%) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-shell {
  position: relative !important;
  z-index: 1 !important;
  width: min(1680px, 100%) !important;
  min-height: min(860px, calc(100svh - 56px)) !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  place-items: center !important;
  padding: 0 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-brand-panel {
  display: none !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-login-card.crystal-login-card,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-panel.auth-glass {
  position: relative !important;
  z-index: 2 !important;
  width: 318px !important;
  max-width: calc(100vw - 34px) !important;
  max-height: calc(100svh - 52px) !important;
  overflow: auto !important;
  display: block !important;
  padding: 26px 26px 22px !important;
  color: #0b2b6f !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(228, 243, 255, 0.68)),
    rgba(255, 255, 255, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.86) !important;
  border-radius: 14px !important;
  box-shadow:
    0 24px 68px rgba(27, 89, 176, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(22px) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-card-head {
  display: grid !important;
  gap: 8px !important;
  margin: 0 0 18px !important;
  text-align: center !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-card-brand {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-card-brand img {
  width: 54px !important;
  height: 54px !important;
  object-fit: contain !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-card-brand strong {
  display: block !important;
  color: #082563 !important;
  font-size: 22px !important;
  line-height: 1.02 !important;
  font-weight: 800 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-card-brand span {
  display: block !important;
  margin-top: 3px !important;
  color: #4d6595 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-divider {
  display: block !important;
  width: 108px !important;
  height: 10px !important;
  margin: 4px auto 8px !important;
  background:
    radial-gradient(circle, #126eff 0 2px, transparent 3px),
    linear-gradient(90deg, transparent 0, rgba(18, 110, 255, 0.24) 18%, rgba(18, 110, 255, 0.24) 82%, transparent 100%) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 100% 1px, 100% 1px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-card-head h1,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-panel.auth-glass h1,
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-card-head p {
  display: none !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field {
  display: grid !important;
  gap: 0 !important;
  margin: 0 0 11px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field > span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field > div,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .field input,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .field select,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .field textarea {
  min-height: 42px !important;
  color: #0c2c66 !important;
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(111, 159, 226, 0.38) !important;
  border-radius: 6px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field b {
  width: 22px !important;
  color: #2871e8 !important;
  font-size: 17px !important;
  text-align: center !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field input {
  height: 100% !important;
  color: #0c2c66 !important;
  background: transparent !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field input::placeholder {
  color: #5b74a8 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .password-toggle {
  width: 32px !important;
  min-width: 32px !important;
  color: transparent !important;
  font-size: 0 !important;
  position: relative !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .password-toggle::before {
  content: "" !important;
  position: absolute !important;
  left: 8px !important;
  top: 50% !important;
  width: 15px !important;
  height: 9px !important;
  border: 2px solid #2368d7 !important;
  border-radius: 50% !important;
  transform: translateY(-50%) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .password-toggle::after {
  content: "" !important;
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: #2368d7 !important;
  transform: translateY(-50%) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-options {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 2px 0 14px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-options label {
  color: #2f4b82 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-options input {
  width: 14px !important;
  height: 14px !important;
  accent-color: #1b6ff0 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-options button {
  color: #1b6ff0 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .error {
  margin: 0 !important;
  min-height: 0 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-submit,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .primary {
  width: 100% !important;
  min-height: 43px !important;
  border-radius: 6px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #2b91ff, #0b55e4) !important;
  box-shadow: 0 15px 34px rgba(19, 94, 224, 0.3) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-or {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 13px 0 13px !important;
  color: #7b8daf !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-or::before,
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-or::after {
  content: "" !important;
  height: 1px !important;
  background: rgba(91, 139, 207, 0.27) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin: 0 0 18px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row a {
  min-height: 35px !important;
  display: grid !important;
  grid-template-columns: 20px 1fr 14px !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 0 8px !important;
  color: #071f55 !important;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.47) !important;
  border: 1px solid rgba(87, 145, 226, 0.38) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row svg {
  width: 18px !important;
  height: 18px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row .windows-mark {
  fill: #1185ff !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row .android-mark {
  fill: #76b900 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row span {
  color: #071f55 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row small {
  width: 13px !important;
  height: 13px !important;
  overflow: hidden !important;
  color: transparent !important;
  position: relative !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row small::before {
  content: "" !important;
  position: absolute !important;
  left: 5px !important;
  top: 1px !important;
  width: 2px !important;
  height: 8px !important;
  background: #6e84a8 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row small::after {
  content: "" !important;
  position: absolute !important;
  left: 2px !important;
  top: 6px !important;
  width: 8px !important;
  height: 8px !important;
  border-right: 2px solid #6e84a8 !important;
  border-bottom: 2px solid #6e84a8 !important;
  transform: rotate(45deg) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-signup-line {
  margin: 0 !important;
  color: #4e6694 !important;
  text-align: center !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-signup-line button {
  display: inline !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #075ee8 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-secondary-actions.crystal-create-only,
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-foot,
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-feature-bar {
  display: none !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) {
  display: grid !important;
  place-items: center !important;
  padding: 24px !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-backdrop {
  display: none !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .form-grid {
  grid-template-columns: 1fr !important;
  gap: 11px !important;
}


/* User requested final icon/input polish. Keep this at EOF. */
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login),
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login),
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) * {
  font-family: "Segoe UI", "Segoe UI Emoji", "Segoe UI Symbol", system-ui, sans-serif !important;
  text-rendering: geometricPrecision !important;
  -webkit-font-smoothing: antialiased !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login)::before,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login)::before {
  image-rendering: auto !important;
  transform: translateZ(0) scale(1.01) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field > div {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 0 !important;
  padding: 0 8px 0 6px !important;
  min-height: 42px !important;
  background: rgba(255, 255, 255, 0.54) !important;
  border: 1px solid rgba(111, 159, 226, 0.44) !important;
  border-radius: 6px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 1px 8px rgba(42, 111, 220, 0.05) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field b {
  width: 34px !important;
  height: 100% !important;
  display: grid !important;
  place-items: center !important;
  color: #1f6be8 !important;
  font-family: "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", sans-serif !important;
  font-size: 15px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field input {
  width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  padding: 0 6px !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #0c2c66 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .password-toggle {
  width: 28px !important;
  min-width: 28px !important;
  height: 40px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row .windows-mark,
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row .windows-mark path {
  fill: revert-layer !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row small {
  width: 16px !important;
  height: 16px !important;
  display: grid !important;
  place-items: center !important;
  overflow: visible !important;
  color: #6e84a8 !important;
  font-family: "Segoe UI Symbol", "Segoe UI Emoji", "Segoe UI", sans-serif !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row small::before,
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row small::after {
  display: none !important;
}

/* Forgot password and create account: same compact crystal card language as login. */
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) *,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) {
  font-family: "Segoe UI", "Segoe UI Emoji", "Segoe UI Symbol", system-ui, sans-serif !important;
  text-rendering: geometricPrecision !important;
  -webkit-font-smoothing: antialiased !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-panel.auth-glass {
  width: min(392px, calc(100vw - 34px)) !important;
  max-height: calc(100svh - 52px) !important;
  padding: 26px 26px 22px !important;
  color: #0b2b6f !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(228, 243, 255, 0.68)),
    rgba(255, 255, 255, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.86) !important;
  border-radius: 14px !important;
  box-shadow:
    0 24px 68px rgba(27, 89, 176, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(22px) !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .auth-crystal-brand {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 8px !important;
  text-align: left !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .auth-crystal-brand img {
  width: 54px !important;
  height: 54px !important;
  object-fit: contain !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .auth-crystal-brand strong {
  display: block !important;
  color: #082563 !important;
  font-size: 22px !important;
  line-height: 1.02 !important;
  font-weight: 800 !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .auth-crystal-brand span {
  display: block !important;
  margin-top: 3px !important;
  color: #4d6595 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .crystal-divider {
  display: block !important;
  width: 108px !important;
  height: 10px !important;
  margin: 4px auto 10px !important;
  background:
    radial-gradient(circle, #126eff 0 2px, transparent 3px),
    linear-gradient(90deg, transparent 0, rgba(18, 110, 255, 0.24) 18%, rgba(18, 110, 255, 0.24) 82%, transparent 100%) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 100% 1px, 100% 1px !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-panel.auth-glass h1 {
  display: block !important;
  margin: 0 0 5px !important;
  color: #082563 !important;
  text-align: center !important;
  font-size: 22px !important;
  line-height: 1.12 !important;
  font-weight: 800 !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-panel.auth-glass > p {
  margin: 0 0 14px !important;
  color: #526d9e !important;
  text-align: center !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .form-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 9px !important;
  margin-top: 0 !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .field {
  display: grid !important;
  gap: 5px !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .field span {
  color: #2f4b82 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .field input,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .field select,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .field textarea {
  width: 100% !important;
  min-height: 40px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(111, 159, 226, 0.44) !important;
  border-radius: 6px !important;
  outline: 0 !important;
  color: #0c2c66 !important;
  background: rgba(255, 255, 255, 0.54) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 1px 8px rgba(42, 111, 220, 0.05) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .field input:disabled {
  color: #7d8ca8 !important;
  background: rgba(235, 244, 255, 0.42) !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .muted {
  margin: 10px 0 0 !important;
  color: #526d9e !important;
  text-align: center !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .modal-actions.flat-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin-top: 14px !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .modal-actions button {
  width: 100% !important;
  min-height: 40px !important;
  border-radius: 6px !important;
  color: #1464e8 !important;
  background: rgba(255, 255, 255, 0.42) !important;
  border: 1px solid rgba(74, 139, 226, 0.42) !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .modal-actions .primary {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2b91ff, #0b55e4) !important;
  border: 0 !important;
  box-shadow: 0 15px 34px rgba(19, 94, 224, 0.26) !important;
}

/* Final auth alignment and no-scroll create account polish. Keep at EOF. */
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .auth-crystal-brand {
  width: max-content !important;
  max-width: 100% !important;
  margin: 0 auto 8px !important;
  justify-content: center !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-panel.auth-glass h1 {
  width: 100% !important;
  text-align: center !important;
}

body:not([data-client-mode="mobile-app"]) #forgotForm.login-panel.auth-glass {
  width: 390px !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm.login-panel.auth-glass {
  width: min(680px, calc(100vw - 34px)) !important;
  max-height: calc(100svh - 42px) !important;
  overflow: hidden !important;
  padding: 18px 22px 16px !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .auth-crystal-brand img {
  width: 42px !important;
  height: 42px !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .auth-crystal-brand strong {
  font-size: 19px !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .auth-crystal-brand span {
  font-size: 10px !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .crystal-divider {
  margin: 1px auto 5px !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm h1 {
  margin-bottom: 3px !important;
  font-size: 18px !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm > p {
  margin-bottom: 8px !important;
  font-size: 10.5px !important;
  line-height: 1.22 !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px 9px !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .field {
  gap: 3px !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .field span {
  font-size: 9.5px !important;
  line-height: 1.1 !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .field input,
body:not([data-client-mode="mobile-app"]) #createAccountForm .field select,
body:not([data-client-mode="mobile-app"]) #createAccountForm .field textarea {
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 9px !important;
  font-size: 11px !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .muted {
  margin-top: 6px !important;
  font-size: 10px !important;
  line-height: 1.16 !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .error {
  margin: 0 !important;
  min-height: 0 !important;
  font-size: 10px !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .modal-actions.flat-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 7px !important;
  margin-top: 8px !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .modal-actions button {
  min-height: 32px !important;
  font-size: 10.5px !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm.login-panel.auth-glass.create-flow-card {
  width: min(515px, calc(100vw - 34px)) !important;
  padding: 17px 19px 14px !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm.create-flow-card[data-step="company"],
body:not([data-client-mode="mobile-app"]) #createAccountForm.login-panel.auth-glass.create-flow-card[data-step="company"],
body:not([data-client-mode="mobile-app"]) #createAccountForm.login-panel.auth-glass.create-flow-card[data-step="address"] {
  width: min(540px, calc(100vw - 34px)) !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .create-brand-left {
  margin: 0 0 8px !important;
  justify-content: flex-start !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .create-step-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px 9px !important;
  align-items: end !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .create-personal-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .create-personal-grid .field:nth-child(1),
body:not([data-client-mode="mobile-app"]) #createAccountForm .create-personal-grid .field:nth-child(2),
body:not([data-client-mode="mobile-app"]) #createAccountForm .create-personal-grid .field:nth-child(3) {
  grid-column: span 2 !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .create-personal-grid .field:nth-child(4),
body:not([data-client-mode="mobile-app"]) #createAccountForm .create-personal-grid .phone-field {
  grid-column: span 1 !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .create-personal-grid .field:nth-child(4) {
  grid-column: 1 / span 3 !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .create-personal-grid .phone-field {
  grid-column: 4 / span 3 !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .phone-combo {
  grid-template-columns: 1fr 2fr !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .create-otp-field {
  grid-column: 1 / span 1 !important;
  max-width: 96px !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .phone-combo {
  display: grid !important;
  grid-template-columns: 94px 1fr !important;
  overflow: hidden !important;
  min-height: 32px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(74, 139, 226, 0.28) !important;
  background: rgba(255, 255, 255, 0.48) !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .phone-combo .phone-code,
body:not([data-client-mode="mobile-app"]) #createAccountForm .phone-combo .phone-local {
  height: 32px !important;
  min-height: 32px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .phone-combo .phone-code {
  border-right: 1px solid rgba(74, 139, 226, 0.22) !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .create-actions.two-actions {
  width: min(300px, 100%) !important;
  grid-template-columns: 1.25fr 0.8fr !important;
  justify-self: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .create-actions.three-actions {
  width: min(420px, 100%) !important;
  grid-template-columns: 1.15fr 1.05fr 0.72fr !important;
  justify-self: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .create-actions button {
  min-height: 30px !important;
  height: 30px !important;
  border-radius: 7px !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .create-actions .deep-active,
body:not([data-client-mode="mobile-app"]) #createAccountForm .create-actions .primary.deep-active {
  background: linear-gradient(135deg, #0a44bd, #062f8f) !important;
  color: #ffffff !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .duplicate-account-notice {
  margin: 12px auto 4px !important;
  max-width: 420px !important;
  padding: 13px 14px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(28, 96, 188, 0.2) !important;
  background: rgba(255, 255, 255, 0.56) !important;
  color: #0d2a5f !important;
  text-align: center !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .duplicate-account-notice p {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  font-weight: 750 !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm .duplicate-account-notice strong {
  color: #0b55e4 !important;
  white-space: nowrap !important;
}

body:not([data-client-mode="mobile-app"]) #forgotForm .modal-actions.flat-actions {
  grid-template-columns: 0.92fr 0.92fr 1.65fr 0.76fr !important;
  gap: 7px !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) #forgotForm .forgot-brand-left,
body:not([data-client-mode="mobile-app"]) #forgotForm.login-panel.auth-glass .forgot-brand-left {
  width: 100% !important;
  margin: 0 0 8px !important;
  justify-content: flex-start !important;
}

body:not([data-client-mode="mobile-app"]) #forgotForm .forgot-flow-grid {
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

body:not([data-client-mode="mobile-app"]) #forgotForm .forgot-otp-grid {
  grid-template-columns: 1fr 92px !important;
  align-items: end !important;
}

body:not([data-client-mode="mobile-app"]) #forgotForm .forgot-otp-field {
  max-width: 92px !important;
}

body:not([data-client-mode="mobile-app"]) #forgotForm .forgot-otp-field input {
  text-align: center !important;
  letter-spacing: 1px !important;
}

body:not([data-client-mode="mobile-app"]) #forgotForm .forgot-actions.two-actions {
  width: min(260px, 100%) !important;
  grid-template-columns: 1.25fr 0.78fr !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body:not([data-client-mode="mobile-app"]) #forgotForm .forgot-actions.three-actions {
  width: min(330px, 100%) !important;
  grid-template-columns: 1.2fr 0.9fr 0.72fr !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body:not([data-client-mode="mobile-app"]) #forgotForm .forgot-actions {
  margin-bottom: 18px !important;
}

body:not([data-client-mode="mobile-app"]) #forgotForm .forgot-actions + .muted {
  margin-top: 0 !important;
}

body:not([data-client-mode="mobile-app"]) #forgotForm .modal-actions button {
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 10px !important;
  font-size: 10.5px !important;
  white-space: nowrap !important;
}

body:not([data-client-mode="mobile-app"]) #forgotForm #saveResetPassword {
  min-width: 132px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row a:first-child {
  grid-template-columns: 20px 1fr 16px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row a:first-child span {
  font-size: 10.5px !important;
  letter-spacing: 0 !important;
}

/* Login card no-internal-scroll final fix. Keep at EOF. */
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-login-card.crystal-login-card {
  max-height: none !important;
  overflow: visible !important;
  padding: 22px 24px 18px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-card-head {
  margin-bottom: 13px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-card-brand img {
  width: 48px !important;
  height: 48px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-card-brand strong {
  font-size: 20px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-card-brand span {
  font-size: 10.5px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-divider {
  margin: 2px auto 5px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field {
  margin-bottom: 8px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-options {
  margin: 0 0 10px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-submit {
  min-height: 39px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-or {
  margin: 9px 0 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row {
  margin-bottom: 12px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-signup-line {
  font-size: 11px !important;
}

/* Mobile app account flow and download alignment. Keep at EOF. */
body[data-client-mode="mobile-app"] .premium-login .premium-login-card.crystal-login-card {
  overflow: visible !important;
  max-height: none !important;
  padding: 20px 18px 18px !important;
  padding-bottom: 18px !important;
}

body[data-client-mode="mobile-app"] .premium-login {
  width: 100vw !important;
  min-height: 100svh !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: center !important;
  align-items: start !important;
  overflow-x: hidden !important;
  color: #f8fafc !important;
  background:
    radial-gradient(circle at 22% 8%, rgba(17, 140, 129, 0.32), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(245, 180, 76, 0.18), transparent 28%),
    linear-gradient(145deg, #021515 0%, #033531 44%, #011112 100%) !important;
}

body[data-client-mode="mobile-app"] .premium-login .premium-shell {
  width: min(430px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  margin: 0 auto !important;
}

body[data-client-mode="mobile-app"] .premium-login .premium-login-card.crystal-login-card,
body[data-client-mode="mobile-app"] .login-showcase.auth-showcase .login-panel.auth-glass {
  border: 1px solid rgba(31, 190, 177, 0.35) !important;
  color: #f8fafc !important;
  background:
    linear-gradient(180deg, rgba(0, 88, 82, 0.72), rgba(0, 47, 45, 0.84)) !important;
  box-shadow:
    0 26px 62px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(18px) !important;
}

body[data-client-mode="mobile-app"] .premium-login .crystal-card-brand {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  margin: 0 0 12px !important;
  padding-left: 0 !important;
  transform: translateX(-2px) !important;
}

body[data-client-mode="mobile-app"] .premium-login .crystal-card-brand img {
  width: 54px !important;
  height: 54px !important;
  max-width: 54px !important;
  max-height: 54px !important;
  object-fit: contain !important;
  flex: 0 0 54px !important;
}

body[data-client-mode="mobile-app"] .premium-login .crystal-card-brand div {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
}

body[data-client-mode="mobile-app"] .premium-login .crystal-card-brand strong {
  display: block !important;
  color: #ffffff !important;
  font-size: 21px !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

body[data-client-mode="mobile-app"] .premium-login .crystal-card-brand span {
  display: block !important;
  color: rgba(220, 252, 249, 0.72) !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

body[data-client-mode="mobile-app"] .premium-login .crystal-divider {
  width: 78px !important;
  height: 2px !important;
  margin: 0 auto 14px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, transparent, #f5c56d, transparent) !important;
}

body[data-client-mode="mobile-app"] .premium-login .premium-card-head h1,
body[data-client-mode="mobile-app"] .premium-login .premium-card-head p {
  color: #ffffff !important;
}

body[data-client-mode="mobile-app"] .premium-login .premium-card-head p {
  color: rgba(226, 247, 245, 0.78) !important;
}

body[data-client-mode="mobile-app"] .premium-login .login-field > span,
body[data-client-mode="mobile-app"] .premium-login .login-options label {
  color: rgba(255, 255, 255, 0.9) !important;
}

body[data-client-mode="mobile-app"] .premium-login .login-field > div {
  border-color: rgba(45, 212, 191, 0.36) !important;
  background: rgba(1, 30, 29, 0.64) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

body[data-client-mode="mobile-app"] .premium-login .login-field input {
  color: #ffffff !important;
}

body[data-client-mode="mobile-app"] .premium-login .login-field input::placeholder {
  color: rgba(203, 213, 225, 0.72) !important;
}

body[data-client-mode="mobile-app"] .premium-login .login-options button,
body[data-client-mode="mobile-app"] .premium-login .password-toggle,
body[data-client-mode="mobile-app"] .premium-login .crystal-signup-line button {
  color: #f7c76f !important;
}

body[data-client-mode="mobile-app"] .premium-login a,
body[data-client-mode="mobile-app"] .premium-login button#showCreateAccount {
  color: #f7c76f !important;
}

body[data-client-mode="mobile-app"] .premium-login .login-submit {
  color: #071313 !important;
  background: linear-gradient(135deg, #ffe7a9 0%, #f5c66f 48%, #d99a32 100%) !important;
  box-shadow: 0 16px 34px rgba(217, 154, 50, 0.26) !important;
}

body[data-client-mode="mobile-app"] .premium-login .crystal-signup-line {
  color: rgba(226, 247, 245, 0.78) !important;
}

body[data-client-mode="mobile-app"] .premium-login .crystal-or {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin: 0 0 8px !important;
  color: #64748b !important;
  font-size: 12px !important;
}

body[data-client-mode="mobile-app"] .premium-login .crystal-download-row {
  display: none !important;
}

body[data-client-mode="mobile-app"] .premium-login .crystal-or {
  display: none !important;
}

body[data-client-mode="mobile-app"] .premium-login .crystal-signup-line {
  margin: 12px 0 0 !important;
  color: #64748b !important;
  text-align: center !important;
  font-size: 13px !important;
}

body[data-client-mode="mobile-app"] .premium-login .crystal-signup-line button {
  border: 0 !important;
  background: transparent !important;
  color: #2563eb !important;
  font: inherit !important;
  font-weight: 700 !important;
  padding: 0 !important;
  text-decoration: none !important;
}

body[data-client-mode="mobile-app"] .mobile-auth-flow {
  min-height: 100svh !important;
  display: grid !important;
  place-items: center !important;
  padding: 18px !important;
  color: #f8fafc !important;
  background:
    radial-gradient(circle at 22% 8%, rgba(17, 140, 129, 0.32), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(245, 180, 76, 0.18), transparent 28%),
    linear-gradient(145deg, #021515 0%, #033531 44%, #011112 100%) !important;
  overflow-x: hidden !important;
}

body[data-client-mode="mobile-app"] .login-showcase.auth-showcase {
  min-height: 100svh !important;
  display: grid !important;
  place-items: center !important;
  padding: 18px !important;
  color: #f8fafc !important;
  background:
    radial-gradient(circle at 22% 8%, rgba(17, 140, 129, 0.32), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(245, 180, 76, 0.18), transparent 28%),
    linear-gradient(145deg, #021515 0%, #033531 44%, #011112 100%) !important;
  overflow-x: hidden !important;
}

body[data-client-mode="mobile-app"] .login-showcase.auth-showcase .login-backdrop {
  display: none !important;
}

body[data-client-mode="mobile-app"] .mobile-auth-flow .login-panel.auth-glass,
body[data-client-mode="mobile-app"] .mobile-auth-flow #mobileCreateAccountForm,
body[data-client-mode="mobile-app"] .mobile-auth-flow #companyIdRequestForm,
body[data-client-mode="mobile-app"] .login-showcase.auth-showcase .login-panel.auth-glass {
  width: min(350px, calc(100vw - 28px)) !important;
  padding: 18px 18px 16px !important;
  max-height: none !important;
  overflow: visible !important;
  border: 1px solid rgba(31, 190, 177, 0.35) !important;
  border-radius: 18px !important;
  color: #f8fafc !important;
  background: linear-gradient(180deg, rgba(0, 88, 82, 0.72), rgba(0, 47, 45, 0.84)) !important;
  box-shadow:
    0 26px 62px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(18px) !important;
}

body[data-client-mode="mobile-app"] .mobile-auth-flow .auth-crystal-brand,
body[data-client-mode="mobile-app"] .login-showcase.auth-showcase .auth-crystal-brand {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 0 10px !important;
  padding-left: 0 !important;
  transform: translateX(-2px) !important;
  color: #f8fafc !important;
}

body[data-client-mode="mobile-app"] .mobile-auth-flow .auth-crystal-brand img,
body[data-client-mode="mobile-app"] .login-showcase.auth-showcase .auth-crystal-brand img {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  object-fit: contain !important;
  flex: 0 0 48px !important;
}

body[data-client-mode="mobile-app"] .mobile-auth-flow .auth-crystal-brand div,
body[data-client-mode="mobile-app"] .login-showcase.auth-showcase .auth-crystal-brand div {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
}

body[data-client-mode="mobile-app"] .mobile-auth-flow .auth-crystal-brand strong,
body[data-client-mode="mobile-app"] .login-showcase.auth-showcase .auth-crystal-brand strong {
  display: block !important;
  color: #ffffff !important;
  font-size: 20px !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
}

body[data-client-mode="mobile-app"] .mobile-auth-flow .auth-crystal-brand span,
body[data-client-mode="mobile-app"] .login-showcase.auth-showcase .auth-crystal-brand span {
  display: block !important;
  color: rgba(220, 252, 249, 0.72) !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

body[data-client-mode="mobile-app"] .mobile-auth-flow .crystal-divider,
body[data-client-mode="mobile-app"] .login-showcase.auth-showcase .crystal-divider {
  width: 64px !important;
  height: 2px !important;
  margin: 0 auto 12px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, transparent, #f5c56d, transparent) !important;
}

body[data-client-mode="mobile-app"] .mobile-auth-flow h1,
body[data-client-mode="mobile-app"] .login-showcase.auth-showcase .login-panel.auth-glass h1 {
  margin: 0 0 6px !important;
  color: #ffffff !important;
  text-align: left !important;
  font-size: 22px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
}

body[data-client-mode="mobile-app"] #forgotForm h1 {
  font-size: 20px !important;
  line-height: 1.12 !important;
}

body[data-client-mode="mobile-app"] .mobile-auth-flow p,
body[data-client-mode="mobile-app"] .login-showcase.auth-showcase .login-panel.auth-glass > p {
  margin: 0 0 10px !important;
  color: rgba(226, 247, 245, 0.78) !important;
  text-align: left !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

body[data-client-mode="mobile-app"] .mobile-auth-flow .mobile-step-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

body[data-client-mode="mobile-app"] .mobile-auth-flow .field,
body[data-client-mode="mobile-app"] .login-showcase.auth-showcase .field {
  display: grid !important;
  gap: 4px !important;
  margin: 0 !important;
}

body[data-client-mode="mobile-app"] .mobile-auth-flow .field span,
body[data-client-mode="mobile-app"] .login-showcase.auth-showcase .field span {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

body[data-client-mode="mobile-app"] .mobile-auth-flow .field input,
body[data-client-mode="mobile-app"] .mobile-auth-flow .field textarea,
body[data-client-mode="mobile-app"] .login-showcase.auth-showcase .field input,
body[data-client-mode="mobile-app"] .login-showcase.auth-showcase .field textarea {
  min-height: 38px !important;
  width: 100% !important;
  border: 1px solid rgba(45, 212, 191, 0.36) !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  background: rgba(1, 30, 29, 0.64) !important;
  font-size: 13px !important;
  padding: 8px 10px !important;
  box-sizing: border-box !important;
}

body[data-client-mode="mobile-app"] .mobile-auth-flow .mobile-step-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}

body[data-client-mode="mobile-app"] .mobile-auth-flow .mobile-step-actions button {
  min-height: 38px !important;
  font-size: 11px !important;
}

body[data-client-mode="mobile-app"] .mobile-auth-flow .modal-actions.flat-actions,
body[data-client-mode="mobile-app"] .login-showcase.auth-showcase .modal-actions.flat-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin-top: 10px !important;
}

body[data-client-mode="mobile-app"] .mobile-auth-flow .modal-actions button,
body[data-client-mode="mobile-app"] .login-showcase.auth-showcase .modal-actions button {
  min-height: 38px !important;
  border: 1px solid rgba(45, 212, 191, 0.35) !important;
  border-radius: 10px !important;
  color: #f7c76f !important;
  background: rgba(1, 30, 29, 0.58) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

body[data-client-mode="mobile-app"] .mobile-auth-flow .modal-actions .primary,
body[data-client-mode="mobile-app"] .login-showcase.auth-showcase .modal-actions .primary {
  border: 0 !important;
  color: #071313 !important;
  background: linear-gradient(135deg, #ffe7a9 0%, #f5c66f 48%, #d99a32 100%) !important;
  box-shadow: 0 16px 34px rgba(217, 154, 50, 0.24) !important;
}

body[data-client-mode="mobile-app"] #forgotForm .modal-actions.flat-actions {
  grid-template-columns: 1.12fr 0.88fr !important;
  gap: 8px !important;
}

body[data-client-mode="mobile-app"] #forgotForm .modal-actions button {
  min-height: 34px !important;
  padding: 7px 9px !important;
  line-height: 1.15 !important;
}

body[data-client-mode="mobile-app"] #forgotForm #verifyResetOtp,
body[data-client-mode="mobile-app"] #forgotForm #saveResetPassword {
  border: 0 !important;
  color: #071313 !important;
  background: linear-gradient(135deg, #ffe7a9 0%, #f5c66f 48%, #d99a32 100%) !important;
  box-shadow: 0 12px 26px rgba(217, 154, 50, 0.18) !important;
}

body[data-client-mode="mobile-app"] #forgotForm #verifyResetOtp:disabled,
body[data-client-mode="mobile-app"] #forgotForm #saveResetPassword:disabled {
  border: 1px solid rgba(45, 212, 191, 0.18) !important;
  color: rgba(226, 247, 245, 0.42) !important;
  background: rgba(1, 30, 29, 0.42) !important;
  box-shadow: none !important;
}

/* Final web login download alignment. */
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: stretch !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row a {
  width: 100% !important;
  min-width: 0 !important;
  height: 35px !important;
  min-height: 35px !important;
  display: grid !important;
  grid-template-columns: 16px minmax(0, 1fr) 10px !important;
  align-items: center !important;
  justify-items: center !important;
  column-gap: 4px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row svg {
  justify-self: center !important;
  align-self: center !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row span {
  min-width: 0 !important;
  justify-self: start !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 11px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row small {
  justify-self: center !important;
  align-self: center !important;
}

body[data-client-mode="mobile-app"] .mobile-auth-flow .modal-actions button:disabled,
body[data-client-mode="mobile-app"] .login-showcase.auth-showcase .modal-actions button:disabled,
body[data-client-mode="mobile-app"] .mobile-auth-flow .modal-actions .primary:disabled,
body[data-client-mode="mobile-app"] .login-showcase.auth-showcase .modal-actions .primary:disabled {
  border: 1px solid rgba(45, 212, 191, 0.18) !important;
  color: rgba(226, 247, 245, 0.42) !important;
  background: rgba(1, 30, 29, 0.42) !important;
  box-shadow: none !important;
}

body[data-client-mode="mobile-app"] #companyIdRequestForm {
  width: min(350px, calc(100vw - 28px)) !important;
  padding: 14px 16px !important;
}

body[data-client-mode="mobile-app"] #companyIdRequestForm .auth-crystal-brand img {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  flex-basis: 42px !important;
}

body[data-client-mode="mobile-app"] #companyIdRequestForm .auth-crystal-brand strong {
  font-size: 19px !important;
}

body[data-client-mode="mobile-app"] #companyIdRequestForm h1 {
  font-size: 20px !important;
}

body[data-client-mode="mobile-app"] #companyIdRequestForm > p {
  margin-bottom: 8px !important;
  font-size: 11px !important;
}

/* Web auth reference match, June 2026. Keep this final so earlier iterations cannot leak through. */
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login),
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) {
  min-height: 100svh !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  padding: 18px !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
  color: #102452 !important;
  background: #eef1f7 url("/assets/web-auth-cardless-background.png") center center / cover no-repeat !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login)::before,
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login)::after,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login)::before,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login)::after,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-backdrop {
  display: none !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-shell {
  width: 100% !important;
  display: grid !important;
  place-items: center !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-brand-panel {
  display: none !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-login-card.crystal-login-card,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-panel.auth-glass {
  position: relative !important;
  z-index: 2 !important;
  border: 1px solid rgba(27, 70, 139, 0.68) !important;
  border-left-color: rgba(197, 139, 49, 0.72) !important;
  border-radius: 34px !important;
  color: #102452 !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow:
    0 24px 48px rgba(34, 56, 96, 0.17),
    0 3px 3px rgba(187, 134, 48, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-login-card.crystal-login-card {
  width: min(658px, 69.7svh, calc(100vw - 36px)) !important;
  min-width: min(430px, calc(100vw - 36px)) !important;
  min-height: min(762px, 80.8svh) !important;
  height: min(762px, 80.8svh) !important;
  max-height: calc(100svh - 24px) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  overflow: hidden !important;
  padding: clamp(26px, 5.6svh, 54px) clamp(25px, 5.2svh, 58px) 30px !important;
  transform: translateY(1.4svh) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-card-head {
  margin: 0 0 clamp(18px, 2.7svh, 28px) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-card-brand,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .auth-crystal-brand {
  width: 100% !important;
  display: grid !important;
  justify-items: center !important;
  gap: 2px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-card-brand img,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .auth-crystal-brand img {
  width: clamp(76px, 10.5svh, 102px) !important;
  height: clamp(71px, 9.8svh, 95px) !important;
  object-fit: contain !important;
  margin-bottom: 3px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-card-brand div,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .auth-crystal-brand div {
  display: grid !important;
  justify-items: center !important;
  gap: 4px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-card-brand strong,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .auth-crystal-brand strong {
  display: block !important;
  color: #102452 !important;
  font-size: clamp(25px, 4.15svh, 43px) !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.crystal-card-brand strong i,
.crystal-card-brand strong em,
.auth-crystal-brand strong i,
.auth-crystal-brand strong em {
  font-style: normal !important;
}

body:not([data-client-mode="mobile-app"]) .crystal-card-brand strong em,
body:not([data-client-mode="mobile-app"]) .auth-crystal-brand strong em {
  color: #b4863d !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-card-brand span,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .auth-crystal-brand span {
  color: #102452 !important;
  font-size: clamp(8px, 1.27svh, 14px) !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  letter-spacing: 4px !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-divider,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .crystal-divider {
  width: 52px !important;
  height: 4px !important;
  margin: 17px auto 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #d5b16f, #a57019) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-card-head h1,
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-card-head p {
  display: none !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field {
  display: block !important;
  margin: 0 0 18px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field > span {
  display: none !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field > div {
  min-height: clamp(55px, 6.75svh, 66px) !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 9px 18px rgba(33, 56, 91, 0.1) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field b {
  position: relative !important;
  width: 22px !important;
  min-width: 22px !important;
  color: #b47b24 !important;
  font-family: "Segoe UI Symbol", "Segoe UI", sans-serif !important;
  font-size: 25px !important;
  line-height: 1 !important;
  text-align: center !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field:nth-of-type(2) b {
  color: transparent !important;
  height: 21px !important;
  border: 2px solid #b47b24 !important;
  border-radius: 3px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field:nth-of-type(2) b::before {
  content: "" !important;
  position: absolute !important;
  width: 12px !important;
  height: 10px !important;
  left: 3px !important;
  top: -11px !important;
  border: 2px solid #b47b24 !important;
  border-bottom: 0 !important;
  border-radius: 9px 9px 0 0 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field input {
  min-width: 0 !important;
  flex: 1 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  color: #142957 !important;
  background: transparent !important;
  font-size: clamp(15px, 2svh, 20px) !important;
  font-weight: 500 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field input::placeholder {
  color: #7d879c !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .password-toggle {
  width: 27px !important;
  min-width: 27px !important;
  height: 22px !important;
  overflow: hidden !important;
  border: 0 !important;
  color: transparent !important;
  background: transparent !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .password-toggle::before {
  content: "" !important;
  position: absolute !important;
  inset: 4px 1px !important;
  border: 2px solid #b47b24 !important;
  border-radius: 70% 20% !important;
  transform: rotate(45deg) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .password-toggle::after {
  content: "" !important;
  position: absolute !important;
  width: 6px !important;
  height: 6px !important;
  left: 10px !important;
  top: 8px !important;
  border-radius: 50% !important;
  background: #b47b24 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-options {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin: 3px 0 22px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-options label,
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-options button {
  color: #142957 !important;
  font-size: clamp(13px, 1.8svh, 17px) !important;
  font-weight: 500 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-options input {
  width: 23px !important;
  height: 23px !important;
  margin: 0 9px 0 0 !important;
  accent-color: #143471 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-options button {
  color: #a56f1f !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-options button::after {
  content: " ›" !important;
  font-size: 26px !important;
  line-height: 0 !important;
  vertical-align: -2px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .error {
  min-height: 0 !important;
  margin: 0 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .error:empty {
  display: none !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-submit {
  position: relative !important;
  min-height: clamp(55px, 6.75svh, 66px) !important;
  border-radius: 13px !important;
  color: #ffffff !important;
  background: linear-gradient(100deg, #071d53, #163b80 72%, #1a4f93) !important;
  box-shadow: 0 11px 20px rgba(18, 55, 118, 0.24) !important;
  font-size: clamp(18px, 2.45svh, 24px) !important;
  font-weight: 700 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-submit::after {
  content: "→" !important;
  position: absolute !important;
  right: 26px !important;
  top: 50% !important;
  transform: translateY(-53%) !important;
  font-size: 35px !important;
  font-weight: 300 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-or {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin: 20px 0 16px !important;
  color: #7c8494 !important;
  font-size: 15px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-or::before,
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-or::after {
  content: "" !important;
  height: 1px !important;
  flex: 1 !important;
  background: #d9dde5 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
  margin: 0 0 24px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row a {
  min-height: clamp(54px, 6.6svh, 64px) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 0 15px !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #17264a !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 7px 14px rgba(33, 56, 91, 0.08) !important;
  text-decoration: none !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row svg {
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row span {
  color: #17264a !important;
  font-size: clamp(13px, 1.9svh, 18px) !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row small {
  display: none !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-signup-line {
  margin: 0 !important;
  color: #25395e !important;
  text-align: center !important;
  font-size: clamp(13px, 1.8svh, 17px) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-signup-line button {
  border: 0 !important;
  color: #a56f1f !important;
  background: transparent !important;
  font: inherit !important;
  font-weight: 700 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-secondary-actions,
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-foot {
  display: none !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-panel.auth-glass {
  border-radius: 28px !important;
}

@media (max-height: 760px) {
  body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-login-card.crystal-login-card {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }

  body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-card-head {
    margin-bottom: 16px !important;
  }

  body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-divider {
    margin-top: 10px !important;
  }

  body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field {
    margin-bottom: 12px !important;
  }

  body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-options {
    margin-bottom: 14px !important;
  }

  body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-or {
    margin: 13px 0 10px !important;
  }

  body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .crystal-download-row {
    gap: 12px !important;
    margin-bottom: 15px !important;
  }
}

/* Secondary web auth pages reuse the reference backdrop but mask the baked-in login card. */
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login)::after {
  content: "" !important;
  position: absolute !important;
  z-index: 1 !important;
  display: block !important;
  width: min(658px, 69.7svh, calc(100vw - 36px)) !important;
  height: min(762px, 80.8svh) !important;
  left: 50% !important;
  top: 50% !important;
  border: 1px solid rgba(27, 70, 139, 0.5) !important;
  border-left-color: rgba(197, 139, 49, 0.68) !important;
  border-radius: 34px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow:
    0 24px 48px rgba(34, 56, 96, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;
  transform: translate(-50%, calc(-50% + 1.4svh)) !important;
}

body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-panel.auth-glass {
  z-index: 2 !important;
  background: rgba(255, 255, 255, 0.98) !important;
}

body:not([data-client-mode="mobile-app"]) #forgotForm.login-panel.auth-glass,
body:not([data-client-mode="mobile-app"]) #createAccountForm.login-panel.auth-glass {
  width: min(658px, 69.7svh, calc(100vw - 36px)) !important;
  min-height: min(762px, 80.8svh) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  overflow: hidden !important;
  padding: clamp(24px, 4.6svh, 46px) clamp(26px, 5.8svh, 58px) !important;
  border-radius: 34px !important;
  transform: translateY(1.4svh) !important;
}

body:not([data-client-mode="mobile-app"]) #forgotForm.login-panel.auth-glass > *,
body:not([data-client-mode="mobile-app"]) #createAccountForm.login-panel.auth-glass > * {
  width: 100% !important;
}

body:not([data-client-mode="mobile-app"]) #forgotForm.login-panel.auth-glass > .crystal-divider,
body:not([data-client-mode="mobile-app"]) #createAccountForm.login-panel.auth-glass > .crystal-divider {
  width: 52px !important;
  align-self: center !important;
}

body:not([data-client-mode="mobile-app"]) #createAccountForm.login-panel.auth-glass .auth-crystal-brand img {
  width: clamp(64px, 8.8svh, 86px) !important;
  height: clamp(60px, 8.2svh, 80px) !important;
}

/* Integrated curved-glass edge polish. */
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-login-card.crystal-login-card,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-panel.auth-glass,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login)::after {
  border: 0 !important;
  border-radius: 38px !important;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.84) 0%,
      rgba(255, 255, 255, 0.62) 7%,
      rgba(255, 255, 255, 0.46) 50%,
      rgba(255, 255, 255, 0.62) 93%,
      rgba(255, 255, 255, 0.84) 100%) !important;
  box-shadow:
    inset 15px 0 22px rgba(191, 143, 68, 0.11),
    inset -15px 0 22px rgba(24, 63, 126, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(20, 54, 111, 0.14),
    0 22px 40px rgba(31, 55, 98, 0.16) !important;
  backdrop-filter: blur(22px) saturate(108%) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-login-card.crystal-login-card::before,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-panel.auth-glass::before {
  content: "" !important;
  position: absolute !important;
  inset: 1px !important;
  pointer-events: none !important;
  border-radius: 37px !important;
  box-shadow:
    inset 2px 0 0 rgba(214, 167, 92, 0.28),
    inset -2px 0 0 rgba(34, 77, 145, 0.32),
    inset 0 2px 0 rgba(255, 255, 255, 0.84) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field b.login-person-icon,
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field b.login-lock-icon {
  position: relative !important;
  display: block !important;
  width: 17px !important;
  min-width: 17px !important;
  height: 18px !important;
  border: 0 !important;
  color: transparent !important;
  background: transparent !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-person-icon::before {
  content: "" !important;
  position: absolute !important;
  width: 7px !important;
  height: 7px !important;
  left: 5px !important;
  top: 0 !important;
  border: 1.8px solid #b47b24 !important;
  border-radius: 50% !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-person-icon::after {
  content: "" !important;
  position: absolute !important;
  width: 15px !important;
  height: 8px !important;
  left: 1px !important;
  bottom: 0 !important;
  border: 1.8px solid #b47b24 !important;
  border-radius: 9px 9px 3px 3px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field b.login-lock-icon {
  width: 15px !important;
  min-width: 15px !important;
  height: 15px !important;
  margin-left: 1px !important;
  border: 1.7px solid #b47b24 !important;
  border-radius: 2px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field b.login-lock-icon::before {
  content: "" !important;
  position: absolute !important;
  width: 9px !important;
  height: 8px !important;
  left: 1.4px !important;
  top: -8px !important;
  border: 1.7px solid #b47b24 !important;
  border-bottom: 0 !important;
  border-radius: 7px 7px 0 0 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-options input {
  width: 16px !important;
  height: 16px !important;
  margin-right: 8px !important;
  vertical-align: -2px !important;
}

body:not([data-client-mode="mobile-app"]) #forgotForm.login-panel.auth-glass .auth-crystal-brand,
body:not([data-client-mode="mobile-app"]) #createAccountForm.login-panel.auth-glass .auth-crystal-brand {
  width: 100% !important;
  display: grid !important;
  justify-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  margin: 0 auto 5px !important;
  text-align: center !important;
}

body:not([data-client-mode="mobile-app"]) #forgotForm.login-panel.auth-glass .auth-crystal-brand img,
body:not([data-client-mode="mobile-app"]) #createAccountForm.login-panel.auth-glass .auth-crystal-brand img {
  width: clamp(70px, 9svh, 88px) !important;
  height: clamp(66px, 8.5svh, 83px) !important;
  margin: 0 auto 3px !important;
}

body:not([data-client-mode="mobile-app"]) #forgotForm.login-panel.auth-glass .auth-crystal-brand div,
body:not([data-client-mode="mobile-app"]) #createAccountForm.login-panel.auth-glass .auth-crystal-brand div {
  display: grid !important;
  justify-items: center !important;
  text-align: center !important;
}

body[data-client-mode="mobile-app"] #companyIdRequestForm .mobile-step-grid {
  grid-template-columns: 1fr 1fr !important;
  gap: 6px !important;
}

body[data-client-mode="mobile-app"] #companyIdRequestForm .field:nth-child(-n + 4),
body[data-client-mode="mobile-app"] #companyIdRequestForm .field:nth-child(n + 7) {
  grid-column: 1 / -1 !important;
}

body[data-client-mode="mobile-app"] #companyIdRequestForm .field span {
  font-size: 10px !important;
}

body[data-client-mode="mobile-app"] #companyIdRequestForm .field input {
  min-height: 32px !important;
  padding: 6px 9px !important;
  font-size: 12px !important;
}

body[data-client-mode="mobile-app"] #companyIdRequestForm .modal-actions.flat-actions {
  margin-top: 8px !important;
}

body[data-client-mode="mobile-app"] #companyIdRequestForm .modal-actions button {
  min-height: 34px !important;
}

body[data-client-mode="mobile-app"] .mobile-request-company-line {
  margin-top: 10px !important;
  color: rgba(226, 247, 245, 0.78) !important;
  text-align: center !important;
  font-size: 12px !important;
}

body[data-client-mode="mobile-app"] .mobile-request-company-line button {
  border: 0 !important;
  background: transparent !important;
  color: #f7c76f !important;
  font: inherit !important;
  font-weight: 800 !important;
  padding: 0 !important;
}

/* Final Web auth optical polish: one glass surface, balanced password icons. */
body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .premium-login-card.crystal-login-card,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login) .login-panel.auth-glass,
body:not([data-client-mode="mobile-app"]) .login-showcase.auth-showcase:not(.offline-login)::after {
  box-shadow:
    inset 15px 0 22px rgba(191, 143, 68, 0.11),
    inset -15px 0 22px rgba(24, 63, 126, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(20, 54, 111, 0.11) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field b.login-lock-icon {
  width: 14px !important;
  min-width: 14px !important;
  height: 14px !important;
  margin: 1px 1px 0 2px !important;
  border-width: 1.5px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .login-field b.login-lock-icon::before {
  width: 8px !important;
  height: 7px !important;
  left: 1.5px !important;
  top: -7px !important;
  border-width: 1.5px !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .password-toggle {
  position: relative !important;
  width: 25px !important;
  min-width: 25px !important;
  height: 18px !important;
  padding: 0 !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .password-toggle::before {
  inset: auto !important;
  width: 18px !important;
  height: 11px !important;
  left: 3px !important;
  top: 3px !important;
  border: 1.7px solid #b47b24 !important;
  border-radius: 70% 30% !important;
  transform: rotate(45deg) !important;
}

body:not([data-client-mode="mobile-app"]) .premium-login:not(.offline-login) .password-toggle::after {
  width: 5px !important;
  height: 5px !important;
  left: 10px !important;
  top: 7px !important;
}

body:not([data-client-mode="mobile-app"]) #forgotForm.login-panel.auth-glass .auth-crystal-brand,
body:not([data-client-mode="mobile-app"]) #createAccountForm.login-panel.auth-glass .auth-crystal-brand {
  position: relative !important;
  top: -20px !important;
  margin-bottom: -14px !important;
}

body:not([data-client-mode="mobile-app"]) #forgotForm.login-panel.auth-glass > .crystal-divider,
body:not([data-client-mode="mobile-app"]) #createAccountForm.login-panel.auth-glass > .crystal-divider {
  position: relative !important;
  top: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 2px !important;
}

body[data-client-mode="mobile-app"] .login-showcase.auth-showcase a,
body[data-client-mode="mobile-app"] .login-showcase.auth-showcase button#showCreateAccount,
body[data-client-mode="mobile-app"] .login-showcase.auth-showcase .mobile-request-company-line button {
  color: #f7c76f !important;
}

.success-message {
  margin: 10px 0 0 !important;
  color: #0d8f46 !important;
  text-align: center !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.mobile-request-company-line {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 5px !important;
  flex-wrap: wrap !important;
}

.mobile-request-company-line button {
  padding: 0 !important;
  border: 0 !important;
  color: #126eff !important;
  background: transparent !important;
  font: inherit !important;
  font-weight: 900 !important;
  text-decoration: underline !important;
  cursor: pointer !important;
}

.company-id-result {
  text-align: center !important;
}

.company-id-result code {
  display: inline-block !important;
  margin-top: 6px !important;
  padding: 6px 10px !important;
  border-radius: 6px !important;
  color: #08357c !important;
  background: rgba(255,255,255,0.72) !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

.expense-lines {
  grid-column: 1 / -1;
  padding: 10px;
  border: 1px solid rgba(31, 92, 147, 0.16);
  border-radius: 6px;
  background: rgba(247, 251, 255, 0.76);
}

.expense-lines-head,
.mobile-outstanding-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.expense-line-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 76px 110px 108px 34px;
  gap: 7px;
  align-items: center;
  margin-top: 8px;
}

.expense-line-row input {
  min-width: 0;
}

.expense-line-row output {
  text-align: right;
  font-weight: 800;
}

.compact-button {
  min-height: 30px !important;
  padding: 5px 10px !important;
}

.mobile-outstanding-card {
  margin-top: 12px;
}

.mobile-outstanding-summary article {
  flex: 1;
  padding: 8px;
  border: 1px solid rgba(247, 199, 111, 0.3);
  border-radius: 6px;
}

.mobile-outstanding-summary span,
.mobile-outstanding-summary strong {
  display: block;
}

.mobile-outstanding-list article {
  padding: 8px 0;
  border-bottom: 1px solid rgba(144, 190, 188, 0.22);
}

.mobile-outstanding-list span,
.mobile-outstanding-list small {
  display: block;
  margin-top: 3px;
}

body[data-client-mode="mobile-app"] .expense-line-row {
  grid-template-columns: minmax(92px, 1fr) 54px 74px 82px 30px;
  gap: 4px;
}

body[data-client-mode="mobile-app"] .expense-line-row input {
  padding: 6px !important;
  font-size: 11px !important;
}

.treasury-registers details {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(31, 92, 147, 0.16);
  border-radius: 6px;
  background: rgba(247, 251, 255, 0.7);
}

.treasury-registers summary {
  cursor: pointer;
  color: #12345b;
  font-weight: 800;
}

.treasury-registers details[open] summary {
  margin-bottom: 10px;
}

/* Premium tenant ERP shell: fixed glass canvas and non-shifting desktop flyouts. */
body[data-theme] {
  --glass-accent: var(--blue);
  --glass-accent-dark: var(--blue-dark);
  --glass-surface: rgba(255, 255, 255, .7);
  --glass-shadow: rgba(18, 40, 66, .16);
  background: #edf3fa url("/assets/web-auth-cardless-background.png") center center / cover no-repeat fixed;
}

.erp-shell {
  min-height: 100vh;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  background: rgba(232, 240, 249, .18);
}

.erp-shell > .sidebar {
  position: relative;
  z-index: 35;
  height: max-content;
  max-height: calc(100vh - 28px);
  padding: 11px;
  overflow: visible;
  border: 1px solid rgba(203, 231, 255, .58);
  border-radius: 25px 9px 25px 9px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--glass-accent-dark) 92%, transparent), color-mix(in srgb, var(--glass-accent) 82%, #071529));
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .32), inset -1px -1px 0 rgba(0, 19, 42, .28), 0 16px 34px rgba(15, 45, 76, .2);
  backdrop-filter: blur(20px) saturate(132%);
}
.erp-shell > .sidebar::before { border-radius: inherit; }
.erp-shell > .sidebar .brand {
  margin-bottom: 7px;
  padding: 9px 8px 10px;
  border-radius: 15px 6px 15px 6px;
}
.erp-shell > .sidebar nav { gap: 3px; }
.erp-shell > .sidebar nav > button,
.erp-shell > .sidebar .menu-section { margin: 0; }
.erp-shell > .sidebar button {
  min-height: 31px;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 11px;
}
.erp-shell > .sidebar .menu-section {
  position: relative;
  padding: 2px;
  border-radius: 8px 3px 8px 3px;
  background: rgba(255, 255, 255, .035);
}
.erp-shell > .sidebar .menu-section::after,
.erp-shell > .sidebar .flyout-section::after {
  position: absolute;
  top: 0;
  right: -10px;
  bottom: 0;
  width: 12px;
  content: "";
}
.erp-shell > .sidebar .menu-parent {
  min-height: 30px;
  grid-template-columns: minmax(0, 1fr) 12px;
  gap: 4px;
  font-size: 11px;
}
.erp-shell > .sidebar .menu-label {
  grid-template-columns: 15px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}
.erp-shell > .sidebar .menu-icon {
  width: 15px;
  line-height: 1;
}
.erp-shell > .sidebar .menu-text {
  line-height: 1.18;
  overflow-wrap: normal;
}
.erp-shell > .sidebar .menu-parent b,
.erp-shell > .sidebar .flyout-parent b {
  font-size: 15px;
  line-height: 1;
}
.erp-shell > .sidebar .menu-children {
  position: absolute;
  z-index: 60;
  top: -2px;
  left: calc(100% + 9px);
  display: grid;
  min-width: 226px;
  max-width: 278px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  gap: 3px;
  margin: 0;
  padding: 7px;
  border: 1px solid rgba(201, 232, 255, .62);
  border-radius: 15px 5px 15px 5px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--glass-accent-dark) 88%, transparent), color-mix(in srgb, var(--glass-accent) 76%, #071529));
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .3), 0 18px 36px rgba(5, 29, 58, .26);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-8px) scale(.98);
  transform-origin: left top;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  backdrop-filter: blur(20px) saturate(135%);
  scrollbar-width: thin;
  scrollbar-color: rgba(236, 246, 255, .72) rgba(255, 255, 255, .1);
}
.erp-shell > .sidebar .menu-children::-webkit-scrollbar { width: 6px; }
.erp-shell > .sidebar .menu-children::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(236, 246, 255, .72);
}
.erp-shell > .sidebar .menu-children::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .08);
}
.erp-shell > .sidebar nav > .menu-section:nth-last-child(-n+4) > .menu-children {
  top: auto;
  bottom: -2px;
}
.erp-shell > .sidebar .menu-section:hover > .menu-children,
.erp-shell > .sidebar .flyout-section:hover > .menu-children {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}
.erp-shell > .sidebar .menu-children button {
  min-height: 30px;
  padding: 6px 8px;
  color: #eff8ff;
  background: rgba(255, 255, 255, .04);
}
.erp-shell > .sidebar .menu-children button:hover,
.erp-shell > .sidebar .menu-children button.active {
  transform: translateX(2px);
  border-color: rgba(223, 243, 255, .54);
  background: rgba(255, 255, 255, .16);
}
.erp-shell > .sidebar .flyout-section { position: relative; }
.erp-shell > .sidebar .flyout-parent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px;
  align-items: center;
}
.erp-shell > .sidebar .menu-children.nested { top: 0; }

.workspace {
  height: calc(100vh - 28px);
  border-radius: 22px 8px 22px 8px;
}
.workspace > .topbar {
  min-height: 66px;
  border: 1px solid rgba(195, 227, 247, .7);
  border-radius: 22px 8px 22px 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .18), transparent 44%), linear-gradient(135deg, color-mix(in srgb, var(--glass-accent-dark) 90%, transparent), color-mix(in srgb, var(--glass-accent) 82%, transparent));
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .34), 0 14px 28px rgba(19, 54, 85, .16);
  backdrop-filter: blur(20px) saturate(132%);
}
.workspace > .content {
  margin-top: 10px;
  padding: 10px 2px 18px;
  background: transparent;
}

.work-panel,
.dash-hero,
.dash-card,
.dash-summary-card,
.dash-kpi,
.kpi-grid article,
.quick-grid button,
.form-section,
.document-list article,
.fy-banner {
  border-color: rgba(190, 214, 227, .76);
  background: var(--glass-surface);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .84), 0 10px 24px var(--glass-shadow);
  backdrop-filter: blur(15px) saturate(118%);
}
.work-panel,
.dash-hero,
.dash-card,
.dash-summary-card,
.kpi-grid article,
.form-section { border-radius: 8px; }
.dash-kpi {
  --kpi-top: var(--glass-accent);
  --kpi-bottom: var(--glass-accent-dark);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 8px;
  color: white;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, .34), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, .18), transparent 42%),
    linear-gradient(135deg, color-mix(in srgb, var(--kpi-top) 86%, transparent), color-mix(in srgb, var(--kpi-bottom) 92%, transparent));
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, .44),
    inset -1px -1px 0 rgba(7, 22, 42, .34),
    inset 0 0 28px rgba(255, 255, 255, .08),
    0 14px 30px rgba(18, 51, 82, .18);
  backdrop-filter: blur(16px) saturate(132%);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.dash-kpi::before {
  position: absolute;
  inset: 2px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 7px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    inset 0 16px 26px rgba(255, 255, 255, .12),
    inset 0 -18px 30px rgba(0, 15, 35, .16);
  content: "";
}
.dash-kpi::after {
  position: absolute;
  inset: -35% -20% auto 46%;
  height: 88%;
  z-index: -1;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  filter: blur(22px);
  transform: rotate(-18deg);
  content: "";
}
.dash-kpi.blue {
  --kpi-top: #0b84f3;
  --kpi-bottom: #0758d8;
}
.dash-kpi.green {
  --kpi-top: #24b866;
  --kpi-bottom: #087c3d;
}
.dash-kpi.purple {
  --kpi-top: #7067ff;
  --kpi-bottom: #4536cc;
}
.dash-kpi.orange {
  --kpi-top: #ff8726;
  --kpi-bottom: #ff4b1f;
}
.dash-kpi:hover,
.dash-summary-card:hover,
.dash-action-grid button:hover,
.quick-grid button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 16px 28px rgba(18, 51, 82, .2);
}
.dash-action-grid button,
.dash-card button,
.work-panel button,
.icon-refresh {
  border: 1px solid rgba(168, 201, 219, .8);
  background: rgba(255, 255, 255, .7);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .78);
  backdrop-filter: blur(10px);
}
.dash-card button.primary,
.work-panel button.primary,
.form-section button.primary {
  border-color: color-mix(in srgb, var(--glass-accent) 76%, #ffffff);
  color: #ffffff;
  background: linear-gradient(135deg, var(--glass-accent), var(--glass-accent-dark));
}
.danger-zone {
  border-color: rgba(190, 35, 65, .38);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, .7), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(255, 241, 244, .76));
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, .72),
    inset -1px -1px 0 rgba(125, 16, 41, .08),
    0 18px 42px rgba(80, 20, 32, .12);
}
.danger-zone h2 {
  color: #7f1230;
}
.danger-zone .muted {
  color: #7b4050;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.work-panel button.danger {
  border-color: rgba(176, 35, 58, .72);
  color: #ffffff;
  background: linear-gradient(135deg, #c9284c, #7d1029);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, .32),
    0 12px 24px rgba(125, 16, 41, .22);
}
.work-panel button.danger:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}
input,
select,
textarea {
  border-color: rgba(174, 199, 214, .84);
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .72);
}

@media (max-width: 980px) {
  .erp-shell { display: block; min-height: 100vh; padding: 0; }
  .erp-shell > .sidebar { display: none; }
  .workspace { height: 100vh; border-radius: 0; }
  .workspace > .topbar { border-radius: 0 0 14px 14px; }
}

.gst-guardrail {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(180, 123, 43, 0.35);
  border-radius: 10px;
  color: #5d3b0b;
  background: linear-gradient(135deg, rgba(255, 248, 225, 0.88), rgba(255, 255, 255, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  font-weight: 700;
}

.gst-settings-panel,
.gst-preview-shell {
  border-color: rgba(24, 78, 129, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(242, 248, 255, 0.68));
  backdrop-filter: blur(14px);
}

.gst-settings-grid {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.gst-workflow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.gst-workflow article {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(29, 78, 216, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(226, 239, 255, 0.58));
  box-shadow: 0 12px 30px rgba(12, 39, 76, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.gst-workflow article strong {
  display: block;
  color: #10213f;
  font-size: 0.96rem;
}

.gst-workflow article span {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15, 65, 126, 0.12);
  color: #0f417e;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gst-workflow article.blocked span,
.gst-validation-list article.error strong {
  color: #991b1b;
}

.gst-workflow article.passed span,
.gst-validation-ok {
  color: #166534;
}

.gst-json-editor {
  width: 100%;
  min-height: 340px;
  resize: vertical;
  padding: 16px;
  border: 1px solid rgba(22, 71, 132, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
  color: #10213f;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.gst-approval-actions {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) repeat(2, minmax(140px, 1fr)) minmax(90px, 0.6fr) minmax(150px, 1fr) minmax(150px, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.gst-approval-actions input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(22, 71, 132, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
}

.gst-validation-list {
  display: grid;
  gap: 10px;
}

.gst-validation-list article,
.gst-validation-ok {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 65, 126, 0.14);
  background: rgba(255, 255, 255, 0.78);
}

.gst-validation-list article.error {
  border-color: rgba(185, 28, 28, 0.28);
  background: rgba(254, 242, 242, 0.9);
}

.gst-validation-list article.warning {
  border-color: rgba(180, 83, 9, 0.25);
  background: rgba(255, 251, 235, 0.9);
}

.gst-validation-list article span,
.gst-validation-list article small {
  display: block;
  margin-top: 5px;
}

.gst-reminder-panel article {
  min-height: 92px;
}

.gst-return-preview pre {
  white-space: pre-wrap;
  padding: 14px;
  border: 1px solid #d7e2f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #10213f;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .gst-settings-grid,
  .gst-approval-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .gst-settings-grid,
  .gst-approval-actions {
    grid-template-columns: 1fr;
  }
}

.statutory-automation-panel {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(230,241,255,0.72));
  box-shadow: 0 18px 45px rgba(15, 35, 68, 0.12);
  backdrop-filter: blur(16px);
}

.compact-panel-head {
  margin-bottom: 12px;
}

.statutory-settings-grid,
.statutory-return-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.statutory-return-controls {
  grid-template-columns: minmax(150px, 0.8fr) minmax(220px, 1.2fr) repeat(5, auto);
  margin-top: 14px;
}

.toggle-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(30, 64, 175, 0.2);
  border-radius: 14px;
  background: rgba(255,255,255,0.78);
}

.toggle-card input {
  width: 18px;
  height: 18px;
}

.toggle-card span,
.toggle-card small {
  display: block;
}

.toggle-card small {
  color: #64748b;
  margin-top: 3px;
}

.statutory-return-preview {
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed rgba(30, 64, 175, 0.25);
  border-radius: 14px;
  background: rgba(255,255,255,0.74);
}

.statutory-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.12);
  color: #173a6a;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.success,
.statutory-validation-list .success {
  background: rgba(220, 252, 231, 0.9);
  color: #166534;
}

.mini-summary {
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  margin: 12px 0;
}

.statutory-validation-list {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.statutory-validation-list .error,
.statutory-validation-list .warning,
.statutory-validation-list .success,
.warning {
  padding: 10px 12px;
  border-radius: 12px;
}

.statutory-validation-list .error {
  background: rgba(254, 226, 226, 0.9);
  color: #991b1b;
}

.statutory-validation-list .warning,
.warning {
  background: rgba(254, 243, 199, 0.9);
  color: #92400e;
}

.statutory-validation-list ul {
  margin: 6px 0 0 18px;
}

.statutory-mini-table {
  max-height: 260px;
}

.statutory-json-editor textarea {
  width: 100%;
  min-height: 220px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.danger-outline {
  color: #9f1239;
  border-color: rgba(159, 18, 57, 0.35);
}

.gst-nil-banner {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid rgba(14, 116, 144, 0.28);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(224, 242, 254, 0.88));
  color: #0f3f46;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(14, 116, 144, 0.12);
}

.compliance-action-card {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid rgba(30, 64, 175, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(239,246,255,0.82)),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 34%);
  box-shadow: 0 18px 45px rgba(15, 35, 68, 0.14);
}

.compliance-action-card h3 {
  margin: 0 0 8px;
  color: #10213f;
}

.compliance-action-steps {
  margin: 14px 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
  color: #24324b;
}

.compliance-action-steps li {
  line-height: 1.45;
}

.compliance-action-card .quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.compliance-action-card .quick-grid article {
  padding: 10px 12px;
  border: 1px solid rgba(30, 64, 175, 0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.82);
}

.compliance-action-card .quick-grid span,
.compliance-action-card .quick-grid strong {
  display: block;
}

.compliance-action-card .quick-grid span {
  color: #64748b;
  font-size: 12px;
}

.compliance-action-card .action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 1200px) {
  .statutory-return-controls {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .statutory-settings-grid,
  .statutory-return-controls {
    grid-template-columns: 1fr;
  }
}
