/* Pricing admin — deliberately self-contained (no build step, no dependencies). */

:root {
  --accent: #c8102e;
  --accent-dark: #a30d26;
  --ink: #16181d;
  --ink-soft: #5b6270;
  --line: #e2e5ea;
  --line-strong: #cfd4dc;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --warn-bg: #fff8e6;
  --warn-line: #e8c76a;
  --warn-ink: #6b4c00;
  --good: #1f7a44;
  --radius: 8px;
  --shadow: 0 1px 2px rgb(22 24 29 / 6%), 0 4px 14px rgb(22 24 29 / 5%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 6px;
  padding: 0.42rem 0.85rem;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}

.btn:hover:not(:disabled) {
  background: #f0f1f4;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.btn--primary:hover:not(:disabled) {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn--quiet {
  border-color: transparent;
  background: transparent;
  color: var(--ink-soft);
}

.btn--block {
  width: 100%;
  padding: 0.6rem;
}

.btn--small {
  padding: 0.2rem 0.5rem;
  font-size: 0.82rem;
}

/* ── Login ───────────────────────────────────────────────────────────── */

.login-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.login-card {
  width: min(24rem, calc(100vw - 2rem));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.login-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
}

.login-blurb {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.login-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.login-input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.login-error {
  color: var(--accent);
  font-size: 0.85rem;
  min-height: 1.4em;
  margin: 0.5rem 0 0.75rem;
}

/* ── Top bar ─────────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar__title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.topbar__meta {
  color: var(--ink-soft);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar__actions form {
  margin: 0;
}

.status {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.status[data-state="dirty"] {
  color: var(--warn-ink);
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
}

.status[data-state="saved"] {
  color: var(--good);
  font-weight: 600;
}

.status[data-state="error"] {
  color: var(--accent);
  font-weight: 600;
}

/* ── Shell ───────────────────────────────────────────────────────────── */

.shell {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr) 21rem;
  align-items: start;
  gap: 1.25rem;
  padding: 1.25rem;
  max-width: 96rem;
  margin: 0 auto;
}

@media (max-width: 68rem) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Sidebar ─────────────────────────────────────────────────────────── */

.sidebar {
  position: sticky;
  top: 4.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  color: var(--ink-soft);
}

.nav-item:hover {
  background: #eceef2;
}

.nav-item[aria-current="true"] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.nav-item__badge {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0.05rem 0.42rem;
}

.nav-sep {
  margin: 0.6rem 0.6rem 0.3rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9aa1ad;
}

/* ── Panel ───────────────────────────────────────────────────────────── */

.panel {
  min-width: 0;
}

.panel__head {
  margin-bottom: 1.1rem;
}

.panel__head h1 {
  margin: 0 0 0.2rem;
  font-size: 1.4rem;
}

.panel__head p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 46rem;
}

.loading {
  color: var(--ink-soft);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow);
}

.card--flat {
  box-shadow: none;
}

/* ── Fields ──────────────────────────────────────────────────────────── */

.field__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.field__label {
  font-weight: 600;
}

.field__help {
  margin: 0.25rem 0 0.7rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
  max-width: 46rem;
}

.field__changed {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.field.is-invalid {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.field__error {
  color: var(--accent);
  font-size: 0.85rem;
  margin: 0.4rem 0 0;
}

.input-wrap {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}

.input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(200 16 46 / 12%);
}

.input-wrap__affix {
  display: grid;
  place-items: center;
  padding: 0 0.55rem;
  background: #f4f5f7;
  color: var(--ink-soft);
  font-size: 0.85rem;
  border-inline-end: 1px solid var(--line);
}

.input-wrap__affix--suffix {
  border-inline-end: 0;
  border-inline-start: 1px solid var(--line);
}

.input-wrap input {
  border: 0;
  padding: 0.4rem 0.55rem;
  width: 7rem;
  background: transparent;
}

.input-wrap input:focus {
  outline: none;
}

textarea.tiers {
  width: 100%;
  max-width: 26rem;
  min-height: 6.5rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  resize: vertical;
}

textarea.tiers:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(200 16 46 / 12%);
}

.tiers-hint {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.key-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
}

