/* Functional Recruiting styles. Shared typography is loaded by the Glass package. */
:root {
  color-scheme: light;
  --bg: #f6f2ea;
  --bg-strong: #e9e1d4;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-solid: #fffdf8;
  --ink: #111111;
  --muted: #706960;
  --line: rgba(17, 17, 17, 0.08);
  --line-strong: rgba(17, 17, 17, 0.14);
  --brand: #ff9e1b;
  --brand-dark: #d97f00;
  --brand-soft: rgba(255, 158, 27, 0.14);
  --brand-ink: #7a4600;
  --good: #14804a;
  --bad: #b83d3d;
  --shadow: 0 22px 55px rgba(28, 24, 18, 0.07);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --sidebar-width: 272px;
  --font-sans: "Uncut Sans", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(223, 214, 199, 0.5) 0, transparent 30%),
    radial-gradient(circle at right bottom, rgba(235, 228, 216, 0.6) 0, transparent 28%),
    linear-gradient(180deg, #fbf8f2 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  transition: grid-template-columns 180ms ease;
}

.shell-sidebar {
  border-right: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.88);
  color: var(--ink);
  padding: 28px 22px;
  display: grid;
  align-content: start;
  gap: 24px;
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: grid;
  gap: 14px;
}

.brand-logo {
  width: 148px;
  max-width: 100%;
  height: auto;
  display: block;
}

.brand-lockup small {
  color: var(--muted);
}

.nav-group {
  display: grid;
  gap: 8px;
}

.sidebar-note {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(17, 17, 17, 0.04);
}

.nav-link {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
}

.nav-link.active,
.nav-link:hover {
  background: rgba(255, 158, 27, 0.16);
  color: var(--ink);
}

.shell-main {
  padding: 24px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.shell.sidebar-collapsed {
  grid-template-columns: 88px 1fr;
}

html.preload-sidebar-collapsed .shell {
  grid-template-columns: 88px 1fr;
}

.sidebar-toggle {
  width: 100%;
}

.shell.sidebar-collapsed .shell-sidebar {
  padding-inline: 14px;
}

.shell.sidebar-collapsed .shell-sidebar,
html.preload-sidebar-collapsed .shell-sidebar {
  padding-inline: 14px;
}

.shell.sidebar-collapsed .brand-logo {
  width: 52px;
}

.shell.sidebar-collapsed .brand-logo,
html.preload-sidebar-collapsed .brand-logo {
  width: 52px;
}

.shell.sidebar-collapsed .brand-lockup small,
.shell.sidebar-collapsed .nav-group .eyebrow,
.shell.sidebar-collapsed .nav-link span,
.shell.sidebar-collapsed .sidebar-note,
html.preload-sidebar-collapsed .brand-lockup small,
html.preload-sidebar-collapsed .nav-group .eyebrow,
html.preload-sidebar-collapsed .nav-link span,
html.preload-sidebar-collapsed .sidebar-note {
  display: none;
}

.shell.sidebar-collapsed .nav-link,
html.preload-sidebar-collapsed .nav-link {
  justify-content: center;
  padding-inline: 10px;
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.flash {
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.flash.success {
  border-color: rgba(20, 128, 74, 0.22);
}

.flash.error {
  border-color: rgba(184, 61, 61, 0.22);
}

.flash.info {
  border-color: rgba(17, 17, 17, 0.12);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 14px;
}

.page-header h1,
.hero-card h1 {
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.page-header p,
.hero-card p,
.section-intro,
.eyebrow {
  color: var(--muted);
  margin: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 500;
}

.tabbar,
.detail-tabs,
.org-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tab-button,
.org-tab {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  box-shadow: none;
}

.tab-button.active,
.org-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #111111;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #111111;
  padding: 12px 18px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(217, 127, 0, 0.18);
  font-weight: 500;
}

.button.secondary,
.button-link.secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two-col {
  grid-template-columns: 1.25fr 1fr;
}

.grid.cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.panel,
.hero-card,
.card {
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-width: 0;
}

.panel,
.card {
  padding: 22px;
}

.hero-card {
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.45) 0, transparent 26%),
    linear-gradient(135deg, rgba(255, 158, 27, 0.26), rgba(255, 255, 255, 0.96));
  color: var(--ink);
}

.hero-card-split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  align-items: end;
}

