/* Dedicated lightweight stylesheet for Login / Register / Password Reset pages */
:root {
  color-scheme: light;
  --canvas: #f6f8fb;
  --surface: #fff;
  --raised: #fff;
  --subtle: #fafbfc;
  --text: #172033;
  --body: #465361;
  --muted: #637083;
  --quiet: #929cad;
  --line: #e7ebf1;
  --control: #dfe4ec;
  --hover: #f3f6fa;
  --accent: #2ea356;
  --accent-hover: color-mix(in srgb, var(--accent) 82%, black);
  --accent-ink: color-mix(in srgb, var(--accent) 78%, black);
  --accent-bg: color-mix(in srgb, var(--accent) 10%, white);
  --accent-line: color-mix(in srgb, var(--accent) 24%, white);
  --chart-entry: var(--accent);
  --chart-lead: #3d78bd;
  --focus: color-mix(in srgb, var(--accent) 74%, white);
  --blue-bg: #eef4fc;
  --blue: #356ae6;
  --violet-bg: #f4f1fc;
  --violet: #7857d9;
  --teal-bg: #eaf7f1;
  --teal: #27b278;
  --success-bg: #edf9f3;
  --success-text: #1a7a50;
  --success-line: #bce8d2;
  --warn: #e8784b;
  --warn-bg: #fff8f2;
  --warn-text: #a1451d;
  --warn-line: #f6cfb9;
  --danger: #d84a57;
  --danger-bg: #fef2f3;
  --danger-text: #b22c38;
  --danger-line: #f5c3c8;
  --shadow: 0 12px 32px rgba(31, 43, 58, 0.055), 0 1px 2px rgba(31, 43, 58, 0.03);
  --pop-shadow: 0 18px 46px rgba(15, 23, 42, 0.14), 0 4px 14px rgba(15, 23, 42, 0.06);
  --control-radius: 10px;
  --dialog-radius: 18px;
  --focus-ring: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-shadow: color-mix(in srgb, var(--accent) 28%, transparent);
  --overlay-mask: rgba(31, 35, 41, 0.3);
  --sidebar: 240px;
  --font:
    Inter, 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei',
    sans-serif;
}
:root[data-accent='orange'] {
  --accent: #e99527;
}
:root[data-accent='green'] {
  --accent: #2ea356;
}
:root[data-accent='blue'] {
  --accent: #356ae6;
}
:root[data-accent='purple'] {
  --accent: #7857d9;
}
:root[data-accent='black'] {
  --accent: #1f2329;
  --accent-hover: #0f1216;
  --accent-ink: #172033;
}
:root[data-accent='red'] {
  --accent: #ec0011;
  --accent-hover: #c8000e;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --canvas: #0f1318;
  --surface: #161b22;
  --raised: #1d242e;
  --subtle: #1a2029;
  --text: #f0f4f8;
  --body: #cbd5e1;
  --muted: #8b98a9;
  --quiet: #6e7b8c;
  --line: #26303d;
  --control: #354152;
  --hover: #202834;
  --accent-hover: color-mix(in srgb, var(--accent) 84%, white);
  --accent-ink: color-mix(in srgb, var(--accent) 72%, white);
  --accent-bg: color-mix(in srgb, var(--accent) 16%, #161b22);
  --accent-line: color-mix(in srgb, var(--accent) 34%, #161b22);
  --chart-entry: var(--accent-ink);
  --chart-lead: #7ca7ec;
  --blue-bg: #1e2d45;
  --blue: #90b8f8;
  --violet-bg: #2c2444;
  --violet: #c4aef2;
  --teal-bg: #16332a;
  --teal: #73d6b1;
  --success-bg: #153125;
  --success-text: #8ce4b8;
  --success-line: #265941;
  --warn: #f59e0b;
  --warn-bg: #332512;
  --warn-text: #fcd38d;
  --warn-line: #66491c;
  --danger: #ef5360;
  --danger-bg: #36191c;
  --danger-text: #fca5ae;
  --danger-line: #6e2b32;
  --focus: color-mix(in srgb, var(--accent) 75%, white);
  --focus-ring: color-mix(in srgb, var(--accent) 22%, transparent);
  --overlay-mask: rgba(0, 0, 0, 0.56);
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  --pop-shadow: 0 18px 46px rgba(0, 0, 0, 0.5);
}
:root[data-theme='dark'][data-accent='black'] {
  --accent: #4b5563;
  --accent-hover: #64748b;
  --accent-ink: #e2e8f0;
}
:root[data-theme='mixed'] .sidebar {
  color-scheme: dark;
  --surface: #111512;
  --subtle: #191f1b;
  --text: #f4f7f5;
  --body: #c7d1ca;
  --muted: #8f9992;
  --line: #252b27;
  --hover: #1a211c;
  --accent-bg: color-mix(in srgb, var(--accent) 18%, #111512);
  --accent-ink: color-mix(in srgb, var(--accent) 72%, white);
  --accent-line: color-mix(in srgb, var(--accent) 32%, #111512);
}
::selection {
  background: color-mix(in srgb, var(--accent) 20%, white);
  color: var(--accent-ink);
}
:root[data-theme='dark'] ::selection {
  background: color-mix(in srgb, var(--accent) 34%, #161b22);
  color: #f8fafc;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  min-height: 100%;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--body);
  background: var(--canvas);
  font: 14px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
strong {
  color: var(--text);
}
h1 {
  font-size: 21px;
  line-height: 1.35;
  font-weight: 680;
}
h2 {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 650;
}
p {
  line-height: 1.7;
}
a {
  color: var(--accent-ink);
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 39px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  vertical-align: middle;
  font-weight: 620;
  line-height: 1.35;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 130ms ease;
}
button:hover,
.button:hover {
  background: var(--accent-hover);
  text-decoration: none;
}
.login-submit:hover {
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 26%, transparent);
  transform: translateY(-1px);
}
button:disabled {
  opacity: 0.49;
  cursor: default;
  box-shadow: none;
}
button .icon,
.button .icon {
  font-size: 16px;
}
.secondary {
  color: var(--body);
  border-color: var(--control);
  background: var(--surface);
}
.secondary:hover {
  background: var(--hover);
  border-color: var(--accent-line);
  color: var(--text);
  box-shadow: none;
}
.quiet,
.text-btn {
  background: transparent;
  color: var(--muted);
}
.quiet:hover,
.text-btn:hover {
  color: var(--text);
  background: var(--hover);
  box-shadow: none;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
[tabindex='-1']:focus:not(:focus-visible) {
  outline: none;
}
label {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  color: var(--body);
  font-size: 12.5px;
  font-weight: 620;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--control);
  border-radius: var(--control-radius);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
input:hover:not(:disabled):not(:focus),
textarea:hover:not(:disabled):not(:focus),
select:hover:not(:disabled):not(:focus) {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--control));
}
input::placeholder,
textarea::placeholder {
  color: var(--quiet);
}
textarea {
  min-height: 94px;
  padding: 10px 13px;
  resize: vertical;
  line-height: 1.55;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 34px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4.2 6.2 8 10l3.8-3.8' stroke='%23637083' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 14px 14px;
}
:root[data-theme='dark'] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4.2 6.2 8 10l3.8-3.8' stroke='%239aa6b8' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
:is(input, textarea, select):is(:autofill, :-webkit-autofill) {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px var(--surface) inset !important;
}
:is(input, textarea, select):is(:autofill, :-webkit-autofill):focus {
  box-shadow: 0 0 0 3px var(--focus-ring), 0 0 0 1000px var(--surface) inset !important;
}
input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 17px;
  min-width: 17px;
  height: 17px;
  min-height: 17px;
  padding: 0;
  margin: 0;
  border: 1.5px solid var(--control);
  border-radius: 5px;
  background-color: var(--surface);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
  cursor: pointer;
  vertical-align: middle;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
input[type='checkbox']:hover:not(:disabled) {
  border-color: var(--accent);
}
input[type='checkbox']:checked {
  border-color: var(--accent);
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.3 6.2 4.8 8.7 9.7 3.4' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
input[type='checkbox']:indeterminate {
  border-color: var(--accent);
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.6 6h6.8' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
input[type='checkbox']:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
input[type='checkbox']:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
input[type='color'] {
  width: 65px;
  padding: 3px;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
  min-width: 0;
}
legend {
  color: var(--muted);
  padding: 0 6px;
  font-weight: 600;
}
fieldset > label {
  margin-top: 10px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 20;
  padding: 8px 14px;
  background: var(--surface);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  z-index: 5;
  display: flex;
  flex-direction: column;
  padding: 0 14px 14px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.brand-row,
.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-row {
  flex: 0 0 82px;
  padding-left: 8px;
}
.brand-row > a,
.auth-top > a {
  display: inline-flex;
}
.brand-row a:hover,
.auth-top a:hover {
  text-decoration: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  line-height: 1;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.brand-name {
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text);
}
.brand-sub {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}
.studio-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  height: 42px;
  width: 42px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 82%, white) 0%, var(--accent) 56%, color-mix(in srgb, var(--accent) 72%, black) 100%);
  box-shadow: 0 6px 16px var(--accent-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  overflow: hidden;
}
.studio-mark svg {
  width: 42px;
  height: 42px;
  display: block;
}

/* Header tools, dropdowns & theme popover */
.header-tools,
.visit,
.account-menu summary {
  display: flex;
  align-items: center;
}
.header-tools {
  position: relative;
  gap: 8px;
  flex: none;
  margin-left: auto;
}
.drop {
  position: relative;
}
.drop > summary {
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
.visit,
.utility,
.interface-language > summary,
.account-menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-height: 36px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--body);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.visit:hover,
.utility:hover,
.interface-language > summary:hover,
.account-menu > summary:hover,
.drop[open] > summary {
  background: var(--hover);
  border-color: var(--control);
  color: var(--text);
}
.visit {
  gap: 6px;
  padding: 0 12px;
  white-space: nowrap;
}
.visit .icon {
  font-size: 15px;
  color: var(--muted);
  transition: color 140ms ease;
}
.visit:hover .icon {
  color: var(--accent-ink);
}
.utility {
  width: 36px;
  padding: 0;
  font-size: 16px;
}
.interface-language > summary {
  gap: 6px;
  padding: 0 10px 0 11px;
  white-space: nowrap;
}
.interface-language > summary > .icon:first-child {
  font-size: 15px;
  color: var(--muted);
}
.interface-language > summary > .i-down,
.account-menu > summary > .i-down {
  font-size: 12px;
  color: var(--muted);
  transition: transform 160ms ease;
}
.drop[open] > summary > .i-down {
  transform: rotate(180deg);
}
.account-menu > summary {
  max-width: 192px;
  gap: 8px;
  padding: 4px 10px 4px 5px;
}
.account-name {
  font-weight: 550;
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.avatar {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--accent-ink);
  background: var(--accent-bg);
  border: 1px solid var(--accent-line);
  font-size: 12.5px;
  font-weight: 650;
  flex: none;
}
.popover {
  position: absolute;
  z-index: 8;
  inset: calc(100% + 8px) 0 auto auto;
  width: max-content;
  min-width: 176px;
  max-width: min(310px, 88vw);
  padding: 8px;
  background: var(--raised);
  box-shadow: var(--pop-shadow);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.popover > strong,
.popover > small {
  display: block;
  padding: 2px 10px;
  overflow-wrap: anywhere;
}
.popover-title {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 10px 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.account-menu .popover {
  min-width: 212px;
}
.account-menu .popover > strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  padding-top: 4px;
}
.account-menu .popover > small {
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 4px;
}
.popover hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 7px 0;
}
.popover button,
.popover .popover-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  width: 100%;
  justify-content: flex-start;
  padding: 7px 10px;
  gap: 9px;
  font-size: 13px;
  font-weight: 450;
  text-align: left;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--body);
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.popover button + button,
.popover .popover-link + form {
  margin-top: 2px;
}
.popover button:hover,
.popover .popover-link:hover {
  background: var(--hover);
  color: var(--text);
}
.popover .i-check {
  visibility: hidden;
  margin-left: auto;
  color: var(--accent-ink);
}
.popover [aria-pressed='true'] {
  background: var(--accent-bg);
  border-color: var(--accent-line);
  color: var(--accent-ink);
  font-weight: 550;
}
.popover [aria-pressed='true']:hover {
  background: var(--accent-bg);
}
.popover [aria-pressed='true'] .i-check {
  visibility: visible;
}

/* Layout stack & interface language menu */
.stack {
  display: grid;
  gap: 16px;
  align-content: start;
}
.stack > button,
.stack > a {
  justify-self: start;
}
.stack > .login-submit {
  justify-self: stretch;
}
.stack > h2 {
  margin: 0;
}
.stack > p + form {
  margin: 0;
}
.interface-language .popover {
  min-width: 214px;
  padding: 8px;
  border-radius: 14px;
}
.interface-language .popover-title {
  padding: 4px 10px 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.interface-language .popover form {
  margin: 0;
}
.interface-language .popover form + form {
  margin-top: 3px;
}
.interface-language .popover form button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: left;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.interface-language .popover form button:hover {
  background: var(--hover);
  color: var(--text);
}
.interface-language .popover form button[aria-pressed='true'] {
  background: var(--accent-bg);
  border-color: var(--accent-line);
  color: var(--accent-ink);
}
.interface-language .popover form button[aria-pressed='true']:hover {
  background: var(--accent-bg);
}
.interface-language-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--subtle);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.interface-language .popover form button[aria-pressed='true'] .interface-language-badge {
  background: var(--raised);
  border-color: var(--accent-line);
  color: var(--accent-ink);
}
.interface-language-label {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.25;
}
.interface-language-label strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.interface-language-label small {
  font-size: 11px;
  font-weight: 450;
  color: var(--muted);
}
.interface-language .popover form button[aria-pressed='true'] .interface-language-label strong {
  color: var(--accent-ink);
}
.interface-language .popover form button .i-check {
  flex: none;
  color: var(--accent-ink);
  font-size: 14px;
}

/* Input icons & inline notices */
.input-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon > .icon {
  position: absolute;
  left: 12px;
  color: var(--quiet);
  font-size: 17px;
  pointer-events: none;
}
.input-icon input {
  padding-left: 37px;
}

.notice {
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  background: var(--accent-bg);
  color: var(--accent-ink);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.notice[data-job-error] {
  border-color: var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger-text);
}

/* Auth layouts: Set 1 (Orbit) & Set 2 (Obsidian) + forms */
.auth {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 100svh;
  padding: 88px 24px 52px;
  background-color: var(--canvas);
}
.auth-top {
  position: absolute;
  top: 22px;
  inset-inline: max(24px, 4vw);
}
.auth-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(1040px, 100%);
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 20px 56px rgba(15, 23, 42, 0.065), 0 2px 8px rgba(15, 23, 42, 0.03);
}
:root[data-theme='dark'] .auth-card {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.auth-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 44px 32px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 68%),
    var(--subtle);
}
.auth-orbit {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
}
.auth-orbit-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.auth-orbit-guide {
  stroke: color-mix(in srgb, var(--accent) 26%, var(--line));
  stroke-width: 1.25;
  stroke-dasharray: 3 9;
  transform-box: fill-box;
  transform-origin: center;
  animation: authGuideTurn 72s linear infinite;
}
.auth-orbit-guide.is-inner {
  animation-direction: reverse;
  animation-duration: 54s;
}
.auth-orbit-line {
  stroke: color-mix(in srgb, var(--accent) 22%, var(--line));
  stroke-width: 1.25;
}
.auth-orbit-pulse {
  stroke: var(--accent);
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-dasharray: 18 190;
  stroke-dashoffset: 208;
  opacity: 0.52;
  animation: authOrbitPulse 4.6s linear var(--pdelay, 0s) infinite;
}
.auth-orbit-hub,
.auth-orbit-node {
  position: absolute;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.075), 0 1px 3px rgba(15, 23, 42, 0.04);
}
.auth-orbit-hub {
  left: 50%;
  top: 50%;
  width: 106px;
  height: 106px;
  border-radius: 30px;
  box-shadow:
    0 0 0 14px color-mix(in srgb, var(--accent) 10%, transparent),
    0 14px 34px rgba(15, 23, 42, 0.09);
}
.auth-hub-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 21px;
  background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 78%, #0f172a));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 28%, transparent);
}
.auth-hub-mark svg {
  width: 52px;
  height: 52px;
}
.auth-hub-mark.has-custom-logo {
  background: var(--surface) !important;
  border: 1px solid var(--line);
  box-shadow: none;
  padding: 6px;
  overflow: hidden;
}
.auth-hub-mark.has-custom-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}
.auth-orbit-node {
  left: var(--x);
  top: var(--y);
  width: 64px;
  height: 64px;
  border-radius: 20px;
  cursor: default;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  animation: authOrbitFloat 6s ease-in-out var(--delay, 0s) infinite;
}
.auth-orbit-node:is(:hover, :focus-visible) {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.11);
  outline: none;
}
.auth-node-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
}
.auth-orbit-node.is-emerald .auth-node-ico {
  background: rgba(46, 163, 86, 0.11);
  color: #218846;
}
.auth-orbit-node.is-violet .auth-node-ico {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}
.auth-orbit-node.is-sky .auth-node-ico {
  background: rgba(14, 165, 233, 0.11);
  color: #0284c7;
}
.auth-orbit-node.is-amber .auth-node-ico {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}
.auth-orbit-node.is-blue .auth-node-ico {
  background: rgba(53, 106, 230, 0.1);
  color: #2563eb;
}
.auth-orbit-node.is-teal .auth-node-ico {
  background: rgba(20, 184, 166, 0.11);
  color: #0d9488;
}
.auth-orbit-label {
  position: absolute;
  top: calc(100% + 8px);
  width: max-content;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
  pointer-events: none;
}
.auth-orbit-node:is(:hover, :focus-visible) .auth-orbit-label {
  opacity: 1;
  color: var(--text);
}
.auth-form h1::before {
  content: '';
  display: block;
  width: 30px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 4px;
  background: var(--accent);
}
@keyframes authOrbitFloat {
  50% {
    transform: translate(-50%, calc(-50% - 5px));
  }
}
@keyframes authOrbitPulse {
  from {
    stroke-dashoffset: 208;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes authGuideTurn {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth-orbit-node,
  .auth-orbit-pulse,
  .auth-orbit-guide,
  .obs-dot {
    animation: none;
  }
}

/* ── Login Style 2: Obsidian Full-Bleed Dark Split-Screen ── */
body.auth-style-obsidian {
  display: block;
  padding: 0;
  min-height: 100dvh;
  background: #09090b;
  color: #f4f4f6;
}
.auth-obs-shell {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 100dvh;
  width: 100%;
  background: #09090b;
}
.auth-obs-left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 44px clamp(36px, 5vw, 72px) 32px;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.065);
  background-color: #09090b;
  background-image:
    radial-gradient(640px 520px at 12% 38%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 68%),
    radial-gradient(460px 380px at 82% 86%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 72%),
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 34px 34px, 34px 34px;
}
.auth-obs-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.obs-dot {
  opacity: 0.35;
  animation: obsParticle 6.5s ease-in-out infinite;
}
.obs-dot.is-d1 {
  animation-delay: -1.8s;
}
.obs-dot.is-d2 {
  animation-delay: -3.5s;
}
.obs-dot.is-d3 {
  animation-delay: -5.1s;
}
@keyframes obsParticle {
  0%,
  100% {
    opacity: 0.18;
    transform: translateY(0);
  }
  50% {
    opacity: 0.72;
    transform: translateY(-7px);
  }
}
.auth-obs-brand-block,
.auth-obs-hero,
.auth-obs-foot {
  position: relative;
  z-index: 1;
}
.auth-obs-brand-block {
  display: grid;
  gap: 10px;
}
.auth-obs-brand-link {
  display: inline-flex;
  text-decoration: none;
}
.auth-obs-brand-link .brand-name {
  color: #ffffff;
}
.auth-obs-brand-link .brand-sub {
  color: rgba(255, 255, 255, 0.45);
}
.auth-obs-bar {
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.auth-obs-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.34);
  font-weight: 500;
}
.auth-obs-hero {
  display: grid;
  gap: 22px;
  max-width: 540px;
}
.auth-obs-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, rgba(255, 255, 255, 0.08));
  background: color-mix(in srgb, var(--accent) 11%, rgba(255, 255, 255, 0.02));
  color: color-mix(in srgb, var(--accent) 42%, #ffffff);
  font-size: 12.5px;
  font-weight: 500;
}
.auth-obs-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.auth-obs-hero h1 {
  margin: 0;
  display: grid;
  gap: 4px;
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: #ffffff;
}
.auth-obs-accent {
  background: linear-gradient(95deg, color-mix(in srgb, var(--accent) 88%, #ffffff), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-obs-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.56);
}
.auth-obs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 4px;
}
.auth-obs-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.024);
  transition: border-color 180ms ease, background 180ms ease;
}
.auth-obs-card:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, rgba(255, 255, 255, 0.12));
  background: rgba(255, 255, 255, 0.042);
}
.auth-obs-ico {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, rgba(255, 255, 255, 0.02));
  color: color-mix(in srgb, var(--accent) 76%, #ffffff);
}
.auth-obs-card strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #f3f4f6;
}
.auth-obs-card small {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.46);
  line-height: 1.45;
}
.auth-obs-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 22px;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.auth-obs-kpi {
  display: grid;
  gap: 4px;
  padding-inline: 18px;
}
.auth-obs-kpi:first-child {
  padding-inline-start: 0;
}
.auth-obs-kpi:not(:first-child) {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.auth-obs-kpi strong {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.auth-obs-kpi strong span {
  color: color-mix(in srgb, var(--accent) 88%, #ffffff);
  font-size: 18px;
  margin-left: 2px;
}
.auth-obs-kpi small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.44);
}
.auth-obs-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.34);
}
.auth-obs-foot-links {
  display: inline-flex;
  gap: 18px;
}
.auth-obs-foot-links a {
  color: rgba(255, 255, 255, 0.42);
  text-decoration: none;
}
.auth-obs-foot-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}
.auth-obs-right {
  position: relative;
  display: grid;
  place-items: center;
  padding: 72px clamp(24px, 4vw, 56px) 44px;
  background:
    radial-gradient(500px 420px at 78% 72%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 72%),
    #0b0b0e;
}
.auth-obs-tools {
  position: absolute;
  top: 22px;
  right: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
}
body.auth-style-obsidian .interface-language > summary,
body.auth-style-obsidian .theme-menu > summary.utility {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.84);
}
body.auth-style-obsidian .interface-language > summary:hover,
body.auth-style-obsidian .theme-menu > summary.utility:hover {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}
body.auth-style-obsidian .popover {
  background: #17171d;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f3f4f6;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
}
body.auth-style-obsidian .popover .popover-title {
  color: rgba(255, 255, 255, 0.48);
}
body.auth-style-obsidian .popover button {
  color: rgba(255, 255, 255, 0.82);
}
body.auth-style-obsidian .popover button:hover,
body.auth-style-obsidian .popover button.is-active,
body.auth-style-obsidian .popover button[aria-pressed='true'] {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
body.auth-style-obsidian .popover .theme-swatch {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
}
body.auth-style-obsidian .popover .theme-swatch[aria-pressed='true'] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, rgba(255, 255, 255, 0.04));
  color: #ffffff;
}
body.auth-style-obsidian .theme-swatches-sep {
  background: rgba(255, 255, 255, 0.09);
}
:root[data-accent='black'] body.auth-style-obsidian {
  --accent: #71717a;
  --accent-hover: #52525b;
}

