:root {
  --bg: #050505;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.72);
  --text: #151815;
  --muted: #69716a;
  --border: rgba(148, 205, 63, 0.18);
  --accent: #94cd3f;
  --accent-strong: #4d7f0f;
  --warning: #fc5622;
  --danger: #b42318;
  --ink: #0f172a;
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
  --panel-radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(135deg, rgba(5, 5, 5, 0.86), rgba(5, 5, 5, 0.72)),
    var(--portal-bg-image, url("../branding/request-bg.jpg")) center center / cover no-repeat;
  filter: blur(4px);
  transform: scale(1.05);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top left, rgba(148, 205, 63, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(252, 86, 34, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.18), rgba(5, 5, 5, 0.34));
}

a {
  color: inherit;
}

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

.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.sandbox-chrome {
  position: sticky;
  top: 0;
  z-index: 20;
}

.sandbox-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 10px 18px;
  border-bottom: 1px solid #cf9d31;
  background: #ffe7a3;
  color: #352400;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.sandbox-banner strong {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.sandbox-banner-detail {
  font-weight: 600;
}

.sandbox-chrome .topbar,
.sandbox-chrome .public-topbar {
  position: relative;
  top: auto;
}

@media (max-width: 480px) {
  .sandbox-banner {
    gap: 2px 10px;
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media print {
  .sandbox-chrome { position: static; }
  .sandbox-banner { border: 2px solid #352400; }
}

.public-topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(18px, 4vw, 44px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  background: #050505;
  padding: 4px;
}

.public-brand {
  flex: 0 0 auto;
}

.public-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.public-nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  text-decoration: none;
}

.public-nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.login-logo {
  width: 82px;
  height: 82px;
  display: block;
  object-fit: contain;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--ink);
  padding: 8px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
}

.nav-links,
.account-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links a {
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 650;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.account-menu {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.94rem;
}

.page {
  width: min(var(--page-max, 1680px), calc(100% - clamp(24px, 4vw, 72px)));
  margin: 0 auto;
  padding: 30px 0 64px;
}

.narrow-page {
  --page-max: 780px;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--panel-radius);
  background: rgba(5, 5, 5, 0.88);
  box-shadow: var(--shadow);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 2.65rem);
  line-height: 1;
  color: var(--ink);
}

.page-heading h1 {
  color: #ffffff;
}

