:root {
  color-scheme: light;
  --paper: #f4f2ea;
  --panel: #ebe8de;
  --ink: #191b18;
  --quiet: #55564d;
  --line: #343730;
  --hairline: #aaa99e;
  --brand: #dc431a;
  --brand-ink: #131411;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --gutter: clamp(1.2rem, 3.55vw, 3.75rem);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid #13739b; outline-offset: 4px; }
button, .button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .67rem .95rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms, color 140ms;
}
button:hover, .button:hover { background: var(--ink); color: var(--paper); }
button:disabled { opacity: .65; cursor: wait; }
.primary { background: var(--brand); color: var(--brand-ink); }
.primary:hover { background: var(--ink); color: var(--paper); }
.shell {
  display: grid;
  grid-template-columns: clamp(90px, 10vw, 156px) minmax(0, 1fr);
  min-height: 100vh;
}
.rail {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4rem;
  padding: 1.7rem .5rem;
  background: var(--brand);
  color: var(--brand-ink);
  border-right: 1px solid var(--line);
}
body:not(.has-brand, .admin-shell) .rail { visibility: hidden; }
.rail a {
  font-size: clamp(1.3rem, 2.7vw, 2.8rem);
  letter-spacing: -.085em;
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.rail span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: clamp(1.7rem, 3vw, 3.9rem);
  font-weight: 750;
  letter-spacing: -.055em;
}
.site { display: flex; flex-direction: column; min-width: 0; }
.masthead, footer {
  padding: .85rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font: 700 .78rem/1.5 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.masthead { min-height: 62px; border-bottom: 1px solid var(--line); }
.masthead a { text-decoration: none; }
.masthead a:hover, footer a:hover { text-decoration: underline; }
main { flex: 1; }
footer { border-top: 1px solid var(--line); min-height: 66px; }
.footer-tools { display: flex; align-items: center; gap: 1.25rem; }
.footer-tools > a { text-decoration: none; }
#company-menu { position: relative; }
#company-menu summary { cursor: pointer; min-height: 44px; align-content: center; }
#brands {
  position: absolute;
  z-index: 5;
  bottom: calc(100% + .25rem);
  right: 0;
  min-width: 10rem;
  padding: .35rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
#brands a { display: block; padding: .6rem .8rem; text-decoration: none; }
#brands a:hover { background: var(--panel); }
#brands a[aria-current] { background: var(--brand); color: var(--brand-ink); }

h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: clamp(2.8rem, 6.25vw, 7.6rem); line-height: .94; letter-spacing: -.069em; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.35rem, 2.25vw, 2.4rem); letter-spacing: -.045em; line-height: 1.12; }
p { line-height: 1.58; }
.kicker, .part, dt, th, figcaption, .sheet-mast {
  font: 700 .8rem/1.45 var(--mono);
  letter-spacing: .045em;
}
.kicker, figcaption, .sheet-mast { text-transform: uppercase; }
.part { overflow-wrap: anywhere; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; border-bottom: 1px solid var(--line); }
.hero-copy, .hero .art, .section, .message { padding: var(--gutter); }
.hero-copy { display: grid; align-content: center; gap: 1.35rem; min-height: 350px; border-right: 1px solid var(--line); }
.hero-copy p { max-width: 34ch; }
.hero .art { display: grid; align-content: center; background: var(--panel); }
.featured { display: grid; gap: .25rem; text-decoration: none; }
.featured:hover .part { text-decoration: underline; }
.featured .wire-stage { height: clamp(160px, 22vw, 310px); margin-bottom: .7rem; }
.search { margin: .45rem 0 1.2rem; width: min(100%, 29rem); }
.section h2 { margin-bottom: 1rem; }
.section > p { margin-bottom: 1rem; }
.section { border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: 0; }
input, textarea, select { width: 100%; background: #fffdf6; border: 1px solid var(--line); color: var(--ink); padding: .65rem; }
input[type="color"] { min-height: 44px; padding: .25rem; }
label { display: block; font-weight: 700; }
label > :is(input, select, textarea) { display: block; margin-top: .4rem; }
table { width: 100%; border-collapse: collapse; text-align: left; table-layout: fixed; }
th, td { border-bottom: 1px solid var(--hairline); padding: .8rem .65rem; overflow-wrap: anywhere; text-align: left; }
thead { background: var(--ink); color: var(--paper); }
td a { font-weight: 700; }

.actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.spec-sheet { background: var(--paper); }
.sheet-mast {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .45rem;
  padding: .8rem var(--gutter);
  border-bottom: 1px solid var(--line);
}
.detail { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.detail-no-image { grid-template-columns: 1fr; }
.detail-copy, .wire-art { min-width: 0; }
.detail-copy { display: flex; flex-direction: column; justify-content: center; padding: var(--gutter); }
.detail-copy .kicker { margin-bottom: 1.15rem; }
.product-title { font-size: clamp(2.7rem, 5.9vw, 7rem); margin-bottom: 1.15rem; }
.description { margin: 1.15rem 0 0; max-width: 52ch; }
.meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1.8rem 0 0; border-top: 1px solid var(--line); }
.meta > div { padding: .7rem .35rem .6rem 0; border-bottom: 1px solid var(--hairline); }
dt { color: var(--quiet); }
dd { margin: .25rem 0 0; font: 700 .96rem/1.4 var(--mono); overflow-wrap: anywhere; }
.wire-art {
  display: grid;
  grid-template-rows: 1fr auto;
  padding: var(--gutter);
  border-left: 1px solid var(--line);
  background: var(--panel);
}
.wire-stage { position: relative; min-height: 230px; height: 100%; }
.wire-art .wire-stage { min-height: clamp(330px, 36vw, 535px); }
.wire-stage img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
}
figcaption { margin-top: .65rem; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); border-bottom: 1px solid var(--line); }
.media-card { display: grid; grid-template-rows: 1fr auto; align-items: center; padding: 1.15rem var(--gutter); border-right: 1px solid var(--hairline); background: var(--panel); }
.media-card:last-child { border-right: 0; }
.media-card img { width: 100%; height: clamp(112px, 17vw, 230px); object-fit: contain; mix-blend-mode: multiply; }
.media-card.certification img { max-height: 100px; }
.sheet-section { padding: 1.9rem var(--gutter); border-bottom: 1px solid var(--line); }
.sheet-sections .sheet-section:last-child, .legacy-file { border-bottom: 0; }
.sheet-section h2 { margin: 0 0 1rem; }
.spec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; column-gap: 1.5rem; }
.spec-list li { padding: .75rem 0; border-top: 1px solid var(--hairline); }
.spec-list p { margin-top: .25rem; }
.technical-table th:first-child { width: 34%; }
.technical-table th, .technical-table td { vertical-align: top; white-space: pre-line; }
.technical-table tbody th { font: inherit; font-weight: 700; line-height: 1.45; }
.technical-table tbody td { line-height: 1.48; }
.technical-table tbody tr:nth-child(even) { background: var(--panel); }
.text-block p { white-space: pre-line; overflow-wrap: anywhere; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.05rem; max-width: 65rem; }
.form-grid .wide { grid-column: 1 / -1; }
.revision { padding: 1.1rem 0; border-bottom: 1px solid var(--hairline); }
.revision .actions { margin-top: .6rem; }
.notice { margin: .7rem 0 0; white-space: pre-line; }
.small { color: var(--quiet); font-size: .88rem; }
.edit-section { display: grid; gap: .7rem; border: 1px solid var(--hairline); padding: 1rem; margin: .8rem 0; min-width: 0; }
.edit-section button { justify-self: start; }
.section-content span { display: block; font-weight: 400; margin-top: .3rem; }
#online-editor > button { margin-top: .8rem; }

