@import url('./fonts.css');

@import url('./tokens.css');

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: var(--text-sm)/1.55 var(--font-body);
}

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

button,a,select,summary {
  cursor: pointer;
}

button {
  min-height: var(--control-height);
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
  transition: background .12s;
}

button:hover:not(:disabled) {
  background: var(--stone);
  border-color: var(--green);
}

button:disabled {
  cursor: not-allowed;
  color: #738087;
  background: #f2f4f2;
  border-color: var(--line);
}

button.primary,.button.primary {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

button.primary:hover {
  background: #244e70;
}

button.dark {
  background: var(--navy);
  color: #fff;
}

button.secondary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

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

button.link {
  background: transparent;
  border: 0;
  color: var(--green);
  padding: 8px 10px;
}

button.small {
  font-size: var(--text-sm);
  padding: 8px 12px;
  min-width: 44px;
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 16px;
  font-weight: 600;
}

.button:hover {
  text-decoration: none;
}

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

input,select,textarea {
  max-width: 100%;
  min-width: 0;
  border: 1px solid #b9c6bf;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  min-height: 44px;
  background: white;
  color: var(--ink);
}

input:disabled,select:disabled {
  color: #52635b;
  background: #edf1ed;
  border-color: #d6dfd9;
}

input[type=checkbox] {
  min-height: 20px;
  width: 20px;
  height: 20px;
  accent-color: var(--green);
  cursor: pointer;
}

input[type=range] {
  padding: 4px;
  width: 100%;
}

input[type=file] {
  white-space: normal;
  width: 100%;
  font-size: 13px;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

label {
  font-size: var(--text-sm);
  font-weight: 600;
  display: block;
}

label input,label select,label textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
}

label.check {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
}

label.check input {
  margin: 0;
  width: 20px;
  flex-shrink: 0;
}

.check {
  display: flex;
  gap: 10px;
  align-items: center;
}

.check input {
  width: 20px;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 1000;
  background: white;
  padding: 12px;
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

h1,h2,h3 {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.2;
}

h1 {
  font-size: clamp(26px,2.3vw,36px);
  letter-spacing: -.9px;
  font-weight: 600;
  margin: 0 0 10px;
}

h2 {
  font-size: 23px;
  letter-spacing: -.4px;
  font-weight: 600;
  margin: 0 0 16px;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 12px;
}

p {
  margin: 0 0 18px;
  line-height: 1.7;
}

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

.eyebrow {
  font-size: 12px;
  letter-spacing: 1.7px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.crumb {
  font-size: 13px;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  background: var(--warning-bg);
  color: var(--warning);
  padding: 5px 9px;
  border-radius: 3px;
  font-size: 12px;
  letter-spacing: .4px;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  border-radius: 4px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 600;
  background: var(--stone);
  color: #52615d;
  white-space: normal;
}

.badge.published,.badge.approved {
  color: var(--success);
  background: var(--success-bg);
}

.badge.preview {
  color: #254d73;
  background: #e7eef6;
}

.badge.draft {
  color: #75541b;
  background: var(--warning-bg);
}

.badge.archived {
  color: #5c6066;
  background: #eceeef;
}

.badge.discontinued,.badge.not-approved {
  color: var(--danger);
  background: var(--danger-bg);
}

.badge.restricted {
  color: #795615;
  background: #fbefd4;
}

.badge.not-confirmed {
  color: #5a6267;
  background: #edf0f1;
}

.note {
  padding: 14px 18px;
  background: var(--warning-bg);
  color: var(--warning);
  border-left: 3px solid var(--oak);
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 24px;
  border-radius: 0;
}

.error {
  color: var(--danger);
  white-space: pre-line;
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0;
}

.error:empty {
  display: none;
}

.empty {
  text-align: center;
  padding: 56px 24px;
  color: var(--muted);
  border: 1px dashed var(--line);
  background: var(--warm);
}

aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  background: var(--navy);
  color: #d4e1e9;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 30;
}

.official-brand {
  background: white;
  border-radius: 3px;
  overflow: hidden;
}

.official-brand img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.sidebar-brand {
  margin-bottom: 16px;
}

.subbrand {
  font-size: 11px;
  letter-spacing: 1.4px;
  color: #c8d9e3;
  text-align: center;
  margin: 0 0 24px;
}

.navlabel {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #b0c7d6;
  margin: 22px 12px 12px;
}

aside nav button {
  display: block;
  width: 100%;
  text-align: left;
  color: #d4e1e9;
  background: transparent;
  border: 1px solid transparent;
  padding: 12px 14px;
  margin-bottom: 5px;
  font-weight: 500;
  border-radius: 4px;
}

aside nav button.active {
  color: white;
  background: #31546c;
  border-left: 3px solid var(--oak);
}

aside nav button:hover:not(:disabled) {
  background: #294c64;
  color: #fff;
  border-color: transparent;
}

aside nav button:focus-visible {
  outline-color: #c9aa80;
}

.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #496479;
  padding-top: 20px;
  font-size: 13px;
  line-height: 1.8;
}

.sidebar-bottom .muted {
  color: #bbccd6;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  margin-right: 8px;
}

.main {
  margin-left: var(--sidebar-width);
  min-width: 0;
}

.main>header {
  height: 76px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 36px;
  gap: 16px;
}

.content {
  padding: 32px 36px;
  max-width: 1760px;
  margin: auto;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 26px;
}

.title-row p {
  margin: 0;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.intro {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  background: #e9eee8;
  border: 1px solid #d9e1d7;
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: var(--radius);
}

.intro-text {
  padding: 24px 28px;
}

.intro h2 {
  font-size: 24px;
}

.intro p {
  max-width: 540px;
  color: #526258;
  margin-bottom: 18px;
}

.intro img {
  width: 100%;
  height: 100%;
  max-height: 245px;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat {
  padding: 20px 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.stat b {
  display: block;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  margin: 8px 0;
}

.stat span {
  font-size: 13px;
  color: var(--muted);
}

.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 24px;
  overflow: hidden;
}

.panel-head {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.filters {
  padding: 16px 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  background: #fafbf9;
}

.filters select {
  flex: 1 1 150px;
  max-width: 220px;
  font-size: 13px;
}

.search {
  width: 310px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
}

th {
  padding: 14px 16px;
  background: var(--stone);
  color: #50625a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
}

td {
  padding: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

th:first-child,td:first-child {
  padding-left: 22px;
  width: 50px;
}

tbody tr:hover {
  background: #fafbf8;
}

.product-cell {
  display: flex;
  gap: 14px;
  align-items: center;
}

.product-cell img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 3px;
}

.product-cell strong {
  display: block;
  font-size: 15px;
  margin-bottom: 5px;
}

.product-cell .muted {
  font-size: 13px;
}

.table-foot {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

.toolbar {
  background: #e8f0e8;
  border-bottom: 1px solid #ccdbce;
  padding: 14px 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

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

.card {
  background: white;
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: var(--radius);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: var(--stone);
  margin-bottom: 18px;
  border-radius: 3px;
}

.card p {
  font-size: 14px;
  color: var(--muted);
}

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

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

.editor {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 24px;
}

.section {
  padding: 26px;
}

.section+.section {
  border-top: 1px solid var(--line);
}

.editor-actions {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.editor-side {
  align-self: start;
  position: sticky;
  top: 114px;
}

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

.spec {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

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

.spec b {
  font-weight: 500;
  text-align: right;
}

.sku-row {
  display: grid;
  grid-template-columns: minmax(150px,2fr) minmax(90px,1fr) minmax(90px,1fr) auto auto;
  gap: 8px;
  padding: 12px;
  background: var(--warm);
  border: 1px solid var(--line);
}

.sku-row input {
  width: 100%;
}

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

.photo-card {
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--warm);
  min-width: 0;
}

.photo-card.dragging {
  opacity: .5;
}

.photo-card img {
  width: 100%;
  height: 185px;
  object-fit: contain;
  background: var(--stone);
  border-radius: 3px;
}

.photo-grid select {
  width: 100%;
}

.photo-grid .actions {
  gap: 6px;
}

.photo-grid label {
  margin: 10px 0;
}

.photo-grid .small {
  font-size: 12px;
  padding: 8px;
}

.drop {
  display: block;
  text-align: center;
  padding: 26px;
  border: 1px dashed #789b84;
  border-radius: 4px;
  background: #f1f6ef;
  color: #315d40;
}

.drop input {
  margin-top: 16px;
  background: white;
}

.connection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.connection .actions {
  flex-shrink: 0;
}

.collection-switcher {
  width: 100%;
  margin-top: 16px;
}

.unsaved {
  color: var(--warning);
  font-size: 12px;
}

.unsaved:empty {
  display: none;
}

.mobile-menu {
  display: none;
}

.nav-scrim {
  display: none;
}

dialog {
  width: min(860px,calc(100vw - 32px));
  max-height: 90dvh;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  box-shadow: 0 18px 70px #142b3733;
  overflow: auto;
}

dialog::backdrop {
  background: #183c5966;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.modal-head h2 {
  margin: 0;
}

.modal-head button {
  flex-shrink: 0;
}

#confirm-modal {
  max-width: 480px;
}

#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 16px 22px;
  background: var(--navy);
  color: #fff;
  border-radius: 5px;
  display: none;
  z-index: 200;
  box-shadow: 0 8px 24px #183c5922;
}

.loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  padding: 16px;
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Public showroom: spacious, photography led, editorial typography. */

.public {
  background: var(--warm);
  min-height: 100vh;
}

.experience-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 14px 5%;
  min-height: 112px;
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.official-logo {
  display: block;
  width: 205px;
  height: auto;
  object-fit: contain;
}

.gallery-wordmark {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  font-size: 12px;
  letter-spacing: 1.6px;
  color: var(--navy);
}

.public-body {
  max-width: 1480px;
  margin: auto;
  padding: 30px 48px 64px;
}

.public h1,.public h2.editorial,.public .collection-heading {
  font-family: var(--font-editorial);
  font-weight: 400;
  letter-spacing: -1.2px;
}

.public h1 {
  font-size: clamp(38px,4.5vw,62px);
  line-height: 1.1;
}

.public h2 {
  font-size: 26px;
}

.public-description {
  font-size: 17px;
  color: var(--muted);
  max-width: 550px;
  line-height: 1.75;
}

.showroom-hero {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  min-height: 400px;
  background: #eceee5;
  margin-bottom: 48px;
}

.showroom-intro {
  padding: 48px 40px;
  align-self: center;
}

.showroom-intro p {
  max-width: 400px;
  font-size: 16px;
}

.showroom-image {
  position: relative;
  min-height: 330px;
}

.showroom-image img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
}

.image-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: #fffef5ed;
  padding: 5px 9px;
  font-size: 12px;
  color: #4b594e;
}

.public section {
  margin-top: 48px;
}

.public .product-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.product-card a {
  display: block;
}

.product-card a:hover {
  text-decoration: none;
}

.product-card .card-photo {
  position: relative;
  background: var(--stone);
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 18px;
}

.product-card img {
  width: 100%;
  height: 100%;
  margin: 0;
  display: block;
  object-fit: contain;
}

.product-card h3 {
  font-size: 19px;
  margin: 0 0 8px;
}

.product-card .eyebrow {
  font-size: 11px;
  margin-bottom: 8px;
}

.product-card .current-label {
  display: block;
  margin-top: 12px;
  width: fit-content;
}

.product-card.is-current .card-photo {
  outline: 3px solid var(--green);
  outline-offset: -3px;
}

.catalog-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.catalog-tools .search {
  flex: 1;
  max-width: 480px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 215px minmax(0,1fr);
  gap: 32px;
  align-items: start;
}

.browse-filters {
  position: sticky;
  top: 20px;
  border-top: 2px solid var(--navy);
  padding: 18px 0;
}

.browse-filters label {
  margin-bottom: 16px;
}

.browse-filters select {
  width: 100%;
}

.catalog-results .grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 30px 24px;
}

.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.filter-toggle,.filter-close {
  display: none;
}

.collection-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 32px;
}

.collection-strip button {
  background: transparent;
}

.collection-strip button.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.collection-intro {
  border-left: 3px solid var(--oak);
  padding-left: 24px;
  max-width: 780px;
  margin: 36px 0;
}

.public-hero {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,1fr);
  align-items: start;
}