.hero-card p,
.hero-card .eyebrow {
  color: var(--muted);
}

.hero-sidecard {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 158, 27, 0.12);
  border: 1px solid rgba(255, 158, 27, 0.22);
}

.hero-sidecard strong {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.org-card {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.org-card strong {
  font-size: 1.1rem;
  font-weight: 500;
}

.selected-card {
  border-color: var(--line-strong);
  background: rgba(255, 158, 27, 0.08);
}

.meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 0.86rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.workspace-stats {
  margin-bottom: 12px;
}

.stat-card {
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel-solid);
}

.stat-card strong {
  display: block;
  font-size: 1.05rem;
  margin-top: 2px;
}

.workspace {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.workspace-column {
  min-width: 0;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.toolbar-stack {
  align-items: stretch;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 12px;
  width: 100%;
}

.bulk-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 158, 27, 0.06);
}

.bulk-summary {
  display: grid;
  gap: 2px;
}

.bulk-actions {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.bulk-actions[hidden] {
  display: none;
}

.bulk-field {
  min-width: 170px;
}

.export-group {
  position: relative;
  display: flex;
  align-items: center;
}

.export-dialog {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 8;
  display: grid;
  gap: 8px;
  min-width: 172px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-solid);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.1);
}

.export-dialog[hidden] {
  display: none;
}

.export-actions {
  display: flex;
  gap: 8px;
}

.bulk-toggle {
  min-height: 34px;
  padding: 0 12px;
}

.filter-field {
  min-width: 0;
  align-content: start;
}

.filter-bar .filter-field > label {
  line-height: 20px;
}

.filter-bar .filter-field > input,
.filter-bar .filter-field > select {
  min-width: 0;
  height: 48px;
}

.preferred-location-field {
  min-width: 0;
}

.preferred-location-control {
  position: relative;
  isolation: isolate;
  min-width: 0;
}

.preferred-location-toggle {
  position: relative;
  width: 100%;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.filter-field .preferred-location-toggle,
.filter-field .preferred-location-toggle:hover,
.filter-field .preferred-location-toggle.has-selection {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
  font-size: inherit;
  font-weight: 400;
  box-shadow: none;
}

.preferred-location-toggle:focus-visible {
  outline: 3px solid rgba(255, 158, 27, 0.28);
  outline-offset: 2px;
}

.preferred-location-toggle-value {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preferred-location-toggle-icon {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease, margin 160ms ease;
}

.preferred-location-toggle[aria-expanded="true"] .preferred-location-toggle-icon {
  transform: rotate(225deg);
}

.preferred-location-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 12;
  display: grid;
  gap: 4px;
  width: min(280px, 80vw);
  max-height: 320px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-solid);
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.12);
}

.preferred-location-menu[hidden] {
  display: none;
}

.preferred-location-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.86rem;
}

.preferred-location-field .preferred-location-option {
  color: var(--ink);
  font-size: 0.86rem;
}

.preferred-location-option:hover {
  background: rgba(255, 158, 27, 0.1);
}

.preferred-location-option input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--brand);
}

.preferred-location-option input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-width: 15px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
}

.preferred-location-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.preferred-location-chips:empty {
  display: none;
}

.preferred-location-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
  padding: 0 9px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.preferred-location-chip::after {
  content: "x";
  margin-left: 7px;
  color: var(--muted);
}

.filter-secondary-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: -2px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17, 17, 17, 0.03);
}

.filter-secondary-label {
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.exclude-status-control {
  position: relative;
}

.exclude-status-toggle {
  min-width: 112px;
  justify-content: center;
}

.exclude-status-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 12;
  display: grid;
  gap: 4px;
  width: min(280px, 80vw);
  max-height: 320px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-solid);
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.12);
}

