.hub-page {
  --hub-canvas: #f5f7fb;
  --hub-navy: #122946;
  --hub-muted: #4b5d73;
  --hub-line: #dce4ee;
  background: var(--hub-canvas);
  color: var(--hub-navy);
}

.hub-page .hub-root {
  width: 100%;
  min-height: 100vh;
}

.hub-page :is(.hub-loading, .hub-auth, .hub-layout) {
  margin-inline: auto;
}

.hub-loading {
  max-width: 42rem;
  padding: 4rem 20px;
  color: var(--hub-muted);
  text-align: center;
}

.hub-auth {
  width: min(calc(100% - 32px), 28rem);
  margin-block: clamp(24px, 9vh, 88px);
  padding: clamp(22px, 6vw, 36px);
  border: 1px solid var(--hub-line);
  border-top: 4px solid var(--brand-blue);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 10px 26px rgb(18 41 70 / 6%);
}

.hub-auth img,
.hub-header img {
  display: block;
  width: clamp(112px, 17vw, 148px);
  height: auto;
}

.hub-auth img {
  margin-bottom: 24px;
}

.hub-page .hub-title,
.hub-auth h1 {
  margin: 0;
  color: var(--hub-navy);
  font: 700 clamp(1.9rem, 4vw, 2.85rem)/1.08 var(--display);
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}

.hub-description,
.hub-status,
.hub-empty,
.hub-auth-form p,
.hub-account {
  color: var(--hub-muted);
  line-height: 1.5;
}

.hub-description {
  margin: 8px 0 18px;
}

.hub-order-controls {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--hub-line);
  border-radius: 9px;
  background: var(--paper);
}

.hub-order-controls form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px 12px;
}

.hub-order-controls .hub-field {
  flex: 1 1 140px;
  min-width: 0;
  margin: 0;
}

.hub-order-search .hub-field {
  flex-basis: 225px;
}

.hub-order-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-order-search-actions button[hidden] {
  display: none;
}

.hub-order-filters {
  padding-top: 12px;
  border-top: 1px solid var(--hub-line);
}

.hub-auth-form {
  margin-top: 22px;
}

.hub-auth-form .primary {
  width: 100%;
}

.hub-page .hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  min-height: 68px;
  padding: 10px clamp(14px, 4vw, 48px);
  border-top: 3px solid var(--brand-blue);
  border-bottom-color: var(--hub-line);
  background: var(--paper);
}

.hub-header-actions,
.hub-actions,
.hub-pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.hub-account-menu { position: relative; }

.hub-account-menu summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--hub-line);
  border-radius: 6px;
  color: var(--hub-navy);
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

.hub-account-menu summary::-webkit-details-marker { display: none; }

.hub-account-menu summary::after {
  width: 6px;
  height: 6px;
  margin-bottom: 3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: '';
  transform: rotate(45deg);
}

.hub-account-menu[open] summary { border-color: var(--brand-blue); background: var(--blue-wash); }

.hub-account-options {
  position: absolute;
  z-index: 12;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 8px;
  width: min(16.5rem, calc(100vw - 28px));
  padding: 12px;
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 24px rgb(18 41 70 / 14%);
}

.hub-account-options > a {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.hub-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.hub-brand strong {
  font-size: .95rem;
}

.hub-account {
  margin: 0;
  font-size: .9rem;
  overflow-wrap: anywhere;
}

.hub-layout {
  display: grid;
  grid-template-columns: minmax(160px, 205px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 32px);
  max-width: 1480px;
  padding: clamp(18px, 3vw, 36px) clamp(14px, 4vw, 48px) 56px;
}

.hub-sidebar {
  align-self: start;
  padding: 8px;
  border: 1px solid var(--hub-line);
  border-radius: 10px;
  background: var(--paper);
}

.hub-page .hub-nav {
  display: grid;
  gap: 4px;
}

.hub-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--hub-navy);
  font-weight: 650;
  line-height: 1.25;
}

