:root {
  color-scheme: light;
  --bg: #edf1f5;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --text: #17212b;
  --muted: #6b7785;
  --muted-strong: #435060;
  --line: #dfe6ed;
  --line-strong: #c9d3df;
  --brand: #376b9b;
  --brand-strong: #285579;
  --brand-soft: #edf4f9;
  --brand-line: #cbdce9;
  --accent: #2d8a68;
  --warning: #a85b00;
  --danger: #b42318;
  --topbar-bg: #ffffff;
  --control-bg: #ffffff;
  --panel-hover: #fbfdff;
  --nav-hover: #f6f9fb;
  --nav-active: #e9f1f6;
  --menu-active: #edf4f8;
  --tab-bg: #f1f5f8;
  --tab-active-bg: #ffffff;
  --tab-active-border: #cbd8e2;
  --tab-active-text: #285579;
  --tab-active-shadow: 0 1px 3px rgb(31 48 65 / 10%), 0 4px 12px rgb(31 48 65 / 5%);
  --table-head: #fbfcfe;
  --code-bg: #eef2f6;
  --code-text: #344256;
  --badge-bg: #eef2f6;
  --success-bg: #edfaf4;
  --success-line: #bfe6d5;
  --success-text: #1f6f51;
  --danger-bg: #fff1ef;
  --danger-line: #ffd0ca;
  --warning-bg: #fff7e8;
  --warning-line: #f8d79b;
  --control-height: 40px;
  --control-height-sm: 32px;
  --control-radius: 8px;
  --control-font-size: 14px;
  --motion-fast: 150ms;
  --motion-base: 220ms;
  --kind-requirement-bg: #eaf2ff;
  --kind-requirement-text: #235ca8;
  --kind-task-bg: #edf7f2;
  --kind-task-text: #257255;
  --kind-bug-bg: #fff0ef;
  --kind-bug-text: #a83c34;
  --radius: 8px;
  --card-radius: 16px;
  --shadow: 0 16px 40px rgb(24 39 58 / 10%);
  --card-shadow: 0 10px 26px rgb(22 34 50 / 7%), 0 2px 8px rgb(22 34 50 / 4%);
  --card-shadow-hover: 0 16px 34px rgb(22 34 50 / 10%), 0 4px 12px rgb(22 34 50 / 5%);
  --topbar-height: 58px;
  --topbar-control-height: 34px;
  --topbar-control-inner-height: 28px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1723;
  --panel: #151f2d;
  --panel-soft: #101826;
  --text: #e6edf5;
  --muted: #91a1b4;
  --muted-strong: #c1ccda;
  --line: #293548;
  --line-strong: #3a485d;
  --brand: #78a7cf;
  --brand-strong: #a9c8e2;
  --brand-soft: #1c3244;
  --brand-line: #36556f;
  --accent: #5ad09a;
  --warning: #f1b45f;
  --danger: #ff8078;
  --topbar-bg: #121b28;
  --control-bg: #101826;
  --panel-hover: #1b2736;
  --nav-hover: #1a2635;
  --nav-active: #203546;
  --menu-active: #20394d;
  --tab-bg: #111c29;
  --tab-active-bg: #223343;
  --tab-active-border: #3b5267;
  --tab-active-text: #b8d1e5;
  --tab-active-shadow: 0 1px 3px rgb(0 0 0 / 28%), 0 5px 14px rgb(0 0 0 / 16%);
  --table-head: #121b28;
  --code-bg: #1e2a3a;
  --code-text: #cad7e6;
  --badge-bg: #1e2a3a;
  --success-bg: #123325;
  --success-line: #27664c;
  --success-text: #7ee2ad;
  --danger-bg: #3a1f22;
  --danger-line: #713238;
  --warning-bg: #342612;
  --warning-line: #715423;
  --kind-requirement-bg: #173353;
  --kind-requirement-text: #9cc5ff;
  --kind-task-bg: #123325;
  --kind-task-text: #7ee2ad;
  --kind-bug-bg: #3a1f22;
  --kind-bug-text: #ffaaa4;
  --shadow: 0 18px 48px rgb(0 0 0 / 36%);
  --card-shadow: 0 14px 34px rgb(0 0 0 / 24%), 0 2px 8px rgb(0 0 0 / 18%);
  --card-shadow-hover: 0 18px 42px rgb(0 0 0 / 32%), 0 4px 12px rgb(0 0 0 / 22%);
  --scrollbar-size: 12px;
  --scrollbar-thumb-border: 2px;
}