@media (max-width: 700px) {
  .shell, .hero, .detail, .form-grid { display: block; }
  .rail { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); gap: 1rem; padding: .65rem var(--gutter); }
  .rail span { writing-mode: initial; transform: none; font: .68rem var(--mono); }
  .hero-copy { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .wire-art { border-left: 0; border-top: 1px solid var(--line); }
  .wire-art .wire-stage { min-height: 245px; }
  .media-grid { grid-template-columns: repeat(auto-fit, minmax(102px, 1fr)); }
  .media-card { padding: .7rem; }
  .media-card figcaption { font-size: .66rem; }
  .spec-list { grid-template-columns: 1fr; }
  .form-grid > * { margin-bottom: 1rem; }
  td, th { padding: .55rem .4rem; font-size: .85rem; }
  .catalog-revision { display: none; }
  #brands { right: auto; left: 0; }
}

/* The standalone PDF uses the same sheet at a consistent paper width. */
.export-sheet {
  --gutter: 28px;
  position: absolute;
  left: -12000px;
  top: 0;
  width: 794px;
  font-size: 14px;
}
.export-sheet .detail { display: grid; grid-template-columns: 1.45fr 1fr; }
.export-sheet .detail-no-image { grid-template-columns: 1fr; }
.export-sheet .product-title { font-size: 52px; }
.export-sheet .wire-art { border-left: 1px solid var(--line); border-top: 0; }
.export-sheet .wire-art .wire-stage { min-height: 300px; }
.export-sheet .media-grid { grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); }
.export-sheet .media-card { padding: 12px 20px; }
.export-sheet .media-card img { height: 115px; }
.export-sheet .media-card figcaption { font-size: .75rem; }
.export-sheet .spec-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.export-sheet .sheet-section { padding-block: 19px; }
.export-sheet h2 { font-size: 24px; }
/* Intrinsic image dimensions keep the cross-section, certification and
   packaging proportions consistent in the browser and exported PDF. */
.media-card img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: clamp(112px, 17vw, 230px);
  justify-self: center;
}
.export-sheet .media-card img { height: auto; max-height: 105px; }
.export-sheet .media-card.certification img { max-width: 100px; }
.export-sheet .wire-art { padding: 20px; }
.export-sheet .wire-art .wire-stage { min-height: 280px; }
.export-sheet .sheet-section { padding-block: 11px; }
.export-sheet .sheet-section h2 { margin-bottom: 9px; }
.export-sheet .spec-list li { padding-block: 8px; }
.export-sheet .technical-table :is(th, td) { padding: 5px 9px; font-size: 13px; }
.export-sheet .technical-table thead th { font-size: 12px; }