.hub-nav a:hover {
  background: var(--hub-canvas);
}

.hub-nav a[aria-current="page"] {
  border-color: #b5d9ef;
  background: var(--blue-wash);
  color: var(--link);
}

.hub-nav a:has(.hub-chat-count:not([hidden])) {
  gap: 8px;
  justify-content: space-between;
  border-color: var(--brand-blue);
  background: var(--blue-wash);
}

.hub-chat-count {
  display: inline-flex;
  flex: none;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #006da8;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

#hubChatSound[aria-pressed="true"] {
  border-color: #b5d9ef;
  background: var(--blue-wash);
  color: var(--link);
}

.hub-chat-activity-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hub-page :is(.hub-header-actions a, .hub-actions a, .hub-order-art a) {
  color: var(--link);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.hub-page :is(.hub-header-actions a, .hub-actions a, .hub-order-art a):focus-visible {
  text-decoration-thickness: 2px;
  text-underline-offset: .25em;
}

.hub-content {
  min-width: 0;
}

.hub-shipping-form,
.hub-shipping-profiles,
.hub-shipping-tiers {
  display: grid;
  gap: 18px;
}

.hub-shipping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px 20px;
}

.hub-shipping-form :is(fieldset, .hub-field) {
  min-width: 0;
}

.hub-shipping-form fieldset {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--hub-line);
  border-radius: 8px;
}

.hub-shipping-form legend {
  padding-inline: 6px;
  font-weight: 700;
}

.hub-shipping-profile {
  display: grid;
  gap: 14px;
  background: var(--hub-canvas);
}

.hub-shipping-form .hub-shipping-weight {
  padding: 0;
  border: 0;
}

.hub-shipping-weight legend {
  padding: 0;
  font-size: .95rem;
}

.hub-shipping-tier {
  background: var(--paper);
}

.hub-shipping-help,
.hub-shipping-empty {
  color: var(--hub-muted);
  font-size: .93rem;
  line-height: 1.5;
}

.hub-shipping-form .hub-actions,
.hub-shipping-form [data-add-profile] {
  margin-top: 14px;
}

.hub-shipping-form a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.hub-shipping-save :is(.hub-status, .hub-error) {
  margin-bottom: 0;
}

.hub-panel,
.hub-card,
.hub-order,
.hub-team-list,
.hub-table-wrap,
.hub-empty {
  min-width: 0;
  border: 1px solid var(--hub-line);
  border-radius: 10px;
  background: var(--paper);
}

.hub-panel,
.hub-card,
.hub-order,
.hub-empty {
  padding: clamp(14px, 3vw, 24px);
}

.hub-page :is(.hub-card, .hub-order, .hub-panel) h2 {
  margin: 0 0 10px;
  color: var(--hub-navy);
  overflow-wrap: anywhere;
}

.hub-page :is(.hub-card p, .hub-order p, .hub-panel p, .hub-table td) {
  overflow-wrap: anywhere;
}

.hub-order-grid,
.hub-split {
  display: grid;
  gap: 14px;
}

.hub-order-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.hub-order-summaries {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub-order-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-width: 0;
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  background: var(--paper);
}

.hub-order-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 10px;
  align-items: center;
  gap: 8px 14px;
  min-height: 62px;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--hub-navy);
  text-decoration: none;
}

.hub-order-summary:hover,
.hub-order-summary:focus-visible {
  background: var(--blue-wash);
  text-decoration: none;
}

.hub-order-summary-identity {
  display: grid;
  grid-column: 1;
  min-width: 0;
  gap: 2px;
  overflow-wrap: anywhere;
}

.hub-order-summary-number {
  color: var(--hub-muted);
  font-size: .84rem;
  font-variant-numeric: tabular-nums;
}

.hub-order-summary-logos {
  display: flex;
  grid-column: 2;
  gap: 6px;
}

