@charset "UTF-8";

:root {
  --bg: #090d12;
  --bg-soft: #0d131a;
  --surface: #111820;
  --surface-2: #151e27;
  --surface-3: #0c1218;
  --line: #26313d;
  --line-strong: #344454;
  --text: #edf3f8;
  --muted: #8fa0af;
  --faint: #5f7181;
  --blue: #4c8dff;
  --blue-deep: #286bd7;
  --green: #35c88a;
  --amber: #e9b84e;
  --red: #f06d76;
  --sidebar-width: 238px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Aptos", "Microsoft YaHei UI", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(76, 141, 255, 0.82);
  outline-offset: 2px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 5px;
  font-family: "Bahnschrift", "Aptos Display", "Microsoft YaHei UI", sans-serif;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.2;
}

h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.mono {
  font-family: "Cascadia Code", "Microsoft YaHei UI", monospace;
}

.eyebrow {
  margin: 0 0 5px;
  color: #91a2b1;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.boot-screen {
  display: grid;
  place-content: center;
  width: 100%;
  min-height: 100svh;
  background: #080d12;
  text-align: center;
}

.boot-screen strong {
  font-family: "Bahnschrift", "Aptos Display", sans-serif;
  font-size: 20px;
}

.boot-screen span {
  margin-top: 8px;
  color: var(--faint);
  font-size: 11px;
}

.brand-lockup strong {
  display: block;
  font-family: "Bahnschrift", "Aptos Display", "Microsoft YaHei UI", sans-serif;
  font-size: 18px;
  font-weight: 650;
}

.brand-lockup span {
  display: block;
  margin-top: 5px;
  color: #78a6cf;
  font-size: 10px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(53, 200, 138, 0.1);
  animation: status-pulse 2.4s ease-in-out infinite;
}

.status-dot.status-wait {
  background: var(--faint);
  box-shadow: 0 0 0 4px rgba(96, 113, 128, 0.1);
  animation: none;
}

.status-dot.status-error {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(240, 109, 118, 0.1);
  animation: none;
}

.primary,
.secondary,
.danger-button,
.text-button,
.logout-button {
  border-radius: 7px;
}

.primary {
  min-height: 44px;
  border: 0;
  background: #2f72d9;
  box-shadow: 0 9px 24px rgba(76, 141, 255, 0.16);
  color: #fff;
  font-weight: 700;
  transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.primary:hover:not(:disabled) {
  background: var(--blue-deep);
  box-shadow: 0 11px 28px rgba(76, 141, 255, 0.23);
  transform: translateY(-1px);
}

.primary:active:not(:disabled) {
  background: #245fbd;
  transform: translateY(0);
}

.secondary {
  min-height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0 12px;
  color: #c7d2dc;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.secondary:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.danger-button {
  min-height: 36px;
  border: 1px solid rgba(240, 109, 118, 0.36);
  background: transparent;
  padding: 0 12px;
  color: var(--red);
}

.full-button {
  width: 100%;
}

.compact-primary {
  min-width: 150px;
  padding: 0 16px;
}

.control,
.codebox {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: var(--surface-3);
  transition: border-color 140ms ease, background-color 140ms ease;
}

.control {
  height: 42px;
  padding: 0 12px;
}

.control:focus,
.codebox:focus {
  border-color: #486f96;
  background: #0c141c;
}

.control::placeholder,
.codebox::placeholder {
  color: #566675;
}

.control:disabled {
  color: #9aa9b5;
  opacity: 1;
}

.field {
  min-width: 0;
}

.field > label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: #bdc9d3;
  font-size: 12px;
  font-weight: 600;
}

.field > label span {
  color: var(--faint);
  font-weight: 400;
}

.check-control {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.check-control input {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--blue);
  color-scheme: light;
}

.form-error {
  margin: 0 0 14px;
  border-left: 2px solid var(--red);
  padding: 4px 0 4px 11px;
  color: #ff9ca4;
  font-size: 11px;
  line-height: 1.5;
}

