:root {
  --gold: #c6a15b;
  --gold-dark: #a98443;
  --gold-soft: #f6efe2;
  --ink: #202225;
  --ink-2: #30343a;
  --muted: #70757d;
  --muted-2: #9ca1a8;
  --line: #e5e6e8;
  --line-dark: #3b3d41;
  --canvas: #f5f5f3;
  --surface: #ffffff;
  --sidebar: #1f2022;
  --sidebar-2: #292a2d;
  --success: #2f7d5a;
  --success-soft: #e8f3ed;
  --warning: #a56715;
  --warning-soft: #fbf0dc;
  --danger: #b14a4a;
  --danger-soft: #f9e9e9;
  --blue: #386a8f;
  --blue-soft: #e8f0f6;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 20, 20, 0.04), 0 10px 28px rgba(20, 20, 20, 0.045);
  --font: "DM Sans", Arial, sans-serif;
  --font-display: "Manrope", "DM Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: var(--canvas);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

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

button,
a,
select,
input[type="checkbox"],
input[type="radio"] {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(198, 161, 91, 0.32);
  outline-offset: 2px;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
}

.is-hidden {
  display: none !important;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

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

.eyebrow,
.topbar-context {
  margin-bottom: 8px;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.eyebrow-light {
  color: #e2c991;
}

/* Login */
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(390px, 0.9fr) minmax(500px, 1.1fr);
}

.login-brand {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px;
  color: #fff;
  background-color: #1d1e20;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  position: relative;
  overflow: hidden;
}

.login-brand::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(198, 161, 91, 0.2);
  border-radius: 50%;
  left: -180px;
  bottom: -170px;
  box-shadow: 0 0 0 48px rgba(198, 161, 91, 0.025), 0 0 0 96px rgba(198, 161, 91, 0.02);
}

.login-brand-inner {
  width: min(100%, 520px);
  position: relative;
  z-index: 1;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #1f2022;
  background: var(--gold);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.brand-mark span {
  transform: translateX(-1px);
}

.brand-mark-large {
  width: 56px;
  height: 56px;
  margin-bottom: 56px;
  font-size: 17px;
}

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

.login-logo-mobile {
  width: 156px;
  height: auto;
  display: block;
}

.login-brand h1 {
  max-width: 520px;
  margin-bottom: 24px;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.08;
  color: #fff;
}

.login-intro {
  max-width: 460px;
  color: #b7babf;
  font-size: 17px;
  line-height: 1.7;
}

.brand-workflow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 56px 0 18px;
}

.brand-workflow span {
  width: 42px;
  height: 3px;
  background: #404246;
  border-radius: 10px;
}

.brand-workflow span.active {
  background: var(--gold);
}

.brand-caption {
  color: #777b82;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
}

.login-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px;
  background: #fafaf9;
}

.login-box {
  width: min(100%, 450px);
}

.mobile-brand {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .04em;
}

.login-box h2 {
  margin-bottom: 8px;
  font-size: 32px;
}

.login-subtitle {
  margin-bottom: 30px;
  font-size: 15px;
}

.login-form {
  display: grid;
  gap: 18px;
}

label,
.field-label {
  display: grid;
  gap: 8px;
  color: #4d5157;
  font-size: 13px;
  font-weight: 600;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap > .icon {
  position: absolute;
  left: 14px;
  color: #90949a;
  pointer-events: none;
}

.input-wrap input {
  padding-left: 44px;
  padding-right: 44px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 43px;
  padding: 10px 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #d9dbde;
  border-radius: 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #b9bdc2;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 161, 91, .12);
  outline: none;
}

textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.55;
}

.password-toggle {
  position: absolute;
  right: 8px;
  color: var(--muted);
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  color: #1f2022;
  background: var(--gold);
  border-color: var(--gold);
}

.button-primary:hover {
  background: #d1ae68;
  border-color: #d1ae68;
}

.button-secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: #d9dbde;
}

.button-secondary:hover {
  background: #f7f7f6;
  border-color: #c6c9cd;
}

.button-danger {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: #f0cccc;
}

.button-wide {
  width: 100%;
  min-height: 47px;
  margin-top: 3px;
}