.hub-order-summary-logo {
  display: block;
  width: 44px;
  height: 44px;
  padding: 3px;
  border: 1px solid var(--hub-line);
  border-radius: 5px;
  background: #e4edf5;
  object-fit: contain;
}

.hub-order-summary-chevron {
  grid-column: 4;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--link);
  border-right: 2px solid var(--link);
  transform: rotate(45deg);
}

.hub-order-summary-total {
  display: grid;
  grid-column: 3;
  gap: 2px;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hub-order-summary-total small { color: var(--hub-muted); }

.hub-order-progress {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin-block: 12px;
  padding: 14px;
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  background: var(--hub-canvas);
}

.hub-order-progress[data-compact] {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-left: 1px solid var(--hub-line);
  border-radius: 0 8px 8px 0;
}

.hub-order-progress h3 {
  margin: 0;
  font-size: 1.1rem;
}

.hub-order-progress-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 8px;
  color: var(--hub-muted);
  font-size: .87rem;
  font-variant-numeric: tabular-nums;
}

.hub-order-progress-caption strong {
  min-width: 0;
  color: var(--hub-navy);
  overflow-wrap: anywhere;
}

.hub-order-progress[data-compact][data-design-status="awaiting_approval"],
.hub-order-progress[data-compact][data-design-status="changes_requested"] {
  background: #fff6e2;
}

.hub-order-progress[data-design-status="awaiting_approval"] .hub-order-progress-caption strong,
.hub-order-progress[data-design-status="changes_requested"] .hub-order-progress-caption strong {
  color: #68430c;
}

.hub-order-progress-designer {
  margin: 2px 0 0;
  color: var(--hub-muted);
  font-size: .82rem;
  overflow-wrap: anywhere;
}

.hub-order-progress progress {
  display: block;
  width: 100%;
  height: 7px;
  margin-top: 5px;
  border: 0;
  border-radius: 4px;
  background: var(--hub-line);
  accent-color: var(--brand-blue);
}

.hub-order-progress progress::-webkit-progress-bar { background: var(--hub-line); }
.hub-order-progress progress::-webkit-progress-value { background: var(--brand-blue); }
.hub-order-progress progress::-moz-progress-bar { background: var(--brand-blue); }

.hub-order-progress-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub-order-progress-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  align-items: center;
  gap: 2px 6px;
  padding: 8px;
  border: 1px solid var(--hub-line);
  border-radius: 6px;
  background: var(--paper);
  font-size: .88rem;
  overflow-wrap: anywhere;
}

.hub-order-progress-steps li[aria-current="step"] {
  border-color: var(--brand-blue);
  background: var(--blue-wash);
}

.hub-order-progress-steps small { grid-column: 2; color: var(--hub-muted); }

.hub-order-progress-dot {
  display: grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  border: 1px solid var(--hub-line);
  border-radius: 50%;
  color: #fff;
  font-size: .7rem;
}