/* ── Login Style 2: Light & Mixed theme adaptation ── */
:root[data-theme='light'] body.auth-style-obsidian,
:root[data-theme='light'] .auth-obs-shell {
  background: #f5f7fb;
  color: var(--text);
}
:root[data-theme='light'][data-accent='black'] body.auth-style-obsidian {
  --accent: #1f2329;
  --accent-hover: #0f1216;
}
:root[data-theme='light'] .auth-obs-left {
  border-right: 1px solid var(--line);
  background-color: #f6f8fc;
  background-image:
    radial-gradient(640px 520px at 14% 34%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 68%),
    radial-gradient(460px 380px at 84% 86%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 72%),
    linear-gradient(rgba(23, 32, 51, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 51, 0.032) 1px, transparent 1px);
}
:root[data-theme='light'] .auth-obs-brand-link .brand-name {
  color: var(--text);
}
:root[data-theme='light'] .auth-obs-brand-link .brand-sub,
:root[data-theme='light'] .auth-obs-kicker {
  color: var(--muted);
}
:root[data-theme='light'] .auth-obs-pill {
  border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, #ffffff);
  color: var(--accent);
}
:root[data-theme='light'] .auth-obs-hero h1 {
  color: #111827;
}
:root[data-theme='light'] .auth-obs-accent {
  background: linear-gradient(95deg, var(--accent), color-mix(in srgb, var(--accent) 76%, #111827));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
:root[data-theme='light'] .auth-obs-desc {
  color: var(--muted);
}
:root[data-theme='light'] .auth-obs-card {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
:root[data-theme='light'] .auth-obs-card:hover {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
:root[data-theme='light'] .auth-obs-ico {
  background: color-mix(in srgb, var(--accent) 10%, #ffffff);
  color: var(--accent);
}
:root[data-theme='light'] .auth-obs-card strong {
  color: var(--text);
}
:root[data-theme='light'] .auth-obs-card small {
  color: var(--muted);
}
:root[data-theme='light'] .auth-obs-kpis {
  border-top-color: var(--line);
}
:root[data-theme='light'] .auth-obs-kpi:not(:first-child) {
  border-left-color: var(--line);
}
:root[data-theme='light'] .auth-obs-kpi strong {
  color: #111827;
}
:root[data-theme='light'] .auth-obs-kpi strong span {
  color: var(--accent);
}
:root[data-theme='light'] .auth-obs-kpi small,
:root[data-theme='light'] .auth-obs-foot,
:root[data-theme='light'] .auth-obs-foot-links a {
  color: var(--muted);
}
:root[data-theme='light'] .auth-obs-foot-links a:hover {
  color: var(--text);
}
:root[data-theme='light'] .auth-obs-right,
:root[data-theme='mixed'] .auth-obs-right {
  background:
    radial-gradient(500px 420px at 80% 78%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 72%),
    #ffffff;
}
:root[data-theme='light'] body.auth-style-obsidian .interface-language > summary,
:root[data-theme='light'] body.auth-style-obsidian .theme-menu > summary.utility,
:root[data-theme='mixed'] body.auth-style-obsidian .interface-language > summary,
:root[data-theme='mixed'] body.auth-style-obsidian .theme-menu > summary.utility {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--body);
}
:root[data-theme='light'] body.auth-style-obsidian .interface-language > summary:hover,
:root[data-theme='light'] body.auth-style-obsidian .theme-menu > summary.utility:hover,
:root[data-theme='mixed'] body.auth-style-obsidian .interface-language > summary:hover,
:root[data-theme='mixed'] body.auth-style-obsidian .theme-menu > summary.utility:hover {
  background: var(--subtle);
  color: var(--text);
}
:root[data-theme='light'] body.auth-style-obsidian .popover,
:root[data-theme='mixed'] body.auth-style-obsidian .popover {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}
:root[data-theme='light'] body.auth-style-obsidian .popover .popover-title,
:root[data-theme='mixed'] body.auth-style-obsidian .popover .popover-title {
  color: var(--muted);
}
:root[data-theme='light'] body.auth-style-obsidian .popover button,
:root[data-theme='mixed'] body.auth-style-obsidian .popover button {
  color: var(--body);
}
:root[data-theme='light'] body.auth-style-obsidian .popover button:hover,
:root[data-theme='light'] body.auth-style-obsidian .popover button.is-active,
:root[data-theme='light'] body.auth-style-obsidian .popover button[aria-pressed='true'],
:root[data-theme='mixed'] body.auth-style-obsidian .popover button:hover,
:root[data-theme='mixed'] body.auth-style-obsidian .popover button.is-active,
:root[data-theme='mixed'] body.auth-style-obsidian .popover button[aria-pressed='true'] {
  background: var(--subtle);
  color: var(--text);
}
:root[data-theme='light'] body.auth-style-obsidian .popover .theme-swatch,
:root[data-theme='mixed'] body.auth-style-obsidian .popover .theme-swatch {
  background: var(--subtle);
  border-color: var(--line);
  color: var(--body);
}
:root[data-theme='light'] body.auth-style-obsidian .popover .theme-swatch[aria-pressed='true'],
:root[data-theme='mixed'] body.auth-style-obsidian .popover .theme-swatch[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent-ink);
}
:root[data-theme='light'] body.auth-style-obsidian .theme-swatches-sep,
:root[data-theme='mixed'] body.auth-style-obsidian .theme-swatches-sep {
  background: var(--line);
}
:root[data-theme='light'] .auth-obs-panel,
:root[data-theme='mixed'] .auth-obs-panel {
  border-color: var(--line);
  background: #ffffff;
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.03);
}
:root[data-theme='light'] .auth-obs-panel-head h1,
:root[data-theme='mixed'] .auth-obs-panel-head h1 {
  color: #111827;
}
:root[data-theme='light'] .auth-obs-subtitle,
:root[data-theme='mixed'] .auth-obs-subtitle {
  color: var(--muted);
}
:root[data-theme='light'] .auth-obs-form-body label,
:root[data-theme='light'] .auth-obs-form-body .auth-label-row label,
:root[data-theme='mixed'] .auth-obs-form-body label,
:root[data-theme='mixed'] .auth-obs-form-body .auth-label-row label {
  color: var(--body);
}
:root[data-theme='light'] .auth-obs-form-body input[type='email'],
:root[data-theme='light'] .auth-obs-form-body input[type='password'],
:root[data-theme='light'] .auth-obs-form-body input[type='text'],
:root[data-theme='mixed'] .auth-obs-form-body input[type='email'],
:root[data-theme='mixed'] .auth-obs-form-body input[type='password'],
:root[data-theme='mixed'] .auth-obs-form-body input[type='text'] {
  border-color: var(--line);
  background: #ffffff;
  color: var(--text);
}
:root[data-theme='light'] .auth-obs-form-body input::placeholder,
:root[data-theme='mixed'] .auth-obs-form-body input::placeholder {
  color: var(--muted);
}
:root[data-theme='light'] .auth-obs-form-body input:focus,
:root[data-theme='mixed'] .auth-obs-form-body input:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
:root[data-theme='light'] .auth-obs-form-body input:-webkit-autofill,
:root[data-theme='light'] .auth-obs-form-body input:-webkit-autofill:hover,
:root[data-theme='light'] .auth-obs-form-body input:-webkit-autofill:focus,
:root[data-theme='mixed'] .auth-obs-form-body input:-webkit-autofill,
:root[data-theme='mixed'] .auth-obs-form-body input:-webkit-autofill:hover,
:root[data-theme='mixed'] .auth-obs-form-body input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
  box-shadow: 0 0 0 1000px #ffffff inset;
}
:root[data-theme='light'] .auth-obs-form-body .input-icon > .icon,
:root[data-theme='light'] .auth-obs-form-body .password-toggle,
:root[data-theme='light'] .auth-obs-form-body .login-remember,
:root[data-theme='light'] .auth-obs-form-body .login-duration > summary,
:root[data-theme='light'] .auth-obs-form-body .auth-switch,
:root[data-theme='mixed'] .auth-obs-form-body .input-icon > .icon,
:root[data-theme='mixed'] .auth-obs-form-body .password-toggle,
:root[data-theme='mixed'] .auth-obs-form-body .login-remember,
:root[data-theme='mixed'] .auth-obs-form-body .login-duration > summary,
:root[data-theme='mixed'] .auth-obs-form-body .auth-switch {
  color: var(--muted);
}
:root[data-theme='light'] .auth-obs-form-body .auth-forgot-link,
:root[data-theme='light'] .auth-obs-form-body .auth-switch a,
:root[data-theme='mixed'] .auth-obs-form-body .auth-forgot-link,
:root[data-theme='mixed'] .auth-obs-form-body .auth-switch a {
  color: var(--accent);
}
:root[data-theme='light'] .auth-obs-ssl,
:root[data-theme='mixed'] .auth-obs-ssl {
  border-top-color: var(--line);
  color: var(--muted);
}
.auth-obs-panel {
  width: min(440px, 100%);
  padding: 40px 36px 32px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.042) 0%,
    rgba(19, 19, 23, 0.9) 55%,
    color-mix(in srgb, var(--accent) 13%, rgba(18, 18, 22, 0.94)) 100%
  );
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.auth-obs-panel-head {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 26px;
}
.auth-obs-shield {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  color: #ffffff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 92%, #ffffff), var(--accent));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 36%, transparent);
}
.auth-obs-panel-head h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 680;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.auth-obs-subtitle {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.46);
  letter-spacing: 0.03em;
}
.auth-obs-form-body .auth-intro {
  display: none;
}
.auth-obs-form-body form {
  gap: 16px;
}
.auth-obs-form-body label,
.auth-obs-form-body .auth-label-row label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}
.auth-obs-form-body input[type='email'],
.auth-obs-form-body input[type='password'],
.auth-obs-form-body input[type='text'] {
  min-height: 46px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.045);
  color: #ffffff;
  box-shadow: none;
}
.auth-obs-form-body input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}
.auth-obs-form-body input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.auth-obs-form-body input:-webkit-autofill,
.auth-obs-form-body input:-webkit-autofill:hover,
.auth-obs-form-body input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0 1000px #19191f inset;
  box-shadow: 0 0 0 1000px #19191f inset;
}
.auth-obs-form-body .input-icon > .icon,
.auth-obs-form-body .password-toggle {
  color: rgba(255, 255, 255, 0.45);
}
.auth-obs-form-body .auth-forgot-link,
.auth-obs-form-body .auth-switch a {
  color: color-mix(in srgb, var(--accent) 72%, #ffffff);
}
.auth-obs-form-body .login-remember,
.auth-obs-form-body .login-duration > summary,
.auth-obs-form-body .auth-switch {
  color: rgba(255, 255, 255, 0.54);
}
.auth-obs-form-body .login-submit {
  min-height: 46px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 90%, #ffffff), color-mix(in srgb, var(--accent) 80%, #000000));
  border-color: transparent;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 34%, transparent);
}
.auth-obs-form-body .login-submit:hover {
  filter: brightness(1.06);
}
.auth-obs-ssl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.36);
}
@media (max-width: 960px) {
  .auth-obs-shell {
    grid-template-columns: 1fr;
  }
  .auth-obs-left {
    display: none;
  }
}
.auth-form {
  align-self: center;
  padding: 52px clamp(28px, 4vw, 60px);
}
.auth-form h1 {
  font-size: 26px;
  font-weight: 680;
  letter-spacing: -0.03em;
}
.auth-intro,
.auth-form > p:not(.notice) {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 26px;
}
.auth-form .notice {
  margin: 12px 0;
}
.auth-form form {
  gap: 18px;
}
.auth-form input {
  min-height: 46px;
  border-radius: 10px;
}
.auth-form input[type='checkbox'] {
  min-height: 0;
}
.password-toggle {
  position: absolute;
  right: 6px;
  height: 32px;
  min-height: 0;
  width: 32px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}