.button-compact {
  min-height: 37px;
  padding: 8px 13px;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.icon-button:hover {
  background: rgba(0, 0, 0, .05);
}

.form-error {
  min-height: 0;
  color: var(--danger);
  font-size: 13px;
}

.form-error:not(:empty) {
  padding: 9px 11px;
  background: var(--danger-soft);
  border-radius: 7px;
}

.demo-access {
  margin-top: 32px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.section-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #5a5e65;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.demo-password {
  color: var(--muted-2);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

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

.quick-login {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 9px 11px;
  color: #42464b;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.quick-login:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.quick-login .role-dot {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: var(--gold-dark);
  background: var(--gold-soft);
  border-radius: 6px;
}

.quick-login .icon {
  width: 15px;
  height: 15px;
}

.quick-login.admin-login {
  grid-column: 1 / -1;
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.quick-login.admin-login .role-dot {
  color: var(--ink);
  background: var(--gold);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 12px;
}

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

.reset-link {
  margin-top: 18px;
}

.reset-link .icon {
  width: 14px;
  height: 14px;
}

/* App shell */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: 248px;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 17px;
  color: #f2f2f2;
  background: var(--sidebar);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 7px 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-logo {
  width: 155px;
  height: auto;
  display: block;
}

.sidebar-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .03em;
}

.sidebar-brand small {
  display: block;
  margin-top: 3px;
  color: #777b81;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .11em;
}

.sidebar-close {
  display: none;
  margin-left: auto;
  color: #bbbfc5;
}

.sidebar-nav {
  display: grid;
  gap: 5px;
  margin-top: 24px;
}

.nav-label {
  margin: 16px 11px 6px;
  color: #676a70;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
}

.nav-item {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: #aeb1b6;
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,.05);
}

.nav-item.active {
  color: #fff;
  background: var(--sidebar-2);
}

.nav-item.active .icon {
  color: var(--gold);
}

.nav-count {
  min-width: 24px;
  margin-left: auto;
  padding: 2px 7px;
  color: #222;
  background: var(--gold);
  border-radius: 10px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 17px 7px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.user-avatar,
.avatar-button {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: #252629;
  background: var(--gold);
  border: 0;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.sidebar-user-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.sidebar-user-copy strong,
.sidebar-user-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-copy strong {
  font-size: 12px;
}

.sidebar-user-copy span {
  color: #898d93;
  font-size: 10px;
}

.logout-button {
  margin-left: auto;
  color: #989ca2;
}

.logout-button:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
}

.app-main {
  grid-column: 2;
  min-width: 0;
}

.topbar {
  height: 78px;
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 34px;
  background: rgba(245, 245, 243, .95);
  border-bottom: 1px solid #e3e4e2;
  backdrop-filter: blur(10px);
}

.topbar h1 {
  margin: 0;
  font-size: 20px;
}

.topbar-context {
  margin: 0 0 2px;
  color: var(--muted-2);
  font-size: 9px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.profile-wrap {
  position: relative;
  flex: 0 0 auto;
}

.profile-trigger {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #e1e3df;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(28, 30, 28, .045);
  text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.profile-trigger:hover,
.profile-trigger[aria-expanded="true"] {
  border-color: var(--gold);
  box-shadow: 0 7px 20px rgba(40, 35, 25, .09);
}

.profile-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #28241c;
  background: linear-gradient(135deg, #e0c48e, #c69e55);
  border: 1px solid rgba(123, 91, 39, .12);
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.profile-trigger-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.profile-trigger-copy strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-trigger-copy small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.profile-chevron {
  width: 14px;
  height: 14px;
  margin-left: 5px;
  color: #939890;
  transition: transform .15s ease;
}

.profile-trigger[aria-expanded="true"] .profile-chevron {
  transform: rotate(180deg);
}

.profile-menu {
  width: 258px;
  position: absolute;
  z-index: 45;
  top: calc(100% + 9px);
  right: 0;
  padding: 7px;
  background: #fff;
  border: 1px solid #e3e5e0;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(24, 27, 24, .16);
}

.profile-menu-heading {
  display: grid;
  gap: 4px;
  padding: 13px 13px 15px;
  border-bottom: 1px solid #eceee9;
}

.profile-menu-kicker {
  margin-bottom: 3px;
  color: var(--gold-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.profile-menu-heading strong {
  font-size: 13px;
}

.profile-menu-heading small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu-logout {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 9px 12px;
  color: #555a54;
  background: transparent;
  border: 0;
  border-radius: 9px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
}

.profile-menu-logout:hover {
  color: var(--danger);
  background: var(--danger-soft);
}

.profile-menu-logout .icon {
  width: 16px;
  height: 16px;
}

.date-chip {
  color: var(--muted);
  font-size: 12px;
}

.avatar-button {
  display: none;
}

.menu-button {
  display: none;
}

.page-content {
  width: min(100%, 1450px);
  margin: 0 auto;
  padding: 30px 34px 52px;
}

.welcome-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.welcome-row h2 {
  margin-bottom: 5px;
  font-size: 25px;
}

.welcome-row p {
  margin-bottom: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

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

.stat-card {
  min-height: 111px;
  padding: 17px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.stat-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--gold-dark);
  background: var(--gold-soft);
  border-radius: 7px;
}

.stat-icon .icon {
  width: 15px;
  height: 15px;
}

.stat-icon.danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.stat-icon.success {
  color: var(--success);
  background: var(--success-soft);
}

.stat-value {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 29px;
  line-height: 1;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-header {
  min-height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}

.card-header h2,
.card-header h3 {
  margin: 0;
  font-size: 16px;
}

.card-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.header-actions,
.filters {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-field {
  position: relative;
  width: 230px;
}

.search-field .icon {
  position: absolute;
  left: 11px;
  top: 50%;
  width: 16px;
  height: 16px;
  color: var(--muted-2);
  transform: translateY(-50%);
}

.search-field input {
  min-height: 37px;
  padding: 8px 10px 8px 35px;
  font-size: 12px;
}

.filter-select {
  width: auto;
  min-width: 140px;
  min-height: 37px;
  padding: 7px 31px 7px 11px;
  color: #55595f;
  background-color: #fff;
  font-size: 12px;
}

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

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

th {
  padding: 12px 16px;
  color: #8b8f95;
  background: #fafafa;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid #ececee;
  color: #4b4f55;
  font-size: 12.5px;
  vertical-align: middle;
}

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

tbody tr.clickable-row:hover td {
  background: #fbfaf7;
}

.table-primary {
  display: block;
  color: var(--ink);
  font-weight: 700;
}

.table-secondary {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 11px;
}

.project-number {
  color: var(--gold-dark);
  font-weight: 800;
}

.action-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  color: var(--ink);
  background: #f6f6f5;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.action-link:hover {
  background: var(--gold-soft);
  border-color: #e2cea4;
}

.action-link .icon {
  width: 14px;
  height: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  color: #646970;
  background: #f0f1f2;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  background: #8f949a;
  border-radius: 50%;
}

.badge-gold {
  color: #835f20;
  background: var(--gold-soft);
}

.badge-gold::before {
  background: var(--gold-dark);
}

.badge-success {
  color: var(--success);
  background: var(--success-soft);
}

.badge-success::before {
  background: var(--success);
}

.badge-danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.badge-danger::before {
  background: var(--danger);
}

.badge-blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.badge-blue::before {
  background: var(--blue);
}

.deadline-danger {
  color: var(--danger);
  font-weight: 700;
}

.empty-state {
  display: grid;
  place-items: center;
  padding: 68px 24px;
  text-align: center;
}

.empty-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--gold-dark);
  background: var(--gold-soft);
  border-radius: 12px;
}

.empty-state h3 {
  margin-bottom: 7px;
}

.empty-state p {
  max-width: 390px;
  margin-bottom: 20px;
  color: var(--muted);
  line-height: 1.55;
}

/* Detail pages */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--muted);
  background: none;
  border: 0;
  font-size: 12px;
}

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

.back-link .icon {
  width: 14px;
  height: 14px;
}

.project-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 21px;
}

.project-hero h2 {
  margin-bottom: 7px;
  font-size: 26px;
}

.project-hero-title-line {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
}

.project-hero p {
  margin-bottom: 0;
  color: var(--muted);
}

.project-meta-inline {
  display: flex;
  align-items: center;
  gap: 17px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.meta-inline-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #656970;
  font-size: 12px;
}

.meta-inline-item .icon {
  width: 14px;
  height: 14px;
  color: #9ca0a5;
}

.workflow-card {
  margin-bottom: 20px;
  padding: 22px 18px;
  overflow-x: auto;
}

.workflow {
  min-width: 830px;
  display: grid;
  grid-template-columns: repeat(10, minmax(72px, 1fr));
}

.workflow-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0 4px;
  color: #a0a4aa;
  background: transparent;
  border: 0;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

.workflow-step::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 13px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: #e1e3e5;
}

.workflow-step:first-child::before {
  display: none;
}

.workflow-dot {
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid #d9dbde;
  border-radius: 50%;
  font-size: 10px;
}

.workflow-dot .icon {
  width: 14px;
  height: 14px;
}

.workflow-step.done {
  color: #656970;
}

.workflow-step.done::before,
.workflow-step.current::before {
  background: var(--gold);
}

.workflow-step.done .workflow-dot {
  color: #252629;
  background: var(--gold);
  border-color: var(--gold);
}

.workflow-step.current {
  color: var(--ink);
  font-weight: 800;
}

.workflow-step.current .workflow-dot {
  color: #fff;
  background: var(--ink);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, .75fr);
  gap: 20px;
  align-items: start;
}

.detail-main,
.detail-aside {
  display: grid;
  gap: 20px;
}

.task-banner {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px;
  color: #76551f;
  background: var(--gold-soft);
  border: 1px solid #ead8b6;
  border-radius: 10px;
}

.task-banner-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--gold-dark);
  border-radius: 8px;
}

