/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Syfe brand + Material Design 3 structure */
:root {
  --syfe-primary: #2f51c9;
  --syfe-primary-hover: #28376f;
  --syfe-primary-soft: rgba(47, 81, 201, 0.15);
  --syfe-text: #263159;
  --syfe-text-muted: #5d6c7b;
  --syfe-text-subtle: #98a2b3;
  --syfe-bg: #ffffff;
  --syfe-bg-subtle: #f7f8fc;
  --syfe-bg-muted: #eff0f8;
  --syfe-bg-hover: #e7e9f1;
  --syfe-bg-scaffold: #fafafa;
  --syfe-border: #cac4d0;
  --syfe-border-strong: #cac4d0;
  --syfe-outline: #79747e;
  --syfe-accent-bg: #eef4ff;
  --syfe-folder: #5a6db4;
  --syfe-success: #018980;
  --syfe-success-hover: #017a73;
  --syfe-danger: #db4b42;
  --syfe-danger-bg: #fef6f6;
  --syfe-on-primary: #ffffff;
  --syfe-scrollbar: #c3cedd;
  --syfe-scrollbar-hover: #98a2b3;
  /* M3 elevation (key + ambient) */
  --md-elevation-0: none;
  --md-elevation-1: 0 1px 2px rgba(38, 49, 89, 0.12), 0 1px 3px 1px rgba(38, 49, 89, 0.08);
  --md-elevation-2: 0 1px 2px rgba(38, 49, 89, 0.14), 0 2px 6px 2px rgba(38, 49, 89, 0.1);
  --md-elevation-3: 0 4px 8px 3px rgba(38, 49, 89, 0.12), 0 1px 3px rgba(38, 49, 89, 0.16);
  --md-shape-xs: 4px;
  --md-shape-s: 8px;
  --md-shape-m: 12px;
  --md-shape-l: 16px;
  --md-shape-xl: 28px;
  --md-app-bar-h: 60px;
  --md-state-hover: rgba(47, 81, 201, 0.08);
  --md-state-pressed: rgba(47, 81, 201, 0.12);
  --md-scrim: rgba(22, 27, 34, 0.4);
  /* UI copy: load Proxima Nova via your license (Adobe Fonts / self-hosted @font-face); falls back to Arial */
  --syfe-font-sans: "Proxima Nova", Arial, sans-serif;
}

html, body {
  height: 100%;
  font-family: var(--syfe-font-sans);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--syfe-text);
  background: var(--syfe-bg-scaffold);
  color-scheme: light;
}

/* Top bar: dark Syfe header lives in css/code-review.css */

/* ── Views ── */
.view {
  height: calc(100vh - var(--md-app-bar-h));
  overflow: hidden;
}

#view-review {
  display: flex;
  flex-direction: column;
  padding: 16px;
  box-sizing: border-box;
  background: var(--syfe-bg-scaffold);
}

#view-review .review-toolbar {
  border-radius: var(--md-shape-m) var(--md-shape-m) 0 0;
  box-shadow: var(--md-elevation-1);
  border-bottom: 1px solid var(--syfe-border);
}

#view-review .diff-output {
  flex: 1;
  min-height: 0;
  height: auto;
  overflow: auto;
  background: var(--syfe-bg);
  border-radius: 0 0 var(--md-shape-m) var(--md-shape-m);
  box-shadow: var(--md-elevation-1);
  border-top: none;
}

/* Browse route: scaffold + tree + content (details in css/code-review.css) */
#view-browse {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.browse-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
}

.file-tree-empty {
  padding: 16px;
  font-size: 0.8125rem;
  color: var(--syfe-text-muted);
  line-height: 1.55;
}

.file-tree-empty code {
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  background: var(--syfe-bg-subtle);
  padding: 1px 6px;
  border-radius: 4px;
}

.tree-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin: 0 8px;
  padding: 0 12px 0 16px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--syfe-text);
  text-decoration: none;
  border-left: none;
  border-radius: var(--md-shape-xl);
  transition: background 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.tree-item:hover {
  background: var(--syfe-bg-hover);
}