.key-grid__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.key-grid__label {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.3rem;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.rows {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 30rem;
}

.rows__row {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.rows__row input[type="text"] {
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  width: 100%;
}

table.grid {
  border-collapse: collapse;
  font-size: 0.85rem;
}

table.grid th,
table.grid td {
  border: 1px solid var(--line);
  padding: 0;
}

table.grid th {
  background: #f4f5f7;
  font-weight: 600;
  padding: 0.25rem 0.4rem;
  white-space: nowrap;
}

table.grid thead th input,
table.grid tbody th input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.25rem 0.3rem;
  font-weight: 600;
  text-align: center;
}

table.grid td input {
  width: 5.1rem;
  border: 0;
  padding: 0.3rem 0.35rem;
  text-align: right;
  background: transparent;
}

table.grid td input:focus,
table.grid th input:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.scroll-x {
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

details.sub {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  margin-bottom: 0.5rem;
}

details.sub > summary {
  cursor: pointer;
  font-weight: 600;
}

details.sub[open] > summary {
  margin-bottom: 0.7rem;
}

/* ── Preview ─────────────────────────────────────────────────────────── */

.preview {
  position: sticky;
  top: 4.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.9rem 1rem;
}

.preview h2 {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
}

.preview__blurb {
  margin: 0 0 0.8rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.preview__row {
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.6rem;
  align-items: baseline;
}

.preview__label {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.preview__total {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.preview__delta {
  grid-column: 2;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.preview__delta--up {
  color: var(--good);
}

.preview__delta--down {
  color: var(--accent);
}

.preview__unit {
  grid-column: 1;
  font-size: 0.76rem;
  color: #9aa1ad;
}

/* ── Notices & tables ────────────────────────────────────────────────── */

.notice {
  border: 1px solid var(--warn-line);
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.9rem;
  font-size: 0.88rem;
}

.notice--error {
  border-color: var(--accent);
  background: #fdecef;
  color: #7d0b1d;
}

.notice p {
  margin: 0 0 0.35rem;
}

.notice ul {
  margin: 0.3rem 0 0;
  padding-inline-start: 1.2rem;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

table.data th,
table.data td {
  text-align: left;
  padding: 0.42rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

table.data th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

table.data td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

tr.is-stale td {
  background: var(--warn-bg);
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  background: #eceef2;
  color: var(--ink-soft);
}

.tag--stale {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border: 1px solid var(--warn-line);
}

.diff-list {
  margin: 0;
  font-size: 0.88rem;
}

.diff-list div {
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.diff-list div:last-child {
  border-bottom: 0;
}

.diff-list code {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

/* Product photography ----------------------------------------------------- */

.tag--quiet {
  background: transparent;
  border: 1px solid var(--line);
}

/* Separates the awards from the corporate gifts in the product list. */
.group-head {
  margin: 1.6rem 0 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.group-head:first-child {
  margin-top: 0.4rem;
}

input.input {
  width: 100%;
  max-width: 26rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  font: inherit;
  color: inherit;
}

input.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(200 16 46 / 12%);
}

.award-range__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.award-range__head h2,
.award-range__head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.award-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.award-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Square, on white, because that is exactly how the storefront shows it — a tile
   that cropped or letterboxed differently would hide the very problem this page
   exists to fix. */
.award-tile__media {
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.award-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.award-tile__empty {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.award-tile__code,
.award-tile__price,
.award-tile__tags,
.award-tile__status {
  margin: 0;
  font-size: 0.8rem;
}

.award-tile__code strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.award-tile__price {
  color: var(--ink-soft);
}

.award-tile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.award-tile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.award-tile__actions .btn {
  font-size: 0.78rem;
  padding: 0.2rem 0.5rem;
}

.award-tile__status:empty {
  display: none;
}

.award-tile__status {
  color: var(--ink-soft);
}

/* ── The form builder ─────────────────────────────────────────────────────
   Which questions each product asks. Laid out as one card per field so a
   long form stays scannable, with the controls that reorder it kept to the
   left edge where the eye already is. */

.input {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0.4rem 0.55rem;
  background: var(--surface);
  min-width: 0;
  width: 100%;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(200 16 46 / 12%);
}

textarea.input {
  resize: vertical;
}

.fb-stack {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fb-stack .field__label {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.fb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  position: sticky;
  top: 4.2rem; /* clears the top bar, which is sticky at 0 */
  z-index: 2;
}

.fb-toolbar .field__help {
  margin: 0;
}

.fb-toolbar__actions {
  display: flex;
  gap: 0.5rem;
}

/* ── A field ──────────────────────────────────────────────────────────── */

.fb-field.is-hidden {
  background: repeating-linear-gradient(135deg, #fff, #fff 10px, #fafbfc 10px, #fafbfc 20px);
}

.fb-field__head {
  display: grid;
  grid-template-columns: auto minmax(10rem, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
}

.fb-field__order,
.fb-option__order,
.fb-colour__actions {
  display: flex;
  gap: 0.2rem;
}

.fb-field__order .btn,
.fb-option__order .btn {
  padding: 0.15rem 0.4rem;
  line-height: 1;
}

.fb-field__meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fb-field__actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

/* ── Conditions ───────────────────────────────────────────────────────── */

.fb-when {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--line);
}

.fb-when .field__help {
  margin: 0;
}

.fb-when .input {
  width: auto;
}

.fb-when__values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
  width: 100%;
}

/* ── Options ──────────────────────────────────────────────────────────── */

.fb-options {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fb-option {
  display: grid;
  grid-template-columns: auto auto minmax(9rem, 1fr) minmax(7rem, 0.8fr) auto auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fcfcfd;
}

.fb-option.is-off {
  opacity: 0.55;
}

.fb-option__main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.fb-option__value code {
  color: var(--ink-soft);
  word-break: break-word;
}

.fb-option__extra {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fb-option__extra .field__help {
  margin: 0;
  white-space: nowrap;
}

.fb-option--new {
  grid-template-columns: auto minmax(9rem, 1fr) minmax(9rem, 1fr) auto;
  background: transparent;
  border-style: dashed;
}

.fb-add {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.6rem;
}

.fb-add .field {
  flex: 1 1 10rem;
}

/* ── Swatches ─────────────────────────────────────────────────────────── */

.fb-chip {
  display: inline-block;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  flex: none;
  object-fit: cover;
  color: var(--ink-soft);
}

.fb-chip--none {
  background: repeating-linear-gradient(45deg, #eceef2, #eceef2 4px, #f7f8fa 4px, #f7f8fa 8px);
}

.fb-chip--icon svg {
  width: 100%;
  height: 100%;
  padding: 2px;
}

/* A cross-section of the laminate: the surface, with the core showing
   through where the laser has cut. */
.fb-ply {
  position: relative;
  display: inline-block;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  flex: none;
}

.fb-ply__cut {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 42%;
  height: 14%;
  border-radius: 1px;
}

.fb-ply--large {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: var(--radius);
}

.fb-ply--large .fb-ply__cut {
  top: 38%;
  height: 8%;
}

.fb-ply__cut--short {
  top: 54%;
  right: 44%;
}

/* ── The colour range ─────────────────────────────────────────────────── */

.fb-colour.is-off {
  opacity: 0.6;
}

.fb-colour__top {
  display: grid;
  grid-template-columns: auto minmax(14rem, 1fr) 10rem;
  gap: 1rem;
  align-items: start;
}

.fb-colour__fields {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.fb-colour__pair {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.fb-colour__pair .field {
  flex: 1 1 9rem;
}

.fb-colour__photo {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fb-colour__photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.fb-colour__actions {
  margin-top: 0.7rem;
}

.fb-hex {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.fb-hex input[type="color"] {
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: none;
  flex: none;
  cursor: pointer;
}

/* ── Preview column ───────────────────────────────────────────────────── */

.fb-preview__field {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.fb-preview__field:last-child {
  border-bottom: 0;
}

.fb-preview__field .field__help {
  margin: 0.2rem 0 0;
}

.fb-preview__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.7rem;
  margin-top: 0.35rem;
}

.fb-preview__option {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .fb-option,
  .fb-option--new,
  .fb-colour__top,
  .fb-field__head {
    grid-template-columns: 1fr;
  }

  .fb-field__meta {
    justify-content: flex-start;
  }
}

/* ── Phase 5 usability ────────────────────────────────────────────────────
   Collapsible nav, editable grids, thumbnails and drop zones. */

.nav-toggle {
  display: none;
}

@media (max-width: 68rem) {
  .nav-toggle {
    display: inline-block;
  }

  .sidebar {
    display: none;
  }

  .nav-open .sidebar {
    display: flex;
    position: static;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.5rem;
    box-shadow: var(--shadow);
  }
}

/* ── Tier ladders ─────────────────────────────────────────────────────── */

.tier-rows {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tier-rows__head,
.tier-rows__row {
  display: grid;
  grid-template-columns: 7rem 9rem auto;
  align-items: center;
  gap: 0.5rem;
  max-width: 26rem;
}

.tier-rows__row input {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  width: 100%;
}

.tier-rows__row .input-wrap input {
  border: 0;
  border-radius: 0;
  width: 100%;
}

.tier-rows__row .input-wrap {
  width: 100%;
}

/* ── Grids that can gain and lose rows ────────────────────────────────── */

.grid__actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.grid__drop {
  margin-left: 0.35rem;
  padding: 0 0.35rem;
  line-height: 1.3;
  color: var(--ink-soft);
}

.grid th {
  white-space: nowrap;
}

/* ── Photography ──────────────────────────────────────────────────────── */

.product-thumb {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
  flex: none;
}

.product-thumb--small {
  width: 1.9rem;
  height: 1.9rem;
}

.cell-product {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.product-thumb--empty {
  display: inline-block;
  background: repeating-linear-gradient(45deg, #eceef2, #eceef2 5px, #f7f8fa 5px, #f7f8fa 10px);
}

.award-tile__media.is-uploading {
  opacity: 0.55;
}

.drop-zone {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
  padding: 0.7rem 0.9rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.drop-zone.is-dropping,
.award-tile.is-dropping {
  border-color: var(--accent);
  background: #fdf3f5;
}

.award-tile.is-dropping {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}

.drop-zone > span:first-child {
  flex: 1 1 14rem;
}

.drop-zone .award-tile__status {
  flex-basis: 100%;
}