.photo-viewer {
  min-width: 0;
}

.hero-photo {
  width: 100%;
  height: 460px;
  object-fit: contain;
  background: var(--stone);
  display: block;
  border-radius: 0;
}

.photo-stage {
  position: relative;
}

.photo-stage>button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: #fffffff0;
}

.photo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.thumbs {
  display: flex;
  gap: 10px;
  margin: 14px 0;
  overflow-x: auto;
  padding-bottom: 5px;
}

.thumbs button {
  padding: 3px;
  min-width: 86px;
  background: white;
}

.thumbs button.active {
  border: 2px solid var(--green);
}

.thumbs img {
  display: block;
  width: 76px;
  height: 62px;
  object-fit: contain;
  background: var(--stone);
}

.photo-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}

.product-summary {
  padding: 12px 0;
}

.public .spec {
  font-size: 15px;
}

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

.document-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: white;
  min-height: 62px;
}

.contact-band {
  background: var(--stone);
  padding: 30px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 52px;
}

.contact-band p {
  margin: 0;
  max-width: 680px;
}

.public-footer {
  padding: 28px 5%;
  background: var(--navy);
  color: #d8e3eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
}

.public-footer a {
  color: white;
}

.lightbox {
  max-width: none;
  width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  border-radius: 0;
  padding: 20px;
  background: #17232a;
  color: white;
}

.lightbox img {
  width: 100%;
  height: calc(100dvh - 170px);
  object-fit: contain;
}

.lightbox .modal-head h2 {
  color: white;
  font-size: 18px;
}

.lightbox .photo-controls {
  max-width: 800px;
  margin: auto;
}

.lightbox .photo-note {
  color: #c3d2dc;
}

.lightbox::backdrop {
  background: #17232a;
}

/* Field portal: touch-friendly tools, split-pane product information. */

.portal {
  min-height: 100vh;
  background: var(--bg);
  font-size: 16px;
}

.portal .experience-header {
  padding: 12px 32px;
  min-height: 102px;
}

.portal .gallery-wordmark {
  font-size: 13px;
  letter-spacing: .7px;
}

.portal-main {
  max-width: 1360px;
  margin: auto;
  padding: 32px;
}

.portal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.portal h1 {
  font-size: 32px;
}

.portal .portal-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #acbfb1;
  border-radius: 6px;
  padding: 9px 14px;
  margin-bottom: 28px;
}

.portal-search input {
  flex: 1;
  border: 0;
  font-size: 17px;
  min-width: 0;
}

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

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px;
  background: white;
  text-align: left;
  min-height: 140px;
  font-size: 16px;
}

.tool-card .tool-icon {
  color: var(--green);
  font-size: 23px;
}

.tool-card small {
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
}

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

.portal-product-grid .product-card {
  background: white;
  padding: 18px;
}

.portal-product-grid .card-photo {
  aspect-ratio: 4/3;
  margin-bottom: 14px;
}

.portal .product-card img {
  object-fit: contain;
}

.portal-product {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,1fr);
  gap: 30px;
  align-items: start;
}

.portal .hero-photo {
  height: 360px;
}

.portal .specs {
  grid-template-columns: 1fr;
}

.portal .spec {
  font-size: 15px;
}