.task-banner h3 {
  margin: 0 0 4px;
  color: #5d4218;
  font-size: 13px;
}

.task-banner p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.form-card {
  padding: 22px;
}

.form-section-title {
  margin-bottom: 18px;
}

.form-section-title h3 {
  margin-bottom: 5px;
  font-size: 17px;
}

.form-section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

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

.form-grid .full-width {
  grid-column: 1 / -1;
}

.form-divider {
  height: 1px;
  margin: 24px 0;
  background: var(--line);
}

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

.subsection-title h4 {
  margin: 0;
  font-size: 13px;
}

.mini-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  color: var(--gold-dark);
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 700;
}

.mini-button .icon {
  width: 13px;
  height: 13px;
}

.measurement-table input {
  min-width: 90px;
  min-height: 36px;
  padding: 7px 9px;
  font-size: 12px;
}

.measurement-table td,
.measurement-table th {
  padding: 8px;
}

.remove-row {
  width: 31px;
  height: 31px;
  color: var(--muted-2);
}

.remove-row:hover {
  color: var(--danger);
  background: var(--danger-soft);
}

.upload-box {
  min-height: 100px;
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--muted);
  background: #fafafa;
  border: 1px dashed #cfd2d5;
  border-radius: 9px;
  text-align: center;
  cursor: pointer;
}