.exclude-status-menu[hidden] {
  display: none;
}

.exclude-status-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.86rem;
}

.exclude-status-option:hover {
  background: rgba(255, 158, 27, 0.1);
}

.exclude-status-option input {
  width: 15px;
  height: 15px;
  accent-color: var(--brand);
}

.excluded-status-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.excluded-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  max-width: 220px;
  padding: 0 9px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.excluded-status-chip::after {
  content: "x";
  margin-left: 7px;
  color: var(--muted);
}

.compact-date,
.compact-note {
  min-height: 34px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  padding: 7px 9px;
}

.compact-note {
  min-width: 140px;
  min-height: 58px;
  line-height: 1.25;
  resize: vertical;
  white-space: pre-wrap;
}

.section-block {
  padding-top: 20px;
  padding-bottom: 20px;
}

.table-shell {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel-solid);
  width: 100%;
  max-width: 100%;
}

.details-stage {
  position: relative;
  min-width: 0;
}

body[data-page="portal.list_workspace"] .shell {
  min-height: 100dvh;
}

body[data-page="portal.list_workspace"] .shell-main {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body[data-page="portal.list_workspace"] .details-stage {
  flex: 1;
  min-height: 0;
  display: flex;
}

body[data-page="portal.list_workspace"] .workspace-table {
  flex: 1;
  display: block;
  min-height: 0;
  overflow: visible;
}

body[data-page="portal.list_workspace"] .workspace-table .table-scroll-tall {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
}

.table-scroll {
  overflow: auto;
  max-width: 100%;
  width: 100%;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
}

.table-scroll-tall {
  max-height: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  white-space: nowrap;
}

.checkbox-cell {
  width: 42px;
  min-width: 42px;
  padding-right: 8px;
  padding-left: 12px;
}

.checkbox-cell input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  cursor: pointer;
}

th {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--panel-solid);
}

th[data-resizable="true"] {
  position: sticky;
}

.column-resize-handle {
  position: absolute;
  top: 0;
  right: -6px;
  width: 12px;
  height: 100%;
  cursor: col-resize;
  z-index: 5;
}

.column-resize-handle::after {
  content: "";
  position: absolute;
  top: 22%;
  bottom: 22%;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  transition: background 120ms ease;
}

.column-resize-handle:hover::after {
  background: rgba(255, 158, 27, 0.8);
}

body.is-resizing-columns {
  cursor: col-resize;
  user-select: none;
}