.portal .tabbar {
  display: flex;
  gap: 8px;
  margin: 20px 0 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.tabbar button[aria-selected=true] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.portal-detail {
  background: white;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.portal-sticky {
  position: sticky;
  bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
  z-index: 15;
}

.portal-recent {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 28px;
}

.tool-unavailable {
  border-left: 3px solid var(--oak);
  padding: 20px;
  background: var(--warm);
  font-size: 15px;
}

.portal .document-list {
  grid-template-columns: 1fr;
}

.menu-sheet {
  position: fixed;
  inset: 0 0 0 auto;
  box-sizing: border-box;
  width: min(360px,calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  border-radius: 0;
  padding: max(20px,env(safe-area-inset-top)) 20px max(20px,env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.menu-sheet .modal-head {
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.menu-sheet .modal-head h2 {
  flex: 1;
  min-width: 0;
  font-size: 22px;
  line-height: 1.25;
}

.menu-sheet #menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

.menu-sheet [data-menu-target] {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 600;
  display: block;
  width: 100%;
  min-height: 46px;
  margin: 0 0 10px;
  text-align: left;
  padding: 12px 14px;
}

.menu-sheet [data-menu-target]:hover:not(:disabled) {
  color: var(--navy);
  background: var(--stone);
  border-color: var(--green);
}

.menu-sheet [aria-current="page"] {
  color: var(--navy);
  background: var(--stone);
  border-color: var(--green);
}

.menu-sheet #menu-close:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

html:has(.menu-sheet[open]) {
  overflow: hidden;
}

@media(min-width:1600px) {
  .content {
    padding: 40px 48px;
  }

  .editor {
    grid-template-columns: minmax(0,1fr) 340px;
  }

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

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

  .public-body {
    max-width: 1600px;
  }

  .hero-photo {
    height: 540px;
  }
}

@media(max-width:1200px) {
  :root {
    --sidebar-width: 220px;
  }

  .content {
    padding: 24px;
  }

  .main>header {
    padding: 0 24px;
  }

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

  .editor-side {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .editor-side .panel {
    margin: 0;
  }

  .public-body {
    padding: 24px 32px 48px;
  }

  .public-hero {
    gap: 30px;
  }

  .hero-photo {
    height: 390px;
  }

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

  .showroom-intro {
    padding: 32px;
  }

  .experience-header {
    gap: 16px;
    padding: 12px 32px;
  }

  .gallery-wordmark {
    max-width: 150px;
  }

  .experience-header .actions {
    gap: 6px;
  }

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

  .tool-card {
    padding: 18px;
  }

  .portal-product {
    gap: 22px;
  }

  .portal .hero-photo {
    height: 320px;
  }

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

  .sku-row button {
    grid-row: 2;
  }
}

@media(max-width:900px) {
  :root {
    --sidebar-width: 200px;
  }

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

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

  .intro {
    grid-template-columns: 1fr;
  }

  .intro img {
    display: none;
  }

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

  .editor-actions {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .editor-side {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 22px;
  }

  .panel-head .actions {
    width: 100%;
  }

  .panel-head .search {
    flex: 1;
    min-width: 180px;
  }

  .hero-photo {
    height: 440px;
  }

  .public .product-summary {
    max-width: 680px;
  }

  .public-hero .specs {
    grid-template-columns: 1fr 1fr;
  }

  .showroom-hero {
    grid-template-columns: 1fr 1fr;
    min-height: 360px;
  }

  .showroom-intro {
    padding: 28px;
  }

  .public h1 {
    font-size: 43px;
  }

  .gallery-wordmark {
    display: none;
  }

  .public-brand {
    gap: 0;
  }

  .catalog-layout {
    grid-template-columns: 180px minmax(0,1fr);
    gap: 24px;
  }

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

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

  .portal-product {
    grid-template-columns: 1fr;
  }

  .portal-product .hero-photo {
    height: 420px;
  }

  .portal-detail {
    padding: 26px;
  }

  .portal .specs {
    grid-template-columns: 1fr 1fr;
  }

  .portal-main {
    padding: 26px;
  }

  .portal .experience-header {
    padding: 12px 26px;
  }

  .portal .portal-heading {
    align-items: flex-start;
  }

  .public .experience-header .desktop-nav {
    display: none;
  }

  .public .experience-header .mobile-menu,.portal .experience-header .mobile-menu {
    display: block;
  }

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

  .contact-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .public .spec {
    font-size: 14px;
  }
}

@media(max-width:700px) {
  body {
    font-size: 15px;
  }

  .main {
    margin: 0;
  }

  .main>header {
    padding: 12px 16px;
    height: auto;
    min-height: 72px;
    gap: 12px;
  }

  .main>header .crumb {
    display: none;
  }

  .main>header .mobile-menu {
    display: block;
  }

  .main>header .actions {
    margin-left: auto;
  }

  .main>header .tag {
    font-size: 10px;
  }

  .main>header .small {
    font-size: 12px;
  }

  aside {
    transform: translateX(-100%);
    width: 260px;
    transition: transform .15s;
  }

  .nav-open aside {
    transform: translateX(0);
  }

  .nav-open .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: #183c5966;
    z-index: 25;
    border: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border-radius: 0;
  }

  .content {
    padding: 24px 16px;
  }

  .title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .title-row .actions {
    width: 100%;
  }

  .title-row .actions button {
    flex: 1;
  }

  .stats {
    gap: 12px;
  }

  .stat {
    padding: 16px;
  }

  .stat span {
    font-size: 12px;
  }

  .panel-head,.filters,.table-foot {
    padding: 16px;
  }

  .filters select {
    max-width: none;
    flex-basis: 130px;
  }

  .form-grid,.grid,.editor-side {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 20px;
  }

  .specs {
    grid-template-columns: 1fr;
  }

  .spec {
    gap: 14px;
    font-size: 14px;
  }

  .spec b {
    max-width: 58%;
  }

  .connection {
    flex-wrap: wrap;
  }

  .connection .actions {
    flex-shrink: 1;
  }

  .search {
    width: 100%;
  }

  .panel-head .search {
    min-width: 0;
    width: 100%;
    flex-basis: 100%;
  }

  .photo-card img {
    height: 220px;
  }

  .sku-row {
    grid-template-columns: 1fr 1fr;
  }

  .sku-row input:first-child {
    grid-column: 1/-1;
  }

  .sku-row button {
    grid-row: auto;
  }

  .sku-row.actions {
    gap: 10px;
  }

  .editor-actions {
    margin-bottom: 20px;
  }

  .editor-actions h1 {
    font-size: 27px;
  }

  .public-body {
    padding: 20px 18px 40px;
  }

  .experience-header {
    padding: 12px 18px;
    min-height: 94px;
  }

  .official-logo {
    width: 174px;
  }

  .public h1 {
    font-size: 38px;
  }

  .public h2 {
    font-size: 25px;
  }

  .showroom-hero {
    grid-template-columns: 1fr;
    margin-bottom: 32px;
  }

  .showroom-intro {
    padding: 30px 24px;
  }

  .showroom-image {
    min-height: 270px;
  }

  .showroom-intro p {
    font-size: 16px;
  }

  .public-description {
    font-size: 16px;
  }

  .catalog-tools {
    flex-wrap: wrap;
  }

  .catalog-tools .search {
    flex: 1;
    min-width: 0;
  }

  .catalog-tools select {
    flex: 1;
  }

  .filter-toggle {
    display: block;
  }

  .catalog-layout {
    display: block;
  }

  .browse-filters {
    display: none;
  }

  .browse-filters.is-open {
    display: block;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px,90vw);
    background: var(--warm);
    z-index: 60;
    padding: 24px;
    overflow: auto;
    box-shadow: -18px 0 60px #183c5933;
  }

  .filter-close {
    display: block;
    width: 100%;
    margin-bottom: 24px;
  }

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

  .product-card h3 {
    font-size: 17px;
  }

  .product-card .eyebrow {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .product-card .muted {
    font-size: 13px;
  }

  .product-card .card-photo {
    aspect-ratio: 1;
  }

  .collection-strip {
    gap: 8px;
  }

  .collection-strip button {
    font-size: 13px;
    padding: 10px 12px;
  }

  .public-hero {
    gap: 24px;
  }

  .hero-photo,.portal-product .hero-photo {
    height: 300px;
  }

  .public-hero .specs {
    grid-template-columns: 1fr;
  }

  .public section {
    margin-top: 36px;
  }

  .public .specs {
    grid-template-columns: 1fr;
  }

  .public .spec {
    font-size: 15px;
  }

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

  .public-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 18px;
  }

  .contact-band {
    padding: 24px;
  }

  .portal-main {
    padding: 22px 18px;
  }

  .portal .experience-header {
    padding: 12px 18px;
  }

  .portal h1 {
    font-size: 28px;
  }

  .portal-heading {
    flex-direction: column;
    gap: 16px;
  }

  .portal .portal-search {
    padding: 6px 8px;
  }

  .portal-search input {
    font-size: 16px;
    padding: 10px 6px;
  }

  .tool-grid {
    gap: 12px;
  }

  .tool-card {
    padding: 16px;
    min-height: 140px;
  }

  .portal-product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .portal-product-grid .product-card {
    padding: 12px;
  }

  .portal .specs {
    grid-template-columns: 1fr;
  }

  .portal-detail {
    padding: 20px;
  }

  .portal-sticky {
    padding: 12px;
    flex-wrap: wrap;
  }

  .portal-sticky button {
    flex: 1;
  }

  .portal .tabbar {
    gap: 6px;
  }

  .portal .tabbar button {
    flex: 1;
    padding: 10px 12px;
  }

  .note {
    font-size: 12px;
    padding: 12px 14px;
  }

  .modal-head h2 {
    font-size: 22px;
  }

  dialog {
    padding: 22px 18px;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox img {
    height: calc(100dvh - 190px);
  }

  .lightbox .modal-head h2 {
    font-size: 16px;
  }

  .actions {
    gap: 8px;
  }

  .results-heading {
    font-size: 13px;
  }

  .tag {
    font-size: 11px;
  }
}

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

.paste-zone {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  margin-bottom: 16px;
  border: 1px dashed var(--green);
  border-radius: var(--radius-sm);
  background: #f1f6ef;
  cursor: text;
}

.paste-zone strong {
  color: var(--navy);
}

.paste-zone span {
  font-size: 14px;
  color: var(--muted);
}

.paste-zone:focus {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.paste-zone #photo-paste-status:empty {
  display: none;
}

.sku-row {
  grid-template-columns: minmax(145px,1.4fr) minmax(90px,.8fr) minmax(90px,.8fr) minmax(160px,1fr) auto auto;
  align-items: end;
}

.sku-row label {
  font-size: 12px;
}

.sku-row label select {
  margin-top: 5px;
}

.sku-public {
  align-items: center;
  flex-wrap: wrap;
}

.sku-public .badge {
  flex-shrink: 0;
}

@media(max-width:1200px) {
  .sku-row {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .sku-row label {
    grid-row: 2;
  }

  .sku-row button {
    grid-row: 2;
  }
}

@media(max-width:700px) {
  .sku-row {
    grid-template-columns: 1fr 1fr;
  }

  .sku-row label {
    grid-column: 1/-1;
    grid-row: auto;
  }

  .sku-row button {
    grid-row: auto;
  }
}

[hidden] {
  display: none!important;
}

.width-picker {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-width: 0;
}

.width-picker legend {
  font-weight: 600;
  padding: 0 8px;
}

.width-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.width-mode label {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
}

.width-mode input[type=radio] {
  display: inline-block;
  min-height: 20px;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--green);
}

.width-entry {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}

.width-entry label {
  flex: 1;
  max-width: 400px;
}

.width-picker p {
  font-size: 13px;
}

.collection-description {
  width: 100%;
  max-width: none;
  overflow-wrap: anywhere;
  white-space: pre-line;
  line-height: 1.75;
}

.collection-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(240px,100%);
  max-height: 90px;
  object-fit: contain;
  object-position: left center;
}

.product-collection-logo {
  margin: 0 0 22px;
}

.collection-logo-editor #collection-logo-preview {
  margin: 12px 0 18px;
}

.collection-logo-editor input[type=file] {
  display: block;
  margin-top: 8px;
  max-width: 100%;
}

.spec-widths {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 140px minmax(0,1fr);
  align-items: start;
}

.spec-widths>span {
  white-space: nowrap;
}

.spec-widths>b {
  text-align: left;
  overflow-wrap: break-word;
  line-height: 1.6;
}

.product-summary .spec:not(.spec-widths)>span {
  flex-shrink: 0;
  max-width: 55%;
  overflow-wrap: normal;
}

.product-summary .spec>b {
  min-width: 0;
}

@media(max-width:480px) {
  .spec-widths {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Specifications must grow with their content at every breakpoint. */

.specs {
  align-items: stretch;
  grid-template-columns: repeat(2,minmax(0,1fr));
}

.specs .spec {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.2fr);
  align-items: start;
  gap: 12px 24px;
  min-width: 0;
  height: auto;
}

.specs .spec>span,.specs .spec>b,.product-summary .spec:not(.spec-widths)>span {
  min-width: 0;
  max-width: none;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

.specs .spec>b {
  text-align: right;
}

.spec-exception {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 400;
}

.specs .spec-widths-multiple {
  grid-template-columns: minmax(0,1fr) minmax(0,1.2fr);
}

.width-values {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;
  gap: 0 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  text-align: right;
}

.width-values li {
  padding: 0;
  white-space: nowrap;
  font-weight: 600;
  line-height: 1.6;
}

.width-values li:not(:last-child)::after {
  content: ",";
}

.spec.sku-public {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  overflow-wrap: anywhere;
  min-width: 0;
}

.spec.sku-public>* {
  max-width: none;
  min-width: 0;
  text-align: left;
  white-space: normal;
}

.product-summary,.public-hero>div,.portal-detail {
  min-width: 0;
}

.collection-description {
  max-width: none;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.species-cell {
  white-space: normal;
  min-width: 130px;
  max-width: 220px;
  overflow-wrap: anywhere;
}

.manufacturer-directory {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(190px,1fr));
  gap: 12px;
  margin-top: 20px;
}

.manufacturer-directory button {
  text-align: left;
  white-space: normal;
}

.manufacturer-directory strong,.manufacturer-directory span {
  display: block;
}

.manufacturer-directory span {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.manufacturer-directory .active {
  border: 2px solid var(--green);
  background: var(--stone);
}

.collection-search {
  flex: 1;
  min-width: 200px;
}

.collection-search input {
  width: 100%;
}

.featured-label {
  display: inline-block;
  margin: 10px 8px 0 0;
  background: var(--stone);
  color: var(--navy);
}

.environment-banner {
  background: #fff0cf;
  color: #503800;
  padding: 10px 20px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid #d8bc79;
}

@media(max-width:700px) {
  .specs {
    grid-template-columns: 1fr;
  }

  .specs .spec {
    gap: 10px 16px;
  }
}

@media(max-width:420px) {
  .specs .spec {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .specs .spec>b {
    text-align: left;
  }

  .width-values {
    justify-content: flex-start;
    text-align: left;
  }
}

.width-groups {
  display: grid;
  gap: 10px;
  min-width: 0;
  text-align: right;
}

.width-group strong,.width-group span {
  display: block;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.width-group strong {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.width-group span {
  font-weight: 600;
}

@media(max-width:420px) {
  .width-groups {
    text-align: left;
  }
}

.product-options-section {
  clear: both;
}

.product-options-table {
  width: 100%;
  min-width: 850px;
}

.product-options-table caption {
  text-align: left;
  padding: 0 0 12px;
  font-weight: 600;
}

.product-options-table th,.product-options-table td {
  white-space: normal;
  vertical-align: top;
  line-height: 1.6;
}

.product-options-table tbody th {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  background: transparent;
  color: inherit;
  border-top: 1px solid var(--line);
  padding: 16px;
  white-space: nowrap;
  overflow-wrap: normal;
  max-width: none;
}

.product-options-table .option-notes td {
  font-size: 13px;
  color: var(--muted);
  background: var(--stone);
}

.product-options-wrap {
  overflow-x: auto;
}

.product-options-table th:first-child,.product-options-table td:first-child {
  width: auto;
  min-width: 200px;
  padding-left: 16px;
}

.product-options-table thead th {
  white-space: nowrap;
}

.product-options-table tbody tr:not(.option-notes):nth-child(even) {
  background: rgba(237,240,237,.35);
}

.character-scale {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 6px;
  margin: 18px 0 4px;
}

.character-step {
  text-align: center;
  min-width: 0;
}

.character-step>span {
  display: block;
  height: 15px;
  border-radius: 2px;
}

.character-step>b {
  display: block;
  margin-top: 5px;
}

.character-step>small {
  display: block;
  font-size: 11px;
}

.character-step.selected>b {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.character-endpoints {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}

.character-summary {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

.character-summary h3 {
  margin: 0;
}

.character-summary p {
  font-size: 14px;
  line-height: 1.6;
}

.character-summary>small {
  display: block;
  color: var(--muted);
}

.character-summary>button {
  margin-top: 10px;
}

.guide-heading {
  max-width: 850px;
  margin: 36px auto;
}

.guide-heading h1 {
  font-family: 'Source Serif 4',Georgia,serif;
  font-size: clamp(34px,5vw,62px);
  line-height: 1.1;
}

.guide-heading p {
  line-height: 1.7;
}

.character-guide-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 24px;
  margin-top: 30px;
}

.character-guide-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.character-guide-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.character-card-copy {
  padding: 20px;
}

.character-card-copy p {
  line-height: 1.65;
}

.character-card-copy small {
  color: var(--muted);
  font-size: 12px;
}

.character-card-title {
  display: flex;
  gap: 10px;
  align-items: center;
}

.character-card-title>span {
  width: 12px;
  height: 32px;
  flex-shrink: 0;
}

.character-card-title h2 {
  font-size: 20px;
  margin: 0;
}

.guide-reading-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
}

.guide-reading p {
  line-height: 1.7;
}

@media(max-width:900px) {
  .character-guide-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media(max-width:560px) {
  .character-guide-grid,.guide-reading-grid {
    grid-template-columns: 1fr;
  }
}

#guide-v1 {
  grid-column: 1/-1;
}

.character-species-pair {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
}

.character-species-pair figure {
  margin: 0;
  min-width: 0;
}

.character-species-pair figcaption {
  padding: 12px 20px;
  font-weight: 600;
  background: var(--stone);
}

@media(max-width:560px) {
  .character-species-pair {
    grid-template-columns: 1fr;
  }
}

.character-product-examples {
  margin: 18px 0;
  padding: 16px 20px;
  background: var(--stone);
  border-radius: 4px;
}

.character-product-examples h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.character-product-examples p {
  margin: 0;
}

/* Compact product rating; full definitions remain in the explanation dialog. */

.character-summary {
  padding: 12px 0;
  margin: 12px 0 18px;
}

.character-summary-heading,.character-summary-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
}

.character-summary-heading {
  font-size: 14px;
}

.character-summary .character-scale {
  margin: 10px 0 8px;
}

.character-summary .character-step>span {
  height: 8px;
}

.character-summary .character-step>b {
  font-size: 12px;
  margin-top: 3px;
}

.character-summary .character-step.selected>b {
  font-weight: 800;
  text-decoration-thickness: 2px;
}

.character-summary .character-step>small,.character-summary .character-endpoints {
  display: none;
}

.character-summary-footer>small {
  font-size: 12px;
  color: var(--muted);
}

.character-summary-footer>button {
  font-size: 13px;
  padding: 4px 0;
  min-height: 32px;
}

@media(pointer:coarse) {
  .character-summary-footer>button {
    min-height: 44px;
  }
}

/* Balanced product introduction, with specifications kept beside the photograph. */

.public-hero {
  grid-template-columns: minmax(0,11fr) minmax(0,9fr);
  gap: 32px;
}

.public-hero .product-summary {
  padding: 0;
  max-width: none;
}

.public-hero .product-collection-logo {
  margin-bottom: 14px;
}

.public-hero .collection-logo {
  max-width: min(190px,100%);
  max-height: 64px;
}

.public-hero .product-summary h1 {
  font-size: clamp(32px,3.5vw,50px);
}

.public-hero .product-key-specs {
  column-gap: 22px;
  row-gap: 0;
}

.public-hero .spec {
  padding: 10px 0;
  gap: 8px 12px;
}

.product-radiant {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 12px 0;
}

.product-radiant .link {
  font-size: 13px;
  padding: 4px 0;
  min-height: 32px;
}

.product-options-jump {
  text-align: right;
  padding: 0;
  white-space: normal;
  line-height: 1.5;
  font-size: 14px;
}

.public-hero .character-summary {
  margin: 10px 0 14px;
}

.public-hero .thumbs {
  gap: 8px;
  margin: 10px 0 0;
  padding-bottom: 3px;
}

.public-hero .thumbs button {
  min-width: 68px;
}

.public-hero .thumbs img {
  width: 58px;
  height: 48px;
}

.public-hero .photo-controls {
  margin-top: 6px;
}

.public-hero .photo-controls button {
  padding: 6px 12px;
  min-height: 36px;
}

.public-hero .photo-note {
  margin-top: 8px;
}

#product-options {
  scroll-margin-top: 24px;
}

@media(max-width:1000px) and (orientation:portrait) {
  .public-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media(max-width:900px) {
  .public-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media(max-width:480px) {
  .public-hero .product-key-specs {
    grid-template-columns: 1fr;
  }

  .public-hero .product-summary h1 {
    font-size: 34px;
  }

  .product-options-jump {
    text-align: left;
  }
}

@media(pointer:coarse) {
  .product-radiant .link,.public-hero .photo-controls button {
    min-height: 44px;
  }
}

.product-options-table.compact-options {
  min-width: 620px;
}

.flooring-classification {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink,#263b40);
  line-height: 1.5;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}

/* Keep every refinement reachable while the product grid scrolls. */

@media(min-width:701px) {
  .browse-filters {
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    scrollbar-gutter: stable;
    padding-right: 10px;
    box-sizing: border-box;
  }
}

/* Center SKU field headings while keeping values easy to read. */

#sku-rows .sku-row label {
  text-align: center;
}

#sku-rows .sku-row input,#sku-rows .sku-row select {
  text-align: left;
  width: 100%;
  min-width: 0;
}

#sku-rows .sku-row label,#sku-rows .sku-width-control {
  min-width: 0;
}

/* Product option headings: consistent alignment, quieter single-item treatment. */

.product-options-table thead th {
  text-align: left;
  vertical-align: bottom;
  font-size: 12px;
  letter-spacing: .04em;
  padding: 12px 16px;
  color: var(--navy);
  background: var(--stone);
}

.product-options-table td {
  text-align: left;
  padding: 16px;
}

.product-options-table.single-option {
  min-width: 0;
  border: 1px solid var(--line);
  background: white;
}

.product-options-table.single-option tbody th {
  white-space: normal;
  overflow-wrap: anywhere;
}

@media(max-width:900px) {
  .product-options-table.single-option {
    display: block;
  }

  .product-options-table.single-option caption {
    display: block;
    padding: 14px 16px;
  }

  .product-options-table.single-option thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .product-options-table.single-option tbody {
    display: block;
  }

  .product-options-table.single-option tbody tr {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .product-options-table.single-option tbody th,.product-options-table.single-option tbody td {
    display: block;
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
    overflow-wrap: anywhere;
  }

  .product-options-table.single-option [data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 5px;
  }

  .product-options-table.single-option .option-notes {
    display: block;
  }
}

@media(max-width:480px) {
  .product-options-table.single-option tbody tr {
    grid-template-columns: 1fr;
  }
}

/* A compact, category-specific summary beside the main photograph. */

.public-hero .product-summary {
  align-self: start;
  padding-top: 4px;
  min-width: 0;
}

.public-hero .product-summary h1 {
  margin: 10px 0 12px;
  line-height: 1.12;
  text-wrap: balance;
}

.public-hero .product-key-specs {
  gap: 0 24px;
  margin-top: 20px;
}

.public-hero .product-key-specs .spec {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 5px;
  padding: 12px 0;
  min-width: 0;
}

.public-hero .product-key-specs .spec:first-child {
  grid-column: 1/-1;
}

.public-hero .product-key-specs .spec-label {
  font-size: 12px;
  letter-spacing: .025em;
  color: var(--muted);
}

.public-hero .product-key-specs .spec b {
  max-width: 100%;
  width: auto;
  text-align: left;
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.public-hero .character-summary {
  margin-top: 8px;
  padding: 10px 0;
}

.public-hero .product-summary>button.primary {
  margin-top: 8px;
}

@media(max-width:480px) {
  .public-hero .product-key-specs {
    gap: 0;
    margin-top: 16px;
  }

  .public-hero .product-key-specs .spec {
    padding: 10px 0;
  }
}

.document-section-intro {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px;
}

.document-list .document-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  background: white;
  text-decoration: none;
  min-width: 0;
}

.document-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.document-copy strong {
  font-size: 16px;
  line-height: 1.4;
  color: var(--navy);
}

.document-copy small {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.document-action {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}

.document-link:hover {
  border-color: var(--green);
  background: var(--warm);
}

.document-link:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

@media(max-width:480px) {
  .document-list .document-link {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }
}

/* Collection colors: readable cards and predictable tablet columns. */

.collection-color-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 28px 22px;
}

.collection-color-grid .product-card {
  min-width: 0;
}

.collection-color-grid .product-card a {
  height: 100%;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

.collection-color-grid .product-card a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 5px;
}

.collection-color-grid .card-photo {
  aspect-ratio: 4/3;
  margin-bottom: 14px;
  border-radius: 4px;
}

.collection-color-grid .product-card h3 {
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 6px;
}

.collection-color-grid .color-species {
  font-size: 14px;
  color: var(--charcoal);
  margin-bottom: 5px;
}

.collection-color-grid .flooring-classification {
  font-size: 13px;
  line-height: 1.5;
}

.collection-color-grid .featured-label {
  margin-left: 8px;
}

.collection-color-grid .current-label {
  margin-top: 10px;
}

@media(max-width:1100px) {
  .collection-color-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

@media(max-width:800px) {
  .collection-color-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 24px 18px;
  }
}

@media(max-width:420px) {
  .collection-color-grid {
    grid-template-columns: minmax(0,1fr);
  }
}

.product-options-table .pad-note {
  display: block;
  white-space: normal;
  min-width: 150px;
  max-width: 280px;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* Compact administration collection directory */

.collection-list-heading {
  margin-bottom: 16px;
}

.collection-list-panel {
  background: #fff;
  border: 1px solid var(--border,#d5dfda);
  border-radius: 6px;
}

.collection-list-columns,.collection-row {
  display: grid;
  grid-template-columns: minmax(150px,1.15fr) minmax(150px,1fr) minmax(140px,.9fr) minmax(95px,.55fr) 230px;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
}

.collection-list-columns {
  padding-top: 12px;
  padding-bottom: 12px;
  background: var(--stone,#edf0ed);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 6px 6px 0 0;
}

.collection-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.collection-row {
  border-top: 1px solid var(--border,#d5dfda);
  font-size: 14px;
}

.collection-row:hover {
  background: #fafbf9;
}

.collection-row>div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.collection-row h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
}

.collection-row-origin,.collection-row-specs,.collection-row-counts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.45;
}

.collection-row-origin strong {
  font-weight: 500;
}

.collection-row .muted {
  font-size: 13px;
}

.collection-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.collection-row-actions button,.collection-more summary {
  font-size: 13px;
  min-height: 36px;
  padding: 8px 11px;
}

.collection-more {
  position: relative;
}

.collection-more summary {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border,#d5dfda);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  list-style: none;
  color: var(--blue,#183c59);
}

.collection-more summary::-webkit-details-marker {
  display: none;
}

.collection-more summary::after {
  content: '▾';
  font-size: 11px;
}

.collection-more summary:focus-visible {
  outline: 2px solid var(--blue,#183c59);
  outline-offset: 3px;
}

.collection-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  width: 220px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border,#d5dfda);
  border-radius: 6px;
  box-shadow: 0 8px 24px #183c591c;
}

.collection-more-menu button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  white-space: normal;
  padding: 10px 12px;
  min-height: 40px;
}

.collection-more-menu button:hover {
  background: var(--stone,#edf0ed);
}

.collection-more-menu .collection-delete-action {
  color: #a52b30;
  border-top: 1px solid var(--border,#d5dfda);
  margin-top: 4px;
  border-radius: 0;
}

.collection-list-footer {
  border-top: 1px solid var(--border,#d5dfda);
  border-radius: 0 0 6px 6px;
}

.collection-list-footer .actions {
  gap: 12px;
}

@media(max-width:1400px) {
  .collection-list-columns,.collection-row {
    grid-template-columns: minmax(160px,1.1fr) minmax(150px,1fr) minmax(230px,.8fr);
    gap: 12px 20px;
  }

  .collection-list-columns {
    display: none;
  }

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

  .collection-row-counts {
    grid-column: 2;
    grid-row: 2;
    flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
  }

  .collection-row-actions {
    grid-column: 3;
    grid-row: 2;
    justify-content: flex-start;
  }

  .collection-row-actions button,.collection-more summary {
    min-height: 40px;
  }
}

@media(max-width:720px) {
  .collection-row {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    padding: 16px;
    gap: 12px 16px;
  }

  .collection-row-name {
    grid-column: 1/-1;
  }

  .collection-row-origin {
    grid-column: 1;
    grid-row: 2;
  }

  .collection-row-specs {
    grid-column: 2;
    grid-row: 2;
  }

  .collection-row-counts {
    grid-column: 1/-1;
    grid-row: 3;
  }

  .collection-row-actions {
    grid-column: 1/-1;
    grid-row: 4;
    justify-content: flex-start;
  }

  .collection-row-actions button,.collection-more summary {
    min-height: 44px;
  }

  .collection-list-footer {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .collection-list-footer .actions {
    flex-wrap: wrap;
  }
}

.browse-multi {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 18px;
  margin: 0 0 20px;
  min-width: 0;
}

.browse-multi legend {
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.browse-multi .browse-filter-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 10px;
  line-height: 1.4;
}

.browse-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.browse-filters .browse-filter-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
  min-height: 40px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.browse-filter-option input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-width: 15px;
  margin: 0;
  padding: 0;
  accent-color: var(--green);
}

.browse-filters .browse-filter-option:has(input:checked) {
  border-color: var(--green);
  background: #e9f2e9;
  color: #244f3b;
}

.browse-filter-option:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.browse-multi .browse-group-clear {
  margin-top: 10px;
  padding: 4px 0;
  min-height: 30px;
  font-size: 12px;
}

.browse-multi .browse-group-clear[hidden] {
  display: none;
}

@media(max-width:700px) {
  .browse-filters .browse-filter-option {
    min-height: 44px;
  }
}

.home-hero {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: center;
  margin-top: 24px!important;
}

.home-hero h1 {
  font-size: clamp(38px,4.5vw,68px);
  line-height: 1.08;
  margin: 18px 0;
}

.home-hero p {
  font-size: 17px;
  line-height: 1.7;
  max-width: 510px;
}

.home-hero img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 5px;
}

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

.home-categories button {
  text-align: left;
  padding: 24px 18px;
  background: var(--stone);
}

.home-categories strong,.home-categories span {
  display: block;
}

.home-categories strong {
  font-size: 20px;
  margin-bottom: 20px;
}

.home-categories span {
  font-size: 13px;
}

.home-collections a {
  min-width: 0;
}

.home-collections img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 4px;
}

.home-collections small {
  display: block;
  margin-top: 16px;
}

.home-collections h3 {
  margin: 6px 0 12px;
}

.home-guide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  background: var(--stone);
  padding: 32px;
}

.more-filters,.brand-collection-filter {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.more-filters summary,.brand-collection-filter summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 16px;
}

.more-filters label {
  margin-top: 16px;
}

.collection-filter-choice {
  display: block;
  text-align: left;
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  white-space: normal;
}

.collection-filter-choice small,.collection-filter-choice strong {
  display: block;
}

.collection-filter-choice[aria-pressed=true] {
  background: var(--stone);
  border-color: var(--green);
}

#brand-collection-options {
  max-height: 280px;
  overflow-y: auto;
  margin-top: 10px;
}

.active-browse {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-chip {
  padding: 7px 10px;
  font-size: 13px;
  background: var(--stone);
  border-radius: 20px;
}

.filter-chip span {
  margin-left: 7px;
}

.catalog-tools .search {
  flex: 1;
  max-width: none;
}

.browse-filters select {
  width: 100%;
}

@media(max-width:1000px) {
  .home-categories {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .home-hero {
    gap: 28px;
  }

  .home-hero img {
    height: 420px;
  }
}

@media(max-width:700px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-hero img {
    height: 300px;
  }

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

  .home-guide {
    display: block;
    padding: 24px;
  }

  .home-guide button {
    margin-top: 14px;
  }

  .home-categories strong {
    font-size: 18px;
  }
}

.home-collections .home-feature-category {
  display: block;
  color: var(--charcoal,#26343c);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  margin: -4px 0 12px;
}

.directory-heading {
  max-width: 850px;
  margin: 32px 0;
}

.directory-heading h1 {
  font-size: clamp(34px,4vw,52px);
  line-height: 1.15;
  margin: 14px 0;
}

.directory-heading p {
  font-size: 17px;
  line-height: 1.7;
  color: #53636b;
}

.directory-controls {
  display: grid;
  grid-template-columns: minmax(230px,2fr) repeat(3,minmax(130px,1fr)) auto;
  gap: 16px;
  align-items: end;
  background: #edf0ed;
  padding: 20px;
  border-radius: 4px;
}

.directory-controls label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  min-width: 0;
}

.directory-controls input,.directory-controls select {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
}

.directory-controls button {
  min-height: 44px;
}

.directory-count {
  font-size: 14px;
  color: #53636b;
  margin: 20px 0;
}

.directory-group {
  margin: 32px 0 42px;
}

.directory-group-heading {
  display: flex;
  gap: 20px;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid #dce3df;
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.directory-group-heading h2 {
  font-size: 30px;
  color: #183c59;
  margin: 0;
}

.directory-group-heading>span {
  font-size: 13px;
  color: #53636b;
}

.directory-banner {
  display: grid;
  grid-template-columns: 260px minmax(0,1fr);
  border: 1px solid #dce3df;
  border-radius: 4px;
  overflow: hidden;
  background: #faf9f6;
  margin: 16px 0;
}

.directory-photo {
  display: block;
  align-self: start;
  aspect-ratio: 4/3;
  background: #edf0ed;
  overflow: hidden;
}

.directory-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.directory-photo>span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 20px;
  font-size: 14px;
  color: #53636b;
}

.directory-copy {
  padding: 24px;
  min-width: 0;
}

.directory-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.directory-origin {
  font-size: 12px;
  margin: 0 0 7px;
  color: #397a59;
}

.directory-origin span {
  color: #53636b;
}

.directory-copy h3 {
  font-size: 27px;
  color: #183c59;
  margin: 0;
  line-height: 1.2;
}

.directory-logo {
  width: auto!important;
  max-width: 115px;
  max-height: 55px;
  object-fit: contain;
}

.directory-types {
  font-size: 13px;
  font-weight: 600;
  margin: 10px 0;
  color: #26343c;
}

.directory-types span {
  font-weight: 400;
  color: #53636b;
}

.directory-description {
  font-size: 15px;
  line-height: 1.65;
  margin: 10px 0 16px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.directory-explore {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #285d42;
  text-underline-offset: 4px;
  margin: 5px 0 14px;
}

.directory-explore span {
  margin-left: 12px;
}

.directory-docs {
  border-top: 1px solid #dce3df;
  padding-top: 13px;
}

.directory-docs summary {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #183c59;
  width: fit-content;
}

.directory-documents {
  padding-top: 12px;
}

.directory-documents .document-list {
  grid-template-columns: minmax(0,1fr);
}

.directory-documents .document-copy {
  overflow-wrap: anywhere;
}

.directory-empty {
  padding: 40px 24px;
  background: #edf0ed;
  text-align: center;
}

.directory-banner a:focus-visible,.directory-docs summary:focus-visible {
  outline: 3px solid #c9aa80;
  outline-offset: 3px;
}

@media(max-width:1050px) {
  .directory-controls {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .directory-controls .directory-search {
    grid-column: 1/-1;
  }

  .directory-banner {
    grid-template-columns: 220px minmax(0,1fr);
  }
}

@media(max-width:650px) {
  .directory-controls {
    padding: 16px;
    gap: 14px;
  }

  .directory-controls label {
    font-size: 12px;
  }

  .directory-controls button {
    grid-column: 1/-1;
  }

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

  .directory-photo {
    aspect-ratio: 16/8;
    width: 100%;
  }

  .directory-copy {
    padding: 20px;
  }

  .directory-copy h3 {
    font-size: 25px;
  }

  .directory-logo {
    max-width: 90px;
  }

  .directory-group-heading h2 {
    font-size: 26px;
  }

  .directory-group-heading {
    gap: 12px;
  }
}

/* Collection banners: category tints use the NRF palette, not manufacturer branding. */

.directory-group {
  margin: 24px 0 30px;
}

.directory-group-heading {
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.directory-group-heading h2 {
  font-size: 28px;
}

.directory-banner {
  --directory-tint: #eaf1f5;
  --directory-accent: #183c59;
  --directory-border: #c4d2dc;
  background: var(--directory-tint);
  border-color: var(--directory-border);
  border-left: 4px solid var(--directory-accent);
  border-radius: 6px;
  margin: 14px 0;
  box-shadow: 0 2px 7px #183c5908;
}

.directory-tone-laminate {
  --directory-tint: #edf3eb;
  --directory-accent: #397a59;
  --directory-border: #c7d7c9;
}

.directory-tone-vinyl {
  --directory-tint: #f2eee5;
  --directory-accent: #806443;
  --directory-border: #dbd1bf;
}

.directory-tone-cork {
  --directory-tint: #f3ebe1;
  --directory-accent: #8a6741;
  --directory-border: #decdb9;
}

.directory-tone-bamboo {
  --directory-tint: #eaf0e8;
  --directory-accent: #4b7050;
  --directory-border: #cad6c5;
}

.directory-photo {
  align-self: stretch;
  aspect-ratio: auto;
  min-height: 205px;
  position: relative;
}

.directory-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.directory-copy {
  padding: 20px 22px 16px;
}

.directory-origin {
  margin-bottom: 5px;
}

.directory-copy h3 {
  font-size: 26px;
}

.directory-types {
  margin: 9px 0;
}

.directory-description {
  margin: 8px 0 10px;
  line-height: 1.55;
}

.directory-explore {
  margin: 4px 0 0;
}

.directory-docs {
  grid-column: 1/-1;
  padding: 12px 20px;
  border-top: 1px solid var(--directory-border);
  background: #ffffff70;
}

.directory-documents {
  padding-top: 10px;
}

.directory-documents .document-link {
  background: #fff;
}

.directory-logo {
  background: #ffffffd9;
  padding: 6px;
  border-radius: 3px;
  box-sizing: content-box;
}

@media(max-width:650px) {
  .directory-photo {
    min-height: 0;
    aspect-ratio: 16/8;
  }

  .directory-copy {
    padding: 18px;
  }

  .directory-docs {
    padding: 12px 18px;
  }

  .directory-copy h3 {
    font-size: 24px;
  }

  .directory-group-heading h2 {
    font-size: 25px;
  }
}

.directory-title-row {
  align-items: flex-start;
}

.directory-title-row>div:first-child {
  min-width: 0;
  flex: 1;
}

.directory-logo-frame {
  flex: 0 0 148px;
  width: 148px;
  height: 80px;
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #dce3df;
  border-radius: 5px;
  box-shadow: 0 1px 3px #183c5908;
}

.directory-logo-frame .directory-logo {
  display: block;
  width: 100%!important;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  padding: 0;
  border-radius: 0;
  box-sizing: border-box;
  background: transparent;
}

@media(max-width:650px) {
  .directory-title-row {
    gap: 14px;
  }

  .directory-logo-frame {
    flex-basis: 116px;
    width: 116px;
    height: 72px;
    padding: 10px;
  }
}

@media(max-width:380px) {
  .directory-title-row {
    flex-wrap: wrap;
  }

  .directory-title-row>div:first-child {
    flex-basis: 100%;
  }
}

.directory-about {
  grid-column: 1/-1;
  background: #ffffff70;
  border-top: 1px solid var(--directory-border);
  padding: 12px 20px;
}

.directory-about summary {
  cursor: pointer;
  color: #183c59;
  font-size: 14px;
  font-weight: 600;
  width: fit-content;
}

.directory-about p {
  max-width: 1000px;
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-line;
  margin: 14px 0 4px;
  overflow-wrap: anywhere;
}

.directory-about summary:focus-visible {
  outline: 3px solid #c9aa80;
  outline-offset: 3px;
}

.directory-description {
  max-width: 920px;
}

.directory-photo {
  min-height: 240px;
}

.directory-about+.directory-docs {
  border-top-color: var(--directory-border);
}

@media(max-width:650px) {
  .directory-photo {
    min-height: 0;
  }

  .directory-about {
    padding: 12px 18px;
  }
}

.directory-category-heading {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #53636b;
  margin: 24px 0 10px;
  padding-left: 4px;
}

.directory-group-heading+.directory-category-heading {
  margin-top: 16px;
}

/* Keep the document library close control visible during long scrolls. */

dialog:has(.portal-documents-dialog) {
  padding: 0;
  scroll-padding-top: 100px;
}

.portal-documents-header {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0;
  padding: 24px 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.portal-documents-body {
  padding: 0 28px 28px;
}

@media(max-width:700px) {
  .portal-documents-header {
    padding: 18px;
  }

  .portal-documents-body {
    padding: 0 18px 18px;
  }
}

/* SKU manufacturer stays beside the item; controls wrap within the editor. */

#sku-rows .sku-row {
  grid-template-columns: repeat(3,minmax(0,1fr));
  align-items: end;
}

#sku-rows .sku-row label,#sku-rows .sku-row button {
  grid-row: auto;
}

#sku-rows .sku-row label {
  text-align: left;
}

#sku-rows .sku-row small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  margin-top: 4px;
}

@media(max-width:700px) {
  #sku-rows .sku-row {
    grid-template-columns: 1fr 1fr;
  }

  #sku-rows .sku-row label {
    grid-column: 1/-1;
  }
}

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

@media(max-width:1100px) {
  .portal .tool-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

/* Compact, personal go-to links below the sales search. */

.portal .portal-search:has(+ .portal-quick-links) {
  margin-bottom: 8px;
}

.portal .portal-quick-links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0;
  margin: 0 0 18px;
  min-width: 0;
  max-width: 100%;
  font-size: 13px;
}

.portal .portal-quick-links>span {
  flex: none;
  color: var(--muted);
  margin-right: 10px;
}

.portal .portal-quick-links button.link {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  width: auto;
  max-width: 38%;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-left: 1px solid #cbd7ce;
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.portal .portal-quick-links button.link:first-of-type {
  border-left: 0;
  padding-left: 0;
}

.portal .portal-quick-links button.link:hover {
  text-decoration: underline;
  color: var(--green);
}

.portal .portal-quick-links button.link:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

@media(max-width:700px) {
  .portal .portal-quick-links {
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 14px;
    margin-bottom: 14px;
  }

  .portal .portal-quick-links>span {
    margin-right: 0;
  }

  .portal .portal-quick-links button.link {
    flex: 0 1 auto;
    max-width: 100%;
    padding: 5px 0;
    border-left: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    line-height: 1.4;
  }
}

/* Customer paths: trade support and homeowner retailer requests. */

.customer-next-steps {
  padding: clamp(24px,4vw,42px);
  background: #edf2ed;
  border: 1px solid #dbe3dc;
  border-radius: 10px;
}

.customer-next-steps>.eyebrow {
  color: #397a59;
}

.customer-next-steps>h2 {
  max-width: 850px;
  margin: 12px 0;
}

.customer-next-steps>p {
  max-width: 730px;
  line-height: 1.65;
  color: #53635b;
}

.customer-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 28px;
}

.customer-paths article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.customer-paths article+article {
  border-left: 1px solid #cbd6cc;
  padding-left: 32px;
}

.customer-paths h3 {
  font-size: 22px;
  color: #183c59;
  margin: 0 0 8px;
}

.customer-paths p {
  line-height: 1.65;
  margin: 0 0 20px;
}

.customer-paths button {
  margin-top: auto;
  min-height: 44px;
}

.footer-customer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.public-footer .footer-customer-links button {
  color: inherit;
}

.product-inquiry-action {
  margin-top: 14px;
}

.product-inquiry-action button {
  min-height: 44px;
}

.product-inquiry-action p {
  font-size: 13px;
  color: #53635b;
  line-height: 1.5;
  margin: 8px 0 0;
}

.customer-inquiry {
  max-width: 700px;
  margin: auto;
}

.customer-inquiry>p {
  line-height: 1.65;
  color: #53635b;
}

.inquiry-product {
  padding: 14px 18px;
  background: #edf2ed;
  border-left: 3px solid #397a59;
  margin: 18px 0;
}

.inquiry-product span {
  display: block;
  font-size: 13px;
  margin-top: 5px;
}

.customer-inquiry form>label,.inquiry-fields label {
  display: block;
  font-size: 14px;
  margin-bottom: 16px;
}

.customer-inquiry :is(input,select,textarea) {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  min-height: 44px;
  font-size: 16px;
}

.customer-inquiry textarea {
  resize: vertical;
}

.inquiry-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

.inquiry-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 20px 0;
}

.inquiry-actions .button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  text-decoration: none;
}

.inquiry-email-note {
  font-size: 13px;
  color: #53635b;
  line-height: 1.6;
}

.customer-inquiry input[type=hidden] {
  display: none;
}

.customer-inquiry :is(a,button,input,select,textarea):focus-visible,.customer-next-steps button:focus-visible {
  outline: 3px solid #c9aa80;
  outline-offset: 3px;
}

@media(max-width:650px) {
  .customer-paths {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .customer-paths article+article {
    border-left: 0;
    border-top: 1px solid #cbd6cc;
    padding: 24px 0 0;
  }

  .inquiry-fields {
    grid-template-columns: 1fr;
  }

  .public-footer {
    flex-wrap: wrap;
  }

  .footer-customer-links {
    gap: 8px 16px;
  }

  .customer-inquiry .modal-head h2 {
    font-size: 25px;
  }
}

/* Shared customer catalog pagination */

.catalog-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 28px 0;
  text-align: center;
}

.catalog-pagination p {
  margin: 0;
}

.catalog-pagination button {
  min-height: 44px;
  min-width: 180px;
}

.catalog-pagination [hidden] {
  display: none;
}

.back-results {
  margin-right: 20px;
}

/* SKU authoring: align fields independently of helper text and row actions. */

.sku-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.sku-section-heading h3 {
  margin: 0;
}

.sku-section>.muted,.sku-section-note {
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 14px;
}

.sku-section-note {
  color: var(--muted);
  margin: 12px 0 0;
}

#sku-rows .sku-row {
  display: block;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.sku-row-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sku-row-heading h4 {
  margin: 0;
  font-size: 14px;
  color: var(--navy);
}

.sku-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sku-row-actions .small {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}

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

.sku-fields {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px 14px;
  align-items: start;
}

#sku-rows .sku-fields label {
  display: block;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  grid-column: auto;
  min-width: 0;
  text-align: left;
}

#sku-rows .sku-fields .sku-identity {
  grid-column: span 2;
}

.sku-required {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 5px;
}

#sku-rows .sku-fields input,#sku-rows .sku-fields select {
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  min-height: 40px;
  margin: 6px 0 0;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

#sku-rows .sku-fields .sku-width-control {
  min-width: 0;
}

#sku-rows .sku-fields [data-custom-width] {
  margin-top: 8px;
}

#sku-rows .sku-fields [data-custom-width][hidden] {
  display: none;
}

#sku-rows .sku-fields.no-product-type .sku-manufacturer {
  grid-column: span 2;
}

@media(max-width:1000px) {
  .sku-fields {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  #sku-rows .sku-fields.no-product-type .sku-manufacturer {
    grid-column: auto;
  }
}

@media(max-width:600px) {
  .sku-section-heading {
    align-items: flex-start;
    gap: 12px;
  }

  .sku-section-heading h3 {
    font-size: 17px;
  }

  .sku-row-heading {
    align-items: flex-start;
  }

  #sku-rows .sku-row {
    padding: 12px;
  }

  .sku-row-actions {
    justify-content: flex-end;
    gap: 6px;
  }

  .sku-row-actions .small {
    min-height: 36px;
  }

  .sku-fields {
    gap: 12px;
  }

  #sku-rows .sku-fields input,#sku-rows .sku-fields select {
    font-size: 16px;
    min-height: 44px;
    height: 44px;
  }
}

