:root {
  color-scheme: dark;
  --text: #edf2fb;
  --muted: #7088a7;
  --border: #232c3b;
  --panel: #111825;
  --mono: 'Cascadia Code', 'SFMono-Regular', Consolas, monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #090d12;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
:focus-visible {
  outline: 2px solid #9d97ff;
  outline-offset: 4px;
}
::selection {
  background: #484394;
  color: white;
}
html {
  scrollbar-color: #293346 #090d12;
  scrollbar-width: thin;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 30;
  padding: 12px;
  background: #6861f2;
  color: white;
  border-radius: 6px;
}
.skip-link:focus {
  top: 12px;
}
.auth-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-shell {
  width: min(100%, 460px);
}
.auth-card {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 18px 60px #0006;
}
.auth-card--wide {
  width: min(100%, 520px);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--text);
  font-size: 18px;
}
.auth-card h1 {
  margin: 0 0 8px;
  font-size: 25px;
}
.auth-subtitle {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 13px;
}
.auth-form {
  display: grid;
  gap: 16px;
}
.register-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.register-form > .entry-field:nth-child(1),
.register-form > .entry-field:nth-child(2),
.register-form > .register-form-hint,
.register-form > .auth-submit {
  grid-column: 1 / -1;
}
.register-form-hint {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.suppliers-page .page-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.suppliers-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
}
.suppliers-toolbar label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.suppliers-toolbar input {
  width: min(100%, 380px);
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font: 14px Arial, Helvetica, sans-serif;
}
.suppliers-toolbar input:focus {
  border-color: #817aff;
}
.suppliers-count {
  margin-left: auto;
  color: var(--muted);
  font: 11px var(--mono);
  white-space: nowrap;
}
.suppliers-table-wrap {
  overflow-x: auto;
}
.suppliers-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: left;
}
.suppliers-table th,
.suppliers-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.suppliers-table thead th {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.suppliers-table tbody th {
  color: var(--text);
  font-weight: 600;
}
.suppliers-table tbody tr:last-child > * {
  border-bottom: 0;
}
.suppliers-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.suppliers-action-buttons form {
  margin: 0;
}
.suppliers-action-buttons .entry-button {
  width: auto;
  min-height: 32px;
  margin: 0;
  padding: 6px 10px;
}
.suppliers-delete {
  border-color: #733b4b;
  background: #321c25;
  color: #ffb5c2;
}
.suppliers-empty td,
.suppliers-no-records td {
  padding: 24px 16px;
  color: var(--muted);
  text-align: center;
}
.pix-subscription-page {
  display: grid;
  min-height: calc(100vh - 80px);
  place-items: center;
  padding: 24px 12px;
}
.pix-subscription-card {
  width: min(100%, 560px);
  padding: clamp(20px, 5vw, 36px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 18px 60px #0005;
}
.pix-subscription-card h1 {
  margin: 0 0 12px;
  font-size: clamp(21px, 4vw, 28px);
}
.pix-subscription-card > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.pix-subscription-card .pix-subscription-value {
  color: var(--text);
  font: 600 22px var(--mono);
}
.pix-subscription-value span {
  color: var(--muted);
  font: 12px Arial, Helvetica, sans-serif;
}
.pix-subscription-qr {
  display: block;
  width: min(100%, 260px);
  aspect-ratio: 1;
  margin: 18px auto;
  background: white;
}
.pix-subscription-card label {
  display: block;
  margin: 18px 0 7px;
  color: var(--text);
  font-size: 12px;
}
.pix-subscription-card textarea {
  width: 100%;
  resize: vertical;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #090d12;
  color: var(--text);
  font: 11px var(--mono);
  overflow-wrap: anywhere;
}
.pix-subscription-card .pix-subscription-note {
  margin: 12px 0 20px;
  font-size: 11px;
}
.auth-form .entry-field input,
.auth-form .entry-field select {
  margin-top: 7px;
}
.password-input-wrap {
  position: relative;
  margin-top: 7px;
}
.auth-form .entry-field .password-input-wrap input {
  margin-top: 0;
  padding-right: 46px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.password-toggle:hover {
  color: var(--text);
}
.password-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.auth-submit {
  width: 100%;
  margin-top: 6px;
}
.auth-switch {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.auth-switch a {
  color: #a5b4fc;
}
.nav-logout {
  width: calc(100% - 32px);
  margin: 0 16px 20px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}
.nav-logout:hover {
  color: var(--text);
  border-color: #6366f1;
}
.nav-support {
  display: block;
  text-decoration: none;
}
.support-page {
  width: min(100%, 760px);
  margin: 0 auto;
}
.support-card {
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}
.support-card .page-heading {
  margin-bottom: 24px;
}
.support-card .page-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}
.support-form textarea,
.support-form select {
  width: 100%;
  margin-top: 7px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #090d12;
  color: var(--text);
  font: inherit;
}
.support-form textarea {
  min-height: 160px;
  resize: vertical;
}
.support-form .entry-field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
.support-form .auth-submit {
  width: 100%;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.profile-card {
  padding: 22px;
}
.profile-card h2 {
  margin: 0 0 18px;
  font-size: 14px;
}
.profile-card .auth-form {
  gap: 13px;
}
.profile-plan {
  color: #a5b4fc;
  font: 600 30px var(--mono);
}
.profile-details {
  color: var(--muted);
  font-size: 12px;
}
.profile-details dt {
  margin-top: 16px;
}
.profile-details dd {
  margin: 5px 0 0;
  color: var(--text);
}
@media (max-width: 700px) {
  .auth-card {
    padding: 26px 20px;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .suppliers-page .entry-page-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .suppliers-page .entry-page-heading > .entry-button {
    width: 100%;
  }
  .suppliers-toolbar {
    flex-wrap: wrap;
  }
  .suppliers-toolbar input {
    width: 100%;
  }
  .suppliers-count {
    margin-left: 0;
  }
  .register-form {
    grid-template-columns: 1fr;
  }
  .register-form > .entry-field,
  .register-form > .register-form-hint,
  .register-form > .auth-submit {
    grid-column: 1;
  }
}