/* Reader layout */
:root { --paper: #fff; --panel: #fff; --ink: #202229; --line: #30333a; --hairline: #d8dbe0; --quiet: #535864; }
.icon { flex: 0 0 auto; width: 1.1em; height: 1.1em; vertical-align: -.14em; }
#company-menu summary { display: flex; align-items: center; gap: .45rem; list-style: none; }
#company-menu summary::-webkit-details-marker { display: none; }
#company-menu[open] summary .icon { transform: rotate(180deg); }
#brands { box-shadow: none; }
#brands a:hover { background: #f0f1f5; }
#brands a[aria-current]:hover { background: var(--brand); }
.spec-page footer { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
.spec-dock {
  position: fixed;
  z-index: 12;
  bottom: calc(1.15rem + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .38rem;
  width: max-content;
  max-width: calc(100vw - 1.25rem);
  align-items: center;
  padding: .38rem;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: white;
}
.spec-dock .button { border-radius: 9px; gap: .48rem; white-space: nowrap; }
.spec-dock .dock-back { border-color: transparent; }
.spec-dock .notice {
  position: absolute;
  bottom: calc(100% + .35rem);
  right: 0;
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: .5rem .7rem;
  background: white;
  font-size: .85rem;
}
.sheet-mast { letter-spacing: .082em; }
.detail { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.detail-no-image { grid-template-columns: 1fr; }
.detail-copy { padding-block: clamp(2.8rem, 6.1vw, 7rem); }
.detail-copy .kicker { color: var(--quiet); letter-spacing: .12em; }
.product-title { max-width: 13ch; font-size: clamp(2.55rem, 5.25vw, 6.7rem); letter-spacing: -.065em; line-height: 1.01; }
.description { font-size: clamp(.99rem, 1.3vw, 1.15rem); }
.wire-stage img, .media-card img { mix-blend-mode: normal; }
.media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.media-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.4rem, 3.9vw, 3.4rem) var(--gutter);
  border-right: 0;
  border-bottom: 1px solid var(--hairline);
}
.media-card img { margin-inline: auto; }
.media-card figcaption { margin: 0; font-size: .84rem; letter-spacing: .09em; }
.media-card.diagram { grid-column: 1 / -1; align-items: center; }
.media-card.diagram figcaption { align-self: flex-start; }
.media-card.diagram img { width: min(100%, 640px); max-height: none; }
.image-zoom { border-color: var(--hairline); border-radius: 6px; }
.media-card.certification { border-right: 1px solid var(--hairline); }
.certificate-images { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.media-card.certification img { max-width: 110px; max-height: 80px; }
.media-card.packaging img { max-height: 190px; }
.diagram-dialog { width: min(900px, calc(100% - 1.5rem)); max-height: 90dvh; border: 1px solid var(--line); padding: clamp(.9rem, 3vw, 2rem); }
.diagram-dialog::backdrop { background: #181b2a70; }
.diagram-dialog-bar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.diagram-dialog-bar button { min-width: 44px; justify-content: center; }
.diagram-dialog p { margin-block: .6rem; color: var(--quiet); }
.diagram-scroll { overflow: auto; }
.diagram-scroll img { display: block; width: 760px; max-width: none; margin-inline: auto; }
.sheet-section { padding-block: clamp(1.6rem, 3.8vw, 3.25rem); }
.sheet-section h2 { margin-bottom: 1.15rem; }
.technical-table tbody tr:nth-child(even) { background: #f6f7f9; }
.spec-list li { padding-block: .95rem; }
.export-sheet .product-title { max-width: none; font-size: 47px; }
.export-sheet .detail-copy { padding-block: 22px; }
.export-sheet .media-grid { grid-template-columns: 1.4fr .8fr .8fr; }
.export-sheet .media-card { justify-content: space-between; padding: 11px 12px; gap: 5px; border: 0; }
.export-sheet .media-card.diagram { grid-column: auto; }
.export-sheet .media-card.diagram img { width: auto; }
.export-sheet .media-card img { max-height: 83px; }
.export-sheet .certificate-images { gap: .4rem; }
.export-sheet .certificate-images img { max-width: 60px; max-height: 50px; }
.export-sheet .spec-list li { padding-block: 7px; }
@media (max-width: 860px) {
  .spec-dock { bottom: calc(.85rem + env(safe-area-inset-bottom)); }
}
@media (max-width: 700px) {
  .detail-copy { padding-block: 2.35rem; }
  .detail-copy .product-title { max-width: 14ch; }
  .wire-art { padding-block: 1rem; }
  .wire-art .wire-stage { min-height: 260px; }
  .spec-dock .dock-back span { display: none; }
  .spec-dock .button { min-height: 46px; }
  .media-card { padding-inline: var(--gutter); }
  .media-card figcaption { font-size: .74rem; }
  .technical-table th:first-child { width: 37%; }
}
@media (max-width: 345px) {
  .spec-dock .button { padding-inline: .62rem; font-size: .86rem; }
}

[hidden] { display: none !important; }
.admin-heading { display: flex; align-items: flex-start; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.admin-heading .product-title { max-width: none; }
.admin-heading .notice { flex-basis: 100%; }
.language-control { min-width: 9rem; }
.table-editor { min-width: 0; }
.table-editor-scroll { overflow: auto; margin-block: .7rem; }
.edit-grid { min-width: 420px; width: max-content; }
.edit-grid th, .edit-grid td { padding: .3rem; min-width: 164px; border: 0; vertical-align: top; }
.edit-grid th:last-child, .edit-grid td:last-child { min-width: 0; width: 3rem; }
.edit-grid thead { color: var(--ink); background: #f0f1f5; }
.edit-grid th > div { display: flex; align-items: center; gap: .25rem; }
.edit-grid th input, .edit-grid td textarea { min-width: 0; font: 400 1rem/1.45 system-ui, sans-serif; padding: .45rem; }
.edit-grid .icon-button { padding: .35rem; min-height: 36px; justify-content: center; border-color: var(--hairline); }

/* Keep focus visible without a heavy outline, and inherit each company's accent. */
:root { --hover-tint: color-mix(in srgb, var(--brand) 8%, white); --hover-ink: color-mix(in srgb, var(--brand) 68%, #171923); }
:focus-visible { outline: 1px solid color-mix(in srgb, var(--brand) 64%, #414652); outline-offset: 2px; }
:is(input, textarea, select):focus { border-color: color-mix(in srgb, var(--brand) 58%, #747985); }
:where(a:not(.button)):hover { color: var(--hover-ink); }
button:not(:disabled):hover, .button:hover { background: var(--hover-tint); color: var(--hover-ink); border-color: var(--brand); }
.primary:not(:disabled):hover { background: color-mix(in srgb, var(--brand) 85%, #151722); color: var(--brand-ink); }
#brands a:hover { color: var(--hover-ink); background: var(--hover-tint); }
#brands a[aria-current]:hover { color: var(--brand-ink); background: var(--brand); }
#brand-mark:hover { color: inherit; opacity: .82; }
#brand-mark img { display: block; width: auto; max-width: 100%; max-height: 64px; }
#brand-mark { padding-inline: .22rem; }
.kicker, .part, dt, th, figcaption, .sheet-mast, .masthead, footer { letter-spacing: .025em; }
.detail-copy .kicker { letter-spacing: .038em; }
.media-card figcaption { letter-spacing: .03em; }
.hero { display: block; }
.hero-copy { border-right: 0; max-width: 72rem; min-height: 0; padding-block: clamp(2.4rem, 6.5vw, 6.5rem); }
.hero-copy h1 { max-width: 14ch; }
.dock-short { display: none; }
.spec-dock { max-width: calc(100% - 1rem - env(safe-area-inset-left) - env(safe-area-inset-right)); }
.media-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.media-card { padding: clamp(1.05rem, 2.5vw, 2rem); gap: .65rem; border-bottom: 0; }
.media-card + .media-card { border-left: 1px solid var(--hairline); }
.media-card.certification { border-right: 0; }
.media-card.diagram { grid-column: auto; align-items: flex-start; }
.diagram-trigger { min-height: 0; width: 100%; justify-content: center; border: 1px solid transparent; padding: .35rem; cursor: zoom-in; }
.media-card.diagram img { width: auto; max-width: 100%; max-height: 160px; }
.export-sheet .media-card.diagram img { max-height: 95px; }
.diagram-scroll { overscroll-behavior: contain; }
@media (max-width: 700px) {
  .hero-copy { border-bottom: 0; }
  #brand-mark img { max-height: 34px; max-width: 130px; }
  .spec-dock { gap: .25rem; padding: .28rem; }
  .spec-dock .button { padding-inline: clamp(.53rem, 2.8vw, .8rem); font-size: clamp(.78rem, 3.5vw, .95rem); gap: .35rem; }
  .dock-long { display: none; }
  .dock-short { display: inline; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-card.diagram { grid-column: 1 / -1; border-bottom: 1px solid var(--hairline); }
  .media-card.diagram + .media-card { border-left: 0; }
  .media-card.diagram img { max-height: 132px; }
  .export-sheet .media-card.diagram { grid-column: auto; border-bottom: 0; }
}

/* Administration uses a work-oriented layout, separate from the public catalog. */
.admin-shell .shell { grid-template-columns: 205px minmax(0, 1fr); }
.admin-shell .rail {
  padding: 76px .7rem 1rem;
  display: block;
  background: #f7f8fa;
  color: var(--ink);
  border-right: 1px solid var(--hairline);
}
.admin-shell .rail > :not(.admin-nav), .admin-shell footer { display: none; }
.admin-shell .admin-nav { display: grid; gap: .3rem; position: sticky; top: 1rem; }
.admin-shell .admin-nav a {
  padding: .72rem .8rem;
  font: 650 .94rem/1.45 system-ui, sans-serif;
  letter-spacing: 0;
  border-radius: 7px;
}
.admin-shell .admin-nav a[aria-current] { background: var(--hover-tint); color: var(--hover-ink); }
.admin-shell .admin-nav a:hover { background: var(--hover-tint); }
.admin-shell .masthead { border-color: var(--hairline); letter-spacing: 0; font: 700 1rem/1.4 system-ui, sans-serif; text-transform: none; min-height: 64px; }
.admin-top-tools, .admin-top-tools .language-control { display: flex; align-items: center; gap: .65rem; }
.admin-top-tools > a { font-size: .875rem; }
.admin-top-tools .language-control { min-width: 0; }
.admin-top-tools .language-control select { margin: 0; width: auto; padding: .43rem; font-size: .875rem; border-color: var(--hairline); background: white; }
.admin-panel { padding: clamp(1.2rem, 3.5vw, 3.6rem); max-width: 82rem; margin-inline: auto; }
.admin-panel h1 { font: 760 clamp(1.6rem, 3.4vw, 2.6rem)/1.22 system-ui, sans-serif; letter-spacing: -.035em; margin-bottom: 1.3rem; }
.admin-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .7rem; }
.admin-panel h2 { font: 700 1.25rem/1.3 system-ui, sans-serif; letter-spacing: 0; margin-bottom: .55rem; }
.admin-panel > p { margin-bottom: 1.1rem; }
.admin-panel .form-grid { max-width: 58rem; }
.admin-panel :is(button, .button, input, textarea, select) { border-radius: 6px; }
.admin-panel input:not([type=color]), .admin-panel textarea, .admin-panel select { border-color: #aeb3bd; background: white; }
.admin-panel input[type=color] { max-width: 9rem; }
.admin-notice { margin: 1rem var(--gutter) 0; padding: .6rem .85rem; background: var(--hover-tint); border: 1px solid var(--hairline); }
.field-hint { display: block; font-size: .85rem; font-weight: 400; color: var(--quiet); margin-top: .25rem; }
.current-logo { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem; background: #f6f7f9; padding: .7rem; }
.current-logo img { display: block; max-width: 160px; max-height: 56px; }
.current-logo input[type=checkbox] { display: inline-block; width: auto; }
.draft-section { border: 1px solid var(--hairline); padding: clamp(1rem, 2.8vw, 2rem); margin-top: 1.5rem; scroll-margin-top: 1rem; }
.draft-section > p { margin-bottom: 1rem; }
.media-library { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 195px), 1fr)); gap: .85rem; }
.file-card { border: 1px solid var(--hairline); min-width: 0; }
.file-preview { height: 120px; display: grid; place-items: center; padding: .6rem; border-bottom: 1px solid var(--hairline); background: #f6f7f9; }
.file-preview img { max-width: 100%; max-height: 100px; }
.file-preview .icon { width: 2rem; height: 2rem; color: var(--hover-ink); }
.file-details { padding: .75rem; overflow-wrap: anywhere; }
.file-details h2 { font-size: 1rem; }
.file-details p { font-size: .86rem; color: var(--quiet); margin-bottom: .45rem; }
.file-details a { font-size: .86rem; font-weight: 650; }
@media(max-width: 700px) {
  .admin-shell .rail { padding: .45rem .65rem; border-right: 0; border-bottom: 1px solid var(--hairline); }
  .admin-shell .admin-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-shell .admin-nav a { text-align: center; padding: .52rem .3rem; font-size: .86rem; }
  .admin-shell .shell { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .admin-shell .site { display: contents; }
  .admin-shell .masthead { grid-row: 1; min-height: 58px; padding-inline: .85rem; }
  .admin-shell .rail { grid-row: 2; }
  .admin-shell main { grid-row: 3; }
  .admin-shell .shell { grid-template-rows: auto auto 1fr; }
}
.admin-panel :is(input, textarea, select):focus { border-color: color-mix(in srgb, var(--brand) 58%, #747985); }

:focus-visible {
  outline: 0;
  box-shadow: 0 0 7px 2px color-mix(in srgb, var(--brand) 25%, transparent);
}
:is(input, textarea, select):focus, .admin-panel :is(input, textarea, select):focus {
  outline: 0;
  border-color: color-mix(in srgb, var(--brand) 30%, #aeb3bd);
  box-shadow: 0 0 7px 2px color-mix(in srgb, var(--brand) 20%, transparent);
}
.admin-shell .primary {
  color: #211a18;
  border-color: color-mix(in srgb, var(--brand) 70%, #494044);
  background: color-mix(in srgb, var(--brand) 22%, #fff);
}
.admin-shell .primary:not(:disabled):hover {
  color: #211a18;
  background: color-mix(in srgb, var(--brand) 32%, #fff);
}
.revisions-scroll { overflow-x: auto; }
.revisions-table { min-width: 760px; table-layout: auto; }
.revisions-table thead { color: var(--ink); background: #f3f4f7; }
.revisions-table td, .revisions-table th { vertical-align: middle; }
.revisions-table :is(button, .button) { padding: .35rem .5rem; min-height: 34px; font-size: .84rem; }
.revisions-table .actions { gap: .28rem; }
.file-field { padding: .55rem .75rem .7rem; margin: 0; border: 1px solid var(--hairline); min-width: 0; border-radius: 6px; }
.file-field legend { font-weight: 650; padding-inline: .25rem; }
.selected-media { margin: .3rem 0 .7rem; padding: 0; list-style: none; }
.selected-media li { display: flex; align-items: center; gap: .4rem; overflow-wrap: anywhere; }
.file-remove { border-color: transparent; min-height: 30px; padding: .25rem; }
.media-tools, .media-filters { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: 1rem; }
.media-tools form, .picker-upload { padding: .8rem; border: 1px solid var(--hairline); display: grid; gap: .6rem; align-content: start; }
.media-tools button, .picker-upload button { justify-self: start; }
.move-control { margin-top: .7rem; font-size: .82rem; }
#file-dialog { width: min(680px, calc(100% - 1rem)); max-height: 88dvh; border: 1px solid var(--hairline); border-radius: 10px; padding: 1rem; }
#file-dialog::backdrop { background: #17203780; }
#file-dialog .admin-panel-heading { align-items: center; margin-bottom: .8rem; }
.file-picker-list { max-height: 32vh; overflow: auto; display: grid; gap: .25rem; margin-bottom: .8rem; }
.file-option { text-align: left; display: grid; grid-template-columns: auto 1fr auto; border-color: var(--hairline); }
.file-option span { overflow-wrap: anywhere; }
@media (max-width: 640px) { .media-tools, .media-filters { grid-template-columns: minmax(0, 1fr); } }
@media (forced-colors: active) { :focus-visible { outline: 1px solid Highlight; } }

select, .admin-panel select, .admin-top-tools .language-control select {
  appearance: none;
  color: var(--ink);
  background-color: white;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23464c58' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 1rem;
  background-position: right .68rem center;
  padding: .64rem 2.05rem .64rem .7rem;
  min-height: 42px;
  border-radius: 6px;
}
select:hover, .admin-panel select:hover { border-color: var(--brand); }
.meta dt, .meta dd { font-family: inherit; letter-spacing: 0; }
.meta dt { font-size: .85rem; font-weight: 500; }
.meta dd { font-size: 1rem; font-weight: 700; }

.export-sheet .media-grid { grid-template-columns: 1.4fr .8fr 1fr; }
.export-sheet .media-card { display: grid; grid-template-rows: auto 1fr; align-items: center; min-height: 122px; }
.export-sheet .media-card figcaption { align-self: start; }
.export-sheet .media-card.diagram img { max-height: 110px; width: auto; }
.export-sheet .media-card.packaging img { max-height: 104px; }
.export-sheet .certificate-images { justify-self: center; align-self: center; justify-content: center; }
.export-sheet .certificate-images img { max-height: 52px; }
.export-sheet .wire-art .wire-stage { min-height: 245px; }
.export-sheet .sheet-section { padding-block: 8px; }
.export-sheet .technical-table :is(th, td) { padding-block: 4px; }
.export-sheet .spec-list li { padding-block: 5px; }
.rich-content { overflow: hidden; overflow-wrap: anywhere; }
.rich-content img { display: inline-block; max-width: 100% !important; height: auto; vertical-align: middle; }
.rich-content :is(p, ul, ol, figure, blockquote) + :is(p, ul, ol, figure, blockquote) { margin-top: .7em; }

.admin-shell .admin-nav { grid-auto-flow: row; }
.revisions-table :is(th, td, button, .button) { font: 500 .91rem/1.4 system-ui, sans-serif; letter-spacing: 0; }
.revisions-table :is(thead th, th[scope=row], button, .button) { font-weight: 650; }
.status-label { display: inline-flex; padding: .18rem .5rem; border-radius: 8px; white-space: nowrap; font-weight: 650; }
.status-label.is-live { color: #175b37; background: #e4f5ea; }
.status-label.is-draft { color: #79511a; background: #fff1d8; }
.status-label.is-withdrawn { color: #5b5367; background: #ede9f1; }
.revision-dialog {
  width: min(900px, calc(100% - 1.5rem)); max-height: min(92dvh, 1000px);
  margin: auto; overflow: auto; padding: 0 clamp(1rem, 3vw, 2rem) 1.5rem;
  border: 1px solid var(--hairline); border-radius: 12px;
}
.revision-dialog::backdrop { background: #17203780; }
.revision-dialog-head { position: sticky; top: 0; z-index: 10; background: white; padding: .85rem 0; align-items: center; border-bottom: 1px solid var(--hairline); margin-bottom: .75rem; }
.revision-dialog > p { margin-bottom: 1.1rem; }
.revision-dialog .form-grid { gap: 1.05rem; }
.revision-dialog :is(input, textarea, select), #file-dialog :is(input, textarea, select) { font-size: max(16px, 1rem); background-color: #fff; }
.category-picker { position: relative; min-width: 0; }
.category-options {
  position: absolute; z-index: 3; top: 100%; left: 0; right: 0; max-height: 210px;
  overflow: auto; background: white; border: 1px solid var(--hairline); border-radius: 6px;
}
.category-options button { border: 0; min-height: 38px; width: 100%; text-align: left; }
.category-options p { padding: .65rem; }
.category-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; margin-bottom: 1.4rem; max-width: 54rem; }
.category-table th, .category-table td { font: 600 .92rem/1.4 system-ui, sans-serif; }
.category-table thead { background: #f3f4f7; color: var(--ink); }
.category-name { display: block; padding-left: calc(var(--depth) * 1.06rem); border-left: 2px solid color-mix(in srgb, var(--brand) 18%, transparent); }
.list-editor-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr) auto; gap: .65rem; align-items: start; margin-bottom: .6rem; }
.list-editor-row button { padding-inline: .65rem; }
.edit-grid { border-collapse: collapse; }
.edit-grid th, .edit-grid td { padding: 0; border: 1px solid #bac0c9; }
.edit-grid :is(th, td) :is(input, textarea) { box-sizing: border-box; border: 0; border-radius: 0; display: block; background: transparent; font-size: max(16px, 1rem); }
.edit-grid thead th { background: #edf0f4; }
.edit-grid thead input { font-weight: 650; }
.edit-grid td:focus-within, .edit-grid th:focus-within { background: var(--hover-tint); }
.edit-grid :is(input, textarea):focus { box-shadow: inset 0 0 0 1px var(--brand); }
.edit-grid .icon-button { min-height: 30px; border-color: transparent; }
.media-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.media-action { border: 1px solid var(--hairline); border-radius: 8px; min-width: 0; }
.media-action summary { list-style: none; padding: .72rem .85rem; cursor: pointer; font-weight: 650; }
.media-action summary::-webkit-details-marker { display: none; }
.media-action summary:hover { background: var(--hover-tint); }
.media-action form { border: 0; border-top: 1px solid var(--hairline); padding: .85rem; }
@media (max-width: 700px) {
  .admin-shell .admin-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .revision-dialog { width: calc(100% - .7rem); max-height: 96dvh; border-radius: 8px; }
  .category-form, .media-tools { grid-template-columns: minmax(0,1fr); }
  .list-editor-row { grid-template-columns: minmax(0,1fr) auto; }
  .list-editor-row label { grid-column: 1; }
  .list-editor-row button { grid-row: 1; grid-column: 2; }
}
.export-sheet .media-card { grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
.export-sheet .media-card > img { justify-self: center; margin-inline: 0; }
.export-sheet .certificate-images { width: 100%; justify-self: stretch; }
.export-sheet .detail-copy .product-title { max-width: none; }
.export-sheet .detail-copy { padding-block: 17px; }
.export-sheet .media-card { min-height: 116px; }
.export-sheet .sheet-section h2 { font-size: 22px; margin-bottom: 7px; }
.export-sheet .detail-copy .kicker { margin-bottom: .55rem; }
.export-sheet .detail-copy .product-title { margin-bottom: .55rem; }
.export-sheet .detail-copy .description { margin-top: .55rem; }
.export-sheet .meta { margin-top: .8rem; }
.export-sheet .meta > div { padding-block: .45rem; }

@media (min-width: 701px) {
  body:not(.admin-shell) .shell { grid-template-columns: clamp(60px, 6.1vw, 94px) minmax(0, 1fr); }
  #brand-mark { max-width: 100%; text-align: center; font-size: clamp(1.06rem, 2vw, 2.05rem); }
  #rail-text { font-size: clamp(1.25rem, 2.3vw, 2.8rem); }
}
.export-sheet .media-card { grid-template-rows: minmax(0, 1fr) auto; }
.export-sheet .media-card figcaption { grid-row: 2; justify-self: start; }
.export-sheet .media-card > :not(figcaption) { grid-row: 1; }

.revision-dialog { --editor-gutter: clamp(.9rem, 3vw, 1.7rem); background: #f7f8fa; padding: 0 var(--editor-gutter); }
.revision-dialog-head {
  background: #f7f8fa; margin-inline: calc(-1 * var(--editor-gutter));
  padding: .85rem var(--editor-gutter);
}
.revision-dialog-head h2 { font: 730 clamp(1.18rem, 2.4vw, 1.55rem)/1.35 system-ui, sans-serif; letter-spacing: -.015em; }
.revision-dialog button { border-radius: 6px; }
.revision-form { display: grid; gap: .9rem; }
.editor-card { min-width: 0; background: #fff; border: 1px solid var(--hairline); border-radius: 9px; padding: clamp(.8rem, 2vw, 1.25rem); }
.editor-card h3 { font: 720 1.03rem/1.4 system-ui, sans-serif; margin-bottom: .65rem; }
.editor-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.editor-media-grid .file-field { display: flex; flex-direction: column; align-items: flex-start; background: #f9fafc; }
.editor-media-grid .file-field:first-child { grid-column: 1 / -1; }
.editor-media-grid .file-field button[data-choose-file] { min-height: 38px; padding: .4rem .62rem; font-size: .875rem; margin-top: auto; }
.selected-media { display: grid; gap: .3rem; margin-block: .32rem .55rem; width: 100%; }
.selected-media li:not(.small) { background: white; border: 1px solid #e3e6eb; border-radius: 6px; padding: .28rem; }
.attachment-preview { display: grid; place-items: center; flex: 0 0 32px; height: 32px; background: #f3f4f7; border-radius: 4px; }
.attachment-preview img { max-width: 29px; max-height: 29px; }
.attachment-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .86rem; }
.editor-save {
  position: sticky; bottom: 0; z-index: 8; display: flex; justify-content: flex-end; align-items: center; gap: .7rem;
  background: #f7f8fa; border-top: 1px solid var(--hairline);
  margin-inline: calc(-1 * var(--editor-gutter)); padding: .7rem var(--editor-gutter);
}
.editor-save .notice { margin: 0 auto 0 0; font-size: .88rem; }
.editor-save button { flex: 0 0 auto; }
.list-editor-row {
  grid-template-columns: 1.7rem minmax(0, .9fr) minmax(0, 1.6fr) auto;
  background: #f6f7f9; border: 1px solid #e3e6eb; padding: .65rem; border-radius: 7px;
}
.list-item-index { margin-top: 1.65rem; width: 1.55rem; height: 1.55rem; display: grid; place-items: center; border-radius: 50%; background: #e7ebf0; font-size: .77rem; font-weight: 700; }
.list-editor-row button { margin-top: 1.38rem; min-height: 36px; border-color: var(--hairline); }
@media (max-width: 700px) {
  .editor-media-grid { grid-template-columns: minmax(0, 1fr); }
  .list-editor-row { grid-template-columns: 1.6rem minmax(0, 1fr) auto; }
  .list-editor-row label { grid-column: 2; }
  .list-editor-row button { grid-column: 3; margin-top: 1.38rem; }
  .list-item-index { grid-column: 1; grid-row: 1; }
}
#rail-text { min-width: 0; overflow-wrap: anywhere; }
#rail-text:empty { display: none; }

.admin-panel .category-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) max-content;
  align-items: end; max-width: none;
}
.category-form > .notice { grid-column: 1 / -1; }
.company-table { min-width: 610px; table-layout: auto; }
.company-table thead { background: #f3f4f7; color: var(--ink); }
.company-table :is(th, td), .category-table :is(th, td) { font: 550 .91rem/1.4 system-ui, sans-serif; letter-spacing: 0; vertical-align: middle; }
:is(.company-table, .category-table) button { min-height: 36px; padding: .35rem .65rem; }
.delete-action { color: #963a43; border-color: #d6abb0; }
.delete-action:not(:disabled):hover { color: #78252f; border-color: #b65a65; background: #fbebed; }
.table-scroll { overflow: auto; }
#company-dialog, #sharing-dialog { padding-bottom: var(--editor-gutter); }
#sharing-form > p:first-child { font-weight: 700; }
#sharing-companies { display: grid; gap: .5rem; margin-block: .8rem; }
#sharing-companies label { display: flex; align-items: center; gap: .55rem; padding: .48rem; background: #f7f8fa; }
#sharing-companies input { width: 1.08rem; height: 1.08rem; margin: 0; accent-color: var(--brand); }
.certificate-images { --certificate-gap: .5rem; width: 100%; gap: var(--certificate-gap); justify-content: center; }
.certificate-mark {
  min-width: 0; display: grid; place-items: center;
  flex: 0 0 calc((100% - (var(--certificate-columns) - 1) * var(--certificate-gap)) / var(--certificate-columns));
}
.media-card.certification .certificate-mark img { max-width: 100%; max-height: 76px; }
.media-card.certification .certificate-images { flex: 1; align-content: center; }
.export-sheet .media-card {
  grid-template-rows: auto minmax(0, 1fr);
  padding-inline: var(--gutter);
}
.export-sheet .media-card figcaption { grid-row: 1; justify-self: start; }
.export-sheet .media-card > :not(figcaption) { grid-row: 2; }
.export-sheet .media-card.certification .certificate-mark img { max-height: 44px; }
.export-sheet .wire-art { grid-template-rows: auto 1fr; padding-inline: var(--gutter); }
.export-sheet .wire-art figcaption { grid-row: 1; margin: 0; }
.export-sheet .wire-stage { grid-row: 2; }

@media (max-width: 700px) {
  .admin-panel .category-form { grid-template-columns: minmax(0, 1fr) max-content; }
  .category-form > label:nth-of-type(1) { grid-column: 1 / -1; }
  body:not(.admin-shell) .media-card.certification { grid-column: 1 / -1; border-left: 0; border-bottom: 1px solid var(--hairline); }
  body:not(.admin-shell) .export-sheet .media-card.certification { grid-column: auto; border-bottom: 0; }
}

body.admin-shell, body.login-page {
  --brand: #3e5784; --brand-ink: #fff;
  --hover-tint: color-mix(in srgb, var(--brand) 8%, white);
  --hover-ink: color-mix(in srgb, var(--brand) 68%, #171923);
}
.admin-shell .admin-nav [data-panel=permissions] { margin-top: .7rem; border-top: 1px solid var(--hairline); }
.admin-top-tools > button { min-height: 36px; font-size: .875rem; padding: .36rem .6rem; border-radius: 6px; }
#manager-dialog { padding-bottom: var(--editor-gutter); }
.manager-grants { margin-block: 1rem; border: 1px solid var(--hairline); padding: .65rem; }
.manager-grants label { display: flex; gap: .55rem; align-items: center; min-height: 36px; }
.manager-grants input[type=checkbox] { width: 1.12rem; height: 1.12rem; margin: 0; accent-color: var(--brand); }
.login-page { display: grid; min-height: 100dvh; place-items: center; background: #f6f7fa; padding: 1rem; }
.login-card { max-width: 420px; width: 100%; background: white; border: 1px solid var(--hairline); padding: clamp(1rem, 4vw, 1.8rem); border-radius: 10px; }
.login-card h1 { font: 750 1.6rem/1.2 system-ui, sans-serif; margin-block: 1rem; }
.login-card form { display: grid; gap: .75rem; margin-bottom: .75rem; }
.login-card a { font-size: .9rem; }
.login-card :is(input, button) { border-radius: 6px; }

#sharing-companies .share-company { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: center; padding: .35rem .55rem; border: 1px solid var(--hairline); border-radius: 6px; background: #f7f8fa; }
#sharing-companies .share-company label { min-width: 0; background: transparent; overflow-wrap: anywhere; }
.main-company-tag { padding: .3rem .5rem; border-radius: 5px; color: var(--hover-ink); background: var(--hover-tint); font-weight: 700; font-size: .85rem; }
.set-main-button { min-height: 34px; padding: .35rem .62rem; border-radius: 6px; font-size: .85rem; }
@media (hover: hover) and (pointer: fine) {
  .share-company .set-main-button { opacity: 0; pointer-events: none; }
  .share-company:is(:hover,:focus-within) .set-main-button { opacity: 1; pointer-events: auto; }
}
.admin-shell select {
  appearance: none; border: 1px solid #aeb3bd; border-radius: 6px; background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233e5784' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 1rem; background-position: right .66rem center; padding: .62rem 2.05rem .62rem .72rem;
}
.admin-shell .file-details .button, .admin-shell .file-details button, .admin-shell .company-table .button { min-height: 36px; padding: .36rem .62rem; border-radius: 6px; font-size: .85rem; }
.file-picker-list { overscroll-behavior: contain; max-height: min(32dvh, 310px); }
#picker-count { margin-bottom: .3rem; }
#brand-mark img { max-width: 100%; height: auto; object-fit: contain; }
#brand-mark.has-logo { display: grid; place-items: center; width: 100%; min-width: 0; }
#brand-mark.has-logo img { width: 100%; min-height: 1px; max-height: 64px; }
@media (max-width: 700px) {
  #brand-mark.has-logo { width: min(120px, 30vw); flex-shrink: 0; }
  #brand-mark.has-logo img { max-height: 34px; }
}

@media (min-width: 701px) {
  body:not(.admin-shell) .shell { grid-template-columns: var(--rail-width, clamp(60px, 6.1vw, 94px)) minmax(0, 1fr); }
  body:not(.admin-shell) #rail-text { font-size: var(--rail-text-size, clamp(1.25rem, 2.3vw, 2.8rem)); }
}
body:not(.admin-shell) #rail-text { font-family: var(--rail-font, inherit); }
@media (max-width: 700px) {
  body:not(.admin-shell) #rail-text { font-size: min(var(--rail-text-size, .68rem), 28px); }
}
.admin-shell .masthead { padding-block: .4rem; min-height: 56px; }
.admin-shell .rail { padding-top: 1rem; }
.admin-platform-mark { display: inline-flex; align-items: center; max-width: min(190px, 52vw); }
.admin-platform-mark img { width: auto; height: 35px; max-width: 100%; object-fit: contain; }
.media-workspace { display: grid; grid-template-columns: minmax(150px, 205px) minmax(0, 1fr); gap: 1rem; }
.media-folders { background: #f7f8fa; border: 1px solid var(--hairline); border-radius: 7px; padding: .75rem; align-self: start; }
.media-folders nav { display: grid; gap: .2rem; }
.media-folders nav button { border: 0; text-align: left; justify-content: flex-start; padding: .45rem .4rem .45rem calc(.4rem + var(--depth, 0) * .7rem); min-height: 38px; overflow-wrap: anywhere; }
.media-folders nav button[aria-current] { background: var(--hover-tint); color: var(--hover-ink); }
.media-contents { min-width: 0; }
.media-contents input { margin-bottom: .75rem; }
.styled-select { display: block; position: relative; min-width: 0; }
label > .styled-select { margin-top: .4rem; }
.styled-select > select[data-enhanced] {
  position: absolute; inset: 0; width: 1px; height: 1px; min-height: 0; opacity: 0; padding: 0; pointer-events: none; margin: 0;
}
.styled-select .styled-select-trigger {
  display: flex; width: 100%; min-height: 42px; padding: .54rem .65rem; border: 1px solid #aeb3bd;
  background: white; color: var(--ink); border-radius: 6px; font-weight: 550; text-align: left;
}
.styled-select-trigger > span { overflow-wrap: anywhere; }
.styled-select-trigger[aria-expanded=true] .icon { transform: rotate(180deg); }
.styled-select-options {
  position: absolute; z-index: 12; inset: calc(100% + .23rem) 0 auto; background: white;
  border: 1px solid #aeb3bd; border-radius: 6px; max-height: min(220px, 33dvh); overflow: auto;
}
.styled-select-options button {
  display: flex; width: 100%; padding: .5rem .65rem; min-height: 36px; border: 0; border-radius: 0;
  text-align: left; font-size: .9rem; font-weight: 500;
}
.styled-select-options button[aria-selected=true] { background: var(--hover-tint); color: var(--hover-ink); font-weight: 700; }
.admin-top-tools .language-control .styled-select { min-width: 110px; }
@media (max-width: 700px) {
  .admin-shell .rail { padding-top: .35rem; }
  .admin-platform-mark img { height: 29px; }
  .media-workspace { grid-template-columns: minmax(0, 1fr); }
}

.admin-shell .rail > .admin-platform-mark {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 52px; padding: .25rem .4rem .75rem; margin-bottom: .5rem;
  border-bottom: 1px solid var(--hairline);
}
.admin-shell .rail > .admin-platform-mark img { display: block; width: auto; max-width: 100%; height: 35px; }
.admin-shell .masthead { justify-content: flex-end; }
.admin-top-tools, .admin-top-tools .language-control { align-items: center; gap: .45rem; }
.admin-top-tools .language-control .styled-select { margin: 0; }
.admin-top-tools :is(.language-icon, .styled-select-trigger, #sign-out) {
  display: flex; box-sizing: border-box; align-items: center; min-height: 40px; height: 40px;
  padding-block: 0; font: 650 .88rem/1 system-ui, sans-serif;
}
.admin-top-tools .language-icon { width: 40px; justify-content: center; color: var(--hover-ink); }
.admin-top-tools .language-icon .icon { width: 1.15rem; height: 1.15rem; }
.folder-tree-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .2rem; }
.media-folders nav .folder-tree-row [data-folder-edit] { min-height: 32px; padding: .35rem; font-size: .78rem; }
#folder-editor { max-width: 520px; padding-bottom: var(--editor-gutter); }
#folder-edit-form .actions { margin-top: .75rem; }
@media (max-width: 700px) {
  .admin-shell .rail > .admin-platform-mark { min-height: 40px; padding-bottom: .3rem; margin-bottom: .25rem; }
  .admin-shell .rail > .admin-platform-mark img { height: 28px; }
}
.login-platform-mark { display: block; width: auto; height: 43px; max-width: 140px; object-fit: contain; }
.login-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .45rem .75rem; }
.admin-shell .rail > .admin-platform-mark { min-height: 64px; border-bottom: 0; }
.admin-shell .rail > .admin-platform-mark img { height: 55px; }
@media (max-width: 700px) {
  .admin-shell .rail > .admin-platform-mark { min-height: 46px; }
  .admin-shell .rail > .admin-platform-mark img { height: 40px; }
}

.login-platform-mark { height: 82px; max-width: 225px; }
.admin-shell .rail > .admin-platform-mark { min-height: 108px; padding-block: .25rem .7rem; }
.admin-shell .rail > .admin-platform-mark img { height: 96px; }
@media (max-width: 700px) {
  .login-platform-mark { height: 70px; }
  .admin-shell .rail > .admin-platform-mark { min-height: 74px; padding-block: .2rem .4rem; }
  .admin-shell .rail > .admin-platform-mark img { height: 66px; }
}

.export-sheet .media-grid > .media-card + .media-card { border-left: 1px solid #aeb3bd; }
.export-sheet .sheet-section:last-child { border-bottom: 1px solid var(--line); }
.site-settings-form { max-width: 560px; }
.site-settings-switch { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; }
.site-settings-switch input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--brand); }
.company-switch-groups { min-width: 0; margin: 0 0 1rem; border: 1px solid var(--hairline); padding: .75rem; }
.company-switch-groups legend { padding-inline: .25rem; font-weight: 700; }
.company-switch-groups p { margin-bottom: .65rem; }
.company-switch-groups label { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: .65rem; align-items: center; }
.company-switch-groups label + label { margin-top: .5rem; }
.company-switch-groups label input { margin: 0; }
#company-group-dialog { max-width: 580px; padding-bottom: var(--editor-gutter); }

.catalog-filters { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: .75rem; max-width: 45rem; margin-bottom: 1.15rem; }
@media (max-width: 520px) { .catalog-filters { grid-template-columns: minmax(0, 1fr); } }

#rail-text { font-weight: var(--rail-weight, 750); }
@media (max-width: 700px) { #rail-text { font-weight: var(--rail-weight, 400); } }
.catalog-filters .styled-select-trigger {
  min-height: 44px; border-radius: 0; padding-inline: .7rem;
  font-family: inherit; border: 1px solid var(--line);
}
.catalog-filters .styled-select-options { border-color: var(--line); border-radius: 0; }
#rail-text { letter-spacing: var(--rail-spacing, -.055em); }
@media (min-width: 701px) {
  .spec-page footer {
    padding-bottom: .85rem;
    margin-bottom: calc(5.65rem + env(safe-area-inset-bottom));
  }
  body.spec-page:not(.admin-shell) .rail {
    position: sticky;
    top: 0;
    align-self: start;
    box-sizing: border-box;
    height: 100dvh;
    gap: 1rem;
  }
  body:not(.admin-shell) #rail-text {
    margin-top: auto;
    margin-bottom: calc(var(--rail-footer-offset, 2rem) - 1.7rem);
  }
}

.admin-shell .masthead .admin-platform-mobile { display: none; }
@media (max-width: 700px) {
  .admin-shell .masthead { justify-content: space-between; flex-wrap: nowrap; gap: .45rem; }
  .admin-shell .masthead .admin-platform-mobile {
    display: flex; align-items: center; flex: 0 1 auto; min-width: 0;
    max-width: min(112px, 32vw);
  }
  .admin-shell .masthead .admin-platform-mobile img { height: 40px; }
  .admin-shell .rail > .admin-platform-sidebar { display: none; }
  .admin-shell .rail { min-width: 0; }
  .admin-shell .admin-nav {
    display: flex; position: relative; top: auto; overflow-x: auto; overflow-y: hidden;
    gap: .25rem; overscroll-behavior-inline: contain; padding: .15rem .2rem .28rem;
  }
  .admin-shell .admin-nav a { flex: 0 0 auto; white-space: nowrap; padding-inline: .65rem; }
  .admin-shell .admin-nav [data-panel=permissions] { margin-top: 0; border-top: 0; }
  .admin-top-tools .language-icon { width: 28px; }
}

body.platform-home .shell { grid-template-columns: minmax(0, 1fr); }
.platform-home .rail { display: none; }
.platform-home main { display: grid; place-items: center; padding: clamp(2rem, 8vw, 7rem) var(--gutter); }
.platform-intro { width: min(100%, 38rem); }
.platform-intro img { display: block; width: min(9rem, 50%); margin-bottom: 1.5rem; }
.platform-intro h1 { margin: 0 0 .8rem; font-size: clamp(2.3rem, 7vw, 4.75rem); line-height: 1; letter-spacing: -.045em; }
.platform-intro p { margin: 0; max-width: 42ch; color: var(--quiet); }
