/* ==========================================================================
   Toteally Custom — Design Studio (studio.html)
   Phones show one step per screen; wide screens show the product list, the
   preview and the tools side by side.
   ========================================================================== */

.studio { padding: clamp(28px, 5vw, 48px) 0 0; }
.studio [hidden] { display: none !important; }

.studio-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 2px dashed var(--stitch);
}
.studio-title .eyebrow { margin-bottom: 6px; }
.studio-title h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.studio-heading { margin-bottom: 16px; font-size: clamp(1.35rem, 2.6vw, 1.6rem); }
.studio .fine { margin: 8px 0 0; font-size: 0.85rem; }
.studio .upload-error { margin-top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Stitched progress bar --------------------------------------------------- */
.progress { display: flex; flex: 1 1 380px; max-width: 560px; }
.progress li { position: relative; flex: 1; text-align: center; }
.progress li + li::before {
  content: '';
  position: absolute;
  top: 17px;
  right: 50%;
  width: 100%;
  border-top: 2px dashed var(--stitch);
}
.progress li.is-done + li::before,
.progress li.is-done::before,
.progress li.is-current::before { border-top-color: var(--accent-line); }
.progress button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: 500 0.82rem var(--font-body);
  cursor: pointer;
}
.progress button:disabled { cursor: default; }
.progress-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px dashed var(--stitch);
  background: var(--well);
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 800;
}
.progress .is-done .progress-dot { border-style: solid; border-color: var(--accent-line); color: var(--accent); }
.progress .is-current .progress-dot { border: 2px solid var(--badge-bg); background: var(--badge-bg); color: var(--badge-text); }
.progress .is-current button { color: var(--heading); font-weight: 700; }
.progress .is-done button { color: var(--text-strong); }

/* Which panels show on which step ------------------------------------------ */
.studio-grid { display: block; }
.studio [data-panel] { display: none; }
.studio[data-step='product'] [data-panel='product'],
.studio[data-step='design'][data-path='design'] [data-panel='stage'],
.studio[data-step='design'][data-path='design'] [data-panel='design'],
.studio[data-step='design'][data-path='describe'] [data-panel='describe'],
.studio[data-step='details'] [data-panel='details'],
.studio[data-step='send'] [data-panel='send'] { display: block; }
.studio[data-step='done'] [data-panel='done'] { display: flex; }
.studio[data-step='done'] .studio-grid { display: none; }

.studio-side,
.studio-products,
.studio-stage { max-width: 640px; margin: 0 auto; }
.panel > * + *,
.send-form > * + * { margin-top: 18px; }
.panel > .studio-heading + * { margin-top: 0; }

/* Step 1: product cards ---------------------------------------------------- */
.product-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.product-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 16px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--card-shadow);
  color: var(--text-strong);
  font: 1rem var(--font-body);
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.product-pick:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.product-pick[aria-pressed='true'] { border-color: var(--accent-line); background: var(--tint-strong); }
.product-pick-art { width: 96px; max-width: 70%; }
.product-pick-text strong { display: block; color: var(--heading); font-family: var(--font-head); font-size: 1.05rem; line-height: 1.25; }
.product-pick-text small { display: block; margin-top: 2px; color: var(--text); font-size: 0.82rem; line-height: 1.3; }
.product-pick[data-pick='other'],
.product-pick[data-pick='describe'] { border-style: dashed; border-color: var(--stitch); }
.product-pick[data-pick='describe'] .product-pick-text small { color: var(--accent); font-family: var(--font-script); font-size: 1.2rem; }

/* Step 2: the preview ------------------------------------------------------ */
.stage-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.stage-tools { display: flex; align-items: center; gap: 10px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); box-shadow: var(--card-shadow); }
.seg-btn {
  min-height: 40px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-strong);
  font: 500 0.93rem var(--font-body);
  cursor: pointer;
}
.seg-btn[aria-pressed='true'] { background: var(--selected-bg); color: var(--selected-text); font-weight: 700; }
.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px dashed var(--stitch);
  background: transparent;
  color: var(--text-strong);
  font: 500 0.93rem var(--font-body);
  cursor: pointer;
}
.tool-btn:hover:not(:disabled) { border-color: var(--accent-line); color: var(--accent); }
.tool-btn:disabled { opacity: 0.45; cursor: default; }
.tool-btn svg { width: 18px; height: 18px; }
.tool-icon { width: 44px; padding: 0; font-size: 1.3rem; line-height: 1; }
.zoom { display: none; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-strong); }
.zoom span { min-width: 44px; text-align: center; }