@media(max-width:380px) {
  .sku-fields {
    grid-template-columns: 1fr;
  }

  #sku-rows .sku-fields .sku-identity {
    grid-column: auto;
  }
}

#sku-rows .sku-row {
  container-type: inline-size;
}

@container(max-width:760px) {
  .sku-fields {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  #sku-rows .sku-fields.no-product-type .sku-manufacturer {
    grid-column: auto;
  }
}

/* Admin: task-based navigation and progressively disclosed editing controls. */

.admin aside {
  padding: 20px 16px;
}

.admin .sidebar-brand {
  max-width: 190px;
  margin: 0 auto 12px;
}

.admin .subbrand {
  margin-bottom: 12px;
  font-size: 10px;
}

.admin .navlabel {
  margin: 16px 12px 6px;
  font-size: 10px;
  letter-spacing: 1.3px;
}

.admin aside nav button {
  min-height: 42px;
  margin-bottom: 2px;
  padding: 9px 12px;
  font-size: 13px;
}

.admin .admin-nav-group {
  margin: 0;
}

.admin .admin-nav-settings {
  margin-top: 16px;
  border-top: 1px solid #496479;
  border-bottom: 1px solid #496479;
  padding: 8px 0;
}

.admin .admin-nav-settings>summary {
  min-height: 42px;
  padding: 10px 12px;
  color: #d4e1e9;
  font-size: 13px;
  font-weight: 600;
}