* {
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.auth-body {
  scrollbar-width: auto;
  -ms-overflow-style: auto;
}

.auth-body::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
  display: block;
}

.auth-body::-webkit-scrollbar-track {
  background: transparent;
}

.auth-body::-webkit-scrollbar-thumb {
  border: var(--scrollbar-thumb-border) solid transparent;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 58%, transparent);
  background-clip: padding-box;
}

.auth-body::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--muted-strong) 74%, transparent);
  background-clip: padding-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

body[data-page-transition] .auth-shell {
  animation: page-enter 170ms ease backwards;
}

@media (prefers-reduced-motion: reduce) {
body[data-page-transition] .auth-shell {
    animation: none;
    opacity: 1;
    transform: none;
  }

}

input,
select,
textarea {
  font: inherit;
}

input {
  outline: none;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  box-shadow: 0 0 0 3px var(--brand-line), 0 0 0 1px var(--brand);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  object-fit: contain;
  box-shadow: 0 6px 14px rgb(31 95 191 / 18%);
}

.env-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 700;
}

@supports (overflow: overlay) {
.auth-body {
    overflow-y: overlay;
  }

}

.btn {
  height: var(--control-height);
  min-height: var(--control-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--control-radius);
  background: var(--control-bg);
  color: var(--muted-strong);
  text-decoration: none;
  cursor: pointer;
  font-size: var(--control-font-size);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: border-color var(--motion-fast) ease, background-color var(--motion-fast) ease, color var(--motion-fast) ease;
}

.btn:hover {
  background: var(--panel-soft);
  color: var(--text);
}

.btn:disabled,
.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-strong);
  color: #fff;
}

.btn-secondary {
  background: var(--control-bg);
}

.btn-block {
  width: 100%;
}

.auth-body {
  --auth-page: #d8e0ea;
  --auth-page-deep: #cdd7e3;
  --auth-ink: #111b2c;
  --auth-ink-2: #17263c;
  --auth-ink-3: #20324b;
  --auth-ink-line: #30445f;
  --auth-ink-soft: #9fb0c6;
  --auth-ink-text: #f7fbff;
  --auth-blue: #2d6ccb;
  --auth-blue-soft: #dceaff;
  --auth-green: #3eb489;
  --auth-green-soft: #dff7ec;
  --auth-yellow: #f0b34d;
  overflow: auto;
  min-height: 100vh;
  position: relative;
  background: var(--auth-page);
}

.auth-body::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  width: min(47vw, 720px);
  border-right: 1px solid #21324a;
  background: var(--auth-ink);
  z-index: 0;
  pointer-events: none;
}

.auth-body::after {
  content: "";
  position: fixed;
  left: 36px;
  top: 36px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--auth-blue);
  box-shadow:
    32px 0 0 var(--auth-green),
    64px 0 0 rgb(255 255 255 / 34%),
    0 32px 0 rgb(255 255 255 / 18%),
    32px 32px 0 rgb(255 255 255 / 10%),
    64px 32px 0 var(--auth-yellow);
  z-index: 0;
  pointer-events: none;
}

.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
}

.auth-panel {
  position: relative;
  width: min(1120px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: minmax(520px, 1.08fr) minmax(420px, 0.92fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgb(20 32 48 / 16%);
  border-radius: 34px;
  background: #f6f9fd;
  box-shadow: 0 30px 80px rgb(25 38 58 / 22%), 0 4px 18px rgb(25 38 58 / 10%);
}

.auth-panel-wide {
  width: min(1160px, calc(100vw - 48px));
  grid-template-columns: minmax(500px, 1fr) minmax(480px, 1fr);
}

.auth-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow: hidden;
  padding: 42px 46px;
  border-right: 1px solid rgb(20 32 48 / 10%);
  background: var(--auth-ink);
  color: var(--auth-ink-text);
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 28px;
  pointer-events: none;
}

.auth-hero::after {
  content: "";
  position: absolute;
  right: 46px;
  bottom: 42px;
  width: 120px;
  height: 120px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 34px;
  box-shadow:
    -34px -24px 0 rgb(255 255 255 / 4%),
    -68px 30px 0 rgb(45 108 203 / 18%);
  pointer-events: none;
}

.form-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 16px;
  text-transform: uppercase;
}