.stage-frame {
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #EDE6FA;
}
.stage-frame.is-over { outline: 2px dashed var(--accent-line); outline-offset: 3px; }
.stage-canvas { position: relative; width: 100%; aspect-ratio: 1; }
.stage-product,
.stage-design { position: absolute; inset: 0; }
.stage-product svg { width: 100%; height: 100%; }
.stage-design { touch-action: pan-y; }
.stage-hint { margin: 10px 0 0; font-size: 0.85rem; text-align: center; }

/* Step 2: the tools -------------------------------------------------------- */
.studio-side { margin-top: 22px; }
.group-label { display: block; margin-bottom: 10px; color: var(--text-strong); font-size: 0.93rem; font-weight: 700; }
.group-label em { margin-left: 6px; color: var(--accent); font-family: var(--font-script); font-size: 1.25rem; font-style: normal; font-weight: 700; line-height: 1; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.swatch:hover { transform: scale(1.06); }
.swatch.is-on { border-color: var(--card); box-shadow: 0 0 0 3px var(--accent-line); }
.swatch-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  border-color: var(--accent-line);
  background: conic-gradient(#FF8A8A, #FFD23F, #8BE28B, #7CC7FF, #C4A5FF, #FF8A8A);
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.swatch-custom:focus-within { outline: 2px solid var(--accent-line); outline-offset: 3px; }
.swatch-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.swatch-custom span { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #F7F2FF; }

.add-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.add-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 76px;
  padding: 12px 8px;
  border-radius: 16px;
  border: 2px dashed var(--stitch);
  background: var(--card-soft);
  color: var(--heading);
  font: 700 0.95rem var(--font-body);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.add-btn:hover,
.add-btn[aria-expanded='true'] { border-color: var(--accent-line); background: var(--tint); }
.add-btn:focus-within { outline: 2px solid var(--accent-line); outline-offset: 3px; }
.add-btn svg { width: 24px; height: 24px; color: var(--accent); }
.add-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.edit { padding: 16px; border-radius: 16px; border: 1px solid var(--accent-line); background: var(--tint); }
.edit .group-label em { display: inline-block; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.edit .fine { margin: 0 0 12px; }
.font-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.font-list .pill { min-height: 44px; padding: 8px 16px; font-size: 1rem; }
.color-pick { display: inline-flex; align-items: center; gap: 10px; color: var(--text-strong); font-weight: 500; cursor: pointer; }
.color-pick input,
.swap-row input[type='color'] {
  flex: none;
  width: 52px;
  height: 46px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--well);
  cursor: pointer;
}
.swap-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.swap-arrow { color: var(--accent); font-size: 1.2rem; font-weight: 700; }
.studio .upload-remove { min-height: 40px; }
.pick-hint { margin-top: 10px !important; color: var(--accent); font-weight: 700; }

.item-list { display: grid; gap: 8px; }
.item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 8px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--card-shadow);
}
.item-row.is-selected { border-color: var(--accent-line); }
.item-pick {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.item-thumb {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #F7F2FF;
  color: var(--purple);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 800;
  overflow: hidden;
}
.item-thumb img { width: 100%; height: 100%; object-fit: contain; }
.item-meta { min-width: 0; }
.item-meta strong { display: block; color: var(--heading); font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-meta small { display: block; color: var(--text); font-size: 0.82rem; }

/* Step 3: details ---------------------------------------------------------- */
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper button,
.size-chip button {
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--card-shadow);
  color: var(--heading);
  font: 700 1.4rem var(--font-body);
  line-height: 1;
  cursor: pointer;
}
.stepper button:hover:not(:disabled),
.size-chip button:hover { border-color: var(--accent-line); color: var(--accent); }
.stepper button:disabled { opacity: 0.4; cursor: default; }
.stepper input {
  width: 96px;
  height: 48px;
  padding: 0 8px;
  border-radius: 14px;
  border: 1px solid var(--field-border);
  background: var(--field);
  color: var(--heading);
  font: 700 1.2rem var(--font-body);
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: 2px solid var(--accent-line); outline-offset: 1px; }
.stepper input[readonly] { color: var(--accent); }

.size-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.size-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 64px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--card-shadow);
  color: var(--text-strong);
  font: 700 1rem var(--font-body);
  cursor: pointer;
}
button.size-chip:hover { border-color: var(--accent-line); }
.size-chip.is-on { padding: 0; border-color: var(--accent-line); background: var(--tint-strong); color: var(--heading); cursor: default; }
.size-chip.is-on button { width: 44px; height: 46px; border: 0; background: transparent; box-shadow: none; }
.size-chip.is-on span { min-width: 56px; text-align: center; white-space: nowrap; }