[data-progress-step="complete"] .hub-order-progress-dot { background: #177451; border-color: #177451; }
[data-progress-step="current"] .hub-order-progress-dot { background: var(--brand-blue); border-color: var(--brand-blue); }

.hub-order-progress-action button,
.hub-order-progress-link {
  min-height: 44px;
  font-size: .85rem;
}

.hub-order-progress-link {
  display: inline-flex;
  align-items: center;
  color: var(--link);
  font-weight: 650;
}

@media (max-width: 1000px) {
  .hub-order-summary-row { grid-template-columns: minmax(0, 1fr); }
  .hub-order-progress[data-compact] {
    border-left: 0;
    border-top: 1px solid var(--hub-line);
    border-radius: 0 0 8px 8px;
  }
}

@media (max-width: 560px) {
  .hub-order-summary {
    grid-template-columns: minmax(0, 1fr) auto 10px;
    gap: 4px 8px;
    padding: 8px 10px;
  }
  .hub-order-summary-logos { grid-row: 1 / span 2; }
  .hub-order-summary-total {
    display: flex;
    grid-column: 1;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 6px;
    text-align: left;
  }
  .hub-order-summary-chevron { grid-column: 3; grid-row: 1 / span 2; }
  .hub-order-progress-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-order-progress-steps strong { grid-area: 1 / 1 / 2 / -1; }
  .hub-order-progress-steps .hub-order-progress-dot { grid-area: 2 / 1; }
  .hub-order-progress-steps small { grid-area: 2 / 2; }
  .hub-order-progress[data-compact] :is(button, a) { max-width: 9.5rem; white-space: normal; }
}

.hub-order-meta,
.hub-order-art {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.hub-order-meta {
  margin: 10px 0;
  color: var(--hub-muted);
  font-size: .9rem;
}

.hub-order-production-notes {
  margin-block: 16px;
  padding: 12px;
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  background: var(--paper);
}

.hub-order-production-notes h3 { margin: 0 0 6px; }

.hub-order-production-notes form > p:first-child {
  margin: 0 0 8px;
  color: var(--hub-muted);
  font-size: .9rem;
}

.hub-order-production-notes textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 8px;
  resize: vertical;
  border: 1px solid var(--hub-line);
  border-radius: 5px;
  font: inherit;
}

.hub-order-production-notes .hub-actions { margin-top: 8px; }
.hub-order-production-notes .hub-status:empty,
.hub-order-production-notes .hub-error:empty { display: none; }

.hub-order-production-notes-text {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.hub-order-finance {
  margin-block: 16px;
  padding: clamp(10px, 2vw, 16px);
  border: 1px solid var(--hub-line);
  border-radius: 9px;
  background: var(--hub-canvas);
}

.hub-order-finance h3,
.hub-order-finance h4 {
  margin: 0;
  color: var(--hub-navy);
}

.hub-order-finance h3 { margin-bottom: 12px; }
.hub-order-finance h4 { margin-bottom: 5px; }

.hub-order-finance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 14px;
}

.hub-order-finance-grid > div {
  min-width: 0;
  padding: clamp(8px, 2vw, 12px);
  border-radius: 6px;
  background: var(--paper);
}

.hub-order-finance :is(ul, dl, dd) {
  margin: 0;
  padding: 0;
}

.hub-order-finance :is(li, [data-finance-row]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: baseline;
  gap: 8px;
  padding-block: 7px;
  border-bottom: 1px solid var(--hub-line);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hub-order-finance li { list-style: none; }
.hub-order-finance li:last-child,
.hub-order-finance [data-finance-row]:last-child { border-bottom: 0; }
.hub-order-finance li + li { margin-top: 0; }

.hub-order-finance :is(dd, li > div:last-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hub-order-finance small {
  display: block;
  margin-top: 2px;
  color: var(--hub-muted);
  font-size: .8rem;
}

.hub-order-finance [data-finance-row="product-cost"] {
  margin-top: 7px;
  border-top: 1px solid var(--hub-line);
  color: var(--hub-muted);
  font-size: .9rem;
}

.hub-order-finance :is([data-finance-row="order-total"], [data-finance-row="net-paid"]) {
  font-weight: 700;
}

.hub-order-finance-inclusions {
  margin-top: 7px;
  color: var(--hub-muted);
  font-size: .9rem;
}

.hub-order-finance-inclusions summary {
  padding-block: 6px;
  cursor: pointer;
}

.hub-order-art {
  margin-block: 12px;
}

.hub-order-art img {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 5px;
  border: 1px solid var(--hub-line);
  border-radius: 5px;
  background: var(--hub-canvas);
  object-fit: contain;
}

.hub-sleeve-previews {
  margin-block: 12px;
}

.hub-sleeve-previews summary {
  cursor: pointer;
  font-weight: 650;
}

.hub-sleeve-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.hub-sleeve-proof-grid figure {
  margin: 0;
}

.hub-sleeve-proof-grid figcaption {
  margin-top: 4px;
  font-size: .85rem;
}

.hub-chat-messages {
  list-style: none;
  padding: 0;
}

.hub-chat-summary {
  display: block;
  overflow-wrap: anywhere;
}

#hubChatList > ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#hubChatList small {
  display: block;
  margin-top: 3px;
  color: var(--hub-muted);
}

.hub-chat-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.hub-page .hub-team-item[data-unread] {
  border-color: var(--brand-blue);
  background: var(--blue-wash);
  color: var(--hub-navy);
  box-shadow: inset 3px 0 0 var(--brand-blue);
}

.hub-chat-messages {
  display: grid;
  gap: 10px;
  max-height: 55vh;
  min-height: 100px;
  margin-block: 15px;
  overflow-y: auto;
}

.hub-chat-message {
  justify-self: start;
  max-width: 90%;
  padding: 10px 13px;
  border-radius: 8px;
  background: var(--hub-canvas);
}

.hub-chat-message[data-sender="staff"] {
  justify-self: end;
  background: var(--blue-wash);
}

.hub-chat-message-meta {
  margin: 0 0 5px;
  color: var(--hub-muted);
  font-size: .8rem;
}

.hub-chat-message-text {
  margin: 0;
  white-space: pre-wrap;
}

.hub-page .hub-field {
  color: var(--hub-navy);
  font-weight: 650;
}

.hub-page .hub-field :is(input:not([type="checkbox"], [type="radio"]), select, textarea) {
  min-height: 44px;
  margin-top: 4px;
  border-color: #718399;
  font-weight: 400;
}

.hub-page button:not(.text-link) {
  min-height: 44px;
}

.hub-pagination {
  justify-content: space-between;
  margin-block: 16px;
  color: var(--hub-muted);
  font-variant-numeric: tabular-nums;
  font-size: .9rem;
}

.hub-table-wrap {
  overflow: auto;
}

.hub-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.hub-table :is(th, td) {
  padding: 12px 14px;
  border-bottom: 1px solid var(--hub-line);
}

.hub-table th {
  background: var(--hub-canvas);
  color: var(--hub-navy);
}

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

.hub-customer-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hub-customer-sources a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--hub-line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--hub-navy);
  font-weight: 650;
}