.upload-box:hover {
  color: var(--ink);
  border-color: var(--gold);
  background: #fcfaf6;
}

.upload-box input {
  display: none;
}

.upload-box .icon {
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
  color: var(--gold-dark);
}

.upload-box span {
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.upload-box small {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 10px;
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  color: #646970;
  background: #f1f2f2;
  border-radius: 6px;
  font-size: 10px;
}

.file-chip .icon {
  width: 12px;
  height: 12px;
}

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

.radio-card {
  position: relative;
  display: block;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card span {
  min-height: 41px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  color: #61666d;
  background: #fff;
  border: 1px solid #d9dbde;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
}

.radio-card span::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 1.5px solid #b9bdc2;
  border-radius: 50%;
}

.radio-card input:checked + span {
  color: #72521d;
  background: var(--gold-soft);
  border-color: var(--gold);
}

.radio-card input:checked + span::before {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: inset 0 0 0 3px #fff;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.form-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  color: var(--muted);
  font-size: 11px;
}

.form-hint .icon {
  width: 14px;
  height: 14px;
}

.summary-card {
  overflow: hidden;
}

.summary-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.summary-row {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #ededee;
  font-size: 12px;
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row dt {
  color: var(--muted);
}

.summary-row dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.materials-list {
  display: grid;
  gap: 9px;
}

.material-row {
  min-height: 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: #f7f7f6;
  border: 1px solid #ececed;
  border-radius: 8px;
  font-size: 12px;
}

.material-row strong {
  color: var(--ink);
}

.material-row span {
  color: var(--muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.info-item {
  min-height: 90px;
  padding: 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.info-item span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
}

.info-item strong {
  font-size: 13px;
}

/* Admin project tabs and timeline */
.tabs {
  display: flex;
  gap: 5px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.tab-button {
  padding: 14px 10px 12px;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.tab-button.active {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

.tab-panel {
  padding: 22px;
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 13px;
  padding-bottom: 22px;
}

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

.timeline-item::before {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 0;
  left: 6px;
  width: 1px;
  background: #dfe1e3;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  width: 13px;
  height: 13px;
  margin-top: 3px;
  position: relative;
  z-index: 1;
  background: #fff;
  border: 3px solid var(--gold);
  border-radius: 50%;
}

.timeline-content {
  display: grid;
  gap: 4px;
}

.timeline-content strong {
  color: var(--ink);
  font-size: 12.5px;
}

.timeline-content span {
  color: var(--muted);
  font-size: 11px;
}

.timeline-note {
  margin-top: 4px;
  padding: 8px 10px;
  color: #62666c;
  background: #f7f7f6;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.5;
}

.completed-step-detail {
  display: grid;
  gap: 12px;
}

.step-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.step-detail-header h3 {
  margin-bottom: 5px;
}

.data-preview {
  padding: 14px;
  color: #555a60;
  background: #f7f7f6;
  border: 1px solid #ececed;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.6;
}

.data-preview dl {
  margin: 0;
}

.data-preview div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #e6e6e6;
}

.data-preview div:last-child {
  border-bottom: 0;
}

.data-preview dt {
  color: var(--muted);
}

.data-preview dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

/* Dashboard secondary content */
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(270px, .7fr);
  gap: 20px;
  margin-top: 20px;
}

.attention-list {
  display: grid;
}

.attention-item {
  display: grid;
  grid-template-columns: 35px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

.attention-item:last-child {
  border-bottom: 0;
}

.attention-icon {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  color: var(--warning);
  background: var(--warning-soft);
  border-radius: 8px;
}

.attention-icon .icon {
  width: 15px;
  height: 15px;
}

.attention-copy strong {
  display: block;
  font-size: 12px;
}

.attention-copy span {
  color: var(--muted);
  font-size: 10px;
}

.mini-status-list {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.mini-status-row {
  display: grid;
  grid-template-columns: 90px 1fr 25px;
  align-items: center;
  gap: 10px;
  color: #5d6268;
  font-size: 11px;
}

.bar-track {
  height: 6px;
  overflow: hidden;
  background: #ececed;
  border-radius: 5px;
}

.bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 5px;
}

/* Statistics */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.chart-card {
  min-height: 320px;
}

.bar-chart {
  height: 220px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 24px 22px 10px;
}

.chart-column {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-rows: 20px 1fr 30px;
  align-items: end;
  justify-items: center;
  gap: 5px;
  height: 100%;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.chart-value {
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

.chart-bar-wrap {
  width: min(28px, 70%);
  height: 100%;
  display: flex;
  align-items: flex-end;
  background: #f0f0ef;
  border-radius: 5px 5px 2px 2px;
  overflow: hidden;
}

.chart-bar {
  width: 100%;
  min-height: 5px;
  background: var(--gold);
  border-radius: 5px 5px 2px 2px;
}

.chart-bar.dark {
  background: var(--ink-2);
}

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

.process-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 2fr 60px;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  color: #555a60;
  font-size: 12px;
}

.process-row:last-child {
  border-bottom: 0;
}

.process-row strong {
  text-align: right;
  font-size: 11px;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.mini-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #3c321d;
  background: var(--gold-soft);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
}

/* Modal and toast */
.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 21, 23, .58);
  animation: fadeIn .15s ease;
}

.modal {
  width: min(100%, 430px);
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0,0,0,.2);
  animation: riseIn .18s ease;
}

.modal-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #332919;
  background: var(--gold);
  border-radius: 10px;
}

.modal h2 {
  margin-bottom: 10px;
  font-size: 20px;
}

.modal p {
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.toast {
  position: fixed;
  z-index: 120;
  right: 24px;
  bottom: 24px;
  width: min(360px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: #fff;
  background: #25272a;
  border: 1px solid #3a3d40;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0,0,0,.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #26221a;
  background: var(--gold);
  border-radius: 7px;
}

.toast-icon .icon {
  width: 16px;
  height: 16px;
}

.toast strong,
.toast span {
  display: block;
}

.toast strong {
  margin-bottom: 2px;
  font-size: 12px;
}

.toast div > span {
  color: #afb3b8;
  font-size: 10px;
}

.mobile-overlay {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .login-screen { grid-template-columns: minmax(330px, .75fr) 1fr; }
  .login-brand { padding: 45px; }
  .login-main { padding: 38px; }
  .app-shell { display: block; }
  .app-main { width: 100%; }
  .sidebar {
    transform: translateX(-100%);
    box-shadow: 18px 0 50px rgba(0,0,0,.18);
    transition: transform .2s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close, .menu-button { display: inline-grid; }
  .mobile-overlay {
    position: fixed;
    z-index: 25;
    inset: 0;
    background: rgba(17,18,20,.48);
  }
  .mobile-overlay.show { display: block; }
  .detail-layout { grid-template-columns: 1fr; }
  .charts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .login-screen { display: block; }
  .login-brand { display: none; }
  .login-main { min-height: 100vh; padding: 30px 20px; }
  .mobile-brand { display: flex; }
  .topbar { height: 68px; padding: 0 17px; }
  .topbar-actions .date-chip, .topbar-actions .button { display: none; }
  .avatar-button { display: grid; }
  .page-content { padding: 23px 16px 40px; }
  .welcome-row { align-items: flex-start; flex-direction: column; }
  .stats-grid, .stats-grid.stats-grid-user { grid-template-columns: 1fr; gap: 9px; }
  .stat-card { min-height: 82px; }
  .stat-value { font-size: 25px; }
  .card-header { align-items: flex-start; flex-direction: column; }
  .header-actions, .filters { width: 100%; }
  .search-field { width: 100%; }
  .filter-select { min-width: 0; width: 100%; }
  .project-hero { flex-direction: column; }
  .project-hero h2 { font-size: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full-width { grid-column: auto; }
  .radio-grid { grid-template-columns: 1fr; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .form-hint { margin: 0; }
  .info-grid { grid-template-columns: 1fr; border-right: 1px solid var(--line); }
  .summary-row { grid-template-columns: 95px 1fr; }
  .charts-grid { gap: 14px; }
  .bar-chart { gap: 6px; padding-inline: 14px; }
  .process-row { grid-template-columns: 1fr 1.4fr 52px; gap: 8px; padding-inline: 13px; }
  .data-preview div { grid-template-columns: 100px 1fr; }
}

@media (max-width: 480px) {
  .quick-login-grid { grid-template-columns: 1fr; }
  .quick-login.admin-login { grid-column: auto; }
  .login-box h2 { font-size: 27px; }
  .page-content { padding-inline: 12px; }
  .topbar { padding-inline: 12px; }
  .topbar h1 { font-size: 17px; }
  .content-card { border-radius: 10px; }
  .form-card { padding: 17px; }
  .modal { padding: 22px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* Mobile-first shell for operational roles */
.bottom-nav {
  display: none;
}

.app-shell.staff-shell {
  display: block;
  min-height: 100vh;
  background: #f6f7f4;
}

.staff-shell .sidebar,
.staff-shell .mobile-overlay,
.staff-shell .menu-button,
.staff-shell .date-chip,
.staff-shell .topbar-actions .button {
  display: none !important;
}

.staff-shell .app-main {
  width: 100%;
  min-height: 100vh;
  background:
    radial-gradient(circle at 75% -10%, rgba(198, 161, 91, .12), transparent 40%),
    #f6f7f4;
}

.staff-shell .topbar {
  display: none;
}

.staff-shell .page-content {
  width: 100%;
  max-width: none;
  padding: 0 clamp(22px, 4vw, 72px) 80px;
}

.staff-shell .bottom-nav {
  position: fixed;
  z-index: 24;
  left: 0;
  bottom: 0;
  width: 100%;
  min-height: 72px;
  display: none;
  align-items: flex-start;
  justify-content: space-around;
  gap: 2px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid rgba(32, 34, 37, .10);
  box-shadow: 0 -10px 30px rgba(25, 27, 25, .06);
  backdrop-filter: blur(16px);
}

.staff-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 22px 0 21px;
  border-bottom: 1px solid #e2e5df;
}

.staff-brand-lockup {
  display: flex;
  align-items: center;
  gap: 19px;
}

.staff-logo-dark {
  width: 167px;
  height: auto;
  display: block;
}

.staff-brand-label {
  min-height: 31px;
  display: flex;
  align-items: center;
  padding-left: 18px;
  color: #858a83;
  border-left: 1px solid #d8dbd4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.staff-navigation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 13px;
  margin-bottom: 38px;
}

.staff-nav-card {
  min-width: 0;
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #e3e5df;
  border-radius: 17px;
  box-shadow: 0 5px 18px rgba(33, 35, 33, .035);
  text-align: left;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.staff-nav-card:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 25px rgba(33, 35, 33, .08);
  transform: translateY(-2px);
}

.staff-nav-card.active {
  border-color: #c8a65f;
  background: #fbf6eb;
  box-shadow: inset 0 0 0 1px rgba(198, 161, 91, .14);
}

.staff-nav-icon {
  width: 47px;
  height: 47px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--gold-dark);
  background: #f7f1e5;
  border-radius: 13px;
}

.staff-nav-card.active .staff-nav-icon {
  color: #27231d;
  background: var(--gold);
}

.staff-nav-icon .icon {
  width: 21px;
  height: 21px;
}

.staff-nav-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.staff-nav-copy strong {
  font-family: var(--font-display);
  font-size: 15px;
}

.staff-nav-copy small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.staff-nav-arrow {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: #b7b9b2;
}

.staff-nav-card.active .staff-nav-arrow {
  color: var(--gold-dark);
}

.staff-page-body {
  width: 100%;
}

.staff-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(310px, .6fr);
  align-items: start;
  gap: 20px;
}

.role-flow-card {
  min-height: 100%;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.role-flow-kicker {
  color: var(--gold-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.role-flow-card h2 {
  margin: 8px 0;
  font-size: 21px;
}

.role-flow-card > p {
  max-width: 340px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.role-flow-list {
  display: grid;
  gap: 8px;
  margin-top: 26px;
}

.role-flow-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  background: #f8f9f6;
  border: 1px solid #eceee9;
  border-radius: 13px;
}

.role-flow-icon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  color: var(--gold-dark);
  background: var(--gold-soft);
  border-radius: 10px;
}

.role-flow-icon .icon {
  width: 17px;
  height: 17px;
}

.role-flow-item small,
.role-flow-item strong {
  display: block;
}

.role-flow-item small {
  margin-bottom: 3px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 800;
}

.role-flow-item strong {
  font-size: 12px;
}

.role-flow-arrow {
  width: 15px;
  height: 15px;
  margin-left: auto;
  color: #bfc2bc;
}

.bottom-nav-item {
  min-width: 64px;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 3px 8px;
  color: #929790;
  background: transparent;
  border: 0;
  border-radius: 12px;
}

.bottom-nav-item > span {
  width: 36px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.bottom-nav-item .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.bottom-nav-item small {
  font-size: 10px;
  font-weight: 700;
}

.bottom-nav-item.active {
  color: #2a2c2a;
}

.bottom-nav-item.active > span {
  color: #2a241a;
  background: var(--gold-soft);
}

.bottom-nav-item.active small {
  color: var(--gold-dark);
}

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

.mobile-welcome > div:first-child > span,
.mobile-page-intro > span {
  display: block;
  margin-bottom: 5px;
  color: var(--gold-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}

.mobile-welcome h2,
.mobile-page-intro h2 {
  margin-bottom: 5px;
  font-size: 25px;
}

.mobile-welcome p,
.mobile-page-intro p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.mobile-summary {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 10px;
}

.mobile-summary span {
  display: grid;
  gap: 1px;
}

.mobile-summary strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
}

.mobile-summary i {
  width: 1px;
  height: 26px;
  background: var(--line);
}

.focus-task-card {
  position: relative;
  margin-bottom: 25px;
  padding: 22px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 94% 5%, rgba(198, 161, 91, .22), transparent 35%),
    linear-gradient(145deg, #202224, #292b2c);
  border: 1px solid #37393a;
  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(26, 28, 27, .18);
}

.focus-task-card::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -75px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(198, 161, 91, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(198, 161, 91, .035);
  pointer-events: none;
}

.focus-task-head,
.focus-task-main,
.focus-meta,
.focus-button,
.focus-progress,
.focus-instruction {
  position: relative;
  z-index: 1;
}

.focus-task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.focus-kicker {
  color: #d9bd82;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.focus-step {
  padding: 4px 8px;
  color: #c7c9c6;
  background: rgba(255, 255, 255, .07);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}

.focus-task-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.focus-task-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: #28231a;
  background: var(--gold);
  border-radius: 15px;
  box-shadow: 0 7px 18px rgba(198, 161, 91, .18);
}

.focus-task-icon .icon {
  width: 23px;
  height: 23px;
  stroke-width: 2;
}

.focus-stage {
  color: #d6bd87;
  font-size: 11px;
  font-weight: 700;
}

.focus-task-main h2 {
  margin: 2px 0;
  color: #fff;
  font-size: 21px;
}

.focus-task-main p {
  margin: 0;
  color: #afb3af;
  font-size: 12px;
}

.focus-instruction {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 18px 0;
  padding: 12px;
  color: #e5e7e3;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
}

.focus-instruction .icon {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--gold);
}

.focus-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: #aeb2ae;
  font-size: 11px;
}

.focus-meta span,
.mobile-order-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.focus-meta .icon,
.mobile-order-meta .icon {
  width: 13px;
  height: 13px;
}

.focus-progress,
.mobile-card-progress {
  height: 4px;
  margin: 17px 0;
  overflow: hidden;
  background: rgba(255, 255, 255, .10);
  border-radius: 20px;
}

.focus-progress span,
.mobile-card-progress span {
  height: 100%;
  display: block;
  background: var(--gold);
  border-radius: inherit;
}

.focus-button {
  width: 100%;
  color: #211e19;
  background: var(--gold);
  border-color: var(--gold);
}

.focus-button:hover {
  background: #d0ad68;
}

.mobile-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}

.mobile-section-heading h2 {
  margin: 0;
  font-size: 17px;
}

.mobile-section-heading > span {
  min-width: 25px;
  padding: 3px 8px;
  color: #775a26;
  background: var(--gold-soft);
  border-radius: 20px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
}

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

.mobile-order-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 13px;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 5px 16px rgba(31, 34, 31, .035);
}

.mobile-order-card.is-completed {
  border-color: #dbeadf;
  background: #fcfefd;
}

.mobile-order-card.is-completed .mobile-order-icon {
  color: var(--success);
  background: var(--success-soft);
}

.mobile-order-card.is-completed .mobile-stage-label {
  color: var(--success);
}

.mobile-order-card.is-completed .mobile-order-open {
  color: var(--success);
  background: var(--success-soft);
}

.task-sections {
  display: grid;
  gap: 32px;
}

.mobile-order-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--gold-dark);
  background: var(--gold-soft);
  border-radius: 13px;
}

.mobile-order-icon .icon {
  width: 20px;
  height: 20px;
}

.mobile-order-copy {
  min-width: 0;
}

.mobile-order-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.mobile-stage-label {
  color: var(--gold-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.mobile-order-card .badge {
  padding: 3px 7px;
  font-size: 8px;
}

.mobile-order-card h3 {
  margin: 0 0 2px;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-order-card p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: 8px;
  color: #8b8f89;
  font-size: 9px;
}

.mobile-card-progress {
  height: 3px;
  margin: 10px 0 0;
  background: #eeefec;
}

.mobile-order-open {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #595d58;
  background: #f4f5f2;
  border: 0;
  border-radius: 10px;
}

.mobile-order-open .icon {
  width: 16px;
  height: 16px;
}

.mobile-page-intro {
  margin-bottom: 21px;
}

.mobile-empty-state {
  display: grid;
  justify-items: center;
  padding: 44px 24px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 19px;
  text-align: center;
}

.mobile-empty-state > span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--success);
  background: var(--success-soft);
  border-radius: 50%;
}

.mobile-empty-state h3 {
  margin-bottom: 5px;
}

.mobile-empty-state p {
  margin: 0;
  font-size: 12px;
}

.task-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--gold-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
}

.staff-shell .project-hero {
  margin-bottom: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
}

.staff-shell .project-hero h2 {
  font-size: 21px;
}

.staff-shell .task-banner {
  margin-bottom: 12px;
  padding: 17px;
  color: #5d4218;
  background: linear-gradient(135deg, #fbf5e9, #f3e5c8);
  border-radius: 16px;
}

.staff-shell .task-banner-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.staff-shell .task-banner h3 {
  font-size: 15px;
}

.mobile-flow-card {
  margin-bottom: 13px;
  padding: 17px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.mobile-flow-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mobile-flow-head span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.mobile-flow-head h3 {
  margin: 0;
  font-size: 15px;
}

.mobile-flow-head strong {
  color: var(--gold-dark);
  font-size: 12px;
}

.mobile-flow-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-flow-track::before {
  content: "";
  position: absolute;
  right: 9px;
  left: 9px;
  height: 2px;
  background: #e4e6e2;
}

.mobile-flow-dot {
  width: 18px;
  height: 18px;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #b3b7b1;
  background: #fff;
  border: 2px solid #dfe1dd;
  border-radius: 50%;
}

.mobile-flow-dot .icon {
  width: 10px;
  height: 10px;
  stroke-width: 2.5;
}

.mobile-flow-dot.done {
  color: #25231f;
  background: var(--gold);
  border-color: var(--gold);
}

.mobile-flow-dot.current {
  width: 25px;
  height: 25px;
  color: #fff;
  background: var(--ink);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.mobile-flow-dot.current .icon {
  width: 12px;
  height: 12px;
}

.mobile-flow-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 10px;
}

.mobile-flow-caption span:first-child {
  color: var(--ink);
  font-weight: 700;
}

.mobile-flow-caption i {
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 5px;
  background: var(--gold);
  border-radius: 50%;
}

.staff-shell .form-card {
  margin-bottom: 13px;
  border-radius: 16px;
}

.staff-shell .detail-layout {
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr);
  gap: 13px;
}

.staff-shell .detail-main,
.staff-shell .detail-aside {
  gap: 13px;
}

.staff-shell .detail-main .content-card,
.staff-shell .detail-aside .content-card {
  border-radius: 16px;
  box-shadow: none;
}

.list-search {
  width: min(100%, 320px);
  position: relative;
  flex: 0 1 320px;
}

.list-search > .icon {
  width: 17px;
  height: 17px;
  position: absolute;
  top: 50%;
  left: 12px;
  color: var(--muted-2);
  pointer-events: none;
  transform: translateY(-50%);
}

.list-search input {
  min-height: 40px;
  padding: 9px 12px 9px 39px;
  background: #fff;
  font-size: 12px;
}

.task-sections > .list-search {
  width: min(100%, 420px);
  margin-bottom: -7px;
}

.list-search-empty {
  padding: 22px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.task-sections > .list-search-empty {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 18px;
  margin-bottom: 24px;
}

.admin-count {
  min-width: 28px;
  padding: 5px 8px;
  color: var(--danger);
  background: var(--danger-soft);
  border-radius: 20px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
}

.admin-attention-item {
  width: 100%;
  min-height: 64px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.admin-attention-item:hover {
  background: #fbfaf7;
}

.admin-attention-item .attention-copy {
  min-width: 0;
}

.admin-attention-item .attention-copy strong,
.admin-attention-item .attention-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-overview-empty {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 22px;
  color: var(--success);
  font-size: 12px;
}

.admin-overview-grid .mini-status-row {
  grid-template-columns: 112px 1fr 25px;
}

@media (max-width: 1200px) {
  .staff-dashboard-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  }

  .staff-nav-card {
    padding: 14px;
    gap: 10px;
  }

  .staff-nav-arrow {
    display: none;
  }
}

@media (max-width: 950px) {
  .staff-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 30px;
  }

  .staff-dashboard-grid,
  .staff-shell .detail-layout,
  .admin-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .card-header > .list-search {
    width: 100%;
    flex-basis: auto;
  }

  .admin-create-button {
    width: 100%;
  }

  .staff-shell .bottom-nav {
    display: flex;
  }

  .staff-shell .page-content {
    padding: 0 15px 108px;
  }

  .staff-masthead {
    margin-bottom: 18px;
    padding: 14px 0 17px;
  }

  .staff-logo-dark {
    width: 135px;
  }

  .staff-brand-label,
  .staff-navigation,
  .role-flow-card {
    display: none;
  }

  .profile-trigger {
    width: 46px;
    min-height: 46px;
    justify-content: center;
    padding: 4px;
    border-radius: 13px;
  }

  .profile-trigger-copy,
  .profile-chevron {
    display: none;
  }

  .mobile-order-list {
    grid-template-columns: 1fr;
  }

  .mobile-welcome {
    align-items: flex-start;
  }

  .mobile-welcome h2,
  .mobile-page-intro h2 {
    font-size: 22px;
  }

  .mobile-summary {
    padding: 8px 10px;
  }

  .focus-task-card {
    padding: 19px;
    border-radius: 19px;
  }

  .mobile-order-card {
    grid-template-columns: 40px minmax(0, 1fr) 28px;
    gap: 10px;
    padding: 13px;
  }

  .mobile-order-icon {
    width: 40px;
    height: 40px;
  }

  .bottom-nav-item {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 3px;
  }
}

@media (max-width: 390px) {
  .mobile-summary {
    display: none;
  }

  .focus-task-main h2 {
    font-size: 18px;
  }

  .focus-meta {
    display: grid;
    gap: 7px;
  }

  .mobile-order-meta span:first-child {
    display: none;
  }
}