.tree-item.active {
  background: var(--syfe-primary-soft);
  border-left-color: transparent;
  font-weight: 500;
  color: var(--syfe-primary);
}

.tree-item .icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--syfe-text-muted);
}

.tree-folder {
  font-weight: 600;
  color: var(--syfe-text);
}

.tree-folder .folder-icon {
  color: var(--syfe-folder);
}

.tree-folder .chevron {
  color: var(--syfe-text-muted);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.tree-folder.collapsed .chevron {
  transform: rotate(0deg);
}

.tree-folder.expanded .chevron {
  transform: rotate(90deg);
}

.tree-children {
  overflow: hidden;
}

.tree-indent {
  display: inline-block;
  width: 16px;
}

/* ── File Content Area ── */
.file-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: var(--syfe-bg);
  border-radius: var(--md-shape-m);
  box-shadow: var(--md-elevation-1);
  display: flex;
  flex-direction: column;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  gap: 16px;
  padding: 24px;
  color: var(--syfe-text-muted);
  font-size: 0.9375rem;
  text-align: center;
}

/* File header bar */
.file-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--syfe-bg-subtle);
  border-bottom: 1px solid var(--syfe-border);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.00625em;
  color: var(--syfe-text);
  position: sticky;
  top: 0;
  z-index: 10;
  border-radius: var(--md-shape-m) var(--md-shape-m) 0 0;
}

.file-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-header .lang-badge {
  background: var(--syfe-accent-bg);
  color: var(--syfe-primary);
  padding: 4px 12px;
  border-radius: var(--md-shape-xl);
  font-size: 0.75rem;
  font-weight: 500;
}

.file-header .line-count {
  color: var(--syfe-text-muted);
  font-weight: 400;
  font-size: 12px;
}

/* Code block with line numbers */
.code-wrapper {
  display: flex;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 20px;
}

.line-numbers {
  user-select: none;
  -webkit-user-select: none;
  text-align: right;
  padding: 16px 12px 16px 16px;
  color: var(--syfe-text-subtle);
  background: var(--syfe-bg);
  border-right: 1px solid var(--syfe-border);
  min-width: 50px;
  flex-shrink: 0;
}

.line-numbers span {
  display: block;
  height: 20px;
}

.code-wrapper pre {
  margin: 0;
  padding: 16px;
  flex: 1;
  overflow-x: auto;
  background: var(--syfe-bg) !important;
}

.code-wrapper pre code {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  background: none !important;
  padding: 0 !important;
}

/* ── Review View ── */
.review-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  min-height: 56px;
  background: var(--syfe-bg);
  border-bottom: 1px solid var(--syfe-border);
  box-shadow: var(--md-elevation-0);
}

.review-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.patch-selector {
  padding: 10px 16px;
  font-size: 0.875rem;
  font-family: inherit;
  font-weight: 400;
  border: 1px solid var(--syfe-outline);
  border-radius: var(--md-shape-xs);
  background: var(--syfe-bg);
  color: var(--syfe-text);
  cursor: pointer;
  min-width: 220px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.patch-selector:hover {
  border-color: var(--syfe-text-muted);
}

.patch-selector:focus {
  outline: none;
  border-color: var(--syfe-primary);
  box-shadow: inset 0 0 0 1px var(--syfe-primary);
}

.view-toggle {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--syfe-outline);
  border-radius: var(--md-shape-xl);
  overflow: hidden;
  background: var(--syfe-bg-subtle);
}

.toggle-btn {
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.00625em;
  border: none;
  background: transparent;
  color: var(--syfe-text-muted);
  cursor: pointer;
  transition: background 0.2s cubic-bezier(0.2, 0, 0, 1), color 0.2s;
}

.toggle-btn:first-child {
  border-right: 1px solid var(--syfe-outline);
}

.toggle-btn:hover {
  background: var(--md-state-hover);
  color: var(--syfe-text);
}

.toggle-btn.active {
  background: var(--syfe-primary-soft);
  color: var(--syfe-primary);
  font-weight: 600;
}