.auth-visual {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.auth-hero .auth-brand {
  position: relative;
  z-index: 1;
}

.auth-hero .auth-brand strong {
  color: #fff;
}

.auth-hero .auth-brand span {
  color: var(--auth-ink-soft);
}

.auth-hero .brand-mark {
  box-shadow: 0 14px 28px rgb(0 0 0 / 24%);
}

.visual-shell {
  position: relative;
  width: min(466px, 100%);
  overflow: hidden;
  border: 1px solid var(--auth-ink-line);
  border-radius: 34px;
  background: #0d1727;
  box-shadow: 0 28px 70px rgb(0 0 0 / 34%), 0 0 0 8px rgb(255 255 255 / 3%);
}

.visual-shell::before,
.setup-console::before {
  position: absolute;
  inset: 16px;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 26px;
  content: "";
  pointer-events: none;
}

.visual-toolbar {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--auth-ink-line);
  background: var(--auth-ink-2);
  z-index: 1;
}

.visual-window-bar {
  display: flex;
  gap: 6px;
}

.visual-window-bar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgb(255 255 255 / 24%);
}

.visual-window-bar span:first-child {
  background: var(--auth-blue);
}

.visual-window-bar span:nth-child(2) {
  background: var(--auth-green);
}

.visual-window-bar span:nth-child(3) {
  background: var(--auth-yellow);
}

.visual-search-pill {
  min-width: 0;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 999px;
  background: rgb(255 255 255 / 6%);
}

.visual-search-pill i {
  width: 8px;
  height: 8px;
  border: 2px solid rgb(255 255 255 / 46%);
  border-radius: 999px;
}

.visual-search-pill span {
  width: 70%;
  height: 7px;
  border-radius: 999px;
  background: rgb(255 255 255 / 20%);
}

.visual-user-chip {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--auth-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.visual-command-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  padding: 12px 14px 0;
}

.visual-command-row span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 999px;
  background: rgb(255 255 255 / 5%);
  color: var(--auth-ink-soft);
  font-size: 11px;
  font-weight: 800;
}

.visual-workspace-grid {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  z-index: 1;
}

.visual-side-rail {
  display: grid;
  gap: 10px;
  align-content: start;
  justify-items: center;
  padding: 12px 0;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 22px;
  background: rgb(255 255 255 / 5%);
}

.visual-side-rail span {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 10%);
}

.visual-workspace-main {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.visual-project-card {
  min-width: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 22px;
  background: var(--auth-ink-2);
}

.visual-project-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: rgb(45 108 203 / 20%);
  color: #dfeaff;
  font-size: 14px;
  font-weight: 900;
}

.visual-project-card strong,
.visual-project-card span {
  display: block;
}

.visual-project-card strong {
  color: #fff;
  font-size: 14px;
  line-height: 20px;
}

.visual-project-card span {
  color: var(--auth-ink-soft);
  font-size: 12px;
  line-height: 18px;
}

.visual-project-card em {
  min-width: 48px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(62 180 137 / 44%);
  border-radius: 999px;
  background: rgb(62 180 137 / 16%);
  color: #9df0c8;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.visual-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.visual-metrics span {
  min-height: 54px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 18px;
  background: rgb(255 255 255 / 5%);
}

.visual-metrics b,
.visual-metrics i {
  display: block;
  border-radius: 999px;
}

.visual-metrics b {
  width: 34px;
  height: 10px;
  background: #f7fbff;
}

.visual-metrics i {
  width: 78%;
  height: 7px;
  background: rgb(255 255 255 / 18%);
}

.visual-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.visual-column {
  min-height: 154px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 20px;
  background: rgb(255 255 255 / 5%);
}

.visual-column strong {
  color: #e9f1ff;
  font-size: 12px;
}

.visual-line,
.visual-ticket {
  display: block;
  min-height: 9px;
  border-radius: 999px;
}

.visual-line {
  background: rgb(255 255 255 / 14%);
}

.visual-line-lg {
  width: 100%;
}

.visual-line-md {
  width: 78%;
}

.visual-line-sm {
  width: 58%;
}

.visual-ticket {
  min-height: 56px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 9px;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 16px;
  background: rgb(255 255 255 / 6%);
}

