* {
  box-sizing: border-box;
}
body {
  min-height: 100svh;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.7;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #92b7ff;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: -1.35px;
  font-weight: 650;
}
h2 {
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.45px;
  font-weight: 650;
}
h3 {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 650;
}
strong {
  font-weight: 600;
}
code,
pre {
  font-family: "SFMono-Regular", Consolas, monospace;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-definitions {
  width: 0;
  height: 0;
  position: absolute;
  overflow: hidden;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 16px;
}
[hidden] {
  display: none !important;
}
.auth-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(480px, 1.08fr);
  min-height: 100svh;
}
.brand-panel {
  background: #eef3f9;
  padding: 48px 58px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-right: 1px solid #e4eaf2;
}
.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  align-self: flex-start;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.5px;
  color: var(--ink);
  line-height: 1;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  object-fit: contain;
}
.brand-story {
  margin: auto 0;
  padding: 62px 0 44px;
  position: relative;
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.8px;
  color: var(--muted);
}
.brand-story > .eyebrow {
  color: #537093;
  margin-bottom: 24px;
}
.brand-story h2 {
  font-size: clamp(32px, 3.05vw, 49px);
  line-height: 1.17;
  letter-spacing: -1.8px;
  font-weight: 600;
}
.brand-story h2 span {
  color: #657a97;
}
.brand-description {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.8;
  color: #63758b;
}
.workspace-context {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #dce4ef;
  padding-top: 22px;
  font-size: 11px;
  color: #718198;
}
.workspace-context strong {
  display: block;
  color: #41556e;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.context-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px #dfece9;
}
.workspace-art {
  height: 244px;
  position: relative;
  margin: 12px -15px 0;
  max-width: 430px;
}
.art-orbit {
  position: absolute;
  border: 1px solid #d7e0ed;
  border-radius: 50%;
  width: 235px;
  height: 235px;
  left: 70px;
  top: 12px;
}
.art-orbit--two {
  width: 170px;
  height: 170px;
  left: 103px;
  top: 44px;
}
.art-line {
  height: 1px;
  background: #c7d5e7;
  position: absolute;
  transform-origin: left center;
}
.art-line--one {
  width: 130px;
  left: 85px;
  top: 80px;
  transform: rotate(23deg);
}
.art-line--two {
  width: 145px;
  left: 195px;
  top: 121px;
  transform: rotate(-32deg);
}
.art-line--three {
  width: 105px;
  left: 190px;
  top: 123px;
  transform: rotate(86deg);
}
.art-node {
  position: absolute;
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid #dfe7f1;
  box-shadow: 0 5px 16px #19385807;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 550;
  color: #42566e;
  padding: 12px 16px;
}
.art-node > .icon {
  width: 16px;
  height: 16px;
  color: #4270be;
}
.art-node--projects {
  left: 0;
  top: 48px;
  transform: rotate(-4deg);
}
.art-node--projects i {
  width: 5px;
  height: 5px;
  background: #7aafa1;
  border-radius: 50%;
  margin-left: 8px;
}
.art-node--team {
  right: 4px;
  top: 32px;
  transform: rotate(5deg);
}
.art-node--team .icon {
  color: #3e8c81;
}
.art-node--center {
  background: #245bcf;
  color: white;
  left: 171px;
  top: 92px;
  padding: 15px;
  border: 5px solid #e3ebf9;
  border-radius: 17px;
  box-shadow: 0 6px 24px #235bd51a;
}
.art-node--center .icon {
  color: #fff;
  width: 23px;
  height: 23px;
}
.art-note {
  position: absolute;
  left: 76px;
  top: 171px;
  background: #fff;
  border: 1px solid #e0e7f0;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px 23px;
  box-shadow: 0 7px 20px #19385806;
  transform: rotate(-3deg);
  min-width: 225px;
}
.art-note strong {
  font-size: 12px;
  line-height: 1.5;
  display: block;
}
.art-note div > span {
  font-size: 9px;
  color: #7a8aa0;
  display: block;
  margin-top: 6px;
}
.art-note-icon {
  padding: 7px;
  display: flex;
  border-radius: 8px;
  background: #eaf4f0;
  color: #3e8c81;
}
.art-note-icon .icon {
  width: 18px;
  height: 18px;
}
.art-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #a6bbd7;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #eef3f9;
}
.art-dot--one {
  top: 142px;
  left: 70px;
}
.art-dot--two {
  top: 177px;
  left: 294px;
}
.auth-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
}
.mobile-brand {
  display: none;
}
.auth-form-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 56px 56px;
  min-width: 0;
}
.auth-card {
  width: 100%;
  max-width: 400px;
}
.form-eyebrow {
  color: #6e83a0;
  margin-bottom: 16px;
}
.subtitle {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin-top: 13px;
  max-width: 440px;
}
.auth-form {
  margin-top: 30px;
}
.form-fields {
  display: grid;
  gap: 22px;
}
.field {
  min-width: 0;
}
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.field-label label {
  font-size: 12px;
  font-weight: 650;
  color: #31425a;
}
.field-label > a {
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
}
.optional {
  font-size: 10px;
  font-weight: 400;
  color: #6c7b90;
  margin-left: 8px;
}
.input-wrap {
  position: relative;
}
input:not([type="hidden"], [type="checkbox"]),
textarea,
select {
  width: 100%;
  border: 1px solid #d5deea;
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
  color: var(--ink);
  min-height: 48px;
  outline: none;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
input::placeholder,
textarea::placeholder {
  color: #a0aabb;
  font-weight: 400;
}
input:hover,
select:hover {
  border-color: #b3c2d8;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #6e99ef;
  box-shadow: 0 0 0 3px #edf3ff;
}
input[aria-invalid="true"] {
  border-color: #cd656b;
  background: #fffdfd;
}
.input-wrap--password input {
  padding-right: 49px;
}
.password-toggle {
  position: absolute;
  right: 7px;
  top: 5px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  color: #8290a3;
  border-radius: 6px;
}
.password-toggle:hover {
  background: #f0f4fa;
  color: var(--ink);
}
.password-toggle[aria-pressed="true"] {
  color: var(--blue);
}
.password-toggle .icon {
  width: 18px;
  height: 18px;
}
.help-text {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
}
.help-text ul {
  margin: 0;
  padding-left: 16px;
}
.field-error {
  font-size: 12px;
  line-height: 1.55;
  color: var(--danger);
  margin-top: 7px;
}
.field--checkbox {
  display: grid;
  grid-template-columns: 19px 1fr;
  column-gap: 10px;
  align-items: start;
}
.field--checkbox .input-wrap {
  grid-row: 1;
  grid-column: 1;
}
.field--checkbox .field-label {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}
.field--checkbox .field-description {
  grid-column: 2;
}
.field--checkbox .help-text {
  margin-top: 3px;
}
.field--checkbox input {
  margin: 4px 0 0;
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}
.field--checkbox .optional {
  display: none;
}
.form-fields--signup {
  grid-template-columns: 1fr 1fr;
  gap: 20px 14px;
}
.form-fields--signup > .field:first-child {
  grid-column: 1/-1;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 43px;
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 17px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition:
    background 0.15s,
    box-shadow 0.15s;
  white-space: normal;
  text-align: center;
}
.button:hover {
  text-decoration: none;
}
.button .icon {
  width: 16px;
  height: 16px;
}
.button--primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 2px 4px #235bd516;
}
.button--primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 4px 12px #235bd524;
}
.button--secondary {
  background: #fff;
  color: #43546c;
  border-color: #dce3ed;
}
.button--secondary:hover {
  background: #f6f8fb;
}
.button--danger {
  background: #b5323c;
  color: white;
}
.button--danger:hover {
  background: #982630;
}
.button--subtle {
  background: transparent;
  color: #596c84;
  border-color: transparent;
}
.button--subtle:hover {
  background: #f0f4fa;
}
.button--text-danger {
  background: none;
  color: var(--danger);
  padding: 6px 8px;
  min-height: 34px;
}
.button--text-danger:hover {
  background: #fff0f0;
}
.button--small {
  min-height: 34px;
  font-size: 11px;
  padding: 7px 11px;
}
.button--full {
  width: 100%;
  min-height: 48px;
  margin-top: 24px;
}
.button--full > .icon {
  margin-left: auto;
}
.button--full {
  padding-left: 18px;
}
.auth-card > a.button--full {
  margin-top: 26px;
}
.auth-card > a.button--secondary {
  margin-top: 12px;
}
.button-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.htmx-request .button[type="submit"] .icon {
  display: none;
}
.htmx-request .button[type="submit"]:after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.form-footer {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 28px;
  line-height: 1.8;
}
.form-footer a {
  font-weight: 600;
}
.auth-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 44px 28px;
  color: var(--muted);
  font-size: 10px;
}
.auth-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.auth-footer .icon {
  width: 12px;
  height: 12px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #6d7d92;
  margin-bottom: 34px;
}
.back-link > .icon {
  width: 15px;
  height: 15px;
}
.state-icon {
  width: 54px;
  height: 54px;
  border: 1px solid #dbe6fc;
  border-radius: 16px;
  background: #f0f5ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}
.state-icon .icon {
  width: 25px;
  height: 25px;
}
.state-icon--warning {
  color: #b47b29;
  background: #fff8ed;
  border-color: #f3e3c8;
}
.identity-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f4f7fb;
  border: 1px solid #e6ecf4;
  border-radius: 7px;
  padding: 7px 11px;
  margin-top: 18px;
  font-size: 11px;
  color: #586a82;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.identity-chip .icon {
  width: 14px;
  height: 14px;
}
.auth-card--verify input[name="code"] {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 21px;
  letter-spacing: 8px;
  text-align: center;
}
.auth-card--verify input[name="code"][maxlength="64"] {
  font-size: 14px;
  letter-spacing: 1px;
  text-align: left;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #d8e8df;
  background: #f0f8f3;
  border-radius: 9px;
  padding: 13px 15px;
  color: #3a6851;
  font-size: 12px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.notice .icon {
  width: 17px;
  height: 17px;
  margin-top: 1px;
}
.notice p + p {
  margin-top: 5px;
}
.notice--error {
  background: #fff5f5;
  border-color: #f0d6d7;
  color: #a63d44;
}
.notice--info {
  background: #f2f6fc;
  border-color: #dfe8f6;
  color: #586d8a;
}
.notice--warning {
  background: #fffaef;
  border-color: #f0e5c9;
  color: #8e6c2d;
}
.notice a {
  color: inherit;
  text-decoration: underline;
}
.next-steps {
  margin: 26px 0 18px;
  background: #f7f9fc;
  border: 1px solid #e7ecf4;
  border-radius: 10px;
  padding: 18px;
}
.mini-heading {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: #7f8ca0;
}
.next-steps ol {
  list-style: none;
  margin: 15px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.next-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #5c6d85;
}
.next-steps li > span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  border: 1px solid #dae4f4;
  color: #6480a7;
  background: white;
  border-radius: 50%;
  font-size: 10px;
}
.fine-print {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 18px;
}
/* Account pages share the same typography and controls, with room for management tasks. */
.account-body {
  background: #f7f9fc;
}
.account-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.account-header-inner {
  max-width: 1176px;
  margin: auto;
  min-height: 80px;
  padding: 20px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.account-header .brand {
  align-self: auto;
}
.workspace-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #718198;
  font-size: 12px;
}
.workspace-link > .icon {
  width: 16px;
  height: 16px;
}
.account-layout {
  max-width: 1176px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 42px;
  padding: 42px 36px 60px;
}
.account-sidebar {
  padding-top: 7px;
}
.account-sidebar > .mini-heading {
  padding: 0 12px;
  margin-bottom: 13px;
}
.account-nav {
  display: grid;
  gap: 5px;
}
.account-nav > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #6c7c92;
}
.account-nav > a .icon {
  width: 17px;
  height: 17px;
}
.account-nav > a:hover {
  background: #edf2f9;
  text-decoration: none;
}
.account-nav > a[aria-current="page"] {
  background: #eaf0fc;
  color: var(--blue);
  font-weight: 600;
}
.account-identity {
  margin: 30px 12px 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #8491a4;
  overflow-wrap: anywhere;
}
.account-identity strong {
  display: block;
  color: #53657e;
  margin: 4px 0 12px;
}
.account-identity a {
  font-size: 11px;
  color: #78879a;
}
.account-content {
  min-width: 0;
}
.account-content h1 {
  font-size: 29px;
  letter-spacing: -0.9px;
}
.account-title {
  margin-bottom: 30px;
}
.account-title .subtitle {
  margin-top: 8px;
  font-size: 12px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}