.password-toggle:hover {
  background: var(--hover);
  color: var(--text);
  box-shadow: none;
  transform: none;
}
#login-password,
#register-password,
#register-confirm {
  padding-right: 44px;
}
.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.login-remember {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  margin: 0;
  cursor: pointer;
  color: var(--body);
  font-weight: 400;
}
.login-remember input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}
.login-duration {
  position: relative;
}
.login-duration > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  transition: background-color 150ms ease, color 150ms ease;
}
.login-duration > summary::-webkit-details-marker {
  display: none;
}
.login-duration > summary:hover,
.login-duration[open] > summary {
  background: var(--hover);
  color: var(--text);
}
.login-duration > summary .icon {
  font-size: 12px;
  transition: transform 150ms ease;
}
.login-duration[open] > summary .icon {
  transform: rotate(180deg);
}
.login-duration-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 162px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--raised);
  box-shadow: var(--pop-shadow);
  display: grid;
  gap: 2px;
  z-index: 30;
}
.login-duration-menu button {
  width: 100%;
  justify-content: flex-start;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--body);
  font-size: 13px;
  font-weight: 450;
  box-shadow: none;
}
.login-duration-menu button:hover {
  background: var(--hover);
  box-shadow: none;
  transform: none;
}
.login-duration-menu button.is-active {
  background: var(--accent-bg);
  color: var(--accent-ink);
  font-weight: 600;
}
.login-submit {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  margin-top: 6px;
  font-size: 14.5px;
}
.auth-switch {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}
.auth-switch a {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.auth-switch a:hover {
  text-decoration: none;
  opacity: 0.8;
}

@media (max-width: 900px) {
  .auth {
    padding: 78px 18px 38px;
  }
  .auth-card {
    grid-template-columns: minmax(0, 1fr);
    max-width: 430px;
  }
  .auth-scene {
    display: none;
  }
  .auth-form {
    padding: 34px 26px;
  }
  .auth-top {
    inset-inline: 20px;
  }
}

/* Feedback toast */
.select-popover,
.workspace-toast {
  inset: auto;
  margin: 0;
}
.select-popover {
  z-index: 200;
}
.workspace-toast {
  position: fixed;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--raised);
  box-shadow: var(--pop-shadow);
  color: var(--text);
}
.workspace-toast > .icon {
  color: var(--teal);
}
.workspace-toast .utility {
  min-height: 28px;
  width: 28px;
  height: 28px;
}
.feedback-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--warn);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.workspace-toast.is-warning {
  background: var(--warn-bg);
  border-color: var(--warn-line);
  color: var(--warn-text);
}
.workspace-toast.is-warning .utility {
  color: inherit;
}
.workspace-toast.is-error {
  background: var(--danger-bg);
  border-color: var(--danger-line);
  color: var(--danger-text);
}
.workspace-toast.is-error .feedback-mark {
  background: var(--danger);
}
.workspace-toast.is-error .utility {
  color: inherit;
}
.workspace-toast.is-success {
  background: var(--success-bg);
  border-color: var(--success-line);
  color: var(--success-text);
}
.workspace-toast.is-success > .icon,
.workspace-toast.is-success .utility {
  color: inherit;
}

