.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--c-3);
  padding: 13px var(--c-4); border-bottom: 1px solid var(--c-line);
}
.panel-head h2 { margin: 0; font-size: 15px; font-weight: 700; }

.panel-head p { margin: 2px 0 0; font-size: 13px; color: var(--c-text-muted); }
.panel-head .actions { display: flex; align-items: center; gap: var(--c-2); flex: 0 0 auto; }

html:has(.auth), body:has(.auth) { height: auto; min-height: 100%; overflow: auto; }
.auth {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr;
  background: var(--c-nav-bg); color: #f8fafc;
}
.auth-pitch {
  padding: 56px 60px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(180deg, #07111f 0%, #0b1f36 100%);
}
.auth-pitch h1 { margin: 0; font-size: 31px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; max-width: 430px; }
.auth-pitch p { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: #a9bdd4; max-width: 430px; }
.auth-pitch ul { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: var(--c-3); }
.auth-pitch li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; color: #c8d6e6; }
.auth-pitch li::before {
  content: '✓'; flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px;
  border-radius: var(--c-radius-pill); background: rgba(103,232,249,0.16); color: var(--c-brand-cyan);
  display: grid; place-items: center; font-size: 9px; font-weight: 900;
}
.auth-legal { font-size: 12px; line-height: 1.5; color: #61799a; }

.auth-form { background: #f4f7fa; color: var(--c-text); display: flex; align-items: center; justify-content: center; padding: 48px 56px; }
.auth-form > div { width: 100%; max-width: 392px; }
.auth-form h2 { margin: 0; font-size: 23px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.auth-form .sub { margin-top: 8px; font-size: 13px; line-height: 1.55; color: #5f6b7c; }
.auth-form .fields { margin-top: 22px; display: grid; gap: var(--c-4); }
.auth-form label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 5px; font-size: 12px; font-weight: 700; color: #475569; }
.auth-form input { height: 38px; border-radius: 6px; border-color: #dde3eb; font-size: 13px; }
.auth-form input:focus { border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.auth-form input.has-error { border-color: #fecaca; box-shadow: 0 0 0 3px rgba(185,28,28,0.08); }
.auth-form .hint { margin-top: 6px; font-size: 11.5px; line-height: 1.45; color: var(--c-text-faint); }
.auth-form .hint.is-error { color: var(--c-red); font-weight: 600; }
.auth-form button.primary { width: 100%; height: 40px; margin-top: 22px; border-radius: 6px; font-size: 14px; font-weight: 700; }
.auth-form button.sso { width: 100%; height: 40px; margin-top: 12px; border-radius: 6px; border: 1px solid #d9e0ea; background: #fff; font-size: 13px; font-weight: 600; }
.invite-card { margin-top: 20px; padding: var(--c-4); border: 1px solid var(--c-line); border-radius: var(--c-radius-md); background: #fff; }
.invite-card .row { display: flex; align-items: center; gap: 11px; }
.invite-card .mark { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 8px; background: #0e2a47; color: var(--c-brand-cyan); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.invite-card .perms { margin-top: var(--c-3); padding-top: 11px; border-top: 1px solid var(--c-line-soft); font-size: 13px; line-height: 1.5; color: #475569; }

.linked-account-row { display: flex; align-items: stretch; gap: 2px; min-width: 0; }
.linked-account-row .workspace-menu-item { flex: 1 1 auto; min-width: 0; }
.linked-account-remove {
  flex: 0 0 auto; align-self: center; width: 22px; height: 22px; padding: 0;
  border: 0; border-radius: 6px; background: transparent;
  color: var(--c-text-faint); font-size: 14px; line-height: 1; cursor: pointer;
}
.linked-account-remove:hover,
.linked-account-remove:focus-visible { background: var(--c-surface-sunk); color: var(--c-text); }
.scraper-drawer {
  z-index: 35;
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: var(--c-shadow-menu);
}
.scraper-drawer[aria-hidden="true"] { pointer-events: none; visibility: hidden; display: none; }
.workspace-menu-panel[aria-hidden="true"] { display: none; }
.scraper-drawer.active { visibility: visible; }
.scraper-drawer[data-page-local="true"] { position: fixed; inset: 0 0 0 auto; }
.drawer-backdrop { z-index: 34; background: var(--c-nav-bg); opacity: .42; }
.drawer-backdrop[aria-hidden="true"] { pointer-events: none; }
.drawer-backdrop[aria-hidden="true"] { visibility: hidden; }

.inline-table-cell { cursor: pointer; border-bottom: 1px dashed transparent; }
.inline-table-cell:hover, .inline-table-cell:focus-visible { border-bottom-color: var(--c-line-strong); }
.inline-table-editor { font: inherit; max-width: 180px; }
