/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --bg: #f1f5f9;
  --surface: rgba(255, 255, 255, 0.98);
  --surface-strong: #ffffff;
  --line: #e2e8f0;
  --line-soft: rgba(226, 232, 240, 0.96);
  --text: #1e293b;
  --muted: #64748b;
  --brand: #7c3aed;
  --brand-deep: #6d28d9;
  --accent: #0f766e;
  --sidebar-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --sidebar-text: #334155;
  --sidebar-muted: #94a3b8;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  --topbar-bg: rgba(255, 255, 255, 0.95);
  --topbar-border: rgba(226, 232, 240, 0.95);
  --hover-surface: #f8fafc;
  --field-ring: rgba(124, 58, 237, 0.12);
}

:root[data-theme="dark"] {
  --bg: #0f172a;
  --surface: rgba(17, 24, 39, 0.92);
  --surface-strong: #111827;
  --line: rgba(71, 85, 105, 0.62);
  --line-soft: rgba(51, 65, 85, 0.74);
  --text: #e5edf8;
  --muted: #94a3b8;
  --brand: #7c3aed;
  --brand-deep: #6d28d9;
  --accent: #22c55e;
  --sidebar-bg: linear-gradient(180deg, #0b1120 0%, #111827 100%);
  --sidebar-text: #f8fafc;
  --sidebar-muted: #94a3b8;
  --shadow: 0 24px 54px rgba(2, 6, 23, 0.34);
  --topbar-bg: rgba(15, 23, 42, 0.78);
  --topbar-border: rgba(51, 65, 85, 0.9);
  --hover-surface: rgba(30, 41, 59, 0.86);
  --field-ring: rgba(124, 58, 237, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

.app-shell {
  width: min(1460px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 2.5rem;
}

.app-shell--landing {
  width: min(1460px, calc(100% - 2rem));
}

.app-shell--dashboard {
  width: calc(100% - 2rem);
  max-width: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0 1.25rem;
  position: sticky;
  top: 0;
  z-index: 10;
  margin-bottom: 0.5rem;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand__text {
  color: var(--brand);
  line-height: 1;
}

.brand__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.brand--sidebar {
  font-size: 1.05rem;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--topbar-border);
  border-radius: 18px;
  background: var(--topbar-bg);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.topbar__status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--muted);
  font-size: 0.94rem;
}

.page {
  display: grid;
  gap: 1.5rem;
}

.app-frame {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  min-height: calc(100vh - 6.5rem);
}

.page-content {
  display: grid;
  gap: 1.5rem;
  min-height: calc(100vh - 6.5rem);
  align-content: stretch;
  grid-auto-rows: 1fr;
}

.sidebar {
  min-width: 0;
}

.sidebar-panel {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 1.25rem;
  min-height: calc(100vh - 6.5rem);
  align-content: start;
  background: var(--sidebar-bg);
  border: 1px solid var(--line-soft);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.sidebar-title {
  margin: 0;
  font-size: 1.8rem;
  color: var(--text);
}

.sidebar-copy {
  margin: -0.35rem 0 0;
  color: var(--sidebar-muted);
  line-height: 1.55;
}

.sidebar-utility {
  display: grid;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.sidebar-utility__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.sidebar-user {
  color: var(--sidebar-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.sidebar-nav {
  display: grid;
  gap: 0.75rem;
}

.sidebar-link {
  display: inline-flex;
  align-items: center;
  min-height: 3.4rem;
  padding: 0.9rem 1rem;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: var(--sidebar-text);
  font-weight: 600;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.8rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
}

.theme-toggle:hover {
  background: var(--hover-surface);
}

.theme-toggle--sidebar {
  min-height: 2.5rem;
  padding: 0.6rem 0.8rem;
}

.sidebar-link:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 58, 237, 0.14);
  background: rgba(124, 58, 237, 0.05);
  box-shadow: none;
}

.sidebar-link--active {
  border-color: rgba(124, 58, 237, 0.12);
  background: rgba(124, 58, 237, 0.1);
  color: var(--brand-deep);
}

.sidebar-actions {
  margin-top: auto;
}

.sidebar-logout {
  width: 100%;
}

.button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.82rem 1.15rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(124, 58, 237, 0.18);
}

.button:disabled,
input[type="submit"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.button--ghost {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

:root[data-theme="dark"] .button--ghost {
  background: rgba(30, 41, 59, 0.92);
}

.hero,
.auth-shell {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.hero--landing {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.panel {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.eyebrow {
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.auth-card h1 {
  margin: 0.25rem 0 0.75rem;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1;
}

.panel--hero {
  padding: 2.6rem 2.1rem 2rem;
}

.hero__title {
  max-width: 15ch;
  font-size: clamp(2.6rem, 4.6vw, 4.2rem);
  line-height: 1.02;
}

.hero__copy {
  max-width: 44rem;
  font-size: 1.05rem;
  line-height: 1.45;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  margin-bottom: 0.35rem;
}

.hero-brand__text {
  color: var(--brand);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero p,
.auth-copy p,
.field-hint,
.auth-links,
.feature-list,
.flash,
.role-card p,
.panel-copy {
  color: var(--muted);
}

.feature-list,
.stats {
  display: grid;
  gap: 0.9rem;
}

.feature-list div,
.stats div {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line-soft);
}

.stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats strong,
.feature-list strong,
.role-card strong {
  display: block;
  margin-bottom: 0.3rem;
}

.auth-card,
.auth-copy {
  display: grid;
  gap: 1rem;
}

.auth-shell--single {
  grid-template-columns: minmax(0, 660px);
  justify-content: center;
}

.auth-shell--single .auth-card {
  padding: 2.5rem 2.15rem 2rem;
}

.auth-card h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.field {
  display: grid;
  gap: 0.55rem;
}

.field_with_errors {
  display: contents;
}

.actions {
  margin-top: 1.2rem;
}

.field label {
  font-weight: 700;
}

.field--checkbox {
  margin-top: 0.2rem;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.field__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.field-hint {
  font-size: 0.95rem;
  white-space: nowrap;
}

.field input,
.field select {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px var(--field-ring);
}

.field--error label {
  color: #b42318;
}

.field--error input,
.field--error select {
  border-color: #f04438;
  background: rgba(254, 242, 242, 0.72);
}

.field--error input:focus,
.field--error select:focus {
  border-color: #f04438;
  box-shadow: 0 0 0 4px rgba(240, 68, 56, 0.14);
}

.field-error {
  margin: -0.1rem 0 0;
  color: #b42318;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

:root[data-theme="dark"] .field--error input,
:root[data-theme="dark"] .field--error select {
  border-color: #f97066;
  background: rgba(127, 29, 29, 0.22);
}

:root[data-theme="dark"] .field--error label,
:root[data-theme="dark"] .field-error {
  color: #f97066;
}

.field select {
  appearance: none;
}

.quote-value {
  display: flex;
  align-items: center;
  min-height: 3.6rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--muted);
}

.quote-value--strong {
  color: var(--brand-deep);
  font-weight: 700;
}

.quote-error {
  min-height: 1.4rem;
  margin: 0;
  color: #a62417;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.role-card {
  min-height: 8.6rem;
  padding: 1.35rem 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.role-card--picker {
  cursor: pointer;
}

.role-card--action {
  display: grid;
  gap: 0.7rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.role-card--action:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 95, 35, 0.28);
  box-shadow: 0 18px 28px rgba(57, 37, 18, 0.1);
}

.role-card--selected {
  border-color: rgba(217, 95, 35, 0.32);
  background: rgba(255, 248, 241, 0.9);
}

.role-card__cta {
  color: var(--brand-deep);
  font-weight: 700;
}

.role-grid--cta {
  margin-top: 1.4rem;
}

.role-option__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-option {
  position: relative;
}

.role-option__input:checked + .role-card {
  border-color: rgba(217, 95, 35, 0.32);
  background: rgba(255, 248, 241, 0.9);
  box-shadow: 0 18px 28px rgba(57, 37, 18, 0.1);
}

.role-selection-form {
  display: grid;
  gap: 1rem;
}

.role-selection-actions {
  display: none;
  justify-content: flex-end;
  align-self: start;
  margin-top: 0.2rem;
}

.role-selection-form:has(.role-option__input:checked) .role-selection-actions {
  display: flex;
}

.panel-title {
  margin: 0.2rem 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.error-messages {
  margin: 0;
  padding: 1rem 1rem 1rem 1.2rem;
  border-radius: 18px;
  background: rgba(166, 36, 23, 0.08);
  border: 1px solid rgba(166, 36, 23, 0.15);
}

.error-messages ul {
  margin: 0.65rem 0 0;
  padding-left: 1.2rem;
}

.flash-stack {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.flash {
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line-soft);
}

.flash--alert {
  border-color: rgba(166, 36, 23, 0.25);
}

.flash--notice {
  border-color: rgba(15, 118, 110, 0.22);
}

.panel--wide {
  width: 100%;
}

.panel-fill {
  min-height: 100%;
}

.empty-state {
  display: grid;
  gap: 0.8rem;
  min-height: 26rem;
  align-content: center;
  padding: 1rem 0 0.5rem;
}

.empty-state--compact {
  min-height: 18rem;
}

.empty-state h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.empty-state p {
  max-width: 48rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-panel {
  min-height: 36rem;
}

.admin-grid,
.admin-summary {
  display: grid;
  gap: 1rem;
}

.admin-grid {
  min-height: calc(100vh - 6.5rem);
  height: auto;
  align-content: start;
}

.admin-grid--single {
  min-height: 100%;
}

.admin-grid--single > .panel-fill {
  min-height: calc(100vh - 6.5rem);
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-header h1 {
  margin: 0;
}

.admin-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-card,
.dashboard-widget {
  padding: 1.2rem 1.25rem;
  border-radius: 18px;
  background: var(--hover-surface);
  border: 1px solid var(--line-soft);
}

.dashboard-card__label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-card__value {
  display: block;
  margin-bottom: 0.35rem;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1;
}

.dashboard-card__meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.dashboard-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap: 1rem;
  margin-top: 1rem;
}

.dashboard-panels--secondary {
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.5fr);
}

.dashboard-widget__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.dashboard-chart__axis {
  stroke: var(--line);
  stroke-width: 1.5;
}

.dashboard-chart__line {
  fill: none;
  stroke: var(--brand);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-chart__line--secondary {
  stroke: var(--accent);
}

.dashboard-chart__dot {
  fill: var(--brand);
}

.dashboard-chart__dot--secondary {
  fill: var(--accent);
}

.dashboard-chart__label {
  fill: var(--muted);
  font-size: 12px;
  font-family: inherit;
}

.status-list {
  display: grid;
  gap: 1rem;
}

.status-list__item {
  display: grid;
  gap: 0.45rem;
}

.status-list__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.status-list__bar {
  height: 0.7rem;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}

.status-list__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.detail-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-strong);
}

.table-card {
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.table-card__header {
  padding: 1.45rem 1.6rem;
  border-bottom: 1px solid var(--line-soft);
}

.table-card__body {
  padding: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-card--dark {
  background: var(--surface-strong);
  border-color: var(--line-soft);
  box-shadow: 0 18px 38px rgba(2, 6, 23, 0.22);
}

.table-card--dark .panel-title {
  color: var(--text);
}

.admin-table th,
.admin-table td {
  padding: 1.15rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  background: var(--surface-strong);
}

.admin-table--dark {
  color: inherit;
}

.admin-table--dark th,
.admin-table--dark td {
  border-bottom-color: var(--line-soft);
}

.admin-table--dark th {
  color: var(--muted);
}

.admin-table td.actions-cell {
  vertical-align: middle;
  width: 1%;
}

.admin-table th {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.admin-table thead th {
  background: color-mix(in srgb, var(--surface-strong) 90%, var(--bg));
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table tbody tr:hover td {
  background: var(--hover-surface);
}

.admin-table th:first-child,
.admin-table td:first-child {
  padding-left: 1.55rem;
}

.admin-table th:last-child,
.admin-table td:last-child {
  padding-right: 1.55rem;
}

.inline-form,
.stack-form {
  display: grid;
  gap: 0.9rem;
}

.inline-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.table-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-start;
}

.table-actions--section {
  margin-top: auto;
}

.table-actions .button_to {
  margin: 0;
  display: inline-flex;
}

.table-actions .button,
.table-actions .button_to .button {
  min-width: auto;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  margin: 0;
  width: auto;
  white-space: nowrap;
}

.table-person {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.table-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-weight: 700;
}

.table-person__content {
  display: grid;
  gap: 0.2rem;
}

.table-person__content strong {
  color: inherit;
}

.table-person__content span {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-table--dark .table-person__content span {
  color: #94a3b8;
}

.stack-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stack-form .actions,
.stack-form .field--full {
  grid-column: 1 / -1;
}

.pill {
  display: inline-flex;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent);
}

.pill--success {
  background: rgba(34, 197, 94, 0.14);
  color: #22c55e;
}

.pill--danger {
  background: rgba(239, 68, 68, 0.14);
  color: #ef4444;
}

.pill--muted {
  background: rgba(100, 116, 139, 0.14);
  color: var(--muted);
}

.landing-home {
  padding: 0.75rem 0 1rem;
  color: #f4f7ff;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 3.5rem;
  align-items: center;
  min-height: 34rem;
}

.landing-copy {
  max-width: 40rem;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.landing-brand__mark {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #465fff, #3347e0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 12px 28px rgba(70, 95, 255, 0.3);
}

.landing-brand__name {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
}

.landing-brand__sub {
  font-size: 1rem;
  color: #97a3d0;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1.4rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 117, 24, 0.32);
  border-radius: 999px;
  background: rgba(255, 117, 24, 0.08);
  color: #ffb073;
  font-weight: 700;
}

.landing-home h1 {
  margin: 0 0 1.25rem;
  max-width: 11ch;
  color: #ffffff;
  font-size: clamp(3.6rem, 6.8vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.landing-copy__text {
  max-width: 36rem;
  margin: 0;
  color: #bfd0ff;
  font-size: 1.15rem;
  line-height: 1.7;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 13rem;
  padding: 1rem 1.35rem;
  border-radius: 0.6rem;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.landing-button:hover,
.landing-role-card:hover {
  transform: translateY(-2px);
}

.landing-button--primary {
  background: #ff5a00;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(255, 90, 0, 0.24);
}

.landing-button--secondary {
  background: #ffffff;
  color: #14142b;
}

.landing-ops {
  padding: 1.15rem;
  border-radius: 1.9rem;
  background: rgba(18, 18, 41, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 70px rgba(3, 4, 18, 0.32);
}

.landing-ops__inner {
  padding: 1.35rem;
  border-radius: 1.4rem;
  background: rgba(27, 30, 63, 0.9);
}

.landing-ops__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.landing-ops__header p {
  margin: 0;
  color: #8fa5e2;
  font-size: 0.98rem;
}

.landing-ops__header strong {
  display: block;
  margin-top: 0.2rem;
  color: #ffffff;
  font-size: 2rem;
}

.landing-live {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 117, 24, 0.22);
  color: #ffb073;
  font-weight: 700;
}

.landing-job {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding: 1.15rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
}

.landing-job strong {
  display: block;
  color: #ffffff;
  font-size: 1.15rem;
}

.landing-job span {
  color: #8fa5e2;
}

.landing-bar {
  height: 0.65rem;
  border-radius: 999px;
  background: #394567;
  overflow: hidden;
}

.landing-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7a18, #ff5a00);
}

.landing-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.landing-role-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(22, 22, 46, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(3, 4, 18, 0.18);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.landing-role-card:hover {
  border-color: rgba(255, 117, 24, 0.34);
  box-shadow: 0 24px 44px rgba(3, 4, 18, 0.22);
}

.landing-role-card__icon {
  margin-bottom: 1rem;
  color: #ff8a2b;
  font-size: 1.6rem;
}

.landing-role-card strong {
  display: block;
  margin-bottom: 0.8rem;
  color: #ffffff;
  font-size: 1.15rem;
}

.landing-role-card p {
  margin: 0 0 1.25rem;
  color: #bfd0ff;
  line-height: 1.55;
}

.landing-role-card span {
  color: #ffb073;
  font-weight: 700;
}

@media (max-width: 860px) {
  .app-frame,
  .hero,
  .auth-shell,
  .stats,
  .role-grid,
  .admin-summary,
  .dashboard-cards,
  .dashboard-panels,
  .dashboard-panels--secondary,
  .detail-grid,
  .stack-form {
    grid-template-columns: 1fr;
  }

  .hero--landing {
    justify-content: stretch;
  }

  .sidebar-panel {
    position: static;
    min-height: auto;
  }

  .panel--hero {
    padding: 2rem 1.5rem 1.6rem;
  }

  .hero__title,
  .hero__copy {
    max-width: none;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    position: static;
  }

  .topbar__actions,
  .topbar__status {
    align-items: flex-start;
  }

  .topbar__actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .sidebar-utility__actions {
    flex-wrap: wrap;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .table-actions {
    flex-wrap: wrap;
  }

  .landing-hero,
  .landing-role-grid {
    grid-template-columns: 1fr;
  }

  .landing-home h1,
  .landing-copy,
  .landing-copy__text {
    max-width: none;
  }

  .landing-hero {
    gap: 1.75rem;
    min-height: auto;
  }
}

.field {
  position: relative;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 200;
  margin: 0;
  padding: 0.3rem 0;
  list-style: none;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 240px;
  overflow-y: auto;
}

.autocomplete-item {
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  color: var(--text);
  cursor: pointer;
  line-height: 1.4;
  border-bottom: 1px solid var(--line-soft);
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background: var(--hover-surface);
  color: var(--brand);
}

/* ── Star rating ─────────────────────────────────────────────────────────── */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.25rem;
  margin: 0.5rem 0 1rem;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 2rem;
  color: var(--line-soft);
  cursor: pointer;
  transition: color 0.15s;
  line-height: 1;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #f59e0b;
}

.rating-card {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--surface);
}

.rating-card strong {
  display: block;
  margin-bottom: 0.25rem;
}

.rating-stars-display {
  color: #f59e0b;
  font-size: 1.2rem;
  letter-spacing: 0.1rem;
}