.sort-button {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.sort-button.active {
  color: var(--ink);
}

.sort-button:hover {
  color: var(--brand-ink);
}

.sort-icon {
  flex: 0 0 auto;
  display: inline-block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1;
  transform: translateY(-1px);
}

.sort-button:hover .sort-icon,
.sort-button.active .sort-icon {
  color: var(--brand-ink);
}

tr.active-row {
  background: rgba(255, 158, 27, 0.12);
}

tr.row-selected {
  background: rgba(255, 158, 27, 0.1);
}

.empty-state {
  padding: 38px 24px;
  text-align: center;
  color: var(--muted);
}

.detail-grid,
.form-grid {
  display: grid;
  gap: 12px;
}

.detail-grid.two,
.form-grid.two {
  grid-template-columns: 1fr 1fr;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  color: var(--muted);
  font-size: 0.92rem;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
}

.field-group textarea {
  min-height: 120px;
  resize: vertical;
}

.key-value {
  display: grid;
  gap: 12px;
}

.key-value-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.key-value-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.key-value-row strong {
  font-size: 0.94rem;
  font-weight: 500;
}

.key-value-row span,
.muted {
  color: var(--muted);
}

.table-placeholder {
  color: var(--muted);
  font-style: italic;
}

.contact-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.contact-link:hover {
  color: var(--brand-ink);
}

.inline-editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.fact-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.fact-label {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.inline-select,
.inline-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

.inline-select {
  min-width: 160px;
  padding: 10px 12px;
}

.compact-select {
  min-width: 140px;
  padding: 8px 10px;
  font-size: 0.92rem;
}

.button.danger {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.button.danger:hover {
  background: #000000;
  border-color: #000000;
}

.inline-textarea {
  min-height: 144px;
  padding: 12px 14px;
  resize: vertical;
}

.autosave-feedback {
  min-height: 1.2rem;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.section-title h2,
.section-title h3 {
  margin: 0;
  font-weight: 500;
}

.focus-list {
  display: grid;
  gap: 12px;
}

.focus-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
}

.focus-item:hover {
  border-color: var(--line-strong);
  background: rgba(255, 158, 27, 0.06);
}

.focus-item p {
  margin: 4px 0 0;
  color: var(--muted);
}

.focus-meta {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.focus-arrow {
  color: var(--brand-ink);
  font-weight: 500;
  font-size: 0.92rem;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-brand {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.login-card {
  width: min(100%, 460px);
  padding: 34px;
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 24px 60px rgba(28, 24, 18, 0.08);
}

.login-logo {
  width: 152px;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

.login-card h1 {
  margin: 8px 0 8px;
  font-size: 2.2rem;
  font-weight: 700;
}

.login-card p {
  margin: 0 0 22px;
  color: var(--muted);
}

.login-actions {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.login-actions .section-intro {
  margin: 0;
}

.stack {
  display: grid;
  gap: 18px;
}

.inline-form {
  display: inline;
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.focus-toggle {
  min-width: 42px;
  padding-inline: 0;
  font-size: 1rem;
  font-weight: 700;
}

.workspace-chrome {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.workspace-chrome.collapsed {
  display: none;
}

html.preload-workspace-chrome-collapsed .workspace-chrome {
  display: none;
}

body.workspace-focus-mode .page-header,
html.preload-workspace-focus .page-header {
  margin-bottom: 12px;
}

body.workspace-focus-mode .shell-main,
html.preload-workspace-focus .shell-main {
  padding-top: 18px;
}

body.details-open {
  overflow: hidden;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 158, 27, 0.14);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
}

.dashboard-table td:first-child strong,
.workspace-table td:nth-child(2) strong {
  color: var(--ink);
}

.table-row-link {
  display: block;
}

.table-row-link:hover strong {
  color: var(--brand-ink);
}

.table-kicker {
  font-size: 0.82rem;
  color: var(--muted);
}

.table-section {
  display: grid;
  gap: 16px;
}

.status-badge.rejected {
  background: rgba(184, 61, 61, 0.12);
  color: var(--bad);
}

.status-badge.done {
  background: rgba(20, 128, 74, 0.12);
  color: var(--good);
}

.workspace-table table {
  min-width: 1160px;
  table-layout: fixed;
}

.workspace-table th,
.workspace-table td {
  min-width: 0;
  overflow: hidden;
}

.workspace-table th .sort-button span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-table td:first-child,
.workspace-table th:first-child {
  min-width: 152px;
}

.workspace-table td:nth-child(2),
.workspace-table th:nth-child(2) {
  min-width: 200px;
}

.workspace-table td:nth-child(3),
.workspace-table th:nth-child(3) {
  min-width: 220px;
  white-space: normal;
}

.workspace-table .inline-select,
.workspace-table .compact-select {
  min-width: 0;
  max-width: 100%;
}

.workspace-table .doc-link,
.workspace-table .compact-button,
.workspace-table .contact-link {
  max-width: 100%;
}

.workspace-table .doc-link,
.workspace-table .compact-button {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-table .contact-link {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-table .document-check-badge {
  display: flex;
  width: fit-content;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 500;
}

.doc-link.secondary {
  background: rgba(17, 17, 17, 0.06);
  color: var(--ink);
}

.document-check-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 22px;
  margin-top: 6px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.06);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.document-check-badge.ok {
  background: rgba(22, 163, 74, 0.14);
  color: #166534;
}

.document-check-badge.review,
.document-check-badge.error {
  background: rgba(220, 38, 38, 0.12);
  color: #991b1b;
}

.document-check-badge.queued,
.document-check-badge.unchecked {
  background: rgba(17, 17, 17, 0.06);
  color: var(--muted);
}

.compact-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.data-table-shell {
  margin-top: 12px;
}

.history-shell {
  margin-top: 14px;
}

.history-header {
  display: grid;
  gap: 4px;
  padding: 14px 16px 0;
}

.history-list {
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
}

.history-item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.history-meta {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.history-meta strong {
  font-size: 0.95rem;
}

.history-meta span {
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.history-subline {
  display: grid;
  gap: 8px;
}

.history-actor {
  color: var(--muted);
  font-size: 0.9rem;
}

.history-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 158, 27, 0.12);
  color: var(--ink);
  font-size: 0.82rem;
}

.history-empty {
  padding: 4px 0 2px;
}

.data-table-scroll {
  max-height: none;
  overflow: visible;
}

.data-table {
  min-width: 100%;
}

.data-table td:first-child,
.data-table th:first-child {
  width: 36%;
  min-width: 220px;
  white-space: normal;
}

.data-table td:last-child,
.data-table th:last-child {
  white-space: normal;
  word-break: break-word;
}

.details-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  padding: 16px;
  overflow: visible;
}

.details-overlay[hidden] {
  display: none;
}

.details-overlay-scrim {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.08);
}

.modal-card {
  position: relative;
  width: min(500px, calc(100vw - 32px));
  height: 100%;
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  box-shadow: 0 18px 36px rgba(17, 17, 17, 0.18);
  display: grid;
  grid-template-rows: auto 1fr;
}

.details-panel-card {
  margin-left: auto;
  width: min(760px, calc(100vw - 32px));
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 2px 0 4px;
  font-size: 1.35rem;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 16px;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.modal-section {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  padding-bottom: 8px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.upload-request-body {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
}

.operator-upload-body {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
}

.operator-upload-body input[type="file"] {
  border-style: dashed;
  cursor: pointer;
}

.qualification-body {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
}

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

.qualification-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.qualification-field label {
  color: var(--muted);
  font-size: 0.86rem;
}

.qualification-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.qualification-control input,
.qualification-control select {
  width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  font-size: 0.92rem;
}

.qualification-control span {
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.upload-request-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.upload-request-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  font-size: 0.9rem;
}

.upload-request-option input {
  width: 15px;
  height: 15px;
  accent-color: var(--brand);
}

.upload-request-option small {
  color: var(--muted);
  font-size: 0.76rem;
}

.upload-request-actions {
  gap: 8px;
}

.public-upload-shell {
  background:
    radial-gradient(circle at top left, rgba(255, 158, 27, 0.18) 0, transparent 32%),
    linear-gradient(180deg, #fbf8f2 0%, var(--bg) 100%);
}

.public-upload-card {
  width: min(100%, 560px);
}

.public-upload-card h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 0.96;
}

.public-upload-form {
  margin-top: 22px;
}

.upload-file-field input[type="file"] {
  padding: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.public-upload-error {
  margin: 14px 0 0;
}

@media (max-width: 1120px) {
  .workspace,
  .grid.two-col,
  .shell,
  .hero-card-split {
    grid-template-columns: 1fr;
  }

  .shell-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .table-scroll-tall {
    max-height: none;
  }

  .filter-bar,
  .bulk-actions,
  .inline-editor-grid,
  .facts-grid,
  .qualification-grid {
    grid-template-columns: 1fr;
  }

  .bulk-toolbar {
    align-items: stretch;
  }

  .details-overlay {
    padding: 0;
  }

  .modal-card {
    width: 100%;
    border-radius: 0;
    max-height: 100dvh;
  }
}

@media (max-width: 760px) {
  .shell-main,
  .shell-sidebar {
    padding: 18px;
  }

  .detail-grid.two,
  .form-grid.two,
  .stats {
    grid-template-columns: 1fr;
  }

  th,
  td {
    padding: 12px;
  }
}