.visual-ticket i,
.visual-ticket b,
.visual-ticket em {
  display: block;
  border-radius: 999px;
  background: rgb(255 255 255 / 20%);
}

.visual-ticket i {
  width: 22px;
  height: 7px;
}

.visual-ticket b {
  width: 86%;
  height: 8px;
}

.visual-ticket em {
  width: 48%;
  height: 7px;
}

.visual-ticket-accent {
  border-color: rgb(45 108 203 / 60%);
  background: rgb(45 108 203 / 20%);
}

.visual-ticket-dark {
  border-color: var(--auth-blue);
  background: var(--auth-blue);
  box-shadow: 0 16px 28px rgb(45 108 203 / 30%);
}

.visual-ticket-dark i,
.visual-ticket-dark b,
.visual-ticket-dark em {
  background: rgb(255 255 255 / 70%);
}

.visual-ticket-soft {
  border-color: rgb(62 180 137 / 58%);
  background: rgb(62 180 137 / 17%);
}

.visual-timeline {
  display: grid;
  grid-template-columns: 1fr 0.75fr 1.15fr 0.55fr;
  gap: 7px;
  min-height: 36px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 18px;
  background: rgb(255 255 255 / 5%);
}

.visual-timeline span {
  height: 8px;
  border-radius: 999px;
  background: rgb(255 255 255 / 13%);
}

.visual-timeline span:nth-child(2),
.visual-timeline span:nth-child(4) {
  background: var(--auth-blue);
}

.visual-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.visual-insight-grid span {
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 9px;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 17px;
  background: rgb(255 255 255 / 5%);
}

.visual-insight-grid b,
.visual-insight-grid i {
  display: block;
  border-radius: 999px;
}

.visual-insight-grid b {
  width: 38%;
  height: 8px;
  background: var(--auth-green);
}

.visual-insight-grid i {
  width: 78%;
  height: 7px;
  background: rgb(255 255 255 / 18%);
}

.auth-visual-setup {
  display: flex;
  align-items: center;
  justify-content: center;
}

.setup-console {
  position: relative;
  width: min(440px, 100%);
  overflow: hidden;
  border: 1px solid var(--auth-ink-line);
  border-radius: 34px;
  background: #0d1727;
  box-shadow: 0 28px 70px rgb(0 0 0 / 34%), 0 0 0 8px rgb(255 255 255 / 3%);
}

.setup-console-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--auth-ink-line);
  background: var(--auth-ink-2);
}

.setup-console-head div {
  display: flex;
  gap: 7px;
}

.setup-console-head span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgb(255 255 255 / 24%);
}

.setup-console-head span:first-child {
  background: var(--auth-blue);
}

.setup-console-head span:nth-child(2) {
  background: var(--auth-green);
}

.setup-console-head span:nth-child(3) {
  background: var(--auth-yellow);
}

.setup-console-head em {
  color: var(--auth-ink-soft);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.setup-dashboard {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(136px, 0.72fr);
  gap: 12px;
  padding: 16px;
  z-index: 2;
}

.setup-dashboard::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgb(255 255 255 / 6%);
  border-radius: 24px;
  pointer-events: none;
}

.setup-owner-card,
.setup-resource-list,
.setup-check-panel,
.setup-permission-panel {
  position: relative;
  z-index: 1;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 22px;
  background: rgb(255 255 255 / 5%);
}

.setup-owner-card {
  min-height: 124px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 16px;
  background: var(--auth-ink-2);
  box-shadow: 0 22px 46px rgb(0 0 0 / 28%), 0 0 0 7px rgb(45 108 203 / 8%);
  grid-column: 1 / -1;
}

.setup-owner-card i {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--auth-blue);
  box-shadow: 0 14px 28px rgb(45 108 203 / 35%);
}

.setup-owner-card strong,
.setup-owner-card span {
  display: block;
}

.setup-owner-card strong {
  color: #fff;
  font-size: 18px;
  line-height: 24px;
}

.setup-owner-card span {
  color: var(--auth-ink-soft);
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
}

.setup-owner-card em {
  justify-self: start;
  grid-column: 2;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgb(62 180 137 / 46%);
  border-radius: 999px;
  background: rgb(62 180 137 / 14%);
  color: #9df0c8;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.setup-resource-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  grid-row: span 2;
}