.page-heading p:not(.eyebrow) {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.page-heading .request-id-subtitle {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.96rem;
  font-weight: 760;
}

h2 {
  color: var(--ink);
  font-size: 1.12rem;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.panel,
.metric-card,
.login-panel {
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.panel {
  padding: 22px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  min-height: 180px;
  padding: 22px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.metric-card strong {
  font-size: 2.4rem;
  line-height: 1;
  color: var(--ink);
}

.metric-label {
  color: var(--muted);
  font-weight: 750;
}

.mini-list {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.dashboard-kpis {
  margin-bottom: 18px;
}

.dashboard-page {
  --page-max: 1840px;
}

.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-hero {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--panel-radius);
  background: rgba(5, 5, 5, 0.9);
  box-shadow: var(--shadow);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.dashboard-hero-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dashboard-hero-logo {
  width: min(330px, 100%);
  height: auto;
  display: block;
}

.dashboard-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #94cd3f;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dashboard-hero-kicker::before {
  content: "";
  width: 42px;
  height: 2px;
  background: linear-gradient(90deg, #94cd3f, #fc5622);
}

.dashboard-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.25rem, 5vw, 3.6rem);
  line-height: 1;
}

.dashboard-hero p {
  max-width: 920px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.02rem;
  line-height: 1.55;
}

.dashboard-hero-notice {
  padding: 14px 16px;
  border: 1px solid rgba(252, 86, 34, 0.42);
  border-radius: 14px;
  background: rgba(252, 86, 34, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 750;
}

.dashboard-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-status {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 750;
}

.dashboard-page .panel,
.dashboard-page .metric-card {
  border-color: rgba(148, 205, 63, 0.24);
  background: rgba(7, 10, 6, 0.88);
  color: rgba(255, 255, 255, 0.9);
}

.dashboard-page h2,
.dashboard-page h3,
.dashboard-page .metric-card strong {
  color: #ffffff;
}

.dashboard-page .metric-label,
.dashboard-page .muted,
.dashboard-page .dashboard-control-row,
.dashboard-page .pagination-row,
.dashboard-page th {
  color: rgba(255, 255, 255, 0.66);
}

.dashboard-page td {
  color: rgba(255, 255, 255, 0.86);
}

.dashboard-page .record-link {
  color: #b6f05b;
}

.dashboard-page .status-pill {
  background: rgba(148, 205, 63, 0.16);
  color: #c8f57a;
}

.dashboard-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(5, 5, 5, 0.74);
  backdrop-filter: blur(8px);
}

.dashboard-tabs a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  text-decoration: none;
}

.dashboard-tabs a.active,
.dashboard-tabs a:hover {
  background: #94cd3f;
  color: #071005;
}

.dashboard-control-row,
.pagination-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0;
  color: var(--muted);
  font-weight: 750;
}

.dashboard-filter-form {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-filter-form label {
  min-width: 160px;
}

.dashboard-filter-form input,
.dashboard-filter-form select {
  min-height: 38px;
  padding: 8px 10px;
}

.disabled-button {
  cursor: not-allowed;
  opacity: 0.54;
}

.pagination-row .surface-button,
.pagination-row .disabled-button,
.panel .surface-button {
  background: rgba(15, 23, 42, 0.07);
  color: var(--ink);
}

.dashboard-page .pagination-row .surface-button,
.dashboard-page .pagination-row .disabled-button,
.dashboard-page .surface-button {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.dashboard-stack,
.summary-list {
  display: grid;
}

.dashboard-stack {
  gap: 16px;
}

.summary-list {
  gap: 0;
}

.summary-item {
  display: grid;
  gap: 5px;
  padding: 12px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.summary-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.summary-item:last-child {
  padding-bottom: 0;
}

.production-queue-panel,
.queue-group-list {
  display: grid;
  gap: 14px;
}

.queue-group {
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.dashboard-page .queue-group,
.dashboard-page .production-master {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
}

.queue-group summary {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.queue-group summary::-webkit-details-marker {
  display: none;
}

.queue-group summary::before {
  content: "+";
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--ink);
  font-weight: 900;
}

.dashboard-page .queue-group summary::before {
  background: rgba(148, 205, 63, 0.18);
  color: #d9ff9a;
}

.queue-group[open] summary::before {
  content: "-";
}

.queue-task-list {
  display: grid;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.dashboard-page .queue-task-list,
.dashboard-page .queue-task-row,
.dashboard-page .summary-item {
  border-color: rgba(255, 255, 255, 0.1);
}

.queue-task-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 120px 90px auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.queue-task-row:first-child {
  border-top: 0;
}

.queue-task-row strong,
.queue-task-row .muted {
  display: block;
}

.production-master-list {
  display: grid;
  gap: 14px;
}

.production-master {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.production-master-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: start;
}

.production-master-heading h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 1.02rem;
}

.dashboard-page .production-master-heading h3,
.dashboard-page .production-master-heading p,
.dashboard-page .production-master-meta {
  color: rgba(255, 255, 255, 0.88);
}

.production-master-heading p,
.production-master-meta {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.production-master .queue-group {
  background: rgba(255, 255, 255, 0.68);
}

.dashboard-page .production-master .queue-group {
  background: rgba(255, 255, 255, 0.06);
}

.production-master .queue-group summary {
  grid-template-columns: auto auto minmax(0, 1fr) auto;
}

.completed-panel {
  display: grid;
  gap: 16px;
}

.completed-summary,
.sort-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.completed-summary span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--ink);
  font-weight: 750;
}

.sort-links span {
  color: var(--muted);
  font-weight: 800;
}

.sort-links a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.07);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.sort-links a.active,
.sort-links a:hover {
  background: rgba(148, 205, 63, 0.22);
  color: #315f09;
}

.dashboard-lookup-panel {
  display: grid;
  gap: 12px;
}

.lookup-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.split-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.settings-main,
.settings-side,
.settings-section {
  display: grid;
  gap: 18px;
}

.settings-side {
  position: sticky;
  top: 84px;
}

.settings-panel {
  display: grid;
  gap: 18px;
}

.panel-heading,
.settings-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-heading h2,
.settings-section-heading h2 {
  margin-bottom: 0;
}

.settings-section-heading h2 {
  color: #ffffff;
}

.role-reference-list {
  display: grid;
  gap: 0;
}

.role-reference-item {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.role-reference-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.role-reference-item:last-child {
  padding-bottom: 0;
}

.role-reference-item div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.role-reference-item strong {
  color: var(--ink);
}

.role-reference-item code {
  color: #315f09;
  font-size: 0.76rem;
  font-weight: 800;
}

.role-reference-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.user-directory-panel {
  display: grid;
  gap: 18px;
}

.user-list {
  display: grid;
  gap: 0;
}

.user-list-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(190px, 0.9fr) minmax(170px, 0.7fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.user-list-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.user-list-row:last-child {
  padding-bottom: 0;
}

.user-list-profile {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.user-list-profile h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 1.04rem;
}

.user-list-profile a {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #315f09;
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

.user-avatar {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 12px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 850;
}

.user-list-roles {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.user-list-roles span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
}

.user-list-meta {
  display: grid;
  gap: 7px;
  justify-items: start;
}

.user-list-meta strong {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.user-list-meta span:not(.status-pill) {
  color: var(--ink);
  font-weight: 750;
}

.user-role-form {
  display: grid;
  gap: 14px;
}

.role-toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.role-toggle {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
  cursor: pointer;
}

.role-toggle:has(input:checked) {
  border-color: rgba(148, 205, 63, 0.75);
  background: rgba(148, 205, 63, 0.13);
}

.role-toggle input {
  width: auto;
  flex: 0 0 auto;
}

.role-toggle span {
  min-width: 0;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.user-empty {
  min-height: 160px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.26);
  border-radius: var(--panel-radius);
  color: rgba(255, 255, 255, 0.82);
}

.modal-dialog {
  z-index: 1000;
  width: min(680px, calc(100% - 32px));
  max-height: min(820px, calc(100vh - 48px));
  padding: 0;
  border: 0;
  border-radius: var(--panel-radius);
  background: transparent;
  color: var(--text);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-dialog.action-dialog {
  width: min(560px, calc(100% - 32px));
}

.modal-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
}

body:has(.modal-dialog[open]) {
  overflow: hidden;
}

.modal-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.modal-heading,
.modal-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.modal-heading h2 {
  margin-bottom: 4px;
}

.modal-heading p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.modal-heading .modal-close-button,
.modal-actions .reset-button {
  background: #e5e7eb;
  color: var(--ink);
}

.modal-actions {
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.form-stack {
  display: grid;
  gap: 16px;
}

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

label,
fieldset {
  display: grid;
  gap: 7px;
}

label span,
legend {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 720;
}

fieldset {
  padding: 0;
  border: 0;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd8c7;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  padding: 11px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(110, 169, 33, 0.16);
}

.button,
.small-button,
.ghost-button,
.sso-button {
  appearance: none;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: var(--accent);
  color: #071005;
  box-shadow: 0 10px 24px rgba(148, 205, 63, 0.24);
}

.button:hover {
  background: #a4dc4a;
}

.button:disabled,
.small-button:disabled,
.ghost-button:disabled {
  cursor: wait;
  opacity: 0.68;
  box-shadow: none;
}

.small-button {
  padding: 7px 10px;
  background: var(--ink);
  color: #ffffff;
}

.inline-action-form {
  display: inline-flex;
  margin: 0;
}

.ghost-button {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.full-width {
  width: 100%;
}

.sso-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #cfd8c7;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(19, 31, 21, 0.08);
}

.sso-button:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(110, 169, 33, 0.18);
}

.google-mark {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #4285f4;
  font-family: Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}

.table-panel {
  overflow: hidden;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(148, 205, 63, 0.14);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.surface-button {
  background: rgba(255, 255, 255, 0.12);
}

.record-link {
  color: #315f09;
  font-weight: 800;
  text-decoration: none;
}

.record-link:hover {
  text-decoration: underline;
}

.detail-heading {
  align-items: flex-end;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.detail-main,
.detail-side,
.activity-list,
.detail-list {
  display: grid;
  gap: 16px;
}

.detail-side {
  position: sticky;
  top: 84px;
}

.detail-card {
  display: grid;
  gap: 16px;
}

.detail-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-card h2,
.detail-card h3 {
  margin-bottom: 0;
}

.detail-card h3 {
  color: var(--ink);
  font-size: 0.98rem;
}

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

.key-value-grid div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.key-value-grid dt {
  margin-bottom: 5px;
  color: #5f5f5f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.key-value-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #171717;
  font-weight: 650;
}

.long-text {
  display: grid;
  gap: 8px;
}

.long-text p {
  margin: 0;
  color: #303030;
  line-height: 1.55;
  white-space: pre-wrap;
}

.detail-table-wrap {
  width: 100%;
  overflow-x: auto;
}

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

.preserve-lines {
  white-space: pre-wrap;
}

.link-list,
.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list {
  display: grid;
  gap: 10px;
}

.link-list li,
.detail-list li,
.activity-item {
  padding: 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  overflow-wrap: anywhere;
}

.completion-note {
  margin-top: 8px;
  padding: 9px 10px;
  border-left: 3px solid var(--brand-green);
  border-radius: 8px;
  background: rgba(142, 210, 49, 0.14);
  color: #263317;
  font-size: 0.9rem;
  line-height: 1.45;
}

.activity-detail-grid {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
}

.activity-detail-grid div {
  display: grid;
  gap: 3px;
  padding-top: 7px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.activity-detail-grid dt,
.activity-detail-grid dd {
  margin: 0;
}

.activity-detail-grid dt {
  color: #5f5f5f;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.activity-detail-grid dd {
  color: #202020;
  font-size: 0.88rem;
  line-height: 1.4;
}

.link-list a,
.key-value-grid a {
  color: #315f09;
  font-weight: 750;
}

.detail-empty {
  padding: 18px;
  border: 1px dashed rgba(17, 17, 17, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
}

.calendar-check-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.calendar-check-panel[hidden] {
  display: none;
}

.calendar-check-panel[data-level="ok"] {
  border-color: rgba(85, 156, 15, 0.32);
  background: rgba(142, 210, 49, 0.12);
}

.calendar-check-panel[data-level="warn"] {
  border-color: rgba(255, 111, 49, 0.38);
  background: rgba(255, 111, 49, 0.1);
}

.calendar-check-panel[data-level="error"] {
  border-color: rgba(159, 33, 33, 0.3);
  background: rgba(159, 33, 33, 0.08);
}

.calendar-check-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.calendar-check-panel p {
  margin: 0;
  color: #383838;
}

.calendar-conflict-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.calendar-conflict-list li {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
}

.calendar-conflict-list span {
  color: #555;
  font-size: 0.9rem;
}

body.request-portal-body {
  position: relative;
  background: #050505;
  color: #171717;
  font-family: "Segoe UI", Arial, sans-serif;
}

body.request-portal-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(135deg, rgba(5, 5, 5, 0.86), rgba(5, 5, 5, 0.72)),
    var(--portal-bg-image, url("../branding/request-bg.jpg")) center center / cover no-repeat;
  filter: blur(4px);
  transform: scale(1.05);
}

body.request-portal-body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top left, rgba(148, 205, 63, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(252, 86, 34, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.18), rgba(5, 5, 5, 0.34));
}

.request-page {
  width: 100%;
  max-width: none;
  padding: 32px clamp(18px, 3vw, 48px) 56px;
}

.request-hero {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(5, 5, 5, 0.88);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.request-hero-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.request-hero-logo {
  width: min(340px, 100%);
  height: auto;
  display: block;
}

.request-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #94cd3f;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.request-hero-kicker::before {
  content: "";
  width: 42px;
  height: 2px;
  background: linear-gradient(90deg, #94cd3f, #fc5622);
}

.request-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: 2.15rem;
  line-height: 1.02;
}

.request-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.6;
}

.request-shell {
  display: grid;
  gap: 22px;
  align-items: start;
  width: min(100%, clamp(960px, 86vw, 1320px));
  margin-inline: auto;
}

.request-hero {
  width: min(100%, clamp(960px, 86vw, 1320px));
  margin-inline: auto;
}

.workflow-panel,
.request-panel {
  border: 1px solid rgba(148, 205, 63, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.workflow-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.workflow-panel h2 {
  margin: 0 0 4px;
  color: #3f3f46;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.workflow-chip {
  display: grid;
  gap: 8px;
  min-height: 116px;
  align-content: start;
  padding: 20px 22px;
  border: 1px solid rgba(148, 205, 63, 0.3);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(225, 243, 193, 0.98), rgba(209, 235, 166, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.workflow-chip strong {
  color: #111111;
  font-size: 1rem;
}

.workflow-chip span {
  color: #30352c;
  font-size: 0.9rem;
  line-height: 1.45;
}

.request-panel {
  padding: clamp(22px, 2.2vw, 30px);
  overflow: visible;
}

.custom-request-fields {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(148, 205, 63, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.portal-content-page {
  min-height: calc(100vh - 64px);
}

.portal-content-panel {
  width: min(980px, 100%);
  margin: 0 auto;
  line-height: 1.65;
}

.portal-content-panel p {
  margin: 0 0 16px;
}

.thank-you-hero {
  margin-inline: auto;
}

.thank-you-panel {
  width: min(680px, 100%);
  display: grid;
  gap: 10px;
  margin: 0 auto;
  text-align: center;
}

.thank-you-panel .eyebrow {
  margin: 0;
}

.thank-you-id {
  display: block;
  color: #111111;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1;
  letter-spacing: 0;
}

.thank-you-panel .form-actions {
  justify-content: center;
}

.portal-form {
  display: grid;
}

.form-section {
  display: none;
  gap: 18px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.form-section.visible {
  display: grid;
}

.form-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: -2px;
}

.section-heading h2 {
  margin-bottom: 0;
  color: #111111;
  font-size: 1.15rem;
}

.section-heading p {
  margin-bottom: 0;
  color: #5f5f5f;
  font-size: 0.92rem;
}

.request-page .grid-two {
  gap: 16px;
}

.request-overview-primary-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.request-page label {
  gap: 8px;
}

.request-page label span {
  color: #111111;
  font-size: 0.92rem;
  font-weight: 600;
}

.field-hint {
  color: #5f5f5f;
  font-size: 0.84rem;
  line-height: 1.35;
}

.request-page input,
.request-page select,
.request-page textarea {
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 12px;
  background: #ffffff;
  color: #171717;
  padding: 11px 12px;
}

.request-priority-attachment-grid {
  align-items: start;
}

.request-priority-attachment-grid label {
  align-self: stretch;
  grid-template-rows: auto minmax(48px, auto) minmax(0, auto);
}

.request-priority-attachment-grid select,
.request-priority-attachment-grid input[type="file"] {
  min-height: 48px;
}

.request-priority-attachment-grid input[type="file"] {
  padding: 8px 10px;
  color: #4b524b;
}

.request-priority-attachment-grid input[type="file"]::file-selector-button {
  min-height: 30px;
  margin-right: 10px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 8px;
  background: #f4f6f1;
  color: #171717;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.attachment-dropzone {
  display: grid;
  gap: 10px;
  min-height: 118px;
  padding: 10px;
  border: 1px dashed rgba(17, 17, 17, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.attachment-dropzone.drag-active {
  border-color: rgba(148, 205, 63, 0.9);
  background: rgba(225, 243, 193, 0.78);
}

.attachment-dropzone-copy {
  display: grid;
  gap: 2px;
  color: #343a31;
  font-size: 0.84rem;
  line-height: 1.35;
}

.attachment-dropzone-copy strong {
  color: #171717;
  font-size: 0.9rem;
}

.attachment-file-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.attachment-file-list li {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.06);
  color: #20251d;
  font-size: 0.82rem;
  font-weight: 650;
}

.attachment-file-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.attachment-file-list button {
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.1);
  color: #111111;
  padding: 5px 8px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.attachment-file-empty {
  color: #5f5f5f;
}

.attachment-error {
  margin: 8px 0 0;
  color: #a72a22;
  font-size: 0.86rem;
  font-weight: 700;
}

.request-submit-error {
  margin: 0 0 14px;
}

.request-compact-field::after {
  content: "";
  min-height: calc(0.84rem * 1.35);
}

.request-page input:focus,
.request-page select:focus,
.request-page textarea:focus {
  border-color: rgba(148, 205, 63, 0.9);
  box-shadow: 0 0 0 4px rgba(148, 205, 63, 0.16);
}

.request-page textarea {
  min-height: 110px;
}

.request-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.request-check-grid .check-row {
  min-height: 42px;
  justify-content: flex-start;
  padding: 11px 12px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 12px;
  background: #ffffff;
}

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

.service-card {
  display: none;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.service-card.visible {
  display: grid;
}

.service-card h3 {
  margin: 0;
  color: #111111;
  font-size: 1rem;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 28px;
  padding: 0;
}

.request-page .button,
.request-page .reset-button {
  min-height: 52px;
  border-radius: 12px;
  padding: 0 24px;
  font-weight: 700;
}

.request-page .button {
  background: #94cd3f;
  box-shadow: 0 10px 24px rgba(148, 205, 63, 0.24);
}

.request-page .button:hover {
  background: #a4dc4a;
}

.request-page .reset-button {
  background: #e5e7eb;
  color: #111111;
}

@media (max-width: 1180px) {
  .request-overview-primary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.login-panel {
  width: min(420px, 100%);
  padding: 28px;
  display: grid;
  gap: 22px;
}

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

.flash {
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 650;
}

.flash-success {
  background: rgba(110, 169, 33, 0.14);
  color: var(--accent-strong);
}

.flash-error {
  background: rgba(180, 35, 24, 0.11);
  color: var(--danger);
}

.flash-info {
  background: rgba(15, 23, 42, 0.08);
  color: var(--ink);
}

.check-grid,
.inline-role-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.check-row,
.inline-role-form label {
  display: inline-flex;
  align-items: center;
  width: auto;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
}

.check-row input,
.inline-role-form input {
  width: auto;
}

.ops-shell {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.ops-rail {
  position: sticky;
  top: 84px;
  z-index: 80;
  display: grid;
  gap: 10px;
  grid-auto-rows: max-content;
  align-content: start;
  min-height: 420px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(18, 14, 10, 0.94), rgba(8, 8, 7, 0.92));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: visible;
}

.ops-rail a {
  position: relative;
  z-index: 1;
  width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.ops-rail a.active,
.ops-rail a:hover {
  background: #fc5622;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(252, 86, 34, 0.28);
}

.ops-rail a::after,
.settings-console-rail a::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  z-index: 999;
  min-width: max-content;
  max-width: 180px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(16, 13, 10, 0.96);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate(4px, -50%);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: nowrap;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.ops-rail a:hover::after,
.ops-rail a:focus-visible::after,
.settings-console-rail a:hover::after,
.settings-console-rail a:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.ops-rail::after,
.settings-console-rail::after {
  content: "";
  align-self: end;
  justify-self: center;
  width: 28px;
  height: 34px;
  margin-top: auto;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(245, 196, 93, 0.88), rgba(87, 61, 19, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.ops-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.ops-command {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(8, 7, 5, 0.96), rgba(28, 15, 8, 0.92));
  box-shadow: var(--shadow);
  color: #ffffff;
}

.ops-command-brand {
  display: grid;
  grid-template-columns: minmax(180px, 290px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.ops-command-brand img {
  width: 100%;
  max-width: 290px;
  height: auto;
  display: block;
}

.ops-command h1,
.ops-card h2,
.ops-card h3 {
  color: #ffffff;
}

.ops-command h1 {
  margin: 0 0 10px;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 0.96;
}

.ops-command p:not(.eyebrow),
.ops-card .muted,
.ops-card .summary-item,
.ops-card td,
.ops-card th {
  color: rgba(255, 255, 255, 0.74);
}

.ops-command-meta {
  display: grid;
  gap: 14px;
  align-content: start;
}

.ops-palette {
  display: flex;
  gap: 10px;
}

.ops-palette span {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.ops-palette span:nth-child(1) { background: #fc5622; }
.ops-palette span:nth-child(2) { background: #f5c45d; }
.ops-palette span:nth-child(3) { background: #2a1711; }
.ops-palette span:nth-child(4) { background: #f5f1e8; }

.ops-big-stat {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.ops-big-stat span,
.ops-metric-card span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ops-big-stat strong {
  color: #ffffff;
  font-size: 3rem;
  line-height: 0.95;
}

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

.ops-signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(252, 86, 34, 0.24);
  border-radius: 16px;
  background: rgba(252, 86, 34, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
}

.ops-signal-row strong {
  color: #f5c45d;
}

.ops-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ops-metric-card,
.ops-card {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(12, 10, 8, 0.9);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.ops-metric-card {
  min-height: 118px;
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 18px;
}

.ops-metric-card strong {
  color: #ffffff;
  font-size: 2.4rem;
  line-height: 1;
}

.ops-metric-card.hero-metric {
  background: linear-gradient(135deg, rgba(252, 86, 34, 0.34), rgba(13, 10, 7, 0.94));
}

.ops-card {
  padding: 18px;
  overflow: hidden;
}

.ops-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.ops-card-heading h2,
.ops-card h2 {
  margin: 0;
}

.ops-work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.ops-left-stack,
.ops-side-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.ops-side-stack {
  position: sticky;
  top: 84px;
}

.ops-card table {
  min-width: 760px;
}

.ops-card th {
  border-color: rgba(255, 255, 255, 0.08);
}

.ops-card td {
  border-color: rgba(255, 255, 255, 0.08);
}

.ops-card .record-link {
  color: #c8f57a;
}

.ops-card .status-pill,
.ops-metric-card .status-pill {
  background: rgba(148, 205, 63, 0.16);
  color: #d8ff96;
}

.ops-card .dashboard-filter-form label span {
  color: rgba(255, 255, 255, 0.68);
}

.ops-card .dashboard-filter-form input,
.ops-card .dashboard-filter-form select {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: #151815;
}

.ops-card .pagination-row {
  color: rgba(255, 255, 255, 0.72);
}

.ops-card .pagination-row .surface-button,
.ops-card .pagination-row .disabled-button,
.ops-card .surface-button {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.ops-card .production-master,
.ops-card .queue-group {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.ops-card .queue-task-row,
.ops-card .queue-task-list,
.ops-card .summary-item {
  border-color: rgba(255, 255, 255, 0.08);
}

.settings-console-page {
  --page-max: 1840px;
}

.settings-console-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(5, 5, 5, 0.9);
  box-shadow: var(--shadow);
  color: #ffffff;
}

.settings-console-hero h1 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(2.15rem, 4vw, 3.4rem);
}

.settings-console-hero p:not(.eyebrow) {
  max-width: 820px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

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

.settings-console-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(330px, 390px);
  gap: 18px;
  align-items: start;
}

.settings-console-layout.section-page-layout {
  grid-template-columns: 68px minmax(0, 1fr);
  overflow: visible;
}

.settings-console-rail,
.settings-console-side {
  position: sticky;
  top: 84px;
}

.settings-console-rail {
  z-index: 80;
  display: grid;
  gap: 10px;
  grid-auto-rows: max-content;
  align-content: start;
  min-height: 520px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(18, 14, 10, 0.94), rgba(8, 8, 7, 0.92));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: visible;
}

.settings-console-rail a {
  position: relative;
  z-index: 1;
  width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.66);
  text-decoration: none;
}

.settings-console-rail a:hover,
.settings-console-rail a.active {
  background: #fc5622;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(252, 86, 34, 0.28);
}

.settings-console-rail a.active span {
  color: #ffffff;
}

.settings-console-rail span {
  display: inline-grid;
  width: 100%;
  min-height: 42px;
  place-items: center;
  border-radius: 13px;
  color: currentColor;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.settings-console-rail strong {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.settings-console-main,
.settings-console-side,
.template-editor-list,
.automation-list {
  display: grid;
  gap: 16px;
}

.settings-section-overview {
  background: rgba(255, 255, 255, 0.9);
}

.settings-actions-row,
.settings-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-editor-section {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(148, 205, 63, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.settings-section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.settings-section-title h2 {
  margin: 0;
  color: var(--ink);
}

.settings-field-grid {
  display: grid;
  gap: 14px;
}

.settings-field-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-editor-section label span,
.settings-editor-section legend {
  color: #444b44;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.settings-editor-section textarea {
  min-height: 96px;
}

.template-editor {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(245, 241, 232, 0.66);
}

.settings-list-grid,
.settings-card-form {
  display: grid;
  gap: 16px;
}

.settings-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 116px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.settings-list-row-main {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  min-height: 116px;
}

.settings-row-icon {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-height: 116px;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle, rgba(15, 23, 42, 0.1) 1px, transparent 1px) 0 0 / 12px 12px,
    #eef0ef;
  color: #263126;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.settings-row-copy {
  min-width: 0;
  padding-block: 18px;
}

.settings-list-row h3 {
  margin: 2px 0 4px;
  color: var(--ink);
  font-size: 1.05rem;
}

.settings-list-row p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.settings-list-row .settings-row-actions {
  padding: 18px;
}

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

.settings-detail-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.settings-detail-item.wide {
  grid-column: 1 / -1;
}

.settings-detail-item span {
  color: #444b44;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.settings-detail-item pre {
  overflow: auto;
  margin: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.settings-field-map,
.settings-reference-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.78);
}

.settings-field-map-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 110px minmax(180px, 1fr) 100px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 4px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.86rem;
}

.settings-field-map-row strong {
  color: var(--ink);
}

.settings-inline-form,
.settings-card-actions,
.settings-test-form {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}

.settings-inline-form label,
.settings-test-form input {
  flex: 1 1 240px;
}

.settings-card-actions {
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.template-workbench,
.template-preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.template-detail-stack {
  display: grid;
  gap: 14px;
}

.template-token-panel,
.template-preview-card,
.template-preview-side {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.template-token-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.template-token-grid span {
  padding: 7px 9px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  color: #3f3f46;
  font-size: 0.78rem;
  font-weight: 800;
}

.template-preview-card {
  background: linear-gradient(180deg, #ffffff, #f7f8f6);
}

.template-preview-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.template-preview-card-header img {
  max-width: 150px;
  max-height: 46px;
  object-fit: contain;
}

.template-preview-card-header span {
  color: #315f09;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-preview-card h3,
.template-preview-side h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.25;
}

.template-preview-card p {
  margin: 0;
  color: #4b524b;
  line-height: 1.5;
}

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

.template-preview-meta span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 4px;
  background: rgba(245, 241, 232, 0.62);
  color: var(--muted);
  font-size: 0.84rem;
}

.template-preview-meta strong {
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-save-button {
  justify-self: start;
}

.danger-button {
  background: rgba(180, 35, 24, 0.12);
  color: #7a1c14;
}

.warning-button {
  background: rgba(180, 112, 24, 0.14);
  color: #6f3d08;
}

.status-pill.subtle {
  background: rgba(15, 23, 42, 0.07);
  color: #3f3f46;
}

.settings-preview-frame {
  overflow-x: auto;
  overflow-y: visible;
  max-width: 100%;
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.02);
}

.settings-preview-text {
  overflow-x: auto;
  overflow-y: visible;
  margin: 0;
  max-height: none;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 4px;
  background: #0f172a;
  color: #e5e7eb;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.template-editor h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
}

.automation-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.automation-row.compact {
  padding: 10px;
}

.automation-row input {
  width: 18px;
  margin-top: 3px;
}

.automation-row span {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.automation-row strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.settings-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.settings-status-grid span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.settings-status-grid strong {
  color: var(--ink);
  font-size: 0.88rem;
  text-transform: none;
}

.settings-legacy-routing {
  display: grid;
  gap: 12px;
}

.settings-legacy-routing summary {
  cursor: pointer;
  color: #315f09;
  font-weight: 850;
}

.settings-legacy-routing[open] {
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.04);
}

.settings-save-panel {
  background: rgba(8, 8, 7, 0.92);
  color: #ffffff;
}

.settings-save-panel h2 {
  color: #ffffff;
}

.settings-save-panel .muted {
  color: rgba(255, 255, 255, 0.72);
}

.task-assignee-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 260px;
}

.task-assignee-form select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 10px;
  padding: 7px 10px;
  background: #fff;
  color: #171717;
  font: inherit;
}

.service-assignee-form {
  width: 100%;
  min-width: 0;
}

.service-notes-block {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  color: #303030;
  line-height: 1.45;
}

.service-notes-block > strong {
  color: #111111;
  font-size: 0.82rem;
}

.status-lookup-panel {
  max-width: 960px;
  margin-inline: auto;
}

.status-lookup-form {
  gap: 22px;
}

.reports-page .ops-command {
  align-items: flex-start;
}

.reports-filter-form {
  align-self: stretch;
  justify-content: flex-end;
}

.report-bucket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Unified application navigation */
.topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 68px;
}

.portal-nav-shell {
  min-width: 0;
}

.portal-nav-toggle {
  display: none;
}

.portal-nav-shell > .nav-links {
  display: flex;
  justify-content: center;
  gap: 2px;
}

.nav-links > a,
.nav-dropdown > summary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 720;
  list-style: none;
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown > summary::-webkit-details-marker,
.portal-nav-toggle::-webkit-details-marker {
  display: none;
}

.nav-links > a:hover,
.nav-links > a.active,
.nav-dropdown > summary:hover,
.nav-dropdown.active > summary,
.nav-dropdown[open] > summary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 120;
  min-width: 190px;
  display: grid;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.98);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
}

.nav-dropdown:not([open]) > .nav-dropdown-menu {
  display: none;
}

.nav-dropdown-menu-right {
  right: 0;
  left: auto;
}

.nav-dropdown-menu a {
  padding: 10px 11px;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-dropdown-menu a:hover {
  background: rgba(148, 205, 63, 0.14);
  color: #d8ff96;
}

.account-menu {
  justify-self: end;
  gap: 9px;
  white-space: nowrap;
}

/* Dashboard, reporting, and accounting */
.ops-metric-card {
  color: #ffffff;
  text-decoration: none;
  transition: border-color 140ms ease, transform 140ms ease, background-color 140ms ease;
}

.ops-metric-card:hover,
.ops-metric-card.active-metric {
  border-color: rgba(148, 205, 63, 0.54);
  background: rgba(27, 31, 20, 0.96);
  transform: translateY(-1px);
}

.report-queue-metrics {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.report-queue-metrics .ops-metric-card {
  min-height: 104px;
  padding: 15px;
}

.report-queue-metrics .ops-metric-card strong {
  font-size: 2rem;
}

.report-queue-metrics .risk-metric {
  border-color: rgba(252, 86, 34, 0.38);
}

.report-queue-metrics .tentative-metric {
  border-color: rgba(245, 196, 93, 0.3);
}

.reports-command {
  align-items: center;
}

.report-filter-panel {
  overflow: visible;
}

.report-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
}

.report-filter-grid label {
  min-width: 0;
}

.report-filter-grid label > span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.request-filter-panel .report-filter-grid label > span {
  color: #4d554e;
}

.report-filter-grid input,
.report-filter-grid select {
  width: 100%;
  min-height: 43px;
}

.filter-search {
  grid-column: span 2;
}

.filter-submit {
  min-height: 43px;
}

.management-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.management-metric {
  display: grid;
  gap: 8px;
  min-height: 156px;
  align-content: start;
}

.management-metric > span {
  color: #c8f57a;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.management-metric > strong {
  color: #ffffff;
  font-size: 2.15rem;
  line-height: 1;
}

.management-metric p,
.report-definition-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  line-height: 1.45;
}

.report-results-table {
  min-width: 1120px;
}

.removed-user-label {
  margin-top: 4px;
  color: #f5c45d;
  font-size: 0.76rem;
  font-weight: 800;
}

.status-pill.tentative {
  background: rgba(245, 196, 93, 0.16);
  color: #ffe09b;
}

.project-urgency-filter {
  grid-column: span 2;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.project-urgency-filter legend {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-urgency-filter > div {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.project-urgency-filter label {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
}

.project-urgency-filter input {
  width: 15px;
  min-height: 15px;
  margin: 0;
}

.project-urgency-filter label > span {
  margin: 0;
  color: inherit;
  font-size: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.project-title-link {
  display: inline-block;
  margin-bottom: 5px;
  font-weight: 800;
}

.project-schedule-status,
.project-date-warning,
.project-unassigned {
  display: inline-flex;
  margin-bottom: 5px;
}

.ops-card .project-status-overdue {
  background: rgba(252, 86, 34, 0.2);
  color: #ffb09a;
}

.ops-card .project-status-due-today {
  background: rgba(245, 196, 93, 0.2);
  color: #ffe09b;
}

.ops-card .project-status-upcoming {
  background: rgba(148, 205, 63, 0.18);
  color: #d8ff96;
}

.ops-card .project-status-awaiting-completion-note {
  background: rgba(120, 174, 255, 0.18);
  color: #c8ddff;
}

.ops-card .project-status-date-to-confirm,
.ops-card .project-date-warning,
.ops-card .project-unassigned {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
}

.project-urgency-form {
  display: grid;
  gap: 6px;
}

.project-urgency-form select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.94);
  color: #151815;
  font: inherit;
  font-weight: 750;
}

.project-urgency-form select:disabled {
  opacity: 0.66;
}

.urgency-save-status {
  min-height: 16px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.74rem;
  font-weight: 750;
}

.urgency-save-status.success { color: #d8ff96; }
.urgency-save-status.error { color: #ffb09a; }

.current-work-page {
  display: grid;
  gap: 16px;
}

.current-work-page > .flash {
  margin-bottom: 0;
}

.current-work-page .ops-command,
.current-work-page .ops-card {
  margin-bottom: 0;
}

.current-work-section {
  overflow: visible;
}

.current-work-section-heading .ops-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.current-work-filter-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 16px;
}

.current-work-filter-grid .project-urgency-filter > div {
  flex-wrap: wrap;
}

.current-work-table {
  min-width: 1320px;
  table-layout: fixed;
}

.current-work-table th:nth-child(1) { width: 15%; }
.current-work-table th:nth-child(2) { width: 18%; }
.current-work-table th:nth-child(3) { width: 10%; }
.current-work-table th:nth-child(4) { width: 13%; }
.current-work-table th:nth-child(5) { width: 15%; }
.current-work-table th:nth-child(6) { width: 11%; }
.current-work-table th:nth-child(7) { width: 11%; }
.current-work-table th:nth-child(8) { width: 7%; }

.current-work-table td {
  vertical-align: top;
  overflow-wrap: anywhere;
}

.current-work-js .urgency-fallback-submit {
  display: none;
}

.awaiting-note-panel {
  border-color: rgba(120, 174, 255, 0.24);
}

.awaiting-note-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.awaiting-note-links a {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  text-decoration: none;
}

.awaiting-note-links a:hover {
  border-color: rgba(148, 205, 63, 0.48);
  background: rgba(148, 205, 63, 0.08);
}

.awaiting-note-links span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
}

.accounting-tabs {
  display: flex;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accounting-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  text-decoration: none;
}

.accounting-tabs a.active,
.accounting-tabs a:hover {
  border-color: rgba(148, 205, 63, 0.46);
  background: rgba(148, 205, 63, 0.14);
  color: #d8ff96;
}

.accounting-tabs span {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
}

.inline-alert {
  padding: 11px 13px;
  border: 1px solid rgba(148, 205, 63, 0.3);
  border-radius: 6px;
  background: rgba(148, 205, 63, 0.1);
  color: #d8ff96;
  font-weight: 750;
}

.inline-alert.error {
  border-color: rgba(252, 86, 34, 0.4);
  background: rgba(252, 86, 34, 0.1);
  color: #ffc3ae;
}

.request-filter-panel {
  margin-bottom: 18px;
}

.request-results-heading {
  margin-bottom: 12px;
}

.request-results-heading h2 {
  margin: 0;
}

/* Settings section navigation replaces the old icon rail. */
.settings-console-layout.section-page-layout {
  grid-template-columns: minmax(0, 1fr);
}

.settings-section-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.92);
  box-shadow: var(--shadow);
  scrollbar-width: thin;
}

.settings-section-nav a {
  flex: 0 0 auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  font-weight: 780;
  text-decoration: none;
  white-space: nowrap;
}

.settings-section-nav a:hover,
.settings-section-nav a.active {
  background: rgba(148, 205, 63, 0.16);
  color: #d8ff96;
}

@media (max-width: 1280px) {
  .topbar {
    padding-inline: 18px;
    gap: 12px;
  }

  .nav-links > a,
  .nav-dropdown > summary {
    padding-inline: 6px;
    font-size: 0.79rem;
  }

  .account-menu > span {
    display: none;
  }

  .report-queue-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .report-filter-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

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

@media (max-width: 860px) {
  .topbar,
  .public-topbar,
  .page-heading,
  .account-menu {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links,
  .public-nav-links {
    width: 100%;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .metric-grid,
  .four-up,
  .split-layout,
  .settings-layout,
  .settings-console-layout,
  .settings-field-grid.two-up,
  .grid-two,
  .dashboard-layout,
  .ops-shell,
  .ops-command,
  .ops-command-brand,
  .ops-metrics,
  .ops-work-grid,
  .detail-layout,
  .key-value-grid,
  .user-list-row,
  .queue-group summary,
  .queue-task-row,
  .production-master-heading,
  .lookup-form,
  .service-detail-grid,
  .request-shell,
  .workflow-list,
  .service-card-grid,
  .request-check-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

  .settings-side,
  .settings-console-rail,
  .settings-console-side,
  .ops-rail,
  .ops-side-stack {
    position: static;
  }

  .ops-rail,
  .settings-console-rail {
    display: flex;
    overflow-x: auto;
  }

  .ops-rail a {
    flex: 0 0 44px;
  }

  .settings-console-rail a {
    flex: 0 0 44px;
  }

  .settings-list-row,
  .settings-list-row-main,
  .settings-detail-grid,
  .settings-field-map-row,
  .template-workbench,
  .template-preview-layout,
  .template-preview-meta {
    grid-template-columns: 1fr;
  }

  .settings-list-row-main {
    min-height: 0;
  }

  .settings-row-icon {
    min-height: 72px;
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .settings-row-copy {
    padding: 0 18px 18px;
  }

  .settings-row-actions {
    justify-content: flex-start;
  }

  .panel-heading,
  .settings-section-heading,
  .settings-section-title,
  .settings-console-hero,
  .modal-heading,
  .modal-actions,
  .ops-card-heading,
  .ops-signal-row,
  .dashboard-control-row,
  .pagination-row,
  .dashboard-filter-form,
  .dashboard-hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-filter-form,
  .lookup-form,
  .lookup-form .button {
    width: 100%;
  }

  .settings-status-grid {
    grid-template-columns: 1fr;
  }

  .request-hero {
    min-height: 210px;
    padding: 22px;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .metric-card {
    min-height: 140px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 10px 16px;
  }

  .brand {
    align-self: center;
  }

  .portal-nav-shell {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .portal-nav-toggle {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
  }

  .portal-nav-shell:not([open]) > .nav-links {
    display: none;
  }

  .portal-nav-shell[open] > .nav-links {
    display: grid;
  }

  .portal-nav-shell > .nav-links {
    width: 100%;
    gap: 4px;
    padding-top: 8px;
  }

  .nav-links > a,
  .nav-dropdown > summary {
    width: 100%;
    justify-content: flex-start;
    padding-inline: 10px;
    font-size: 0.9rem;
  }

  .nav-dropdown-menu,
  .nav-dropdown-menu-right {
    position: static;
    min-width: 0;
    margin: 3px 0 6px 12px;
    border-radius: 5px;
    box-shadow: none;
  }

  .account-menu {
    justify-self: end;
    align-items: center;
    flex-direction: row;
  }

  .account-menu > span {
    display: none;
  }

  .report-filter-grid,
  .management-metrics,
  .report-queue-metrics {
    grid-template-columns: 1fr;
  }

  .filter-search {
    grid-column: auto;
  }

  .project-urgency-filter {
    grid-column: auto;
  }

  .project-urgency-filter > div {
    flex-wrap: wrap;
  }

  .current-work-section-heading,
  .current-work-section-heading .ops-actions {
    width: 100%;
  }

  .current-work-section-heading .ops-actions {
    justify-content: flex-start;
  }

  .current-work-table-wrap {
    overflow: visible;
  }

  .ops-card .current-work-table,
  .current-work-table tbody,
  .current-work-table tr,
  .current-work-table td {
    width: 100%;
    min-width: 0;
    display: block;
  }

  .current-work-table thead {
    display: none;
  }

  .current-work-table tbody {
    display: grid;
    gap: 12px;
  }

  .current-work-table tr {
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
  }

  .current-work-table td {
    display: grid;
    grid-template-columns: minmax(105px, 0.4fr) minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
  }

  .current-work-table td::before {
    content: attr(data-label);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .current-work-table td.empty-state {
    display: block;
  }

  .accounting-tabs {
    width: 100%;
  }

  .accounting-tabs a {
    flex: 1;
    justify-content: center;
  }
}