.diff-output {
  overflow: auto;
  height: calc(100vh - var(--md-app-bar-h) - 56px - 32px);
}

/* ── diff2html overrides ── */
.d2h-wrapper {
  border: none !important;
}

.d2h-file-header {
  background: var(--syfe-bg-subtle) !important;
  border-bottom: 1px solid var(--syfe-border) !important;
  padding: 8px 10px !important;
}

.d2h-file-name {
  font-weight: 600 !important;
}

.d2h-tag {
  display: none !important;
}

/* ── Inline comment "+" trigger (small FAB) ── */
.add-comment-btn {
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 3px;
  border: none;
  background: var(--syfe-primary);
  color: var(--syfe-on-primary);
  font-size: 14px;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s;
  z-index: 5;
  padding: 0;
  box-shadow: var(--md-elevation-2);
}

tr:hover .add-comment-btn {
  opacity: 1;
}

.add-comment-btn:hover {
  background: var(--syfe-primary-hover);
  box-shadow: var(--md-elevation-3);
}

.add-comment-btn:focus-visible {
  outline: 2px solid var(--syfe-primary);
  outline-offset: 2px;
}

/* ── Comment form (absolute overlay inside file-wrapper) ── */
.comment-form-overlay {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--syfe-bg);
  border-top: 1px solid var(--syfe-border);
  border-bottom: 1px solid var(--syfe-border);
  box-shadow: var(--md-elevation-2);
}

.comment-form {
  padding: 12px 16px;
  max-width: 720px;
}

.comment-form-context {
  font-size: 12px;
  color: var(--syfe-text-muted);
  margin-bottom: 6px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.comment-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.875rem;
  border: 1px solid var(--syfe-outline);
  border-radius: var(--md-shape-xs);
  resize: vertical;
  min-height: 80px;
  background: var(--syfe-bg);
  color: var(--syfe-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-textarea:focus {
  outline: none;
  border-color: var(--syfe-primary);
  box-shadow: inset 0 0 0 1px var(--syfe-primary);
}

.comment-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.comment-cancel-btn {
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.00625em;
  border: 1px solid var(--syfe-outline);
  border-radius: 3px;
  background: transparent;
  color: var(--syfe-primary);
  cursor: pointer;
  transition: background 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.comment-cancel-btn:hover {
  background: var(--md-state-hover);
}

.comment-submit-btn {
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.00625em;
  border: none;
  border-radius: 3px;
  background: var(--syfe-success);
  color: var(--syfe-on-primary);
  cursor: pointer;
  box-shadow: var(--md-elevation-1);
  transition: background 0.2s, box-shadow 0.2s;
}

.comment-submit-btn:hover {
  background: var(--syfe-success-hover);
  box-shadow: var(--md-elevation-2);
}

/* ── Rendered comment bubble ── */
.comment-row td {
  padding: 0 !important;
  background: var(--syfe-bg) !important;
  border-top: 1px solid var(--syfe-border);
  border-bottom: 1px solid var(--syfe-border);
}

.inline-comment {
  margin: 0 16px 0 40px;
  padding: 12px 16px;
  border-left: 4px solid var(--syfe-primary);
  background: var(--syfe-accent-bg);
  border-radius: 0 var(--md-shape-s) var(--md-shape-s) 0;
}

.inline-comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.inline-comment-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--syfe-text);
}

.inline-comment-delete {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--syfe-text-muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.inline-comment-delete:hover {
  color: var(--syfe-danger);
}

.inline-comment-body {
  font-size: 13px;
  color: var(--syfe-text);
  white-space: pre-wrap;
  line-height: 1.5;
}

/* ── Comment badge + clear button in toolbar ── */
.comment-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--syfe-text-muted);
  font-size: 13px;
  font-weight: 500;
}

.comment-badge #comment-count {
  background: var(--syfe-primary);
  color: var(--syfe-on-primary);
  padding: 2px 8px;
  border-radius: var(--md-shape-xl);
  font-size: 0.75rem;
  font-weight: 500;
  min-width: 22px;
  text-align: center;
  line-height: 1.25;
}