.admin .admin-nav-settings[open]>summary {
  color: #fff;
}

.admin .admin-nav-settings>summary:focus-visible {
  outline-color: #c9aa80;
}

.admin .admin-nav-experiences .navlabel {
  margin-top: 14px;
}

.admin .sidebar-bottom {
  margin-top: 20px;
  padding: 14px 12px 0;
  font-size: 12px;
}

.admin .sidebar-bottom .muted {
  font-size: 11px;
}

.admin-content-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 28px;
}

.admin-content-nav button {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-size: 14px;
}

.admin-content-nav button[aria-current=page] {
  background: #e7eee8;
  color: var(--navy);
  border-color: #c3d3c5;
}

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

.admin-homepage-grid .card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
}

.admin-homepage-grid .card h2 {
  font-size: 22px;
}

.admin-homepage-grid .card p {
  flex: 1;
}

.admin-homepage-grid .eyebrow {
  font-size: 10px;
}

.admin-homepage-help {
  font-size: 13px;
  margin-top: 24px;
}

.admin-catalog-filters {
  background: #fafbf9;
  border-bottom: 1px solid var(--line);
}

.admin-catalog-filters .filters {
  border-bottom: 0;
}

.admin-catalog-filters .filters label {
  flex: 1 1 140px;
  max-width: 220px;
  min-width: 0;
}