.setup-resource-list span {
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 9px;
  padding: 10px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 16px;
  background: rgb(255 255 255 / 5%);
}

.setup-resource-list i {
  width: 18px;
  height: 18px;
  border: 1px solid rgb(45 108 203 / 54%);
  border-radius: 7px;
  background: rgb(45 108 203 / 24%);
  grid-row: span 2;
}

.setup-resource-list strong,
.setup-resource-list em {
  display: block;
}

.setup-resource-list strong {
  color: #fff;
  font-size: 12px;
  line-height: 16px;
}

.setup-resource-list em {
  color: var(--auth-ink-soft);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 15px;
}

.setup-check-panel,
.setup-permission-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.setup-check-panel strong,
.setup-permission-panel strong {
  color: #fff;
  font-size: 12px;
  line-height: 16px;
}

.setup-check-panel span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 18px;
}

.setup-check-panel i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--auth-green);
}

.setup-check-panel b {
  height: 7px;
  border-radius: 999px;
  background: rgb(255 255 255 / 18%);
}

.setup-permission-panel div {
  display: grid;
  grid-template-columns: 0.8fr 1fr 0.62fr;
  gap: 7px;
  align-items: end;
  min-height: 76px;
}

.setup-permission-panel span {
  display: block;
  border-radius: 12px;
  background: var(--auth-blue);
}

.setup-permission-panel span:first-child {
  height: 42px;
  background: rgb(45 108 203 / 55%);
}

.setup-permission-panel span:nth-child(2) {
  height: 62px;
}

.setup-permission-panel span:nth-child(3) {
  height: 32px;
  background: rgb(62 180 137 / 55%);
}

.auth-brand strong,
.auth-brand span {
  display: block;
}

.auth-brand strong {
  font-size: 16px;
  line-height: 21px;
}

.auth-brand span {
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}

.auth-form {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 52px 48px;
  background: #f3f7fc;
}

.auth-form label {
  gap: 7px;
}

.auth-form input {
  min-height: 50px;
  padding: 0 15px;
  border-color: #c7d3e1;
  border-radius: 14px;
  background: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  word-spacing: normal;
  box-shadow: 0 1px 0 rgb(16 28 45 / 4%);
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.auth-form input:hover {
  border-color: #aebed0;
  background: #ffffff;
}

.auth-form input:focus {
  border-color: var(--brand);
  background: #ffffff;
}

.auth-form input:focus-visible {
  outline: 2px solid var(--brand-line);
  outline-offset: 2px;
  box-shadow: none;
}

.password-field {
  position: relative;
  display: block;
}

.auth-form .password-field input {
  width: 100%;
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: var(--brand-soft);
  color: var(--brand);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--brand-line);
  outline-offset: 1px;
}

.password-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-eye-off,
.password-toggle[aria-pressed="true"] .password-eye {
  display: none;
}

.password-toggle[aria-pressed="true"] .password-eye-off {
  display: block;
}

.auth-form .btn-primary {
  min-height: 52px;
  margin-top: 6px;
  border-radius: 15px;
  font-weight: 800;
  box-shadow: 0 15px 30px rgb(31 95 191 / 22%);
  transition: background 150ms ease, border-color 150ms ease;
}

.auth-form-footer {
  display: flex;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.auth-message {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 20px;
}

.auth-message-error {
  border: 1px solid var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger);
}

.device-authorization-summary {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  margin: auto 0;
}

.device-authorization-summary h1,
.device-authorization-summary p {
  margin: 0;
}

.device-authorization-summary h1 {
  font-size: 30px;
  line-height: 38px;
}

.device-authorization-summary p {
  max-width: 38ch;
  color: var(--auth-ink-soft);
  line-height: 24px;
}

.device-authorization-summary dl {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--auth-ink-line);
  border-radius: 8px;
  background: var(--auth-ink-line);
}