/* Step 4: send ------------------------------------------------------------- */
.summary { padding: 18px 20px; border-radius: var(--radius); border: 2px dashed var(--stitch); background: var(--card); box-shadow: var(--card-shadow); }
.summary-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: var(--heading); font-family: var(--font-head); }
.summary .link-btn { min-height: 44px; padding: 0 4px; font-family: var(--font-body); }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.summary dt { color: var(--text); font-size: 0.93rem; }
.summary dd { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text-strong); font-weight: 500; }
.summary-swatch { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--text); }
.promise { color: var(--text-strong); font-weight: 500; }
.promise::before { content: '♥ '; color: var(--accent); }

.studio-done { max-width: 640px; margin: 24px auto 0; }
.studio-done h2 { margin: 0; max-width: 420px; font-size: 1.5rem; }
.studio-done-note { margin: 0; max-width: 420px; color: var(--text-strong); }
.studio-done-note a { text-decoration: underline; text-underline-offset: 3px; }

/* Back / Next: pinned to the bottom of the screen on phones ------------------ */
.studio-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: 10px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: var(--bar-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 2px dashed var(--stitch);
}
.studio-nav .btn { min-height: 50px; }
.studio-nav .btn:hover { transform: none; }
.studio-nav [data-next] { flex: 1; }
.studio-nav .btn:disabled { opacity: 0.6; cursor: default; }
/* Room for the pinned bar, so it never covers the end of the page. */
.studio ~ .site-footer { padding-bottom: 86px; }

/* Wide screens: product list, preview and tools side by side ----------------- */
@media (min-width: 1000px) {
  .studio-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
  }
  .studio-side,
  .studio-products,
  .studio-stage { max-width: none; margin: 0; }
  .studio ~ .site-footer { padding-bottom: 0; }
  .studio-stage { position: sticky; top: 96px; }

  /* The product list and the preview stay put through Design, Details and Send. */
  .studio[data-path='design'] [data-panel='product'],
  .studio[data-path='design'] [data-panel='stage'] { display: block; }
  .studio[data-step='done'] [data-panel='product'],
  .studio[data-step='done'] [data-panel='stage'] { display: none; }
  .studio[data-path='describe'] .studio-grid { grid-template-columns: minmax(0, 620px); justify-content: center; }

  .studio-products .studio-heading { font-size: 1.2rem; }
  .product-list { grid-template-columns: 1fr; gap: 8px; }
  .product-pick { flex-direction: row; gap: 12px; padding: 8px 12px; text-align: left; }
  .product-pick-art { width: 46px; max-width: none; flex: none; }
  .product-pick-text strong { font-size: 0.98rem; }

  .zoom { display: inline-flex; }
  .swatches { gap: 7px; }
  .swatch { width: 38px; height: 38px; }
  .stage-frame { max-height: calc(100vh - 220px); }
  .stage-canvas { max-width: calc(100vh - 222px); margin: 0 auto; }

  .studio-side {
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--card-shadow);
  }
  .studio-side .item-row,
  .studio-side .summary,
  .studio-side .seg { background: var(--well); box-shadow: none; }
  .studio-nav {
    position: static;
    margin-top: 24px;
    padding: 20px 0 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (max-width: 560px) {
  .studio-top { margin-bottom: 18px; padding-bottom: 16px; }
  .progress { flex-basis: 100%; }
  .stage-bar { flex-wrap: wrap; }
  .seg-btn { padding: 8px 14px; }
}

/* Jersey number fonts, served from this site (SIL Open Font License; see /fonts) */
@font-face { font-family: 'Graduate'; src: url('../fonts/graduate.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Anton'; src: url('../fonts/anton.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Archivo Black'; src: url('../fonts/archivo-black.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

/* Arrange buttons and checkboxes ---------------------------------------------- */
.arrange { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--stitch); }
.studio .arrange .upload-remove,
.sheet .upload-remove { min-height: 44px; }
.arrange .upload-remove:disabled { opacity: 0.4; cursor: default; }
.item-thumb svg { width: 34px; height: 34px; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text-strong); font-weight: 500; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.edit .check { margin-top: 10px; }
.team-summary { margin-top: 10px; }
.team-summary p { margin: 0 0 8px; color: var(--text-strong); font-weight: 500; }

/* Sheets: Shapes, Numbers and the team list ------------------------------------ */
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  max-height: 46vh;
  padding-bottom: env(safe-area-inset-bottom);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: var(--card);
  box-shadow: var(--card-shadow), 0 -18px 44px var(--shadow-deep);
  animation: sheet-up 0.2s ease;
}
.sheet[data-sheet='team'] { max-height: 82vh; }
.sheet:focus { outline: none; }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } }
.sheet-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 10px 20px;
  border-bottom: 2px dashed var(--stitch);
}
.sheet-head h2 { margin: 0; font-size: 1.15rem; }
.sheet-head .btn { min-height: 44px; }
.sheet-head .btn:hover { transform: none; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 22px; }
.sheet-body > * + *,
.sheet-controls > * + * { margin-top: 14px; }
.sheet-body .fine { margin: 10px 0 0; }
.sheet-body .group-label { margin-bottom: 8px; }