.hub-customer-sources a[aria-current="page"] {
  border-color: #b5d9ef;
  background: var(--blue-wash);
  color: var(--link);
}

.hub-deco-import {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  background: var(--hub-canvas);
}

.hub-deco-import summary {
  cursor: pointer;
  font-weight: 700;
}

.hub-deco-import p {
  color: var(--hub-muted);
  font-size: .9rem;
}

.hub-deco-import .hub-error {
  color: #791b1b;
}

.hub-deco-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px 12px;
}

.hub-deco-form .hub-field {
  flex: 1 1 min(100%, 18rem);
  min-width: 0;
  max-width: 30rem;
  margin: 0;
}

.hub-deco-contacts .hub-status:empty {
  display: none;
}

.hub-deco-results {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hub-line);
}

.hub-deco-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hub-line);
  overflow-wrap: anywhere;
}

.hub-deco-contact > div {
  display: grid;
  gap: 2px;
}

.hub-deco-contact span {
  color: var(--hub-muted);
  font-size: .9rem;
}

.hub-deco-dialog {
  width: min(calc(100% - 24px), 39rem);
  margin: auto;
  padding: clamp(16px, 5vw, 24px);
  border: 1px solid var(--hub-line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--hub-navy);
  overflow-wrap: anywhere;
}

.hub-deco-dialog-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.hub-deco-fields {
  display: grid;
  gap: 8px;
}

.hub-deco-fields > div {
  display: grid;
  grid-template-columns: minmax(5rem, 1fr) minmax(0, 3fr);
  gap: 12px;
}

.hub-deco-fields dt,
.hub-deco-addresses p {
  color: var(--hub-muted);
}

.hub-deco-fields dd {
  margin: 0;
}

.hub-deco-addresses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 12px;
}

.hub-deco-addresses > section {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--hub-canvas);
}