.clear-comments-btn {
  padding: 4px 12px;
  border-radius: var(--md-shape-xl);
  font-size: 0.75rem;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.00625em;
  border: 1px solid var(--syfe-outline);
  background: transparent;
  color: var(--syfe-text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.clear-comments-btn:hover {
  background: var(--syfe-danger-bg);
  color: var(--syfe-danger);
  border-color: var(--syfe-danger);
}

/* ── Code browser table ── */
.code-table-wrapper {
  overflow: auto;
  height: calc(100% - 37px); /* subtract file-header height */
}

.code-table {
  border-collapse: collapse;
  width: 100%;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 20px;
}

.code-table tbody tr:hover {
  background: var(--syfe-bg-subtle);
}

.code-table td {
  padding: 0;
  vertical-align: top;
}

td.code-ln {
  user-select: none;
  -webkit-user-select: none;
  text-align: right;
  padding: 0 12px 0 16px;
  min-width: 50px;
  color: var(--syfe-text-subtle);
  border-right: 1px solid var(--syfe-border);
  line-height: 20px;
  height: 20px;
}

td.code-lc {
  padding: 0 16px;
  width: 100%;
}

.code-line-inner {
  display: block;
  white-space: pre;
  line-height: 20px;
  min-height: 20px;
}

/* ── Auth gate: HackerRank-style split + Syfe brand (Proxima Nova stack, #2f51c9, #263159) ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay--auth.auth-gate-hr {
  padding: 32px 24px 48px;
  backdrop-filter: none;
  background: transparent;
}

/* Full-viewport Syfe navy + subtle primary glow (replaces HR green) */
.auth-gate-hr .auth-hr-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(47, 81, 201, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 90%, rgba(38, 49, 89, 0.35) 0%, transparent 55%),
    linear-gradient(165deg, #0e1428 0%, #0a0e1a 45%, #06080f 100%);
}

.auth-hr-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  font-family: var(--syfe-font-sans);
}

/* Logo left; welcome + tagline centered on the bar (HackerRank-style) */
.auth-hr-top-bar {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  box-sizing: border-box;
  padding: 36px 32px 32px;
  margin: 0;
  /* Room for centered title + tagline above the panes */
  min-height: 112px;
}

.auth-hr-top-logo {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.auth-hr-top-headline {
  position: absolute;
  left: 50%;
  /* Slightly below vertical center so “Welcome…” sits a bit lower */
  top: 54%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: min(36rem, calc(100% - 48px));
  max-width: calc(100vw - 40px);
  box-sizing: border-box;
  padding: 0 12px;
}

/* Headline + two columns: centered column */
.auth-hr-body {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 0;
  box-sizing: border-box;
}

.auth-hr-logo-img {
  display: block;
  flex-shrink: 0;
  height: 35px;
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
}

.auth-hr-welcome {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 8px;
}

.auth-hr-tagline {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

/* Two columns + divider (HR layout) */
.auth-hr-split {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 0;
}

.auth-hr-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  padding: 30px 0 32px;
}

/* Inset from the divider so copy starts cleanly next to the rule */
.auth-hr-col--left {
  padding-right: 28px;
}

.auth-hr-col--right {
  padding-left: 28px;
}

.auth-hr-col-title {
  font-size: clamp(1.2rem, 2.4vw, 1.375rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 12px;
}

.auth-hr-col-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 24px;
}

.auth-hr-col-desc--compact {
  margin-bottom: 20px;
  max-width: none;
}

.auth-build-repo-file-hint {
  margin: 4px 0 10px;
  font-family: ui-monospace, 'Roboto Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.36);
  letter-spacing: 0.02em;
}

.auth-interviewer-choice {
  flex-direction: column;
  gap: 4px;
  width: 100%;
  margin-top: 0;
}

.auth-interviewer-choice-lead {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 10px;
}

.auth-interviewer-choice-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.auth-submit--secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: none;
}

.auth-submit--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.52);
}

.auth-submit--secondary:active {
  filter: brightness(0.95);
}

.auth-submit--secondary:focus {
  outline: none;
}