.admin-catalog-filters .filters select {
  width: 100%;
  max-width: none;
  margin: 0;
}

.admin-catalog-filters details {
  border-top: 1px solid var(--line);
}

.admin-catalog-filters summary {
  padding: 12px 24px;
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
  min-height: 44px;
}

.admin-catalog-filters summary span {
  font-weight: 400;
  color: var(--muted);
  margin-left: 5px;
}

.admin-catalog-filters details[open] summary {
  padding-bottom: 0;
}

.admin-catalog-filters .admin-extra-filters {
  padding-top: 14px;
}

.admin-inherited-specs {
  padding: 0;
}

.admin-inherited-specs>summary {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 18px;
  list-style: none;
  padding: 24px 26px;
  font-weight: 600;
  font-size: 17px;
  color: var(--navy);
}

.admin-inherited-specs>summary::-webkit-details-marker {
  display: none;
}

.admin-inherited-specs>summary small {
  grid-column: 1;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.admin-inherited-specs>summary:after {
  content: '+';
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
  font-size: 22px;
}

.admin-inherited-specs[open]>summary:after {
  content: '−';
}

.admin-inherited-body {
  padding: 0 26px 26px;
}

.admin .admin-color-family {
  border-top: 0;
  padding-top: 0;
}

.admin .admin-color-family h3 {
  font-size: 14px;
}

@media(max-width:1000px) {
  .admin-homepage-grid {
    gap: 16px;
  }

  .admin-homepage-grid .card {
    padding: 22px;
  }

  .admin .editor-actions {
    gap: 12px;
  }

  .admin .editor-actions .actions {
    gap: 6px;
  }

  .admin .editor-actions .actions button {
    font-size: 13px;
    padding: 9px 12px;
  }
}

@media(max-width:700px) {
  .admin-homepage-grid {
    grid-template-columns: 1fr;
  }

  .admin-content-nav {
    gap: 4px;
    margin-bottom: 22px;
  }

  .admin-content-nav button {
    font-size: 12px;
    padding: 10px;
  }

  .admin-catalog-filters .filters {
    padding: 14px 16px;
  }

  .admin-catalog-filters .filters label {
    flex-basis: calc(50% - 6px);
    max-width: none;
  }

  .admin-catalog-filters summary {
    padding-left: 16px;
    padding-right: 16px;
  }

  .admin-inherited-specs>summary {
    padding: 20px;
  }

  .admin-inherited-body {
    padding: 0 20px 20px;
  }

  .admin .editor-actions {
    position: static;
  }

  .admin .editor-side {
    top: 0;
  }

  .admin .main>header .actions {
    gap: 6px;
  }
}

/* Dedicated reporting workspace. */

.analytics-controls {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.analytics-controls label {
  font-size: 12px;
}

.analytics-caption {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 24px;
}

.analytics-tabs [aria-selected=true] {
  color: var(--navy);
  background: #e7eee8;
  border-color: #c3d3c5;
}

.analytics-method {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.analytics-method>summary {
  min-height: 44px;
  font-weight: 600;
  color: var(--navy);
}

.analytics-method p {
  max-width: 900px;
}

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

.analytics-ranking {
  min-width: 0;
}

.analytics-ranking th,.analytics-ranking td {
  padding: 12px;
  font-size: 13px;
}

.analytics-ranking p,.analytics-trend p {
  font-size: 12px;
  margin-bottom: 16px;
}

.analytics-ranking td:first-child {
  white-space: normal;
  min-width: 140px;
}

.analytics-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 150px;
  border-bottom: 1px solid var(--line);
  padding-top: 4px;
}

.analytics-bar-slot {
  display: flex;
  align-items: flex-end;
  flex: 1;
  height: 100%;
  min-width: 0;
}

.analytics-bar-slot span {
  display: block;
  width: 100%;
  background: var(--green);
  border-radius: 2px 2px 0 0;
}

.analytics-trend-axis {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}

.analytics-daily-totals {
  margin-top: 14px;
  font-size: 13px;
}

.analytics-daily-totals>summary {
  min-height: 36px;
  color: var(--navy);
}

.analytics-daily-totals .table-wrap,.analytics-report-table {
  max-height: 450px;
  overflow: auto;
}

.analytics-report-table th {
  position: sticky;
  top: 0;
}

.analytics-product-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 20px;
}

.analytics-product-controls label:first-child {
  flex: 1;
  min-width: 200px;
}

.analytics-brand {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.analytics-ranking table {
  white-space: normal;
}

#analytics-results .stat small {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
}

@media(max-width:1000px) {
  .analytics-rankings {
    grid-template-columns: 1fr;
  }
}

@media(max-width:700px) {
  .analytics-controls {
    width: 100%;
  }

  .analytics-product-controls label {
    flex: 1 1 100%;
  }

  .analytics-bars {
    gap: 2px;
    height: 110px;
  }

  .analytics-ranking td:first-child {
    min-width: 100px;
  }

  .analytics-product-controls select {
    width: 100%;
  }
}

.admin .sidebar-brand,.admin aside>nav,.admin .sidebar-bottom {
  flex-shrink: 0;
}

@media(max-width:1000px) {
  .admin .main {
    margin-left: 0;
  }

  .admin .main>header {
    height: auto;
    min-height: 72px;
    padding: 12px 20px;
  }

  .admin .main>header .mobile-menu {
    display: block;
  }

  .admin aside {
    width: 260px;
    transform: translateX(-100%);
    transition: transform .15s;
  }

  .admin.nav-open aside {
    transform: translateX(0);
  }

  .admin.nav-open .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: #183c5966;
    z-index: 25;
    border: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border-radius: 0;
  }
}