.hub-deco-addresses h3 {
  margin: 0 0 6px;
  font-size: .95rem;
}

.hub-deco-addresses p {
  margin: 0;
}

.hub-deco-addresses address {
  font-style: normal;
  white-space: pre-line;
}

@media (max-width: 650px) {
  .hub-deco-contact {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hub-deco-contact .hub-deco-methods {
    grid-row: 2;
  }

  .hub-deco-contact button {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}

.hub-split {
  grid-template-columns: minmax(155px, 1fr) minmax(0, 2fr);
  align-items: start;
}

.hub-team-list {
  display: grid;
  align-content: start;
  gap: 6px;
  margin: 0;
  padding: 8px;
  list-style: none;
}

.hub-team-item {
  width: 100%;
  text-align: left;
  overflow-wrap: anywhere;
}

.hub-team-item[aria-pressed="true"] {
  --focus-ring: var(--accent);
  border-color: #b5d9ef;
  background: var(--blue-wash);
  color: var(--link);
}

.hub-employee-list {
  gap: 12px;
  padding: 12px;
}

.hub-employee-list-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hub-employee-list-heading h2 {
  margin: 0;
  font-size: 1rem;
}

.hub-employee-rows {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub-page .hub-employee-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  padding: 8px 10px;
}

.hub-employee-identity {
  display: grid;
  gap: 2px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.hub-employee-identity > span {
  color: var(--hub-muted);
  font-size: .85rem;
  font-weight: 500;
}

.hub-employee-signin:not([hidden]) {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.hub-employee-status {
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf2f7;
  color: var(--hub-muted);
  font-size: .75rem;
  font-weight: 650;
  white-space: nowrap;
}

.hub-employee-status[data-active="true"] {
  background: #e5f3e9;
  color: #205b36;
}

.hub-employee-access {
  margin-block: 12px 18px;
  padding: 12px;
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  background: var(--hub-canvas);
}

.hub-employee-access-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hub-employee-access h3,
.hub-employee-delete-dialog h3 {
  margin: 0;
  font-size: 1.05rem;
}

.hub-employee-access p {
  margin: 6px 0 10px;
  color: var(--hub-muted);
  font-size: .9rem;
}

.hub-employee-access p.hub-error {
  color: #791b1b;
}

.hub-employee-access :is(.hub-status, .hub-error),
.hub-employee-list [data-employee-list-status] {
  margin: 8px 0 0;
}

.hub-employee-access .hub-status:empty,
.hub-employee-list [data-employee-list-status]:empty {
  display: none;
}

.hub-employee-delete-dialog {
  width: min(calc(100% - 24px), 28rem);
  margin: auto;
  padding: clamp(16px, 5vw, 24px);
  border: 1px solid var(--hub-line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--hub-navy);
  overflow-wrap: anywhere;
}

.hub-employee-delete-dialog .hub-actions {
  justify-content: end;
}

.hub-employee-danger {
  border-color: #dfb4b4;
  color: #922121;
  font-weight: 650;
}

.hub-employee-danger-confirm {
  border-color: #a12424;
  background: #a12424;
  color: #fff;
}

.hub-permissions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
  gap: 8px 12px;
  min-width: 0;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--hub-line);
  border-radius: 6px;
}

.hub-permissions label {
  display: flex;
  align-items: start;
  gap: 6px;
  margin: 0;
}

.hub-permissions input {
  flex: 0 0 auto;
}

.hub-notice,
.hub-error {
  padding: 10px 12px;
  border-inline-start: 3px solid var(--link);
  border-radius: 4px;
  background: var(--blue-wash);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.hub-error {
  border-color: #a92a2a;
  background: #fff1f1;
  color: #791b1b;
}

.hub-page :is(.hub-empty, .hub-notice, .hub-error):empty {
  display: none;
}

.hub-page #hubCatalog .admin-heading h2 {
  color: var(--hub-navy);
  font: 700 clamp(1.5rem, 3vw, 2rem)/1.12 var(--display);
}

.hub-page #hubCatalog .admin-tabs {
  flex-wrap: wrap;
}

.hub-page .admin-drinkware-cost {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--hub-line);
  border-radius: 6px;
  background: var(--hub-canvas);
}