/* Auth verification code & forgot password link */
.auth-field-group {
  display: grid;
  gap: 6px;
}
.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.auth-label-row label {
  margin: 0;
}
.auth-forgot-link {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent-ink);
  text-decoration: none;
}
.auth-forgot-link:hover {
  text-decoration: none;
  opacity: 0.8;
}
.auth-code-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.auth-code-row > .input-icon {
  flex: 1;
  min-width: 0;
}
.auth-code-row input[data-code-input] {
  letter-spacing: 0.22em;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.auth-code-btn {
  flex: none;
  white-space: nowrap;
  min-width: 112px;
  padding-inline: 14px;
}

/* ── CRM-style 6-color accent swatch picker inside Appearance popover ── */
.theme-swatches-sep {
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}
.theme-swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px 2px 2px;
}
.popover .theme-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 32px;
  width: 100%;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--subtle);
  color: var(--body);
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  cursor: pointer;
}
.popover .theme-swatch:hover {
  border-color: var(--control);
  background: var(--hover);
  color: var(--text);
}
.popover .theme-swatch[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent-ink);
  font-weight: 650;
}
.popover .theme-swatch i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: none;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

/* ── Reseller white-label custom logo & settings ── */
.studio-mark.has-custom-logo,
.p-mark.has-custom-logo {
  background: var(--surface) !important;
  border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  padding: 4px;
}
.studio-mark.has-custom-logo img,
.p-mark.has-custom-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

.turnstile-box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-height: 0;
}
.turnstile-box:empty {
  display: none;
}
.turnstile-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 12.5px;
  line-height: 1.45;
}
.turnstile-status[hidden] {
  display: none;
}
.turnstile-status.is-pending {
  background: var(--subtle);
  color: var(--muted);
  border: 1px solid var(--line);
}
.turnstile-status.is-error {
  background: color-mix(in srgb, #e5484d 10%, var(--surface));
  color: #c53030;
  border: 1px solid color-mix(in srgb, #e5484d 28%, transparent);
}
.turnstile-retry {
  flex: none;
  padding: 4px 10px;
  min-height: 26px;
  border-radius: 6px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.turnstile-retry:hover {
  background: color-mix(in srgb, currentColor 10%, transparent);
}