@media(max-width:700px) {
  .admin .admin-catalog-stats .stat {
    padding: 14px 16px;
    font-size: 13px;
  }

  .admin .admin-catalog-stats .stat b {
    font-size: 28px;
    margin: 5px 0;
  }

  .admin .admin-catalog-stats .stat span {
    display: none;
  }

  .admin .main>header {
    padding: 12px 16px;
  }
}

.portal-library-filters label {
  flex: 1;
  min-width: 170px;
  max-width: 300px;
  font-size: 12px;
}

.portal-library-filters select {
  width: 100%;
  margin-top: 5px;
}

@media(max-width:700px) {
  .portal-library-filters label {
    min-width: 140px;
    max-width: none;
  }
}

/* Dashboard quote shortcut stays separate from product search. */

.portal-heading-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.portal-heading-actions #my-quotes {
  min-height: 44px;
  min-width: 120px;
  background: var(--white);
  color: var(--navy);
  border: 1px solid #acbfb1;
  font-weight: 600;
}

.portal-heading-actions #my-quotes:hover {
  background: var(--stone);
  border-color: var(--green);
}

@media(max-width:700px) {
  .portal-heading:has(.portal-heading-actions) {
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
  }

  .portal-heading-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .portal-heading-actions #my-quotes {
    order: -1;
  }
}