.hub-page .admin-drinkware-cost :is(output, [data-drinkware-cost-source], .admin-drinkware-profit span) {
  display: block;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

.hub-page .admin-drinkware-profit {
  margin: 8px 0 0;
  color: var(--hub-muted);
  font-size: .9rem;
}

.hub-page #hubCatalog .admin-layout:has(.admin-product-picker) {
  grid-template-columns: minmax(185px, 235px) minmax(0, 1fr);
}

.hub-page .admin-product-picker {
  align-self: start;
  padding: 10px;
  border: 1px solid var(--hub-line);
  border-radius: 10px;
  background: var(--paper);
}

.hub-page .admin-picker-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px 9px;
}

.hub-page .admin-picker-filters label {
  min-width: 0;
  margin: 0;
  font-size: .875rem;
}

.hub-page .admin-picker-filters :is(input, select) {
  min-height: 44px;
  margin-top: 3px;
  padding: 6px 8px;
}

.hub-page .admin-picker-search {
  grid-column: 1 / -1;
}

.hub-page :is(.admin-picker-count, .admin-picker-empty) {
  margin: 0;
  color: var(--hub-muted);
  font-size: .875rem;
  line-height: 1.4;
}

.hub-page .admin-product-picker .admin-product-groups {
  max-block-size: 26rem;
  gap: 12px;
  padding: 4px 5px 4px 4px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.hub-page .admin-product-picker .admin-product-group h3 {
  margin-bottom: 5px;
}

.hub-page .admin-product-picker .admin-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}

.hub-page .admin-product-picker .admin-item {
  padding: 7px 9px;
}

.hub-page .admin-product-picker .admin-item small {
  margin-top: 2px;
}

.hub-page :is(.admin-product-groups, #adminItemHeading):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
}

.hub-page #adminItemHeading {
  scroll-margin-block-start: 18px;
}

.hub-page :is(.admin-picker-jump, .admin-picker-back) {
  display: none;
}

@media (max-width: 1000px) {
  .hub-page #hubCatalog .admin-layout,
  .hub-page #hubCatalog .admin-layout:has(.admin-product-picker) {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-page .admin-picker-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hub-page .admin-product-picker .admin-product-groups {
    max-block-size: 14rem;
  }

  .hub-page :is(.admin-picker-jump, .admin-picker-back) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hub-page .admin-picker-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 790px) {
  .hub-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .hub-page .hub-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
}

@media (max-width: 530px) {
  .hub-page .hub-header {
    position: relative;
    min-height: 0;
    gap: 8px;
    padding: 10px 12px;
  }

  .hub-header .hub-brand { gap: 6px; flex-wrap: nowrap; }
  .hub-header .hub-brand img { width: clamp(64px, 20vw, 88px); }
  .hub-brand-prefix, .hub-find-full { display: none; }
  .hub-header .hub-header-actions { gap: 6px; flex-wrap: nowrap; margin-inline-start: auto; }
  .hub-page .hub-header #hubFind { min-width: 44px; padding-inline: 8px; }
  .hub-header .hub-account-menu { position: static; }
  .hub-account-menu summary { padding-inline: 7px; }
  .hub-header .hub-account-options { top: 100%; right: 12px; }

  .hub-page .hub-root :is(select, textarea, input:not([type="checkbox"], [type="radio"], [type="range"])) {
    max-width: 100%;
    min-width: 0;
    font-size: 1rem;
  }

  .hub-page #hubCatalog .admin-sidebar[aria-label="Bundle offers"] .admin-list {
    max-block-size: 12rem;
    overflow: auto;
    overscroll-behavior: contain;
  }

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

  .hub-table :is(th, td) {
    padding: 8px;
  }
}


