/* Workspace controls share the form and brand typography of the public site. */
.ops-shell, #request-dialog {
  --ops-face: #191b18;
  --ops-raised: #20231e;
  --ops-inset: #131512;
  --ops-border: #383d34;
  --ops-field-border: #60675b;
  --ops-subtle: #b8beb1;
  --ops-display: 'Open Sans Condensed', 'Arial Narrow', Arial, sans-serif;
}

.ops-shell {
  padding-block:clamp(1.625rem,3vw,3rem) clamp(3.25rem,6vw,5.5rem);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ops-shell :where(h1, h2, h3, p, dd, td, strong, button, small),
#request-dialog :where(.photo-tile, .form-error) {
  overflow-wrap: anywhere;
}
.ops-shell :where(.ops-top, .ops-tools, .ops-head, .toolbar, .ops-buttons, .order-row-top, .detail-title) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ops-top {
  justify-content: space-between;
  margin-bottom:1.5rem;
}
.ops-top .eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 6px;
  color: var(--yellow);
  font-size: .875rem;
  font-weight: 700;
}
.ops-top h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  letter-spacing: -.04em;
  line-height: 1.03;
}
.ops-tools {
  justify-content: flex-end;
  max-width: 100%;
}
.ops-tools label, .ops-head label, .toolbar label {
  min-width: 0;
  max-width: 100%;
}
.ops-shell :where(.ops-tools, .ops-head, .toolbar) :is(input, select) {
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height:2.75rem;
}
.ops-shell input, .ops-shell select, .ops-shell textarea {
  border: 1px solid var(--ops-field-border);
  border-radius: 7px;
  background-color: var(--ops-inset);
}
.ops-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ops-shell textarea {
  padding:.625rem .75rem;
}
.ops-shell select {
  padding-block:.625rem;
  padding-left:.75rem;
}
.ops-shell input:is([type="radio"], [type="checkbox"]) {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--yellow);
}
.ops-shell input::placeholder, .ops-shell textarea::placeholder {
  color: #abb1a4;
  opacity: 1;
}
.ops-shell .button {
  min-height:2.625rem;
  padding:.625rem .9375rem;
}
.ops-shell .btn-secondary {
  color: var(--ink);
  border-color: var(--ops-field-border);
  background: var(--ops-raised);
}
.ops-shell .btn-quiet {
  color: #d2d7c9;
  border-color: transparent;
  background: transparent;
}
.ops-shell .btn-danger {
  color: #ffc1b4;
  border-color: #93594b;
  background: #3b2520;
}
.ops-shell .button:disabled, #request-dialog .button:disabled,
.ops-shell select:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.ops-nav {
  display: flex;
  align-items: stretch;
  gap: clamp(8px, 2vw, 30px);
  margin:0 0 1.625rem;
  padding:3px 3px 0;
  border-bottom: 1px solid var(--ops-border);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}