/* Keep administration within the viewport without shrinking readable controls. */

.admin {
  width: 100%;
  min-width: 0;
}

.admin .main {
  min-width: 0;
}

.admin .content {
  width: 100%;
  min-width: 0;
  padding: clamp(16px,2.2vw,36px);
}

.admin .content>*,
.admin .editor>*,
.admin .form-grid>*,
.admin .title-row>*,
.admin .panel-head>* {
  min-width: 0;
  max-width: 100%;
}

.admin .title-row {
  flex-wrap: wrap;
}

.admin .main>header {
  height: auto;
  min-height: 76px;
  flex-wrap: wrap;
  padding-block: 12px;
}

.admin .access-session-bar {
  flex-wrap: wrap;
}

.admin .table-wrap,.admin .user-list {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.admin .content img {
  max-width: 100%;
}

@media(min-width:701px) and (max-width:1100px) {
  .admin {
    --sidebar-width: 190px;
  }

  .admin aside {
    width: var(--sidebar-width);
    transform: none;
    padding: 16px 10px;
  }

  .admin .main {
    margin-left: var(--sidebar-width);
  }

  .admin .main>header .mobile-menu {
    display: none;
  }

  .admin.nav-open .nav-scrim {
    display: none;
  }

  .admin .editor,.admin .editor-side,.admin .form-grid,.admin .admin-homepage-grid {
    grid-template-columns: minmax(0,1fr);
  }

  .admin .editor-side {
    position: static;
  }

  .admin .panel-head .actions {
    width: 100%;
  }

  .admin .section {
    padding: 18px;
  }

  .admin .sku-row {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .admin .sku-row button {
    grid-row: auto;
  }
}

@media(max-width:700px) {
  .admin aside {
    width: min(280px,calc(100vw - 48px));
    max-height: 100dvh;
  }

  .admin .main {
    margin-left: 0;
  }

  .admin .main>header .mobile-menu {
    display: block;
  }

  .admin .content .search {
    width: 100%;
    min-width: 0;
  }
}

/* Adapt the product catalog to its actual content width, including browser zoom. */

.admin #rows {
  container-type: inline-size;
  min-width: 0;
}

.admin #rows table {
  white-space: normal;
}

.admin #rows .product-cell>div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin #rows .product-cell img {
  flex: none;
}

@container (max-width:1200px) {
  .admin #rows .table-wrap {
    overflow: visible;
  }

  .admin #rows table,.admin #rows tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .admin #rows thead {
    display: block;
  }

  .admin #rows thead tr {
    display: block;
  }

  .admin #rows th {
    display: none;
  }

  .admin #rows th:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 18px;
  }

  .admin #rows th:first-child::after {
    content: "Select all on this page";
    text-transform: none;
    letter-spacing: 0;
  }

  .admin #rows tbody tr {
    display: grid;
    grid-template-columns: 32px repeat(5,minmax(0,1fr));
    gap: 14px 18px;
    padding: 20px 18px;
    border-top: 1px solid var(--line);
  }

  .admin #rows td {
    display: block;
    border: 0;
    padding: 0;
    min-width: 0;
    width: auto;
    overflow-wrap: anywhere;
  }

  .admin #rows td:first-child {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    padding: 0;
  }

  .admin #rows td:nth-child(2) {
    grid-column: 2/5;
    grid-row: 1;
  }

  .admin #rows td:nth-child(8) {
    grid-column: 5;
    grid-row: 1;
  }

  .admin #rows td:nth-child(9) {
    grid-column: 6;
    grid-row: 1;
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    gap: 4px;
  }

  .admin #rows td:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .admin #rows td:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
  }

  .admin #rows td:nth-child(5) {
    grid-column: 4;
    grid-row: 2;
  }

  .admin #rows td:nth-child(6) {
    grid-column: 5;
    grid-row: 2;
  }

  .admin #rows td:nth-child(7) {
    grid-column: 6;
    grid-row: 2;
  }

  .admin #rows td:nth-child(n+3):nth-child(-n+8)::before {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 4px;
  }

  .admin #rows td:nth-child(3)::before {
    content: "Collection";
  }

  .admin #rows td:nth-child(4)::before {
    content: "Category / type";
  }

  .admin #rows td:nth-child(5)::before {
    content: "Species";
  }

  .admin #rows td:nth-child(6)::before {
    content: "Sheen";
  }

  .admin #rows td:nth-child(7)::before {
    content: "Thickness";
  }

  .admin #rows td:nth-child(8)::before {
    content: "Status / readiness";
  }

  .admin #rows .product-cell {
    gap: 12px;
  }

  .admin #rows .product-cell strong {
    white-space: normal;
  }
}

@container (max-width:650px) {
  .admin #rows tbody tr {
    grid-template-columns: 28px repeat(2,minmax(0,1fr));
    gap: 14px 12px;
    padding: 16px;
  }

  .admin #rows td:nth-child(2) {
    grid-column: 2/4;
  }

  .admin #rows td:nth-child(n+3) {
    grid-column: auto;
    grid-row: auto;
  }

  .admin #rows td:nth-child(3),.admin #rows td:nth-child(5),.admin #rows td:nth-child(7) {
    grid-column: 2;
  }

  .admin #rows td:nth-child(4),.admin #rows td:nth-child(6),.admin #rows td:nth-child(8) {
    grid-column: 3;
  }

  .admin #rows td:nth-child(9) {
    grid-column: 2/4;
  }

  .admin #rows .product-cell img {
    width: 48px;
    height: 56px;
  }
}

/* Align the collection reset action with the search and grouping controls. */

.actions:has(>#all-collections) {
  align-items: flex-end;
}

.actions:has(>#all-collections)>label {
  margin-bottom: 0;
}

#all-collections {
  align-self: flex-end;
  flex: 0 0 auto;
  min-height: 44px;
  margin: 0;
}

/* Constrain product galleries to their grid column; scroll only the thumbnails. */

.portal-product,.public-hero {
  min-width: 0;
  max-width: 100%;
}

.portal-product>*,.public-hero>* {
  min-width: 0;
  max-width: 100%;
}

.photo-viewer,.photo-stage,.photo-controls {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.photo-stage>.hero-photo {
  max-width: 100%;
}

.photo-viewer .thumbs {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.photo-viewer .thumbs>button {
  flex: 0 0 auto;
}

.portal-detail,.portal-tab-content,.portal-sticky {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media(max-width:900px) {
  .portal-product,.public-hero {
    grid-template-columns: minmax(0,1fr);
  }
}

@media(max-width:700px) {
  .portal .tabbar {
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .portal .tabbar>button {
    flex: 1 0 auto;
    width: auto;
    min-width: max-content;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    font-size: 13px;
    line-height: 1.3;
    padding: 10px 7px;
    min-height: 44px;
  }

  .portal-sticky {
    width: 100%;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom,0px));
  }

  .portal-sticky>button {
    min-width: 0;
    white-space: normal;
  }
}