.panel-body {
  padding: 26px;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 26px;
}
.panel-header h2 {
  font-size: 15px;
  letter-spacing: -0.2px;
}
.panel-header p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  max-width: 450px;
}
.panel-leading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.panel-leading > .state-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex-shrink: 0;
  margin: 0;
  background: #f7f9fc;
  border-color: var(--line);
  color: #7286a2;
}
.panel-leading > .state-icon .icon {
  width: 19px;
  height: 19px;
}
.panel-action-row {
  padding: 17px 26px;
  border-top: 1px solid #edf0f6;
  background: #fcfdff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.panel-action-row p {
  font-size: 11px;
  color: var(--muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 550;
  border-radius: 20px;
  padding: 3px 9px;
  white-space: nowrap;
  background: #f0f3f8;
  color: #718198;
  border: 1px solid #e5eaf2;
}
.badge--success {
  background: #edf7f1;
  color: #468166;
  border-color: #d8ecdf;
}
.badge--success:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6aa486;
}
.badge--warning {
  background: #fff7e9;
  border-color: #f5e7cc;
  color: #a38046;
}
.badge--blue {
  background: #eef3fe;
  color: #6384bc;
  border-color: #dfe8fa;
}
.settings-form {
  max-width: 430px;
  margin-top: 26px;
}
.settings-form .form-fields {
  gap: 20px;
}
.settings-form .button-row .button {
  min-height: 44px;
}
.settings-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.settings-heading .back-link {
  margin: 0;
}
.setup-steps {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  color: #8d9bb0;
  font-size: 11px;
  flex-wrap: wrap;
}
.setup-steps li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.setup-steps span {
  width: 22px;
  height: 22px;
  border: 1px solid #dce4ee;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  background: #fff;
}
.setup-steps li.active {
  color: var(--blue);
  font-weight: 600;
}
.setup-steps li.active span {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.setup-steps li.complete {
  color: #4b8e71;
}
.qr-layout {
  display: grid;
  grid-template-columns: 184px 1fr;
  gap: 26px;
  align-items: start;
  padding: 22px;
  background: #f8fafd;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 22px;
}
.qr-layout > img {
  width: 184px;
  height: 184px;
  border: 1px solid #e1e7ef;
  border-radius: 9px;
  background: white;
}
.qr-instructions {
  font-size: 12px;
  color: #718198;
}
.qr-instructions h3 {
  color: #324964;
  font-size: 13px;
  margin: 0 0 9px;
}
.qr-instructions p {
  margin-bottom: 14px;
}
.qr-instructions details {
  font-size: 11px;
}
.qr-instructions summary {
  color: var(--blue);
  cursor: pointer;
}
.secret-code {
  display: block;
  margin: 10px 0;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.recovery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: #f7f9fc;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 22px;
  list-style: none;
}
.recovery-grid code {
  display: block;
  padding: 8px 10px;
  background: white;
  border: 1px solid #e6ebf2;
  border-radius: 6px;
  text-align: center;
  color: #4b6280;
  font-size: 12px;
}
.tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.tabs a {
  padding: 0 0 12px;
  font-size: 12px;
  color: #8290a3;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs a[aria-current="page"] {
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 600;
}
.tabs a:hover {
  text-decoration: none;
  color: var(--blue);
}
.access-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 0 0 18px;
}
.access-toolbar h2 {
  font-size: 16px;
}
.access-toolbar p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.create-invite summary {
  display: inline-flex;
  list-style: none;
}
.create-invite summary::-webkit-details-marker {
  display: none;
}
.create-invite[open] > summary {
  margin-bottom: 18px;
}
.create-invite .panel {
  margin-top: 0;
}
.invite-form .form-fields {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.invite-form .field:first-child,
.invite-form .field--checkbox {
  grid-column: 1/-1;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 11px;
  text-align: left;
}
th {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--muted);
  background: #fafbfd;
  font-weight: 600;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 17px 18px;
  border-bottom: 1px solid #edf1f6;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
td strong {
  display: block;
  font-size: 12px;
  color: #3e526f;
}
td small {
  font-size: 10px;
  color: #92a0b2;
}
td .button-row {
  margin: 0;
  gap: 4px;
}
.empty-state {
  padding: 42px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.empty-state > .state-icon {
  margin: 0 auto 18px;
  width: 47px;
  height: 47px;
  background: #f6f8fc;
  border-color: var(--line);
  color: #8496b1;
}
.empty-state h3 {
  color: #4d607a;
  font-size: 14px;
}
.empty-state p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
}
.secret-panel {
  padding: 24px;
  border: 1px solid #c8dfd0;
  background: #f5fbf6;
  border-radius: 11px;
  margin-bottom: 24px;
}
.secret-panel h2 {
  font-size: 15px;
  margin-bottom: 7px;
}
.secret-panel p {
  font-size: 12px;
  color: #668373;
}
.secret-value {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.secret-value code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
  font-size: 12px;
  background: white;
  border: 1px solid #dce8df;
  border-radius: 7px;
  padding: 12px;
  color: #436050;
}
.section-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 20px;
  line-height: 1.75;
}
.confirm-dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  max-width: 430px;
  width: calc(100% - 32px);
  color: var(--ink);
  box-shadow: 0 30px 90px #122b4930;
}
.confirm-dialog::backdrop {
  background: #14263d55;
  backdrop-filter: blur(3px);
}
.confirm-dialog h2 {
  font-size: 21px;
}
.confirm-dialog p {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.confirm-dialog .button-row {
  justify-content: flex-end;
}
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: 9px;
  font-size: 12px;
  z-index: 100;
  box-shadow: 0 5px 25px #14263d25;
}
@media (min-width: 1600px) {
  .brand-panel {
    padding-left: max(58px, calc((100vw - 1450px) / 2));
    padding-right: 72px;
  }
  .auth-form-area {
    padding-right: max(56px, calc((100vw - 1500px) / 2));
  }
  .workspace-art {
    margin-top: 30px;
  }
}
@media (max-width: 1100px) {
  .brand-panel {
    padding: 36px;
  }
  .brand-story h2 {
    font-size: 36px;
  }
  .brand-story {
    padding-top: 45px;
  }
  .auth-form-area {
    padding: 60px 38px;
  }
  .workspace-art {
    transform: scale(0.88);
    transform-origin: left center;
    width: 360px;
    margin-bottom: -20px;
  }
  .account-layout {
    gap: 26px;
    grid-template-columns: 190px minmax(0, 1fr);
  }
}
@media (max-width: 820px) {
  .auth-layout {
    grid-template-columns: 1fr;
    min-height: 100svh;
  }
  .brand-panel {
    display: none;
  }
  .mobile-brand {
    display: block;
    padding: 28px 28px 0;
  }
  .mobile-brand .brand {
    font-size: 17px;
  }
  .mobile-brand img {
    width: 30px;
    height: 30px;
  }
  .auth-form-area {
    padding: 50px 28px;
    align-items: center;
    min-height: calc(100svh - 150px);
  }
  .auth-footer {
    padding: 0 28px 24px;
  }
  .auth-card {
    max-width: 400px;
  }
  h1 {
    font-size: 33px;
  }
  .account-header-inner {
    padding: 20px 24px;
    min-height: 72px;
  }
  .account-header .brand {
    font-size: 16px;
  }
  .account-header .brand img {
    width: 28px;
    height: 28px;
  }
  .account-layout {
    display: block;
    padding: 0 24px 40px;
  }
  .account-sidebar {
    padding: 18px 0 0;
  }
  .account-sidebar > .mini-heading,
  .account-identity {
    display: none;
  }
  .account-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
  }
  .account-nav > a {
    white-space: nowrap;
    padding: 9px 12px;
  }
  .account-content h1 {
    font-size: 27px;
  }
  .account-title {
    margin-bottom: 24px;
  }
  .qr-layout {
    grid-template-columns: 160px 1fr;
    gap: 20px;
  }
  .qr-layout > img {
    width: 160px;
    height: 160px;
  }
}
@media (max-width: 480px) {
  .auth-form-area {
    padding: 44px 24px 32px;
    align-items: flex-start;
    min-height: calc(100svh - 145px);
  }
  .mobile-brand {
    padding: 25px 24px 0;
  }
  .auth-card .back-link {
    margin-bottom: 26px;
  }
  .auth-footer {
    padding: 22px 24px;
    flex-wrap: wrap;
    font-size: 9px;
  }
  .form-fields--signup {
    grid-template-columns: 1fr;
  }
  .form-fields--signup > .field:first-child {
    grid-column: auto;
  }
  .form-eyebrow {
    margin-top: 16px;
  }
  h1 {
    font-size: 31px;
  }
  .subtitle {
    font-size: 13px;
  }
  .account-header-inner {
    padding: 20px;
  }
  .workspace-link {
    font-size: 0;
    gap: 0;
  }
  .workspace-link .icon {
    width: 20px;
    height: 20px;
  }
  .account-layout {
    padding: 0 16px 32px;
  }
  .account-nav > a {
    font-size: 11px;
  }
  .panel-header,
  .panel-body {
    padding: 20px;
  }
  .panel-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
  }
  .panel-leading {
    gap: 12px;
  }
  .panel-header > .button {
    margin-left: 52px;
  }
  .panel-action-row {
    padding: 16px 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .qr-layout {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .qr-layout > img {
    justify-self: center;
    width: 180px;
    height: 180px;
  }
  .qr-instructions {
    padding-top: 8px;
  }
  .recovery-grid {
    padding: 12px;
    gap: 8px;
  }
  .recovery-grid code {
    font-size: 10px;
    padding: 8px 5px;
  }
  .invite-form .form-fields {
    grid-template-columns: 1fr;
  }
  .invite-form .field:first-child,
  .invite-form .field--checkbox {
    grid-column: auto;
  }
  .secret-value {
    align-items: flex-start;
    flex-direction: column;
  }
  .secret-value code {
    width: 100%;
  }
  .settings-form .button-row {
    align-items: stretch;
  }
  .settings-form .button-row > .button {
    flex: 1;
  }
  .setup-steps {
    gap: 13px;
    font-size: 10px;
  }
  .access-toolbar {
    align-items: flex-start;
  }
  .confirm-dialog {
    padding: 24px;
  }
  .confirm-dialog .button-row > .button {
    flex: 1;
  }
  .table-wrap {
    margin: 0;
  }
  .section-note {
    padding: 0 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  input:not([type="hidden"], [type="checkbox"]),
  textarea,
  select {
    font-size: 16px;
  }
  .field-label label {
    font-size: 13px;
  }
  .button--full {
    font-size: 13px;
  }
}

.account-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.mobile-signout {
  display: none;
}
@media (max-width: 820px) {
  .mobile-signout {
    display: block;
    color: var(--muted);
    font-size: 11px;
  }
}
@media (max-width: 600px) {
  .table-wrap {
    border: 0;
    background: transparent;
    overflow: visible;
  }
  .table-wrap table,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td {
    display: block;
    white-space: normal;
  }
  .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .table-wrap tr {
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
  }
  .table-wrap td {
    border: 0;
    padding: 5px 0;
  }
  .table-wrap td:first-child {
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid #edf1f6;
  }
  .table-wrap td:first-child strong {
    font-size: 13px;
    overflow-wrap: anywhere;
  }
  .table-wrap td[data-label] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .table-wrap td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
  }
  .table-wrap td:last-child {
    padding-top: 12px;
  }
  .table-wrap td:last-child > form,
  .table-wrap td:last-child .button-row {
    display: flex;
    justify-content: flex-end;
  }
}

.notice--spaced {
  margin-top: 22px;
  margin-bottom: 0;
}
.button-row--flush {
  margin: 0;
}
.settings-form--wide {
  max-width: none;
}
.section-spaced {
  margin-top: 20px;
}
.panel-action-row .text-warning {
  color: #956c27;
}

/* HTMX owns the request lifecycle and restores controls on failed requests. */
.htmx-request .button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.workspace-list { display: grid; gap: 12px; margin: 28px 0; }
.workspace-choice { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid #dce3ef; border-radius: 14px; text-decoration: none; color: #17243e; transition: border-color .15s, background .15s; }
.workspace-choice:hover { border-color: #235bd5; background: #f4f7ff; }
.workspace-choice:focus-visible { outline: 3px solid #235bd5; outline-offset: 3px; }
.workspace-choice > span:nth-child(2) { flex: 1; min-width: 0; }
.workspace-choice strong, .workspace-choice small { display: block; overflow-wrap: anywhere; }
.workspace-choice small { color: #64748b; margin-top: 4px; font-size: 13px; }
.workspace-choice > svg { width: 20px; height: 20px; flex: none; }
.workspace-choice-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #eaf0ff; color: #235bd5; flex: none; }
.workspace-choice-icon svg { width: 22px; height: 22px; }
.empty-workspaces { padding: 20px; background: #f4f7ff; border-radius: 14px; line-height: 1.6; }