/* Login */
.login-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  width: 100%;
  min-height: 100svh;
  animation: shell-enter 240ms ease-out both;
}

.login-rail {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #081016;
  padding: 28px 28px 25px;
}

.login-workflows {
  margin-top: 130px;
}

.login-workflows p {
  margin: 0 0 14px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 700;
}

.login-workflows div {
  padding: 13px 0;
  border-bottom: 1px solid rgba(38, 49, 61, 0.72);
  color: #8999a7;
  font-size: 12px;
}

.login-workflows div span {
  float: right;
  color: #4e5e6c;
  font: 10px "Cascadia Code", monospace;
}

.login-rail-foot {
  margin: auto 0 0;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.65;
}

.login-main {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  background:
    linear-gradient(90deg, rgba(34, 51, 68, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(34, 51, 68, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #0b131b, #080d12 70%);
  background-size: 54px 54px, 54px 54px, auto;
}

.login-main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(13, 22, 31, 0.05), rgba(8, 13, 18, 0.86) 76%);
}

.private-access {
  position: absolute;
  z-index: 1;
  top: 30px;
  right: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 10px;
}

.login-panel {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100% - 40px));
  transform: translateY(-12px);
  animation: panel-enter 360ms 80ms ease-out both;
}

.login-head {
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
}

.login-head h1 {
  margin-bottom: 7px;
}

.login-head p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.login-form {
  padding-top: 25px;
}

.password-wrap {
  position: relative;
}

.password-wrap .control {
  height: 46px;
  padding-right: 64px;
  font-family: "Cascadia Code", monospace;
}

.show-password {
  position: absolute;
  top: 5px;
  right: 5px;
  height: 36px;
  border-left: 1px solid var(--line);
  padding: 0 10px;
  font-size: 11px;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 13px 0 22px;
  color: var(--muted);
  font-size: 11px;
}

.security-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.security-notes strong {
  display: block;
  color: #b9c5cf;
  font-size: 10px;
}

.security-notes span {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.45;
}

/* Authenticated workspace */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  width: 100%;
  height: 100svh;
  background:
    linear-gradient(135deg, rgba(28, 43, 58, 0.36), transparent 42%),
    linear-gradient(180deg, #0b1016, var(--bg));
  animation: shell-enter 220ms ease-out both;
}

.sidebar {
  display: flex;
  min-height: 0;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(8, 14, 19, 0.95);
  padding: 28px 20px 22px;
}

.sidebar-brand {
  padding: 0 8px 25px;
}

.nav-label {
  margin: 4px 8px 10px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 700;
}

.side-nav {
  display: grid;
  gap: 4px;
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0 10px;
  color: var(--muted);
  text-align: left;
  transition: background-color 140ms ease, color 140ms ease;
}

.nav-button:hover {
  background: rgba(21, 30, 39, 0.55);
  color: #d4dee6;
}

.nav-button.active {
  background: var(--surface-2);
  box-shadow: inset 2px 0 var(--blue);
  color: var(--text);
}

.nav-button small {
  color: var(--faint);
  font: 10px "Cascadia Code", monospace;
}

.side-bottom {
  margin-top: auto;
  padding: 18px 8px 0;
  border-top: 1px solid var(--line);
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  color: var(--muted);
  font-size: 11px;
}

.service-row span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.service-row strong {
  overflow: hidden;
  color: #c8d3dc;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-button {
  width: 100%;
  height: 34px;
  margin-top: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--faint);
  font-size: 10px;
}

.logout-button:hover {
  border-color: var(--line-strong);
  color: var(--muted);
}

.main-area {
  min-width: 0;
  overflow: auto;
  padding: 31px 38px 36px;
}

.workflow-view {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.workflow-view.active {
  animation: view-enter 180ms ease-out both;
}

.main-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
}

.main-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.head-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 410px);
  gap: 34px;
  margin-top: 28px;
}

.workflow-form {
  min-width: 0;
}

.form-section {
  padding: 0 0 25px;
}

.form-section + .form-section {
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.form-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.form-title > span {
  color: var(--faint);
  font-size: 11px;
  text-align: right;
}

.auth-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  padding: 10px 12px;
}