.ops-nav :is(button, a) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height:3rem;
  padding:.5625rem 3px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--ops-subtle);
  background: none;
  font-weight: 650;
  white-space: nowrap;
}
.ops-nav [aria-current="page"] {
  color: var(--ink);
}
.ops-nav :focus-visible {
  outline-offset: -3px;
}
.ops-head {
  justify-content: space-between;
  margin-block: 0 17px;
}
.ops-head h2, .ops-panel > h2, .detail-title h2, .queue-pane > h2 {
  margin: 0;
  font-family: var(--ops-display);
  font-size: clamp(1.65rem, 2.6vw, 2.45rem);
  line-height: 1.09;
  letter-spacing: -.025em;
}
.ops-shell .section-caption, .ops-shell .muted, .ops-shell .staff-rate {
  color: var(--ops-subtle);
}
.section-caption {
  margin-block: 6px 12px;
  font-size: .9rem;
  line-height: 1.5;
}
.ops-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 16px;
  margin-block: 0 17px;
  padding: 12px 16px;
  border: 1px solid #645932;
  border-left: 3px solid var(--yellow);
  border-radius: 8px;
  color: #f0e5ad;
  background: #2c2a1d;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(175px, 100%), 1fr));
  gap: 12px;
  margin-block: 0 23px;
}
.metric {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  padding: clamp(14px, 1.5vw, 22px);
  border: 1px solid var(--ops-border);
  border-radius: 11px;
  background: var(--ops-face);
}
.metric small {
  color: #d5d9ce;
  font-size: .91rem;
  line-height: 1.35;
}
.metric strong {
  display: block;
  margin-block: auto 0;
  color: var(--ink);
  font: 700 clamp(1.9rem, 3.45vw, 3.3rem)/1.09 var(--ops-display);
  letter-spacing: -.025em;
}
.metric:first-child {
  border-color: #74632b;
  background: linear-gradient(110deg, #2d2b1e, #1e2019);
}
.metric:first-child strong {
  color: var(--yellow);
}
.metric span {
  color: var(--ops-subtle);
  font-size: .85rem;
  line-height: 1.35;
}

.ops-split, .dashboard-grid, .team-grid, .two-cols {
  display: grid;
  gap: clamp(13px, 1.65vw, 22px);
}
.ops-split {
  grid-template-columns:minmax(15.625rem,.8fr) minmax(0,1.65fr);
  align-items: start;
}
.dashboard-grid, .two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr));
}
.ops-panel, .queue-pane, .detail-pane {
  min-width: 0;
  padding:clamp(1rem,1.8vw,1.6875rem);
  border: 1px solid var(--ops-border);
  border-radius: 12px;
  background: var(--ops-face);
}
.ops-shell :where(.queue-pane, .detail-pane) > .ops-panel:only-child {
  padding: 0;
  border: 0;
}
.ops-panel h3, .detail-section h3 {
  font-size: 1.12rem;
  line-height: 1.3;
}
.ops-panel > :is(h2, h3) + :is(form, ul, dl, .bar-list, .scroll-table),
.queue-pane > :is(h2, h3) + :is(.orders, .toolbar) {
  margin-top: 15px;
}
.ops-panel + .ops-panel:not(.dashboard-grid > *, .team-grid > *, .access-stage > *, .mg-settings-grid > *),
.detail-pane > .ops-buttons {
  margin-top: 16px;
}
.toolbar {
  gap: 8px;
  margin-bottom: 14px;
}
.toolbar > :is(label, input, select) {
  flex: 1 1 135px;
}
.toolbar input[type="search"], .toolbar input[type="text"] {
  width: 100%;
}
.orders, .ops-list, .feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.orders {
  display: grid;
  gap: 7px;
}
.order-row {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  text-align: left;
  color: var(--ink);
  background: var(--ops-inset);
  border: 1px solid var(--ops-border);
  border-radius: 8px;
}
.order-row-top, .detail-title {
  justify-content: space-between;
}
.order-row small, .feed-list :is(small, time), .ops-list small {
  color: var(--ops-subtle);
  font-size: .875rem;
}
.order-row strong {
  font-size: 1rem;
  line-height: 1.35;
}
.order-row[aria-current="true"] {
  border-color: #a18b36;
  box-shadow: inset 3px 0 var(--yellow);
  background: #2d2c1e;
}
.badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  width: fit-content;
  padding: 3px 9px;
  border: 1px solid #50564a;
  border-radius: 99px;
  background: #2d322a;
  color: #dbe3d7;
  font-size: .86rem;
  font-weight: 650;
  line-height: 1.35;
}
.badge.tone-warm {border-color: #716335; background: #3b3420; color: #f4d97c;}
.badge.tone-blue {border-color: #455d73; background: #20303c; color: #b5d9f7;}
.badge.tone-green {border-color: #486450; background: #24372a; color: #b6e5be;}
.badge.tone-red {border-color: #79584e; background: #3a2722; color: #ffc5b7;}

.detail-title {align-items: flex-start; margin-bottom: 14px;}
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
  gap: 1px;
  margin: 14px 0;
  background: var(--ops-border);
  border: 1px solid var(--ops-border);
  border-radius: 8px;
  overflow: hidden;
}
.meta-grid > div, .meta-grid > dl {min-width: 0; margin: 0; padding:.625rem .75rem;background:var(--ops-inset);}
.meta-grid dt, .meta-grid small {display: block; margin: 0; color: var(--ops-subtle); font-size: .875rem;}
.meta-grid dd, .meta-grid strong {display: block; margin: 2px 0 0; color: var(--ink); font-weight: 650;}
.detail-section {margin-top:1.25rem;padding-top:1.1875rem;border-top:1px solid var(--ops-border);}
.detail-section > :is(h2, h3) {margin: 0 0 11px;}
.ops-form {display: grid; gap:.8125rem;margin-block:.75rem;}
.ops-form label, .two-cols > label {min-width: 0;}
.ops-form .button {justify-self: start;}
.ops-form .two-cols {gap: 12px;}
.ops-form textarea {min-height: 66px;}
.ops-buttons {gap: 8px;}
.ops-buttons form {margin: 0;}

.ops-list > li, .feed-list > li {
  padding-block: 11px;
  border-bottom: 1px solid var(--ops-border);
  overflow-wrap: anywhere;
}
.ops-list > li:last-child, .feed-list > li:last-child {border-bottom: 0;}
.ops-list > li > small, .feed-list > li > time, .feed-list > li > small {display: block;}
.feed-list {padding-left: 13px; border-left: 2px solid #68603a;}
.feed-list > li:first-child {padding-top: 0;}
.empty-state {
  padding: clamp(15px, 2.1vw, 28px);
  border: 1px dashed #4d5347;
  border-radius: 8px;
  color: var(--ops-subtle);
  background: var(--ops-inset);
  text-align: center;
}
.empty-state :is(h2, h3, strong) {display: block; margin-bottom: 6px; color: var(--ink);}
.empty-state button {margin-top: 12px;}
.form-error {margin: 0; color: #ffc8ba; font-weight: 580; line-height: 1.4;}
.form-error:empty {display: none;}
.bar-list {display: grid; gap: 14px;}
.bar-row {display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 5px 12px;}
.bar-row span {min-width: 0; overflow-wrap: anywhere;}
.bar-row b {color: var(--ink); font-weight: 650;}
.bar-row i {grid-column: 1 / -1; height: 6px; overflow: hidden; border-radius: 3px; background: #363c32;}
.bar-row i > u {display: block; height: 100%; max-width: 100%; border-radius: inherit; background: var(--yellow);}
.staff-rate {display: inline-block; font-size: .9rem; font-weight: 650;}
.scroll-table {max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain;}
.scroll-table table {border-collapse: collapse; width: 100%; min-width: 400px; text-align: left; font-size: .94rem;}
.scroll-table :is(th, td) {padding: 10px 13px 10px 0; border-bottom: 1px solid var(--ops-border); vertical-align: top;}
.scroll-table th {color: var(--ops-subtle); font-size: .875rem; font-weight: 600;}
.scroll-table td:last-child, .scroll-table th:last-child {padding-right: 0;}
.scroll-table tbody tr:last-child td {border-bottom: 0;}

.photo-grid, .photo-preview {display: flex; flex-wrap: wrap; gap: 8px; margin-block: 8px;}
.photo-grid:empty, .photo-preview:empty {display: none;}
.photo-grid > :is(a, button), .photo-tile {
  position: relative;
  display: block;
  width: clamp(70px, 13vw, 110px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  margin: 0;
  border: 1px solid #61675a;
  border-radius: 7px;
  background: #20231e;
}
.photo-grid img, .photo-tile img {display: block; width: 100%; height: 100%; object-fit: cover;}
.photo-tile > button {
  position: absolute;
  top: 2px;
  right: 2px;
  display: grid;
  place-items: center;
  max-width: calc(100% - 4px);
  min-width: 31px;
  min-height: 31px;
  padding: 2px 5px;
  border: 1px solid #babcb3;
  border-radius: 5px;
  background: #1b1c18;
  color: #fff;
  font-size: .83rem;
  font-weight: 700;
}
.photo-tile > button:focus-visible {outline-offset: -3px;}
@media (hover: hover) {
  .ops-nav :is(button, a):hover,
  .ops-shell :is(.btn-secondary, .btn-quiet):hover {color: var(--yellow);}
  .order-row:hover, .photo-grid > :is(a, button):hover,
  .ops-shell .btn-secondary:hover {border-color: #c6ac48;}
  .ops-shell .btn-danger:hover {background: #502d25; border-color: #d4907d;}
  .photo-tile > button:hover {border-color:var(--hover-border);}
}
@media (max-width: 860px) {
  .ops-split {grid-template-columns: minmax(210px, .78fr) minmax(0, 1.4fr);}
  .ops-top {align-items: flex-start;}
  .ops-tools {justify-content: flex-start;}
}
@media (max-width: 720px) {
  .ops-shell {padding-block: 23px 50px;}
  .ops-nav {margin-bottom: 18px;}
  .ops-split, .dashboard-grid {grid-template-columns: minmax(0, 1fr);}
  .ops-head select {max-width: 100%;}
  .metrics {grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px;}
  .metric {padding: 13px;}
  .metric strong {font-size: clamp(1.7rem, 6.5vw, 2.8rem);}
}
@media (max-width: 480px) {
  .ops-top {gap: 13px; margin-bottom: 12px;}
  .ops-tools, .ops-head {width: 100%; align-items: flex-start;}
  .ops-tools {justify-content: space-between;}
  .two-cols {grid-template-columns: minmax(0, 1fr);}
  .ops-shell .button {min-height: 44px;}
  .ops-buttons {gap: 6px;}
  .queue-pane, .detail-pane, .ops-panel {padding: 14px;}
  .scroll-table table {min-width: 350px;}
}
@media (forced-colors: active) {
  .ops-nav [aria-current="page"], .order-row[aria-current="true"], .ops-shell .badge {
    border-color: Highlight;
  }
  .bar-row i > u {background: Highlight; forced-color-adjust: none;}
}
#ops-dialog {--action-padding:clamp(14px,3vw,26px);padding:0;width:min(95vw,39.375rem);background:#1b1d18;max-height:90dvh;overflow:hidden}
#action-form {display:grid;grid-template-rows:auto minmax(0,1fr);max-height:calc(90dvh - 2px)}
#ops-dialog .dialog-head {margin:0;padding:12px var(--action-padding);background:#1b1d18;border-bottom:1px solid var(--ops-border)}
#ops-dialog .mg-action-body {min-width:0;overflow:auto;overscroll-behavior:contain;padding:var(--action-padding);display:grid;gap:10px}
#ops-dialog .mg-action-body > .button {justify-self:start}
#ops-dialog h2 {font-size:clamp(1.55rem,4vw,2rem)}
#ops-dialog .ops-buttons {display:flex;flex-wrap:wrap}
#ops-dialog .estimate-row {border:1px solid #474a40;margin:0 0 12px;padding:12px;border-radius:8px;display:grid;gap:9px}
#ops-dialog .estimate-row legend {font-weight:700;color:#edda8d;padding-inline:4px}
#ops-dialog .estimate-row>button {justify-self:start}
#estimate-sum,.estimate-total {font-weight:700}
#request-dialog {width:min(96vw,37.5rem)}
.photo-status,.row-sub,.legacy-link {display:block;font-size:.85rem;color:var(--muted)}
.row-sub {margin-top:3px}
.estimate-total {display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 20px;margin-top:12px}
.estimate-total span {font-size:.89rem;color:var(--muted)}
.visit-contact {font-style:normal}
.visit-contact a,.legacy-link a {color:var(--yellow);text-decoration:underline}
.photo-label,.legacy-link {margin-top:20px}
.plain-text {white-space:pre-wrap;overflow-wrap:anywhere}
.ops-panel details summary,.detail-pane details summary {cursor:pointer;color:var(--yellow);margin-block:7px}
.mg-staff-remove {border-top:1px solid var(--ops-border);padding-top:14px}
.mg-staff-remove summary {cursor:pointer;color:#ffb8a9}
.mg-staff-remove p {margin:8px 0}
.mg-staff-archive {margin-top:16px}
.ops-panel+.dashboard-grid,.feed-list,.dashboard-grid+.ops-panel {margin-top:16px}
a.order-row {text-decoration:none}
@media(max-width:650px){#request-dialog .two-cols,#ops-dialog .two-cols{grid-template-columns:1fr}}

.access-screen {min-height:64vh}
.review-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:18px;align-items:start}
.access-card {display:grid;align-content:start;gap:14px}
.access-card > :where(p,h2,form,div) {margin-block:0}
.access-card > .button,.account-logout {justify-self:start}
.access-form-card {max-width:700px}
.role-switch {display:inline-flex;align-items:center;gap:3px;max-width:100%;padding:3px;border:1px solid var(--ops-border);border-radius:10px;background:var(--ops-inset);flex-wrap:wrap;justify-self:start}
.role-switch a {padding:8px 11px;color:var(--ops-subtle);border-radius:7px;font-size:.925rem;font-weight:650}
.role-switch a[aria-current="page"] {background:var(--yellow);color:#17170d}
.role-switch a:hover:not([aria-current]) {background:var(--ops-raised);color:var(--ink)}
.role-cards {display:grid;gap:7px}
.role-card {display:flex;align-items:center;gap:13px;padding:12px;border:1px solid var(--ops-border);background:var(--ops-inset);border-radius:9px;text-align:left}
.role-card:hover {border-color:var(--hover-border);background:#25271c}
.role-card .icon {width:25px;height:25px;color:var(--yellow)}
.role-card span {display:grid;gap:2px}
.role-card small,.login-help,.account-email,.account-logout,.application-status span,.review-role,.review-card small {font-size:.9rem;color:var(--ops-subtle)}
.account-logout {text-decoration:underline;text-underline-offset:3px}
.application-status {display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap;border-left:3px solid var(--yellow);padding:9px 13px;background:var(--ops-inset)}
.application-status p {flex-basis:100%}
.review-grid .ops-panel {margin:0}
.review-role {margin:5px 0 10px}
.review-details {white-space:pre-line}
.review-card .ops-buttons,.review-pages {margin-top:14px}
.nav-count {background:var(--yellow);color:#17170d;border-radius:12px;min-width:1.45rem;text-align:center;font-size:.85rem}
.ops-nav {scroll-padding-inline:4px}

@media(max-width:580px){.role-switch a {padding:9px 8px}.ops-tools .role-switch {width:100%;justify-content:flex-start}}

.access-portal {max-width:960px;margin-inline:auto}
.access-nav {
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px 20px;
  margin-bottom:18px;
}
.access-nav > .text-link {padding-block:8px}
.access-nav .role-switch a {display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:40px}
.access-nav .role-switch .icon {width:16px;height:16px}
.access-stage {display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.9fr);gap:18px;align-items:stretch}
.access-portal .ops-panel {
  margin:0;padding:clamp(20px,4vw,36px);border-radius:16px;
}
.access-portal h1 {margin:0;font-size:clamp(2.15rem,4.7vw,3.45rem);line-height:1.04;letter-spacing:-.035em}
.access-portal h1[tabindex="-1"]:focus,
#portal-title[tabindex="-1"]:focus,
.access-phone-form [tabindex="-1"]:focus {outline:none}
.access-primary {min-width:0;border-top:3px solid var(--yellow)}
.access-phone-form {gap:14px;margin-block:7px 0}
.access-phone-form :is(input,.button) {min-height:46px}
.access-phone-form [type="submit"] {width:100%}
.access-phone-form details > summary {width:fit-content;cursor:pointer;color:var(--ops-subtle);font-size:.94rem}
.access-phone-form details > label {margin-top:7px}
.access-phone-form p {margin:0}
.access-benefits {
  align-content:center;
  background:linear-gradient(140deg,#30291a,var(--ops-face) 82%);
}
.access-benefits h2 {font-size:clamp(1.55rem,3.2vw,2.25rem);line-height:1.12;margin:0 0 6px}
.access-benefits > h2 + ul {display:grid;gap:14px;padding:0;margin:0;list-style:none}
.access-benefits li {display:flex;align-items:center;gap:11px;color:var(--ops-subtle)}
.access-benefits .icon {width:19px;height:19px;flex:none;color:var(--yellow)}
.access-actions {margin-top:3px}
.access-team,.native-login {max-width:560px}
.access-applications {display:grid;gap:10px;border-top:1px solid var(--ops-border);padding-top:16px}
.access-applications h2 {margin:0;font-size:1.5rem}
.access-portal .account-logout {padding-block:6px}
@media(max-width:690px) {
  .access-stage {grid-template-columns:minmax(0,1fr);gap:12px}
  .access-nav {margin-bottom:12px}
  .access-benefits > h2 + ul {gap:9px}
}
@media(max-width:360px) {
  .header .account[href="#account"] .icon {display:none}
  .access-nav .role-switch {width:100%}
  .access-nav .role-switch a {flex:1}
}

.mg-office-controls {margin:0 0 1.375rem}
.mg-office-groups { display:flex; align-items:stretch; gap:8px; touch-action:pan-y pinch-zoom; }
.mg-office-groups { padding:6px; background:var(--ops-inset); border:1px solid var(--ops-border); border-radius:10px; }
.mg-office-groups a { padding:8px 14px; border-radius:7px; font-weight:650; color:var(--ops-subtle); }
.mg-office-groups a[aria-current="true"] { color:#241b04; }
.mg-office-tabs .ops-nav { gap:18px; margin:0; }
.mg-office-tabs [hidden] { display:none; }
.mg-office-tabs .ops-nav a {min-height:2.625rem}
@media(max-width:500px) { .mg-office-groups a { flex:1; text-align:center; padding-inline:8px; } }

#request-dialog .mg-intake-switch { display:flex; align-items:flex-start; gap:12px; padding:12px; border:1px solid var(--ops-border); border-radius:10px; }
#request-dialog .mg-intake-switch[hidden] { display:none; }
.mg-intake-switch input { flex:none; width:36px; height:21px; accent-color:var(--yellow); cursor:pointer; }
.mg-intake-switch span { display:grid; gap:3px; }
.mg-intake-switch small { color:var(--ops-subtle); }

#business-dialog { width:min(calc(100% - 24px),43.125rem); overflow:auto; overscroll-behavior:contain; }
#business-dialog .ops-form { margin:0; }
#business-dialog label { min-width:0; }
#business-dialog [hidden] { display:none; }
#business-dialog [data-business-success] { display:grid; gap:12px; justify-items:start; }
.mg-business-queue { display:grid; gap:10px; }
.mg-business-queue details > summary { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.mg-business-queue summary strong,.mg-business-queue summary small { display:block; }
.mg-business-queue summary small { font-weight:400; color:var(--ops-subtle); }
.mg-business-queue :is(h3,.plain-text,.button) { margin-top:8px; }
@media(max-width:550px){ #business-dialog .two-cols { grid-template-columns:minmax(0,1fr); } }

.ops-nav-simple { gap:18px; }
.ops-nav-simple a { min-height:2.625rem; }
#ops-body { overflow-x:clip; overflow-anchor:none; }
#tab-content { touch-action:pan-y pinch-zoom; min-height:12rem; }
.mg-section-placeholder { min-height:8rem; border-radius:12px; background:var(--ops-inset); border:1px solid var(--ops-border); }
[data-tab-track] { position:relative; isolation:isolate; touch-action:pan-y pinch-zoom; }
.ops-shell [data-tab-track] > a:focus-visible {outline-offset:-3px;}
.ops-nav[data-tab-track] { flex-wrap:nowrap; overflow-x:auto; scrollbar-color:#58594c transparent; }
.ops-nav[data-tab-track] a { flex:none; }
.mg-tab-indicator,.mg-inbox-slider {
  position:absolute;
  left:0;
  width:var(--mg-tab-width,0px);
  transform:translateX(var(--mg-tab-x,0px));
  pointer-events:none;
}
.mg-tab-indicator {
  inset-block:auto 0;
  height:3px;
  border-radius:2px 2px 0 0;
  background:var(--yellow);
}
.mg-office-groups .mg-tab-indicator {
  inset-block:6px;
  height:auto;
  z-index:-1;
  border-radius:7px;
}
[data-tab-track]:not([data-tab-positioned]) :is(.mg-tab-indicator,.mg-inbox-slider) { opacity:0; }
@media (prefers-reduced-motion:no-preference) {
  [data-tab-track]:not([data-tab-drag]) :is(.mg-tab-indicator,.mg-inbox-slider) {
    transition:transform .28s cubic-bezier(.22,.68,.24,1), width .28s cubic-bezier(.22,.68,.24,1);
  }
}
.ops-tools [data-offline] .icon { width:1.15em; height:1.15em; flex:none; }
[data-order-back] { margin-block-end:12px; }
@media (max-width:750px) {
  #order-detail[data-list-only] { display:none; }
  .queue-pane { scroll-margin-block-start:72px; }
}
.mg-help-page { display:grid; gap:14px; margin-top:12px; }
.mg-help-page > .ops-panel { margin:0; }
.mg-help-faq details { margin-top:12px; }
.mg-help-page .mgv-device-tools { margin:10px 0 0; }

.mg-chat-launch.mg-help-launch {margin-top:0}
#help-chat-dialog [data-help-chat] {display:flex;flex-direction:column;flex:1;min-height:0}
#help-chat-dialog [data-help-older] {align-self:center}

.access-phone-form .mg-remember-login, .native-login .mg-remember-login {
  display:flex; flex-direction:row; align-items:center; gap:8px;
}
.mg-remember-login input[type=checkbox] {width:1rem; height:1rem; min-height:0; flex:none; accent-color:var(--yellow);}
.mg-file-field {display:grid;justify-items:start;gap:5px;min-width:0;max-width:100%}
.mg-file-field-inline {margin-inline-end:auto}
.mg-file-field .mg-file-trigger {display:inline-flex;align-items:center;gap:8px;min-height:44px;max-width:100%;text-align:start;white-space:normal}
.mg-file-field .icon,.mg-file-source-options .icon {width:18px;height:18px;flex:none;color:var(--yellow)}
.mg-file-field [data-file-selection] {color:var(--ops-subtle,#b8beb1);overflow-wrap:anywhere}
.mg-file-sources {width:min(calc(100vw - 24px),340px);max-height:calc(var(--file-sheet-height,100dvh) - 24px);padding:14px;background:var(--ops-face);overflow:auto;overscroll-behavior:contain}
.mg-file-sources .dialog-head {margin:0 0 12px}
.mg-file-sources h2 {font-size:clamp(1.35rem,5vw,1.8rem);margin:0}
.mg-file-source-options,.mg-file-camera {display:grid;gap:7px}
.mg-file-source-options button {display:flex;align-items:center;gap:10px;min-height:44px;padding:9px 12px;border:1px solid var(--ops-border);border-radius:9px;background:var(--ops-raised);color:var(--ink);text-align:start;font-weight:650}
.mg-file-source-options button:hover {border-color:var(--hover-border)}
.mg-file-camera {margin-top:10px}
.mg-file-camera[hidden] {display:none}
.mg-file-camera video {width:100%;max-height:34dvh;background:#101110;border-radius:8px}
.mg-file-sources [data-file-camera-status] {margin:10px 0 0}
@media(max-width:600px) {
  .mg-file-sources {position:fixed;inset:auto 0 calc(var(--file-sheet-bottom,0px) + 12px);margin:0 auto;border-radius:16px;
    padding:12px 14px calc(12px + env(safe-area-inset-bottom))}
}

/* Cabinet settings, pending tasks and the people directory */
.ops-nav .nav-count,.mg-office-groups .nav-count {
  display:inline-grid; place-items:center; align-self:center; margin-inline-start:.45em;
  padding:0 .36em; min-width:1.38rem; min-height:1.38rem; line-height:1; font-size:.75rem;
  font-weight:760; background:var(--yellow); color:#211804; font-variant-numeric:tabular-nums;
}
.mg-office-groups a[aria-current="true"] .nav-count { background:#30240b; color:#ffe681; }
.mg-attention-panel { border-color:#77601d; box-shadow:inset 3px 0 0 #e1b240;
  background:linear-gradient(125deg,#2d2719,var(--ops-face) 72%); }
.mg-attention-panel h3 { color:#ffe288; }
.mg-attention-dot {
  display:inline-block; flex:0 0 .55rem; width:.55rem; height:.55rem; border-radius:50%;
  background:var(--yellow); box-shadow:0 0 0 .24rem #ffce0833; vertical-align:middle;
}
.mg-attention-tag { color:#ffe08a; font-size:.78rem; }
#mg-bell[data-assignment-pending] { border-color:#8b6d28; }
.mg-status-button[data-status-assignment] { padding:6px 10px; }
.mg-status-button[data-status-assignment] > svg { width:34px; height:34px; }
.mg-settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; align-items:start; }
.mg-settings-grid .ops-panel { display:grid; gap:.85rem; margin-block:0; }
.mg-settings-grid .mg-fieldset { min-width:0; padding-inline:.75rem; }
[data-inline-form] .ops-buttons { margin-top:.25rem; }
.mg-directory-filter { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:end; gap:.75rem; margin:1rem 0; }
.mg-directory-table table { min-width:45rem; width:100%; }
.mg-directory-table th { text-align:start; }
.mg-directory-group th { background:var(--ops-inset); color:#ffe288; }
.mg-directory-contacts { overflow-wrap:anywhere; }
.mg-directory-contacts > :is(a,span) { display:block; }
.mg-directory-contacts a { color:#ffe08a; }
.mg-directory-section { margin-block:1rem; display:grid; gap:1rem; }
.mg-directory-orders { display:grid; gap:.6rem; }
.mg-directory-order { border:1px solid var(--ops-border); border-radius:8px; padding:.75rem; }
.mg-directory-order summary { cursor:pointer; }
.mg-directory-order summary > * { margin-inline-end:.6rem; }
.mg-directory-order[open] > p { margin:.7rem 0; }
.mg-directory-photos { display:flex; flex-wrap:wrap; gap:.5rem; margin:0 0 .7rem; }
.mg-directory-photos img { display:block; width:5.75rem; height:4rem; object-fit:cover; border-radius:6px; }
.mg-directory-pages { margin-block:.9rem; align-items:center; }
@media (min-width:1000px) { .mg-directory-metrics { grid-template-columns:repeat(6,minmax(0,1fr)); } }
@media (max-width:720px) {
  .mg-settings-grid,.mg-directory-filter { grid-template-columns:1fr; }
  .mg-office-groups .nav-count { margin-inline-start:.2em; }
}

.mg-campaign-channels,.mg-campaign-counts {display:flex;flex-wrap:wrap;gap:8px 16px;}
.mg-campaign-list {display:grid;gap:10px;margin-top:16px;}
.mg-campaign-row {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;}
.mg-campaign-row small {display:block;color:var(--ops-subtle);}
.mg-campaign-row h3 {margin:6px 0 3px;}
.mg-campaign-counts {color:var(--ops-subtle);font-size:.86rem;}
.mg-campaign-counts b {color:var(--yellow);}
#work-dialog:has(.mg-campaign-editor) {--mg-dialog-width:48rem;}
@media(max-width:650px){.mg-campaign-row {grid-template-columns:minmax(0,1fr);}}