.auth-submit--secondary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}

.auth-build-repo-step {
  width: 100%;
  margin-top: 4px;
}

.auth-build-repo-name-line {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 16px;
}

.auth-build-repo-name-label {
  margin-right: 8px;
}

.auth-build-repo-back {
  margin-top: 12px;
}

.auth-input--file {
  padding: 8px 0;
  font-size: 14px;
  max-width: 100%;
  cursor: pointer;
}

.auth-input--textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--syfe-font-mono, 'Roboto Mono', ui-monospace, monospace);
  font-size: 12px;
  line-height: 1.45;
}

.auth-build-repo-or {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin: 12px 0 8px;
}

.auth-inline-code {
  font-family: var(--syfe-font-mono, 'Roboto Mono', ui-monospace, monospace);
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-hr-col-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.auth-login-panel {
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
}

.auth-login-panel[hidden] {
  display: none !important;
}

.auth-success {
  margin-top: 4px;
  padding: 16px 0 0;
}

.auth-success-lead {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 16px;
}

.auth-hr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, filter 0.1s;
}

.auth-hr-btn--ghost {
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.auth-hr-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.06);
}

.auth-hr-btn--ghost:focus {
  outline: none;
}

.auth-hr-btn--ghost:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}

.auth-hr-btn--ghost:active {
  filter: brightness(0.92);
}

.auth-hr-divider {
  width: 1px;
  margin: 0 12px;
  background: rgba(255, 255, 255, 0.12);
  align-self: stretch;
  min-height: 320px;
}

.auth-hr-form,
#auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 8px;
  margin-top: 18px;
}

.auth-hr-form .auth-label:first-of-type {
  margin-top: 0;
}

.auth-input--token {
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.nav-interviewer {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--syfe-text-muted);
  margin-left: 4px;
}

.auth-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.4;
  font-family: inherit;
  font-weight: 400;
  color: #f1f5f9;
  background: rgba(6, 8, 15, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input::placeholder {
  color: rgba(152, 162, 179, 0.85);
}

.auth-input:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.auth-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.auth-error {
  font-size: 12px;
  font-weight: 500;
  color: #f87171;
  text-align: left;
  margin: 6px 0 0;
}

.auth-submit {
  width: 100%;
  padding: 14px 20px;
  margin-top: 22px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--syfe-on-primary);
  background: var(--syfe-primary);
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s, border-color 0.15s, filter 0.1s;
}

.auth-submit:hover {
  background: var(--syfe-primary-hover);
  border-color: rgba(255, 255, 255, 0.16);
}

.auth-submit:active {
  filter: brightness(0.94);
}

.auth-submit:focus {
  outline: none;
}

.auth-submit:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

.auth-hr-disclaimer {
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
}

.auth-hr-disclaimer strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.auth-success-code-wrap {
  margin: 12px 0 0;
}
.auth-success-code {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  color: #e8eaf6;
  word-break: break-all;
  background: rgba(6, 8, 15, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  box-sizing: border-box;
}

@media (max-width: 800px) {
  .auth-hr-top-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 28px 20px 24px 16px;
    margin-bottom: 0;
    min-height: 0;
  }

  .auth-hr-top-logo {
    align-self: flex-start;
  }

  .auth-hr-top-headline {
    position: static;
    transform: none;
    top: auto;
    left: auto;
    width: 100%;
    max-width: none;
    margin-top: 20px;
    padding: 0;
  }

  .auth-hr-body {
    padding: 32px 16px 0;
  }

  .auth-hr-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .auth-hr-divider {
    width: 100%;
    height: 1px;
    min-height: 0;
    margin: 0;
    align-self: center;
    background: rgba(255, 255, 255, 0.12);
  }

  .auth-hr-col {
    padding: 30px 0 24px;
  }

  .auth-hr-col--left,
  .auth-hr-col--right {
    padding-left: 0;
    padding-right: 0;
  }

  .auth-hr-col-desc {
    max-width: none;
  }
}

/* ── Scrollbar (subtle) ── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--syfe-scrollbar);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--syfe-scrollbar-hover);
}