.auth-row strong,
.auth-row small {
  display: block;
}

.auth-row strong {
  font-size: 12px;
}

.auth-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 17px;
}

.info-note {
  margin: 14px 0 0;
  border-left: 2px solid var(--line-strong);
  padding: 2px 0 2px 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.submit-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 3px;
}

.submit-button {
  width: min(245px, 100%);
}

.submit-row > span {
  color: var(--faint);
  font-size: 11px;
}

.inspector,
.promo-results {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.inspector-head,
.activity-head,
.result-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inspector-head {
  margin-bottom: 16px;
}

.state-text {
  color: var(--green);
  font-size: 11px;
}

.state-text.error {
  color: var(--red);
}

.state-text.working {
  color: var(--amber);
}

.summary-list {
  border-top: 1px solid var(--line);
}

.summary-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.summary-row span {
  color: var(--muted);
  font-size: 11px;
}

.summary-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

.result-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 10px;
  margin-top: 16px;
}

.activity-block {
  margin-top: 27px;
}

.activity-head {
  margin-bottom: 12px;
}

.activity-head span {
  color: var(--faint);
  font-size: 11px;
}

.log-view {
  min-height: 230px;
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #070c11;
  padding: 14px;
  color: #9fb0be;
  font: 11px/1.75 "Cascadia Code", monospace;
}

.log-view p {
  margin: 0;
  overflow-wrap: anywhere;
}

.log-view p + p {
  margin-top: 3px;
}

.log-view .positive {
  color: var(--green);
}

.log-view .negative {
  color: var(--red);
}

.log-view .caution {
  color: var(--amber);
}

.log-time,
.log-empty {
  color: var(--faint);
}

.result-button {
  margin-top: 16px;
}

.codebox {
  min-height: 154px;
  padding: 12px;
  resize: vertical;
  font-size: 12px;
  line-height: 1.65;
}

.price-check {
  margin-top: 15px;
}

.promo-layout {
  grid-template-columns: minmax(390px, 480px) minmax(0, 1fr);
}

.result-strip {
  margin-bottom: 15px;
}

.counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}

.counts b {
  margin-right: 3px;
  color: var(--text);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.promo-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  table-layout: fixed;
}