.device-authorization-summary dl div {
  display: grid;
  grid-template-columns: minmax(110px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  padding: 12px 14px;
  background: var(--auth-ink);
}

.device-authorization-summary dt {
  color: var(--auth-ink-soft);
}

.device-authorization-summary dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.device-authorization-form {
  align-content: center;
}

.device-authorization-code {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid #c7d3e1;
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
}

.device-authorization-code span {
  color: var(--muted);
  font-size: 13px;
}

.device-authorization-code strong {
  overflow-wrap: anywhere;
  font-size: 24px;
  letter-spacing: 0;
}

.device-authorization-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.device-authorization-actions form {
  display: contents;
}

.device-authorization-actions .btn {
  min-height: 52px;
}

.auth-form .device-authorization-actions .btn-primary {
  margin-top: 0;
}

.form-head h1 {
  margin: 0;
  font-size: 30px;
  line-height: 38px;
  letter-spacing: -0.03em;
}

.form-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: var(--control-height);
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--control-radius);
  background: var(--control-bg);
  color: var(--text);
  font-size: var(--control-font-size);
  line-height: 20px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

textarea {
  min-height: 96px;
  padding-top: 9px;
  padding-bottom: 9px;
  line-height: 20px;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--muted);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(31 95 191 / 13%);
}

select {
  appearance: none;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 11px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  cursor: pointer;
}

select:disabled {
  border-color: var(--line);
  background-color: var(--table-head);
  color: var(--muted);
  cursor: not-allowed;
}

select option {
  background: var(--panel);
  color: var(--text);
}

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

.wide-field {
  grid-column: 1 / -1;
}

.auth-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid rgb(20 32 48 / 10%);
  background: #eef4fb;
  color: var(--muted);
  font-size: 13px;
}

.text-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

.inline-result {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
}

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

.auth-body::before {
    display: none;
  }

.auth-body::after {
    display: none;
  }

.auth-shell {
    min-height: 100dvh;
    padding: 18px;
  }

.auth-panel,
.auth-panel-wide {
    width: 100%;
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

.auth-hero {
    min-height: auto;
    gap: 26px;
    padding: 28px;
    border-right: 0;
    border-bottom: 1px solid var(--auth-ink-line);
  }

.auth-form {
    padding: 28px;
  }

.visual-shell,
.setup-console {
    width: 100%;
  }

.visual-toolbar {
    padding: 10px;
  }

.visual-command-row {
    gap: 6px;
    padding: 10px 10px 0;
  }

.visual-command-row span {
    min-height: 24px;
    padding: 0 8px;
    font-size: 10px;
  }

.visual-search-pill,
.visual-user-chip {
    height: 26px;
  }

.visual-user-chip {
    width: 26px;
    font-size: 12px;
  }

.visual-workspace-grid {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
  }

.visual-side-rail {
    gap: 8px;
    padding: 10px 0;
    border-radius: 18px;
  }

.visual-side-rail span {
    width: 18px;
    height: 18px;
    border-radius: 7px;
  }

.visual-workspace-main {
    gap: 9px;
  }

.visual-project-card {
    min-height: 58px;
    gap: 8px;
    padding: 9px;
    border-radius: 18px;
  }

.visual-project-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
  }

.visual-project-card em {
    min-width: 42px;
    height: 26px;
  }

.visual-metrics {
    gap: 6px;
  }

.visual-metrics span {
    min-height: 42px;
    gap: 6px;
    padding: 7px;
    border-radius: 14px;
  }

.visual-board {
    gap: 6px;
  }

.visual-column {
    min-height: 132px;
    gap: 7px;
    padding: 8px;
    border-radius: 16px;
  }

.visual-ticket {
    min-height: 48px;
    gap: 6px;
    padding: 8px;
    border-radius: 14px;
  }

.visual-timeline {
    min-height: 30px;
  }

.visual-insight-grid {
    display: none;
  }

.setup-console-head {
    padding: 12px 14px;
  }

.setup-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
  }

.setup-owner-card,
.setup-resource-list {
    grid-column: 1 / -1;
  }

.setup-owner-card {
    min-height: 94px;
    padding: 12px;
  }

.setup-owner-card i {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

.setup-owner-card strong {
    font-size: 16px;
  }

.setup-resource-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
  }

.setup-resource-list span {
    grid-template-columns: 1fr;
    justify-items: start;
    row-gap: 4px;
    min-height: 76px;
    padding: 9px;
  }

.setup-resource-list i {
    grid-row: auto;
  }

.setup-check-panel,
.setup-permission-panel {
    padding: 10px;
  }

.auth-foot {
    align-items: flex-start;
    flex-direction: column;
  }

.field-grid {
    grid-template-columns: 1fr;
  }

}
