:root {
  color-scheme: light;
  --vow-ink: #1a1a1a;
  --vow-charcoal: #2c2c2c;
  --vow-silver: #9a9a9a;
  --vow-silver-soft: #c8c8c8;
  --vow-mist: #f4f4f4;
  --vow-paper: #ffffff;
  --vow-line: #e2e2e2;
  --vow-accent: #8a8a8a;
  --vow-sidebar: #1c1c1c;
  --vow-sidebar-deep: #111111;
  --navy: var(--vow-ink);
  --navy-soft: var(--vow-charcoal);
  --ink: var(--vow-ink);
  --muted: #7a7a7a;
  --line: var(--vow-line);
  --canvas: var(--vow-mist);
  --gold: var(--vow-accent);
  --gold-soft: #efefef;
  --white: var(--vow-paper);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--canvas); }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 0.95fr) minmax(420px, 1.05fr); background: #fff; }
.login-panel { width: min(480px, calc(100% - 64px)); margin: auto; padding: 56px 0; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-logo-mark { display: block; width: auto; height: 36px; object-fit: contain; }
.brand-login .brand-logo-mark { height: 42px; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; color: #fff; background: var(--vow-charcoal); border-radius: 12px 12px 12px 3px; font: italic 28px Georgia, serif; box-shadow: 0 7px 18px #1a1a1a22; }
.brand-name { color: var(--navy); font-weight: 800; letter-spacing: .12em; font-size: 15px; }
.brand-name span { font-weight: 500; letter-spacing: .16em; }
.brand-subtitle { margin-top: 5px; font-size: 8px; letter-spacing: .22em; color: var(--vow-silver); font-weight: 700; }
.login-copy { margin: 48px 0 32px; }
.eyebrow { margin: 0 0 11px; color: var(--vow-accent); font-size: 10px; letter-spacing: .18em; font-weight: 800; }
.login-copy h1 { margin: 0 0 12px; font-size: clamp(29px, 3vw, 38px); line-height: 1.14; letter-spacing: -.04em; color: var(--navy); }
.muted { color: var(--muted); line-height: 1.6; margin: 0; font-size: 13px; }
.login-form { display: grid; gap: 10px; }
.login-form label { margin-top: 8px; font-size: 12px; color: #4b4b4b; font-weight: 700; }
.login-form input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #d8d8d8; border-radius: 7px; outline: none; color: var(--ink); background: #fff; transition: border .15s, box-shadow .15s; font-size: 16px; }
.login-form input:focus { border-color: var(--vow-accent); box-shadow: 0 0 0 3px #8a8a8a1c; }
.login-form input::placeholder { color: #adadad; }
.login-form .remember-row {
  display: flex; align-items: center; gap: 10px; margin: 8px 0 4px;
  font-weight: 500; font-size: 14px; color: #444;
}
.login-form .remember-row input { width: 20px; height: 20px; min-height: 0; padding: 0; }
.login-tablet-note {
  margin: 12px 0 0; padding: 12px 14px; border-radius: 12px;
  background: #f3f4f6; border: 1px solid #e2e5ea; color: #333;
  font-size: 13px; line-height: 1.45;
}
.login-install-btn {
  appearance: none; cursor: pointer; font: inherit;
  width: 100%; min-height: 48px; margin-top: 4px;
  border-radius: 10px; border: 1px solid #C5A059;
  background: #171717; color: #C5A059;
  font-size: 14px; font-weight: 700;
}
.login-install-hint {
  margin: 8px 0 0; color: #666; font-size: 12px; line-height: 1.45;
}
.primary-button { margin-top: 15px; min-height: 49px; padding: 0 17px; display: flex; justify-content: space-between; align-items: center; border: 0; border-radius: 7px; color: #fff; background: var(--vow-ink); font-weight: 700; transition: background .15s, transform .15s; }
.primary-button:hover { background: var(--vow-charcoal); transform: translateY(-1px); }
.primary-button:disabled { opacity: .65; cursor: wait; transform: none; }
.form-error { color: #a33e3e; background: #fff1f0; border: 1px solid #f0d0cd; padding: 10px 12px; border-radius: 6px; font-size: 12px; margin: 4px 0 0; }
.login-footer { display: flex; align-items: center; gap: 8px; color: #929292; font-size: 10px; margin-top: 28px; }
.secure-dot, .status-dot { width: 7px; height: 7px; border-radius: 50%; background: #3b9a72; display: inline-block; }
.environment-tag { margin-left: auto; letter-spacing: .1em; color: var(--vow-silver); font-size: 8px; font-weight: 800; }
.login-contact {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--vow-line);
  color: #666;
  font-size: 11px;
  line-height: 1.55;
}
.login-contact p { margin: 0 0 8px; }
.login-contact a { color: var(--vow-charcoal); text-decoration: none; }
.login-contact a:hover { text-decoration: underline; }
.login-contact .vow-quicklinks-label {
  margin: 14px 0 6px;
  font-size: 9px;
  letter-spacing: .16em;
  font-weight: 800;
  color: var(--vow-silver);
  text-transform: uppercase;
}
.vow-quicklinks { display: flex; flex-wrap: wrap; gap: 12px; }
.vow-quicklinks a {
  color: var(--vow-charcoal);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}
.vow-quicklinks a:hover { border-bottom-color: var(--vow-silver); }
.login-aside {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 9%;
  color: #f2f2f2;
  background: linear-gradient(160deg, var(--vow-sidebar-deep) 0%, var(--vow-sidebar) 52%, #2a2a2a 100%);
}
.aside-glow {
  position: absolute;
  width: 660px;
  height: 660px;
  right: -210px;
  top: 5%;
  border-radius: 50%;
  border: 1px solid #ffffff12;
  box-shadow: 0 0 0 55px #ffffff06, 0 0 0 115px #ffffff04;
}
.aside-content { max-width: 500px; position: relative; z-index: 1; }
.aside-brand-lockup {
  display: block;
  width: min(280px, 100%);
  height: auto;
  margin-bottom: 36px;
  object-fit: contain;
}
.eyebrow.light { color: var(--vow-silver-soft); }
.aside-content h2 { margin: 20px 0; font: 500 clamp(40px, 5vw, 64px)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.aside-content h2 em { color: var(--vow-silver-soft); font-weight: 400; }
.aside-content > p:not(.eyebrow) { max-width: 370px; color: #c4c4c4; font-size: 14px; line-height: 1.8; }
.aside-line { width: 54px; height: 2px; margin: 45px 0 17px; background: var(--vow-silver); }
.aside-caption { color: var(--vow-silver); font-size: 9px; font-weight: 800; letter-spacing: .22em; }
.aside-watermark { position: absolute; right: 2%; bottom: -20%; color: #ffffff07; font: italic 520px Georgia, serif; line-height: 1; pointer-events: none; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  width: 252px;
  flex: 0 0 252px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 27px 17px 19px;
  color: #d8d8d8;
  background: linear-gradient(180deg, var(--vow-sidebar) 0%, var(--vow-sidebar-deep) 100%);
}
.sidebar-brand { padding: 0 7px 29px; border-bottom: 1px solid #ffffff12; }
.sidebar-brand .brand-logo-mark { height: 30px; }
.sidebar-brand .brand-mark { width: 38px; height: 38px; }
.sidebar-brand .brand-name { color: #fff; font-size: 12px; }
.sidebar-brand .brand-name span { font-size: 10px; }
.sidebar-brand .brand-subtitle { color: var(--vow-silver); font-size: 7px; }
.branch-switcher { margin: 22px 0 25px; padding: 11px; display: flex; align-items: center; gap: 10px; border: 1px solid #ffffff19; border-radius: 8px; background: #ffffff08; }
.branch-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; background: #ffffff14; color: var(--vow-silver-soft); font-size: 10px; font-weight: 800; }
.branch-switcher small, .branch-switcher strong { display: block; }
.branch-switcher small { color: #9a9a9a; font-size: 7px; letter-spacing: .15em; margin-bottom: 5px; }
.branch-switcher strong { font-size: 11px; color: #fff; }
.branch-chevron { margin-left: auto; color: #9a9a9a; }
.nav-heading { margin: 0 10px 10px; color: #8a8a8a; font-size: 8px; font-weight: 800; letter-spacing: .18em; }
.nav-heading-spaced { margin-top: 30px; }
.side-nav { display: block; }
.nav-link { min-height: 42px; padding: 0 11px; margin: 3px 0; display: flex; align-items: center; gap: 12px; color: #bdbdbd; text-decoration: none; border-radius: 6px; font-size: 11px; }
.nav-fold { margin: 3px 0 8px; }
.nav-fold > summary { list-style: none; cursor: pointer; width: 100%; font-weight: inherit; color: inherit; }
.nav-fold > summary::-webkit-details-marker { display: none; }
.nav-fold > summary::marker { content: ""; }
.nav-fold > summary::after { content: "▸"; margin-left: auto; color: #9a9a9a; font-size: 11px; }
.nav-fold[open] > summary::after { content: "▾"; }
.nav-fold:not([open]) > .stock-nav-sub { display: none; }
.stock-nav-sub { display: grid; gap: 2px; margin: 0 0 8px 28px; }
.stock-nav-sub a { padding: 6px 10px; border-radius: 6px; color: #c8c8c8; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-decoration: none; }
.stock-nav-sub a:hover, .stock-nav-sub a.is-current { background: #ffffff14; color: #fff; }
.nav-link.active { color: #fff; background: #ffffff12; box-shadow: inset 2px 0 var(--vow-silver); }
.nav-icon { width: 17px; text-align: center; font-size: 16px; color: var(--vow-silver); }
.nav-link.disabled { opacity: .54; cursor: default; }
.nav-link.disabled small { margin-left: auto; color: #8b8b8b; font-size: 7px; letter-spacing: .08em; }
.sidebar-bottom { margin-top: auto; }
.sidebar-help { padding: 12px 9px; display: flex; gap: 9px; border: 1px solid #ffffff12; border-radius: 7px; }
.help-mark { width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; border-radius: 50%; color: #e8e8e8; background: #ffffff18; font-size: 11px; }
.sidebar-help strong, .sidebar-help small { display: block; }
.sidebar-help strong { color: #ececec; font-size: 9px; margin-bottom: 5px; }
.sidebar-help small { color: #9a9a9a; font-size: 8px; line-height: 1.4; }
.sidebar-version { margin: 18px 5px 0; color: #6f6f6f; font-size: 7px; letter-spacing: .14em; }
.sidebar-version span { color: var(--vow-silver); padding: 0 3px; }
.main-area { flex: 1; min-width: 0; }
.topbar { height: 75px; padding: 0 38px; display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumb { color: #909090; font-size: 11px; }
.breadcrumb span { padding: 0 9px; color: var(--vow-silver); }
.breadcrumb strong { color: #3a3a3a; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 23px; }
.api-status { display: flex; align-items: center; gap: 7px; color: #787878; font-size: 9px; }
.api-status.offline .status-dot { background: #c45a51; }
.user-menu { display: flex; align-items: center; gap: 9px; border-left: 1px solid var(--line); padding-left: 20px; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #4a4a4a; background: #efefef; font-size: 10px; font-weight: 800; }
.user-details strong, .user-details small { display: block; }
.user-details strong { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #3a3a3a; font-size: 10px; }
.user-details small { margin-top: 4px; color: #929292; font-size: 8px; }
.logout-button { padding: 7px 11px; color: #656565; background: #fff; border: 1px solid #e4e4e4; border-radius: 5px; font-size: 9px; }
.logout-button:hover { color: #1a1a1a; border-color: var(--vow-silver); }
.page-content { max-width: 1440px; margin: 0 auto; padding: 34px 38px 22px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading .eyebrow { margin-bottom: 8px; }
.page-heading h1 { margin: 0 0 8px; color: var(--navy); font-size: 29px; letter-spacing: -.045em; }
.heading-period { color: var(--vow-accent); }
.date-chip { display: flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 6px; color: #6d6d6d; background: #fff; font-size: 10px; white-space: nowrap; }
.date-chip span:first-child { color: var(--vow-accent); font-size: 14px; }
.welcome-strip { min-height: 75px; padding: 15px 18px; display: flex; align-items: center; gap: 14px; background: #f0f0f0; border: 1px solid #e4e4e4; border-radius: 8px; }
.welcome-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 36px; border-radius: 50%; color: #4a4a4a; background: #e4e4e4; font-size: 16px; }
.welcome-strip strong { color: #333; font-size: 11px; }
.welcome-strip p { margin: 5px 0 0; color: #6a6a6a; font-size: 9px; }
.welcome-branch { margin-left: auto; color: #6a6a6a; white-space: nowrap; font-size: 8px; letter-spacing: .12em; font-weight: 800; }
.staff-sale-toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  padding: 14px 18px; border-radius: 12px; background: #171717; color: #F8F5F0;
  font-size: 14px; font-weight: 650; box-shadow: 0 12px 28px rgba(0,0,0,.28);
  border: 1px solid #C5A059;
}
.staff-sale-toast a { color: #C5A059; margin-left: 8px; }
.staff-nav { display: none; }
.staff-header-brand { display: none; align-items: center; text-decoration: none; }
.staff-header-brand img { display: block; height: 22px; width: auto; }

/* —— Personnel dashboard (reference layout) —— */
body.role-staff {
  --staff-cream: #F8F5F0;
  --staff-ink: #171717;
  --staff-muted: #666666;
  --staff-gold: #C5A059;
  background: var(--staff-cream);
  font-family: "DM Sans", "Segoe UI", sans-serif;
}
body.role-staff .admin-nav,
body.role-staff .admin-only-panel,
body.role-staff .vow-site-footer,
body.role-staff .sidebar,
body.role-staff .breadcrumb { display: none !important; }
body.role-staff .app-shell { grid-template-columns: 1fr; min-height: 100vh; }
body.role-staff .main-area { min-width: 0; background: var(--staff-cream); }
body.role-staff .topbar {
  background: #000;
  color: #fff;
  border-bottom: 1px solid var(--staff-gold);
  padding: 0 28px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 20;
}
body.role-staff .staff-header-brand { display: inline-flex; }
body.role-staff .topbar-right { color: #fff; gap: 16px; }
body.role-staff .language-control { color: #ddd; }
body.role-staff .language-control select {
  background: transparent; color: #fff; border: 1px solid #333; border-radius: 8px; height: 34px;
}
body.role-staff .api-status { color: #ddd; }
body.role-staff .api-status .status-dot { background: #3ecf6a; box-shadow: 0 0 0 3px rgba(62,207,106,.18); }
body.role-staff .api-status.offline .status-dot { background: #d45454; }
body.role-staff .user-menu { color: #fff; }
body.role-staff .user-details strong { color: #fff; }
body.role-staff .user-details small { color: #b0b0b0; }
body.role-staff .avatar { background: #1c1c1c; color: #C5A059; border: 1px solid #333; }
body.role-staff .logout-button {
  border: 1px solid #fff; color: #fff; background: transparent; border-radius: 8px;
  min-height: 36px; padding: 0 14px;
}
body.role-staff .logout-button:hover { background: #fff; color: #000; }
body.role-staff .page-content {
  max-width: 1280px; margin: 0 auto; padding: 28px 28px 40px; background: transparent;
}

.staff-desk { display: grid; gap: 26px; }
.staff-product-lookup {
  padding: 20px 22px; border-radius: 20px; background: #fff;
  border: 1px solid #ece7df; box-shadow: 0 10px 24px rgba(23,23,23,.05);
}
.staff-lookup-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.staff-lookup-head h2 {
  margin: 0; color: var(--staff-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px; font-weight: 600; letter-spacing: -.02em;
}
.staff-lookup-lead { margin: 6px 0 0; color: var(--staff-muted); font-size: 14px; }
.staff-lookup-field {
  display: grid; gap: 6px; min-width: min(100%, 280px); flex: 1 1 240px; max-width: 360px;
}
.staff-lookup-field span {
  color: #666; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.staff-lookup-field input {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1px solid #d9d2c6; background: #fbf8f2; color: #171717;
  font: inherit; font-size: 18px; font-weight: 650; letter-spacing: .04em;
}
.staff-lookup-field input:focus {
  outline: none; border-color: #C5A059; box-shadow: 0 0 0 3px rgba(197,160,89,.18);
}
.staff-lookup-status { margin: 14px 0 0; color: #666; font-size: 14px; }
.staff-lookup-choices {
  margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px;
}
.staff-lookup-choices button,
.staff-lookup-choice {
  appearance: none; cursor: pointer; font: inherit;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px 8px 8px; border-radius: 10px; border: 1px solid #e4ddd1;
  background: #f7f1e6; color: #171717; text-align: left; max-width: 100%;
}
.staff-lookup-choices button:hover,
.staff-lookup-choice:hover { border-color: #C5A059; }
.staff-lookup-choice-copy {
  display: grid; gap: 2px; min-width: 0;
}
.staff-lookup-choice-copy strong {
  font-size: 14px; letter-spacing: .04em;
}
.staff-lookup-choice-copy span {
  color: #666; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: min(52vw, 360px);
}
.staff-code-thumb {
  width: 42px; height: 42px; border-radius: 8px; object-fit: cover;
  background: #1a1a1a; flex: 0 0 auto; display: block;
}
.staff-product-code {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
}
.staff-product-code .staff-code-thumb {
  width: 36px; height: 36px; border-radius: 7px;
}
.dash-code-pair {
  display: inline-flex; align-items: center; gap: 8px;
}
.dash-code-pair .staff-code-thumb {
  width: 34px; height: 34px; border-radius: 6px;
}
.staff-product-card {
  margin-top: 16px; display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 18px;
  padding: 16px; border-radius: 16px; background: #14181f; color: #f7f4ee;
}
.staff-product-photo-wrap {
  position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #0d1014;
}
.staff-product-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.staff-product-photo-empty {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #8a847a; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}
.staff-product-body { min-width: 0; display: grid; gap: 14px; align-content: start; }
.staff-product-title-row {
  display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap;
}
.staff-product-code {
  margin: 0; color: #d7c4a3; font-size: 12px; font-weight: 700; letter-spacing: .14em;
}
.staff-product-body h3 {
  margin: 4px 0 0; font-size: 24px; font-weight: 650; letter-spacing: -.02em;
  font-family: "Cormorant Garamond", Georgia, serif;
}
.staff-product-price {
  padding: 10px 14px; border-radius: 12px; background: #24362e; border: 1px solid #3d6b55;
  color: #e8f5ee; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.staff-product-price small {
  display: block; margin-top: 2px; font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #a8c4b4;
}
.staff-product-sold { margin: 0; color: #f0b4b4; font-size: 13px; font-weight: 600; }
.staff-product-branch {
  margin: 8px 0 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 650;
  background: rgba(215,196,163,.12); color: #d7c4a3; border: 1px solid rgba(215,196,163,.35);
}
.staff-product-branch.is-other {
  background: rgba(224,160,96,.16); color: #f0c090; border-color: rgba(224,160,96,.45);
}
.staff-product-branch .staff-branch-sellable {
  color: #b8d4a8; font-size: 11px; font-weight: 600;
}
.staff-product-branch small {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .85;
}
.staff-product-sections {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.staff-product-sections h4 {
  margin: 0 0 8px; color: #d7c4a3; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.staff-product-facts, .staff-product-stones { display: grid; gap: 6px; }
.staff-product-facts div, .staff-product-stones div, .staff-stone-row {
  display: grid; grid-template-columns: 88px 1fr; gap: 8px; align-items: baseline;
  padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.04);
  font-size: 13px;
}
.staff-product-facts span, .staff-product-stones span, .staff-stone-row span {
  color: #a8a29a; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
}
.staff-product-facts strong, .staff-product-stones strong, .staff-stone-row strong {
  color: #f7f4ee; font-size: 14px; font-weight: 650;
}
.staff-product-empty { color: #8a847a; font-size: 13px; padding: 4px 2px; }
.staff-product-history { margin-top: 4px; }
.staff-product-history h4 {
  margin: 0 0 8px; color: #d7c4a3; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.staff-product-timeline { display: grid; gap: 0; }
.staff-move {
  display: grid; grid-template-columns: 118px 12px 1fr; gap: 10px; align-items: start;
  padding: 8px 0;
}
.staff-move-when {
  color: #a8a29a; font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; padding-top: 2px;
}
.staff-move-rail {
  position: relative; width: 12px; display: flex; justify-content: center; min-height: 100%;
}
.staff-move-rail::before {
  content: ""; position: absolute; top: 0; bottom: -8px; width: 1px; background: rgba(215,196,163,.35);
}
.staff-move:last-child .staff-move-rail::before { bottom: 50%; }
.staff-move-dot {
  position: relative; z-index: 1; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%;
  background: #C5A059; box-shadow: 0 0 0 3px rgba(197,160,89,.18);
}
.staff-move.is-sale .staff-move-dot { background: #6fbf8f; box-shadow: 0 0 0 3px rgba(111,191,143,.18); }
.staff-move.is-return .staff-move-dot { background: #e0a060; box-shadow: 0 0 0 3px rgba(224,160,96,.18); }
.staff-move.is-count .staff-move-dot { background: #7aa2d4; box-shadow: 0 0 0 3px rgba(122,162,212,.18); }
.staff-move-body strong { display: block; font-size: 14px; font-weight: 650; }
.staff-move-body span { display: block; margin-top: 2px; color: #c4beb4; font-size: 12px; }
@media (max-width: 820px) {
  .staff-product-card { grid-template-columns: 1fr; }
  .staff-product-sections { grid-template-columns: 1fr; }
  .staff-product-photo-wrap { max-width: 320px; }
  .staff-move { grid-template-columns: 96px 12px 1fr; }
}
.staff-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.staff-hero-actions {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.staff-install-btn {
  appearance: none; cursor: pointer; font: inherit;
  min-height: 44px; padding: 0 16px; border-radius: 12px;
  border: 1px solid #C5A059; background: #171717; color: #C5A059;
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
}
.staff-install-btn:active { transform: translateY(1px); }
.staff-install-hint {
  margin: -8px 0 0; padding: 12px 14px; border-radius: 14px;
  background: #fff; border: 1px solid #ece7df; color: #444; font-size: 13px; line-height: 1.45;
}
.staff-install-hint strong { color: #171717; }
.staff-eyebrow {
  margin: 0 0 8px; color: var(--staff-gold); font-size: 11px; letter-spacing: .2em; font-weight: 700;
}
.staff-hero h1 {
  margin: 0; color: var(--staff-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 4.4vw, 48px); font-weight: 600; letter-spacing: -.02em; line-height: 1.05;
}
.staff-welcome { margin: 8px 0 0; color: var(--staff-muted); font-size: 15px; }
.staff-datetime {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px; background: #fff;
  border: 1px solid #ece7df; color: var(--staff-ink); font-size: 13px; font-weight: 600;
  box-shadow: 0 8px 20px rgba(23,23,23,.04);
}
.staff-datetime::before {
  content: ""; width: 16px; height: 16px; border-radius: 4px;
  background:
    linear-gradient(#C5A059,#C5A059) center 3px / 8px 2px no-repeat,
    linear-gradient(transparent,transparent) padding-box,
    linear-gradient(#C5A059,#C5A059) border-box;
  border: 1.5px solid #C5A059;
}

.staff-action-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px;
}
.staff-tile {
  display: flex; flex-direction: column; min-width: 0;
  border-radius: 20px; overflow: hidden; text-decoration: none; color: #fff;
  background: #111; box-shadow: 0 10px 24px rgba(23,23,23,.08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.staff-tile:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(23,23,23,.12); }
.staff-tile-media { display: block; aspect-ratio: 4 / 3; background: #1a1a1a; overflow: hidden; }
.staff-tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.staff-tile-bar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  min-height: 58px; padding: 0 14px; background: #000;
}
.staff-tile-icon { width: 22px; height: 22px; color: #C5A059; display: grid; place-items: center; }
.staff-tile-icon svg { width: 20px; height: 20px; }
.staff-tile-bar strong {
  font-size: 14px; font-weight: 650; letter-spacing: .01em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.staff-tile-arrow { color: #C5A059; font-size: 22px; line-height: 1; }

.staff-track-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.staff-track {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 12px;
  align-items: center; min-height: 132px; padding: 22px 24px; overflow: hidden;
  border-radius: 20px; background: #fff; text-decoration: none; color: inherit;
  border: 1px solid #ece7df; box-shadow: 0 10px 24px rgba(23,23,23,.05);
  transition: transform .18s ease, box-shadow .18s ease;
  width: 100%; text-align: left; cursor: pointer; font: inherit;
}
button.staff-track { appearance: none; }
.staff-track:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(23,23,23,.08); }
.staff-track.is-on { border-color: #14283F; box-shadow: inset 0 0 0 1px #14283F, 0 14px 28px rgba(23,23,23,.08); }
.staff-job-panel {
  margin-top: 14px; padding: 16px 18px; border-radius: 18px; background: #fff;
  border: 1px solid #ece7df; box-shadow: 0 10px 24px rgba(23,23,23,.05);
}
.staff-job-panel-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 0 0 12px;
}
.staff-job-panel-head h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.staff-job-panel-head a { font-size: 13px; color: #14283F; }
.staff-job-list { display: grid; gap: 8px; }
.staff-job {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  padding: 12px 14px; border-radius: 12px; background: #14181f; color: #f7f4ee;
}
.staff-job.is-ready { background: #1a2420; }
.staff-job-main { color: inherit; text-decoration: none; min-width: 0; }
.staff-job-top { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; }
.staff-job-top strong { font-size: 14px; letter-spacing: .04em; }
.staff-job-top em { font-style: normal; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #d7c4a3; }
.staff-job-name { display: block; margin-top: 4px; font-size: 18px; font-weight: 650; }
.staff-job-phone, .staff-job-meta, .staff-job-price {
  display: block; margin-top: 2px; font-size: 13px; color: #d9d4cb;
}
.staff-job-actions { display: grid; gap: 8px; justify-items: end; }
.staff-job-cust, .staff-job-hand {
  color: #d7c4a3; font-size: 12px; font-weight: 700; text-decoration: none;
  padding: 8px 10px; border: 1px solid #3c4d63; border-radius: 8px;
  background: transparent; cursor: pointer; font: inherit;
}
.staff-job-hand { color: #e8f5ee; border-color: #3d6b55; background: #24362e; }
.staff-job-hand:disabled { opacity: .55; cursor: wait; }
.staff-job-empty { padding: 18px 8px; color: #666; font-size: 14px; }
.staff-track-copy { display: flex; align-items: flex-start; gap: 14px; z-index: 1; min-width: 0; }
.staff-track-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  color: #C5A059; background: #f7f1e6; flex: 0 0 auto;
}
.staff-track-icon svg { width: 22px; height: 22px; }
.staff-track-copy strong {
  display: block; color: #171717; font-size: 20px; font-weight: 700; letter-spacing: -.02em;
}
.staff-track-copy small {
  display: block; margin-top: 4px; color: #666; font-size: 13px; line-height: 1.35;
}
.staff-track-count {
  z-index: 1; min-width: 52px; height: 44px; padding: 0 14px; border-radius: 12px;
  display: grid; place-items: center; background: #f4ead7; color: #171717;
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 28px; font-weight: 700;
  border: 1px solid #e6d7b8;
}
.staff-track-art {
  position: absolute; right: 18px; bottom: 8px; width: 118px; height: auto;
  opacity: .92; pointer-events: none; object-fit: contain;
}

/* Staff bottom nav — phone / tablet only */
.staff-bottom-nav { display: none; }

@media (max-width: 1100px) {
  .staff-action-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  body.role-staff .page-content {
    padding: 18px 16px calc(88px + env(safe-area-inset-bottom, 0px));
  }
  body.role-staff .topbar {
    padding: 0 14px;
    min-height: 56px;
    padding-top: env(safe-area-inset-top, 0px);
  }
  body.role-staff .language-control,
  body.role-staff .api-status,
  body.role-staff .user-details { display: none; }
  body.role-staff .logout-button {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }
  .staff-desk { gap: 18px; }
  .staff-hero h1 { font-size: clamp(28px, 7vw, 36px); }
  .staff-welcome { font-size: 14px; }
  .staff-hero-actions { width: 100%; align-items: stretch; }
  .staff-datetime { width: 100%; justify-content: center; }
  .staff-install-btn { width: 100%; min-height: 48px; font-size: 14px; }
  .staff-product-lookup { padding: 16px; border-radius: 16px; }
  .staff-lookup-head { align-items: stretch; flex-direction: column; gap: 12px; }
  .staff-lookup-field { max-width: none; flex: 1 1 auto; min-width: 0; }
  .staff-lookup-field input {
    min-height: 56px;
    font-size: 22px;
    border-radius: 14px;
    padding: 0 16px;
  }
  .staff-lookup-choices button,
  .staff-lookup-choice {
    width: 100%;
    min-height: 56px;
    padding: 10px 12px 10px 10px;
    border-radius: 14px;
  }
  .staff-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .staff-tile { border-radius: 16px; }
  .staff-tile-bar { min-height: 56px; padding: 0 12px; }
  .staff-tile-bar strong { font-size: 15px; }
  .staff-track {
    min-height: 112px;
    padding: 18px 16px;
    border-radius: 16px;
  }
  .staff-track-grid { grid-template-columns: 1fr; gap: 12px; }
  .staff-track-art { width: 88px; opacity: .8; }
  .staff-track-copy strong { font-size: 18px; }
  .staff-product-card { grid-template-columns: 1fr; }
  .staff-product-sections { grid-template-columns: 1fr; }
  .staff-product-photo-wrap { max-width: none; }
  .staff-move { grid-template-columns: 84px 12px 1fr; }

  .staff-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    min-height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(0, 0, 0, .94);
    border-top: 1px solid rgba(197, 160, 89, .45);
    backdrop-filter: blur(12px);
  }
  .staff-bottom-nav-item {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 2px;
    min-height: 52px;
    color: #b8b0a4;
    text-decoration: none;
    font-size: 18px;
    border-radius: 12px;
  }
  .staff-bottom-nav-item small {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .staff-bottom-nav-item.is-current,
  .staff-bottom-nav-item:active {
    color: #C5A059;
    background: rgba(197, 160, 89, .12);
  }
}
@media (max-width: 560px) {
  .staff-action-grid { grid-template-columns: 1fr 1fr; }
  .staff-hero { gap: 12px; }
  .staff-tile-media { aspect-ratio: 16 / 10; }
}
.stats-grid { margin: 20px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.stat-card { padding: 18px 19px 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 2px 8px #1a1a1a05; }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-label { color: #929292; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.stat-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 7px; font-size: 15px; }
.stat-icon.gold { color: #555; background: #efefef; }
.stat-icon.blue { color: #54789d; background: #edf3f8; }
.stat-icon.green { color: #4e8c71; background: #edf6f1; }
.stat-value { margin-top: 13px; color: var(--navy); font-size: 29px; line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.stat-card.catalogue { grid-column: span 2; }
.mix { display: grid; gap: 6px; margin-top: 12px; }
.mix div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; font-variant-numeric: tabular-nums; }
.mix .total { margin-top: 2px; padding-top: 6px; border-top: 1px solid var(--line); font-weight: 750; }
.stat-text { font-size: 23px; }
.stat-money { font-size: 24px; font-variant-numeric: tabular-nums; }
.stat-foot { margin-top: 9px; color: #9a9a9a; font-size: 9px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 2px 8px #1a1a1a05; }
.panel-heading { padding: 20px 21px 17px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-heading .eyebrow { margin-bottom: 7px; font-size: 8px; }
.panel-heading h2 { margin: 0 0 6px; color: var(--navy); font-size: 16px; letter-spacing: -.02em; }
.panel-heading .muted { font-size: 10px; }
.panel-badge { padding: 6px 8px; border-radius: 4px; color: #4b8a6b; background: #edf6f1; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
thead { background: #fafafa; }
th { padding: 11px 15px; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #eee; color: #969696; text-align: left; font-size: 7px; letter-spacing: .12em; font-weight: 800; }
td { padding: 14px 15px; border-bottom: 1px solid #f0f0f0; color: #525252; font-size: 10px; }
td:first-child { color: #555; font-weight: 800; }
.align-right { text-align: right; }
.table-message { padding: 38px 15px; text-align: center; color: #929292 !important; }
.product-name { color: #353535; font-weight: 700; }
.category-pill { display: inline-block; padding: 4px 7px; border-radius: 4px; color: #757575; background: #f2f2f2; font-size: 8px; }
.panel-footer { display: flex; justify-content: space-between; gap: 20px; padding: 12px 20px; color: #9a9a9a; font-size: 8px; }
.page-footer, .vow-site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 28px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--vow-line);
  color: #7a7a7a;
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: 0;
}
.page-footer b { color: var(--vow-accent); padding: 0 4px; }
.vow-site-footer-contact p { margin: 0 0 6px; }
.vow-site-footer a { color: var(--vow-charcoal); text-decoration: none; }
.vow-site-footer a:hover { text-decoration: underline; }
.vow-site-footer .vow-quicklinks-label {
  margin: 0 0 8px;
  font-size: 9px;
  letter-spacing: .16em;
  font-weight: 800;
  color: var(--vow-silver);
  text-transform: uppercase;
}
.toast { position: fixed; right: 24px; bottom: 24px; max-width: 360px; padding: 12px 16px; color: #fff; background: #2c2c2c; border-radius: 7px; box-shadow: 0 9px 28px #11111133; font-size: 11px; z-index: 10; }
@media (max-width: 1000px) {
  .sidebar { width: 220px; flex-basis: 220px; }
  .topbar { padding: 0 24px; }
  .page-content { padding: 28px 24px 20px; }
  .topbar-right { gap: 13px; }
}
@media (max-width: 900px) {
  .login-screen { display: block; }
  .login-panel {
    width: min(520px, calc(100% - 28px));
    margin: 0 auto;
    padding: calc(24px + env(safe-area-inset-top, 0px)) 0 calc(28px + env(safe-area-inset-bottom, 0px));
  }
  .login-copy { margin-top: 18px; }
  .login-copy h1 { font-size: clamp(28px, 7vw, 36px); }
  .login-aside { display: none; }
  .login-form input {
    height: 56px; min-height: 56px; font-size: 18px; border-radius: 14px;
  }
  .login-form .primary-button,
  #loginButton {
    min-height: 56px; height: 56px; font-size: 17px; border-radius: 14px;
  }
  .login-install-btn { min-height: 52px; border-radius: 14px; }
}
@media (max-width: 760px) {
  .login-screen { display: block; }
  .login-panel { padding: 40px 0; }
  .login-copy { margin-top: 40px; }
  .login-aside { display: none; }
  .sidebar { width: 68px; flex-basis: 68px; padding: 20px 9px; }
  .sidebar-brand { padding: 0 5px 22px; }
  .sidebar-brand > div:last-child, .branch-switcher > span:not(.branch-icon), .nav-heading, .nav-link:not(.active)::after, .nav-link { font-size: 0; }
  .sidebar-brand .brand-logo-mark { height: 22px; }
  .branch-switcher { justify-content: center; padding: 8px 0; }
  .branch-icon { font-size: 9px; }
  .nav-link { justify-content: center; padding: 0; }
  .nav-icon { font-size: 17px; }
  .nav-link.active { box-shadow: none; }
  .nav-link.disabled { display: none; }
  .sidebar-help, .sidebar-version { display: none; }
  .topbar { height: 62px; padding: 0 14px; }
  .breadcrumb { font-size: 9px; }
  .topbar-right { gap: 9px; }
  .api-status span:last-child, .user-details, .logout-button { display: none; }
  .user-menu { padding-left: 10px; }
  .page-content { padding: 23px 14px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading h1 { font-size: 25px; }
  .welcome-strip { align-items: flex-start; }
  .welcome-branch { display: none; }
  .stats-grid { grid-template-columns: 1fr; gap: 10px; }
  .stat-card.catalogue { grid-column: auto; }
  .stat-card { padding: 14px; }
  .stat-value { margin-top: 8px; }
  .panel-heading { padding: 17px 14px; }
  .panel-footer { padding: 11px 14px; }
  .page-footer, .vow-site-footer { font-size: 10px; }
}

.language-control,.login-language{display:flex;align-items:center;gap:7px;color:#7d7d7d;font-size:9px;font-weight:700}
.language-control select,.login-language select{height:32px;padding:0 9px;border:1px solid #e2e2e2;border-radius:5px;background:#fff;color:#343434;font-size:10px}
.login-language{justify-content:flex-end;margin-bottom:18px}
.login-language label{font-size:9px}
@media(max-width:700px){.language-control{gap:4px}.language-control span{display:none}}