.promo-table th,
.promo-table td {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promo-table th {
  color: var(--faint);
  font-size: 10px;
  font-weight: 600;
}

.promo-table td {
  color: #c8d3dc;
  font-size: 11px;
}

.promo-table th:nth-child(1) { width: 28%; }
.promo-table th:nth-child(2) { width: 11%; }
.promo-table th:nth-child(3) { width: 17%; }
.promo-table th:nth-child(4) { width: 18%; }
.promo-table th:nth-child(5) { width: 26%; }

.empty-cell {
  height: 130px;
  color: var(--faint) !important;
  text-align: center !important;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 4px;
  padding: 0 7px;
  font-size: 9px;
  font-weight: 700;
}

.tag.good {
  background: rgba(53, 200, 138, 0.13);
  color: var(--green);
}

.tag.warn {
  background: rgba(233, 184, 78, 0.13);
  color: var(--amber);
}

.tag.bad {
  background: rgba(240, 109, 118, 0.13);
  color: var(--red);
}

.promo-log {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 23px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 10px "Cascadia Code", monospace;
}

/* Dialogs */
.modal {
  width: min(620px, calc(100% - 32px));
  max-height: min(760px, calc(100svh - 32px));
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #0b1219;
  padding: 0;
  color: var(--text);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.modal::backdrop {
  background: rgba(3, 7, 10, 0.76);
  backdrop-filter: blur(5px);
}

.modal[open] {
  animation: modal-enter 160ms ease-out both;
}

.modal-body {
  margin: 0;
  padding: 24px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.modal-close {
  min-height: 32px;
  padding: 0 4px;
  font-size: 11px;
}

.modal-copy {
  margin: 17px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.auth-options {
  border-top: 1px solid var(--line);
}

.choice-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.choice-row input {
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.choice-row strong,
.choice-row small {
  display: block;
}

.choice-row strong {
  font-size: 12px;
}

.choice-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.temporary-auth-fields {
  padding-top: 18px;
}

.temporary-auth-fields .codebox {
  min-height: 118px;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.modal-action-spacer {
  flex: 1;
}

.history-modal {
  width: min(720px, calc(100% - 32px));
}

.history-list {
  margin-top: 16px;
}

.history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.history-row strong,
.history-row span {
  display: block;
}

.history-row strong {
  font-size: 12px;
}

.history-row span,
.empty-state {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.history-row button {
  min-width: 76px;
}

.toast {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100% - 48px));
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #111b24;
  padding: 11px 14px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
  color: #dce5ec;
  font-size: 11px;
  animation: toast-enter 160ms ease-out both;
}

@keyframes shell-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes panel-enter {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(-12px); }
}

@keyframes view-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modal-enter {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes status-pulse {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

@media (max-width: 980px) {
  .workspace-layout,
  .promo-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .inspector,
  .promo-results {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 26px;
    padding-left: 0;
  }
}

@media (max-width: 760px) {
  body {
    overflow: auto;
  }

  .login-shell,
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 100svh;
  }

  .login-rail {
    min-height: 82px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px;
  }

  .login-workflows,
  .login-rail-foot {
    display: none;
  }

  .login-main {
    min-height: calc(100svh - 82px);
    place-items: start center;
    padding: 76px 20px 42px;
  }

  .login-panel {
    width: 100%;
    max-width: 420px;
    transform: none;
  }

  .private-access {
    top: 27px;
    right: 20px;
  }

  .sidebar {
    position: sticky;
    z-index: 8;
    top: 0;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 15px 20px 13px;
    backdrop-filter: blur(12px);
  }

  .sidebar-brand {
    padding: 0 0 12px;
  }

  .sidebar-brand span,
  .nav-label {
    display: none;
  }

  .side-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .nav-button {
    justify-content: center;
    min-width: 0;
    height: 38px;
    padding: 0 5px;
    font-size: 11px;
    text-align: center;
  }

  .nav-button.active {
    box-shadow: inset 0 -2px var(--blue);
  }

  .nav-button small {
    display: none;
  }

  .side-bottom {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
    padding: 9px 0 0;
  }

  .service-row {
    min-width: 0;
    padding: 0;
    font-size: 9px;
  }

  .service-row span {
    gap: 5px;
  }

  .service-row strong {
    font-size: 9px;
  }

  .logout-button {
    position: absolute;
    top: 14px;
    right: 20px;
    width: auto;
    height: 28px;
    margin: 0;
    padding: 0 9px;
  }

  .sidebar-brand strong {
    padding-right: 72px;
    font-size: 16px;
  }

  .main-area {
    overflow: visible;
    padding: 24px 20px 38px;
  }

  .main-head {
    flex-direction: column;
    gap: 16px;
  }

  .head-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .head-actions .secondary {
    flex: 1 1 130px;
  }

  .workspace-layout {
    margin-top: 24px;
  }

  .modal-body {
    padding: 20px;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 22px;
  }

  .login-options,
  .submit-row,
  .promo-log {
    align-items: flex-start;
    flex-direction: column;
  }

  .security-notes,
  .grid-two,
  .result-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .submit-button {
    width: 100%;
  }

  .form-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .form-title > span {
    text-align: left;
  }

  .auth-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-row .secondary {
    width: 100%;
  }

  .summary-row {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .modal-actions {
    flex-wrap: wrap;
  }

  .modal-action-spacer {
    display: none;
  }

  .modal-actions > button {
    flex: 1 1 120px;
  }
}

@media (max-width: 390px) {
  .sidebar {
    padding-right: 16px;
    padding-left: 16px;
  }

  .main-area,
  .login-main {
    padding-right: 20px;
    padding-left: 20px;
  }

  .service-row span i {
    display: none;
  }

  .service-row strong {
    max-width: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
