@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/auth/inter.woff2") format("woff2");
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--aurum-color-canvas);
  color: var(--aurum-color-text);
  font: var(--aurum-type-body);
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid var(--aurum-color-action);
  outline-offset: 3px;
}
button {
  min-height: 44px;
  border: 1px solid var(--aurum-color-control-border);
  border-radius: 8px;
  background: var(--aurum-color-surface);
  color: var(--aurum-color-text);
  padding: 10px 16px;
  font-weight: 500;
}
button:hover {
  filter: brightness(0.96);
}
.review {
  min-height: 86px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--aurum-color-divider);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: var(--aurum-color-surface);
}
.review strong {
  font-size: 13px;
}
.review strong span {
  margin-left: 6px;
  padding: 3px 7px;
  background: var(--aurum-color-subtle);
  border-radius: 5px;
  font-size: 11px;
}
.review small {
  display: block;
  color: var(--aurum-color-muted);
  font-size: 12px;
  margin-top: 5px;
}
.tools {
  display: flex;
  gap: 12px;
  align-items: end;
}
.tools label {
  display: grid;
  gap: 3px;
  font-size: 11px;
  color: var(--aurum-color-muted);
}
select {
  height: 36px;
  border: 1px solid var(--aurum-color-control-border);
  border-radius: 8px;
  padding: 0 28px 0 10px;
  background: var(--aurum-color-surface);
  color: var(--aurum-color-text);
  max-width: 210px;
}
.tools button {
  min-height: 36px;
  font-size: 12px;
}
main {
  display: grid;
  grid-template-columns: 43% 57%;
  min-height: calc(100vh - 126px);
}
.story {
  position: relative;
  background: #0b2e24;
  color: #e8eee9;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.wordmark,
.mobile-brand {
  font-size: 22px;
  letter-spacing: 0.13em;
  font-weight: 600;
}
.wordmark span,
.mobile-brand span {
  color: #c9a354;
  letter-spacing: 0;
  font-weight: 400;
  margin-left: 3px;
}
.story-content {
  max-width: 450px;
  margin: auto 0;
  padding: 45px 0 24px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #c9a354;
  margin: 0 0 24px;
}
.story h1 {
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0;
}
.story h1 em {
  font-style: normal;
  color: #afcfbd;
}
.intro {
  color: #adc3b6;
  line-height: 1.8;
  font-size: 14px;
  margin: 24px 0;
}
.story footer {
  color: #adc3b6;
  font-size: 11px;
}
.drawing {
  margin-top: 40px;
  max-width: 300px;
  padding: 20px 15px 0;
  border-top: 1px solid #426151;
}
.cabinet {
  border: 1px solid #708e76;
  height: 90px;
  display: flex;
  padding: 8px;
  gap: 8px;
  transform: skewY(-4deg);
}
.cabinet i {
  position: relative;
  flex: 1;
  border: 1px solid #708e76;
}
.cabinet i:after {
  content: "";
  position: absolute;
  right: 8px;
  top: 30px;
  width: 2px;
  height: 15px;
  background: #c9a354;
}
.measure {
  display: block;
  font-size: 8px;
  color: #adc3b6;
  letter-spacing: 0.18em;
  text-align: center;
  margin: 20px 0;
}
.workspace {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 40px 20px;
  position: relative;
}
.workspace article {
  width: 100%;
  max-width: 360px;
  margin: auto 0;
  padding: 24px 0 42px;
}
.workspace-footer {
  font-size: 11px;
  color: var(--aurum-color-muted);
  padding-top: 20px;
}
.workspace-footer span {
  margin: 0 10px;
}
.step {
  color: var(--aurum-color-muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--aurum-color-divider);
  border-radius: 12px;
  background: var(--aurum-color-surface);
  margin-bottom: 24px;
  color: var(--aurum-color-action);
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h2 {
  font-size: 30px;
  line-height: 36px;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 12px;
}
.lead {
  color: var(--aurum-color-muted);
  line-height: 1.6;
  margin: 0 0 30px;
}
form label.field {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 20px;
}
input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  height: 46px;
  border: 1px solid var(--aurum-color-control-border);
  border-radius: 8px;
  background: var(--aurum-color-surface);
  color: var(--aurum-color-text);
  padding: 12px;
  margin-top: 8px;
  font-size: 14px;
}
input::placeholder {
  color: var(--aurum-color-muted);
  opacity: 0.8;
}
.password {
  position: relative;
}
.password input {
  padding-right: 62px;
}
.password button {
  position: absolute;
  right: 3px;
  top: 3px;
  min-height: 40px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--aurum-color-muted);
  font-size: 11px;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.text-button {
  padding: 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--aurum-color-action);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 12px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  min-height: 44px;
  margin: 0 0 20px;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--aurum-color-action);
  margin: 0;
}
.primary {
  width: 100%;
  background: var(--aurum-color-action);
  border-color: var(--aurum-color-action);
  color: #fff;
  font-size: 13px;
}
.primary span {
  float: right;
}
.secondary {
  width: 100%;
  margin-top: 12px;
}
.hint {
  font-size: 12px;
  color: var(--aurum-color-muted);
  line-height: 1.6;
}
.separator {
  border-top: 1px solid var(--aurum-color-divider);
  padding-top: 24px;
  margin-top: 28px;
}
.center {
  text-align: center;
}
.notice {
  border: 1px solid var(--aurum-color-divider);
  background: var(--aurum-color-subtle);
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 22px;
}
.notice.error {
  border-color: #b77567;
  color: var(--aurum-color-text);
}
.otp {
  letter-spacing: 0.5em;
  text-align: center;
  font-size: 24px !important;
  font-variant-numeric: tabular-nums;
}
.setup-placeholder {
  border: 1px dashed var(--aurum-color-control-border);
  border-radius: 8px;
  text-align: center;
  padding: 24px;
  margin-bottom: 20px;
  color: var(--aurum-color-muted);
  font-size: 12px;
}
.setup-placeholder svg {
  width: 38px;
  height: 38px;
  display: block;
  margin: 0 auto 12px;
}
.review-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  font-size: 10px;
  color: var(--aurum-color-muted);
  border-top: 1px solid var(--aurum-color-divider);
}
.mobile-brand {
  display: none;
}
.compact main {
  display: block;
}
.compact .story {
  display: none;
}
.compact .workspace {
  min-height: calc(100vh - 126px);
}
.compact .mobile-brand {
  display: block;
  margin: 8px 0 28px;
}
.compact article {
  max-width: 420px;
  border: 1px solid var(--aurum-color-divider);
  border-radius: 12px;
  padding: 32px;
  background: var(--aurum-color-surface);
}
[data-aurum-theme="dark"] .primary {
  color: #10281c;
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.sample-list {
  margin: 20px 0;
  padding: 0;
  list-style: none;
}
.sample-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--aurum-color-divider);
  display: flex;
  justify-content: space-between;
}
.sample-list small {
  color: var(--aurum-color-muted);
}
@media (max-width: 800px) {
  .review {
    align-items: start;
    padding: 16px;
    flex-direction: column;
  }
  .tools {
    flex-wrap: wrap;
    width: 100%;
  }
  .tools label:first-child {
    flex: 1;
  }
  .tools select {
    max-width: 100%;
    width: 100%;
  }
  main {
    display: block;
  }
  .story {
    display: none;
  }
  .workspace {
    min-height: calc(100vh - 180px);
    padding: 32px 24px 20px;
  }
  .mobile-brand {
    display: block;
    font-size: 18px;
    margin-bottom: 32px;
  }
  .workspace article {
    padding-top: 16px;
  }
  .review-footer {
    flex-direction: column;
    padding: 12px 16px;
  }
  .compact article {
    padding: 24px;
  }
  input:not([type="checkbox"]) {
    font-size: 16px;
  }
  .workspace h2 {
    font-size: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

/* Approved invalid-field treatment; preserve field geometry and focus. */
:root {
  --auth-error: #9a4a3f;
  --auth-error-surface: #fff8f6;
}
:root[data-aurum-theme="dark"] {
  --auth-error: #e9a49a;
  --auth-error-surface: #302720;
}
input[aria-invalid="true"]:not([type="checkbox"]) {
  border: 2px solid var(--auth-error);
  padding: 11px;
  background: var(--auth-error-surface);
}
.password input[aria-invalid="true"]:not([type="checkbox"]) {
  padding-right: 61px;
}
.notice.field-error {
  color: var(--auth-error);
  border-color: var(--auth-error);
  background: var(--auth-error-surface);
  margin: 0 0 20px;
}
#feedback:empty {
  display: none;
}

.clean-layout main {
  min-height: 100vh;
}
.workspace-footer small {
  display: block;
  margin-top: 8px;
  font-size: 10px;
}
.clean-layout .workspace {
  min-height: 100vh;
}

.theme-control {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 12px;
}
.workspace {
  padding-top: 64px;
}
.setup-key {
  overflow-wrap: anywhere;
  user-select: all;
  font: 16px monospace;
  letter-spacing: 0.08em;
}
.workspace-data {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.workspace-data dt {
  color: var(--aurum-color-muted);
  margin-top: 16px;
}
.workspace-data dd {
  margin: 4px 0;
}
.field {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 20px;
}
.error-actions {
  display: flex;
  gap: 12px;
}
.setup-placeholder {
  text-align: left;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
h2:focus {
  outline: none;
}

/* Connected Company Profile, using the existing approved authentication tokens. */
.company-workspace{grid-template-columns:1fr}
.company-workspace .story{display:none}
.company-workspace .workspace{width:100%;min-height:100vh}
.company-workspace #card{max-width:880px;width:100%}
.company-profile{margin:2rem 0}
.company-profile h3{font-size:1.8rem;margin-bottom:.5rem}
.company-profile h4{font-size:1.2rem;margin-top:1.5rem}
.company-profile .location-card{border:1px solid currentColor;border-radius:12px;padding:1.25rem;margin:1.25rem 0;min-width:0}
.company-profile legend{padding:0 .5rem;font-weight:600}
.company-profile .address-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 1rem}
.company-profile .field{display:block}
.company-profile input{width:100%;box-sizing:border-box}
.company-profile .check input{width:auto}
.company-profile button{margin-top:.75rem}
@media(max-width:600px){.company-profile .address-grid{grid-template-columns:1fr}.company-profile .location-card{padding:.75rem}}

/* First connected team list uses the existing Company Settings visual tokens. */
.company-navigation{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1.5rem}
.company-navigation button{flex:1;width:auto}
.team-toolbar button{width:auto;min-width:140px}
.company-navigation button[aria-pressed="true"]{border-color:currentColor;font-weight:700}
.company-team{margin:2rem 0}
.company-team h3{font-size:1.8rem;margin-bottom:.5rem}
.team-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-top:1.5rem}
.team-toolbar .field{margin:0;min-width:150px}
.team-toolbar select{display:block;width:100%;margin-top:.5rem;padding:.65rem;border:1px solid var(--aurum-color-divider);border-radius:8px;background:var(--aurum-color-surface);color:inherit;font:inherit}
.team-table-wrap{overflow-x:auto}
.team-table{border-collapse:collapse;width:100%;font-size:.9rem;text-align:left}
.team-table caption{text-align:left;font-weight:600;padding:.5rem 0}
.team-table th,.team-table td{padding:1rem .5rem;border-bottom:1px solid var(--aurum-color-divider);overflow-wrap:anywhere}
.team-table th:first-child{width:50%}
.team-table thead th{font-size:.8rem;color:var(--aurum-color-muted)}
.member-status{font-size:.8rem;border:1px solid currentColor;border-radius:20px;padding:.2rem .5rem;white-space:nowrap}
.member-status.disabled{color:var(--aurum-color-muted)}
@media(max-width:600px){.company-navigation button{flex:1}.team-toolbar{align-items:stretch;flex-direction:column}.team-table th,.team-table td{padding:.75rem .25rem}.team-table th:first-child{width:40%}}

/* Connected member management, scoped to the new company settings frontend. */
.member-actions, .member-confirm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.member-actions button { width: auto; padding: 8px 12px; }
.member-confirmation { max-width: min(520px, calc(100vw - 32px)); box-sizing: border-box; padding: 28px; border: 1px solid var(--aurum-color-control-border); border-radius: 16px; background: var(--aurum-color-surface); color: var(--aurum-color-text); }
.member-confirmation::backdrop { background: rgba(0,0,0,.6); }
.member-confirmation h3 { margin: 0 0 16px; line-height: 1.25; overflow-wrap: anywhere; }
.member-confirmation p { line-height: 1.6; }
.member-confirm-actions { margin-top: 24px; }
.member-confirm-actions button { flex: 1; }

.team-table-managed { min-width: 580px; }

.company-invitations { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--aurum-color-divider); }
.company-invitations .field { display: block; }
.company-invitations select { display: block; width: 100%; margin-top: .5rem; padding: .65rem; border: 1px solid var(--aurum-color-divider); border-radius: 8px; background: var(--aurum-color-surface); color: inherit; font: inherit; }
.invitation-table { min-width: 720px; }
.invitation-table th:first-child { width: 26%; }

.permission-fields { margin: 1rem 0; padding: 0; border: 0; }
.permission-fields legend { font-weight: 600; margin-bottom: .75rem; }
.permission-choice { display: flex; gap: .75rem; align-items: flex-start; margin: 1rem 0; cursor: pointer; }
.permission-choice input { width: 1.2rem; height: 1.2rem; flex: 0 0 1.2rem; margin-top: .2rem; }
.permission-choice small { display: block; color: var(--aurum-color-muted); margin-top: .25rem; }
.permission-summary { padding-left: 1.25rem; line-height: 1.7; }