.shape-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.shape-pick,
.style-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 68px;
  padding: 8px 2px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--well);
  color: var(--text-strong);
  font: 500 0.72rem var(--font-body);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.shape-pick svg { width: 34px; height: 34px; }
.shape-pick:hover,
.style-pick:hover { border-color: var(--accent-line); }
.shape-pick[aria-pressed='true'],
.style-pick[aria-pressed='true'] { border-color: var(--accent-line); background: var(--tint-strong); color: var(--heading); }
.style-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.style-pick { min-height: 76px; font-size: 0.8rem; text-align: center; line-height: 1.2; }
.style-pick strong { color: var(--heading); font-size: 1.7rem; font-weight: 400; line-height: 1; }

.color-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.color-pick input:disabled { opacity: 0.35; cursor: default; }
.range-row label { display: block; margin-bottom: 4px; color: var(--text-strong); font-size: 0.93rem; font-weight: 700; }
.range-row em { margin-left: 6px; color: var(--accent); font-style: normal; }
.range-row input { display: block; width: 100%; height: 44px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.number-input { max-width: 150px; font-size: 1.3rem !important; font-weight: 700 !important; text-align: center; letter-spacing: 0.08em; }
.place-list { display: flex; flex-wrap: wrap; gap: 8px; }
.place-list .pill { min-height: 44px; padding: 8px 16px; }
.team-box { padding-top: 12px; border-top: 1px dashed var(--stitch); }
.team-box .upload-remove { display: block; margin-top: 6px; }

.team-rows { display: grid; gap: 8px; counter-reset: team; }
.team-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 62px 82px 44px;
  gap: 6px;
  align-items: center;
  counter-increment: team;
}
.team-row.no-size { grid-template-columns: 22px minmax(0, 1fr) 62px 44px; }
.team-row::before { content: counter(team); color: var(--text); font-size: 0.85rem; text-align: right; }
.team-row input,
.team-row select {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--field-border);
  background: var(--field);
  color: var(--heading);
  font: 1rem var(--font-body);
}
.team-row input:nth-of-type(2) { padding: 0 4px; text-align: center; font-weight: 700; }
.team-row select { padding: 0 6px; }
.team-row input:focus,
.team-row select:focus { outline: 2px solid var(--accent-line); outline-offset: 1px; }
.team-remove {
  width: 44px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.team-remove:hover:not(:disabled) { color: var(--accent); background: var(--hover-tint); }
.team-remove:disabled { opacity: 0.3; cursor: default; }
.add-row {
  display: block;
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 2px dashed var(--stitch);
  background: var(--card-soft);
  color: var(--heading);
  font: 700 1rem var(--font-body);
  cursor: pointer;
}
.add-row:hover { border-color: var(--accent-line); }

@media (min-width: 1000px) {
  /* Beside the preview instead of across the bottom, so the design stays in view. */
  .sheet,
  .sheet[data-sheet='team'] {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: 384px;
    max-height: min(660px, calc(100vh - 120px));
    padding-bottom: 0;
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sheet { animation: none; }
}
