/* Make a pattern (homepage.html).
   Split from style.css (16 Nov 2026, C2): each page links css/base.css and its own sheets in <head>, in the order
   base, pattern, marketing, auth, make, library, settings, share, workspace; a rule that came later in style.css still
   comes later where both load. Its dark twin is css/make-dark.css (07_scripts/maintenance/site_dark_css.py).
   An !important left says why, on the line before its rule: what it must win over. */

/* =======================
   NAVIGATION BAR STYLES
   ======================= */

/* Model tabs (Prime, Blend, Chorus) */
#modelTabsContainer {
  display: flex;
  align-items: center;
  gap: 1.5625rem;
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
  background-color: var(--bg-light);
  justify-content: center;
}
.model-tab-btn {
  font-family: var(--font-family-roboto);
  font-size: 1.125rem;
  color: var(--Black);
  font-weight: 500;
  background: transparent;
  border: none;
  border-bottom: 0.1875rem solid transparent;
  padding: 0.375rem 0;
  margin-bottom: -0.0625rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

/* Left column: features */
.left-column-wrapper {
  flex: 0 0 230px;
  display: flex;
  flex-direction: column;
  padding-right: 0;
  border-right: 2px solid #e0e0e0;
  overflow: hidden;
  min-height: 500px;
  transition: flex 0.25s ease;
}
.left-column-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}
.middle-column {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 50vw;
  max-width: 70vw;
  min-height: 500px;
  max-height: 90vh;
  overflow: auto;
  padding-right: 0;
  border-right: 2px solid #e0e0e0;
  -webkit-overflow-scrolling: touch;
}

#garment-modal-columns {
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  min-height: 500px;
}
#garment-modal-columns .middle-column {
  flex: 1 1 0%;
  min-width: 0;
}
/* The garment window (Confirm garment type), Israa, 10 Nov 2026: the left column scrolled sideways, the drawings were
   small, cut close and unclear, and the window left room unused. Wider and as tall as the screen, its three columns
   share the room: the choices (their dropdowns fit), the patterns, and the drawings, each in a card with its name. */
/* (Its width and height are in its own style, homepage.html: as wide as the screen allows up to 1760 px.) */
#garment-modal-content { display: flex; flex-direction: column; }
/* !important: over the inline margin-top a script sets */
#garment-modal-columns { min-height: 0; margin-top: 14px !important; }
#garment-modal-columns > .left-column-wrapper { flex: 0 0 250px; min-height: 0; }
#garment-modal-columns .left-column-inner { min-height: 0; }
/* !important: over the inline max-height a script sets (and more) */
#garment-features {
  max-height: none !important;
  height: 100%;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding-right: 10px;
  box-sizing: border-box;
}
/* !important: over #garment-modal-columns .middle-colu… */
#garment-features select { width: auto !important; flex: 1 1 0 !important; min-width: 0 !important; max-width: 100%; }
#garment-modal-columns .middle-column { width: auto; max-width: none; min-height: 0; max-height: none; padding: 0 0.35rem; }
/* !important: over the inline flex a script sets (and more) */
#drawingWrapper {
  /* (300 px at the least: at 400 a tablet's window left the patterns, the middle column, under 300 px. 21 Nov 2026.) */
  flex: 0 0 clamp(300px, 34%, 640px) !important;
  max-height: none !important;
  min-height: 0;
  padding: 0.5rem 0 0 0.9rem;
  box-sizing: border-box;
}
/* !important: over the New design's body.homepage .nd-drawings #drawing… */
#drawingWrapper > div:has(> #frontContainer) { gap: 0.6rem !important; align-items: stretch !important; }
#frontContainer, #backContainer {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.45rem 0.55rem 0.6rem;
  border: 1px solid #e3e7f1;
  border-radius: 0.5rem;
  background: #fff;
  box-sizing: border-box;
}
#frontContainer::before, #backContainer::before {
  display: block;
  margin-bottom: 0.3rem;
  color: #5b6582;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: left;
}
#frontContainer::before { content: "Front"; }
#backContainer::before { content: "Back"; }
/* !important: over .hide-mobile's !important */
#frontContainer > div, #backContainer > div { display: block !important; width: 100%; }
/* (At the card's width. The drawing is the 256 px picture the pattern was made from, drawn on in its own pixels; it is
   shown sharp by a canvas over it, script/make/sketch_view.js, the picture unseen under it.) */
/* !important: over the New design's body.homepage .nd-drawings :is(#fro… */
#frontBaseImage, #backBaseImage { width: 100% !important; max-width: 100% !important; height: auto !important; }
#frontContainer canvas.sketch-view, #backContainer canvas.sketch-view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: contrast(1.15);
}
@media (max-width: 900px) {
  #garment-modal-columns { flex-direction: column; overflow-y: auto; }
  #garment-modal-columns > .left-column-wrapper { flex: 0 0 auto; border-right: none; border-top: 2px solid #e0e0e0; padding: 0.25rem 0 0.5rem; order: 2; }
  /* The choices as long as they are, the window scrolling them with the rest (21 Nov 2026, Israa: "fix any double
     scroll": capped at 40 % of the screen they scrolled inside the window, which scrolls too, two scrollbars). */
  /* !important: over the inline max-height a script sets, and #garment-features's own scrolling */
  #garment-features { max-height: none !important; height: auto; overflow-y: visible !important; }
  #garment-modal-columns .middle-column { flex: 0 0 auto; min-height: 440px; border-right: none; }
  /* !important: over the inline flex a script sets (and more) */
  #drawingWrapper { flex: 0 0 auto !important; padding: 0.75rem 0 0 !important; }
  /* The patterns first, then the choices (folded until opened, or open when one is asked), then the drawings (23 Nov
     2026, Israa: on a tablet the choices came first, long, and the patterns were far below them). */
  #garment-modal-columns > .middle-column { order: 1; }
  #garment-modal-columns > #drawingWrapper { order: 3; }
  #leftColumnWrapper > #featuresFold { display: flex; }
  #leftColumnWrapper[data-folded="true"] > .left-column-inner { display: none; }
}
#featuresFold {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin: 0 0 0.25rem;
  padding: 0.5rem 0.25rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}
/* (Its own size: base.css's svg rule fills the button.) */
#featuresFold svg { flex: none; width: 18px; height: 18px; transition: transform 0.15s; }
#featuresFold > span { flex: 1 1 auto; }
#featuresFold[aria-expanded="false"] svg { transform: rotate(-90deg); }
#featuresFold:focus-visible { outline: 2px solid var(--Pure-Blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { #featuresFold svg { transition: none; } }
#garmentTypePreview {
  box-sizing: border-box;
  min-height: 0;
}

/* Design B: Model tiles (3 small previews, expand on click) */
.preview-design-a { display: flex; flex-direction: column; flex: 1 1 0%; overflow: hidden; min-height: 0; }
.preview-design-b { display: none; flex: 1 1 0%; flex-direction: column; overflow: hidden; min-height: 0; }
.model-tiles-container {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
  min-height: 0;
  flex: 1 1 0%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.model-tile {
  border: 2px solid var(--Dusty-Gray);
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #fff;
  flex-shrink: 0;
  min-height: 0;
}
.model-tile:hover { border-color: var(--Pure-Blue); }
.model-tile[data-expanded="true"] {
  flex: 1 1 0%;
  min-height: 350px;
  border-color: var(--Pure-Blue);
  box-shadow: 0 2px 8px rgba(0,37,230,0.15);
  flex-shrink: 1;
}
.model-tile[data-expanded="false"] {
  max-height: 120px;
  flex: 0 0 auto;
}
.model-tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-light);
  border-bottom: 1px solid var(--Dusty-Gray);
  flex-shrink: 0;
}

/* What each model does, in plain words (the tiles showed only their names). */
.model-tile-about {
  margin: 0;
  padding: 0.3rem 0.75rem 0.35rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #444;
  flex-shrink: 0;
}
.sew-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
  cursor: help;
}
.sew-badge[hidden] { display: none; }
.sew-badge--ok { color: var(--Sew-Ok); background: var(--Sew-Ok-bg); }
.sew-badge--off { color: var(--Sew-Off); background: var(--Sew-Off-bg); }
.chorus-mode-select {
  font-size: 0.7rem;
  font-weight: 500;
  max-width: 11.5rem;
  padding: 0.15rem 0.3rem;
  border: 1px solid var(--Dusty-Gray);
  border-radius: 4px;
  background: #fff;
  color: #333;
}
.model-tile-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0.5rem;
  justify-content: center;
  align-items: center;
  align-content: center;
  min-height: 0;
  flex: 1 1 auto;
}
.model-tile[data-expanded="false"] .model-tile-preview {
  min-height: 80px;
  flex: 0 0 auto;
}
/* The previews as one sheet, laid out as a new pattern opens in the workspace (preview_order.js layoutSheet). */
/* One recommended result; the other versions open below it (homepage arrangeResultTiles, result_choice.js). */
.model-tiles-container > .model-tile[hidden] { display: none; }
.other-versions-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  margin: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d6deef;
  border-radius: 0.5rem;
  background: #f5f8fe;
  color: #1d2a4d;
  font: inherit;
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.other-versions-toggle[hidden] { display: none; }
.other-versions-toggle .ov-chevron {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  margin: 0 0.15rem 0 0.1rem;
  border-right: 2px solid var(--Pure-Blue, #1f4fd1);
  border-bottom: 2px solid var(--Pure-Blue, #1f4fd1);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}
.other-versions-toggle[aria-expanded="true"] .ov-chevron { transform: rotate(45deg); }
.other-versions-toggle .ov-text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; gap: 0.1rem; }
.other-versions-toggle .ov-text strong { color: var(--Pure-Blue, #1f4fd1); font-weight: 600; }
.other-versions-toggle .ov-sub { color: #5b6582; font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.other-versions-toggle .ov-thumbs { display: flex; gap: 0.4rem; flex-shrink: 0; }
.other-versions-toggle .ov-thumb {
  display: block;
  width: 4.25rem;
  height: 2.75rem;
  padding: 0.15rem;
  box-sizing: border-box;
  border: 1px solid #d6deef;
  border-radius: 0.3rem;
  background: #fff;
}
/* !important: over svg.pattern-sheet path:not(.sheet-f…'s !important */
.other-versions-toggle .ov-thumb svg.pattern-sheet path:not(.sheet-fill) { stroke-width: 0.8px !important; }
/* In a result's tile the sheet fills the room under its title, whatever the tile's height, so it is never cut. */
.model-tiles-container > .model-tile { display: flex; flex-direction: column; }
.model-tiles-container > .model-tile[data-expanded="false"] { max-height: 150px; }
.model-tiles-container > .model-tile[data-expanded="true"] { min-height: 270px; }
.model-tile-preview:has(> .tile-sheet-wrap) { position: relative; flex: 1 1 auto; min-height: 0; padding: 0; }
.model-tile[data-expanded="false"] .model-tile-preview:has(> .tile-sheet-wrap) { flex: 0 0 auto; height: 52px; min-height: 0; }
/* !important: over #garment-features's !important */
.model-tile[data-expanded="true"] .model-tile-preview:has(> .tile-sheet-wrap) { min-height: 0; max-height: none !important; }
.model-tile-preview .tile-sheet-wrap { position: absolute; inset: 0.5rem 0.6rem 0.6rem; }
.model-tile-preview .tile-sheet-wrap svg.pattern-sheet { display: block; width: 100%; height: 100%; }

/* The result shown large on top (the recommended one, or the one chosen), the other versions as two cards side by side
   under the link (homepage arrangeResultTiles). They were stacked full width, too small to compare. */
/* !important: over .hide-mobile's !important */
.model-tiles-container.with-versions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 0.6rem;
}
.model-tiles-container.with-versions.others-shown { grid-template-rows: minmax(250px, 1fr) auto auto; overflow-y: auto; }
.model-tiles-container.with-versions > .model-tile[data-expanded="true"],
.model-tiles-container.with-versions > .other-versions-toggle,
.model-tiles-container.with-versions > :not(.model-tile):not(.other-versions-toggle) { grid-column: 1 / -1; }
.model-tiles-container.with-versions > .model-tile[data-expanded="true"] { min-height: 0; max-height: none; }
.model-tiles-container.with-versions > .model-tile[data-expanded="false"] { max-height: none; height: 215px; }
.model-tiles-container.with-versions .model-tile[data-expanded="false"] .model-tile-preview:has(> .tile-sheet-wrap) { flex: 1 1 auto; height: auto; }
.model-tiles-container.with-versions .model-tile[data-expanded="false"] .model-tile-about {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.model-tiles-container.with-versions > .other-versions-toggle { justify-self: stretch; }

/* The pieces as a pattern on a cutting mat (preview_order.js layoutSheet): each filled, one outline, named in its
   middle, on 10 cm squares at the pattern's scale. Every edge in its own colour (as the workspace has them) crowded a
   small picture. */
svg.pattern-sheet .sheet-grid-line { stroke: #e2e7f2; stroke-width: 1px; vector-effect: non-scaling-stroke; }
svg.pattern-sheet .sheet-fill { fill: #edf3ff; stroke: none; }
/* (In a small card the names would be too small to read.) */
.model-tile[data-expanded="false"] svg.pattern-sheet .sheet-label { display: none; }
svg.pattern-sheet .sheet-label {
  fill: #3b4870;
  font-family: var(--font-family-open-sans), "Open Sans", sans-serif;
  font-weight: 600;
  paint-order: stroke;
  stroke: #edf3ff;
  stroke-width: 0.25em;
  stroke-linejoin: round;
  pointer-events: none;
}

/* =======================
   HOMEPAGE STYLES
   ======================= */

/* The garment size window as tall as what's in it: the fixed height every window has left its Confirm button hanging
   out of the bottom (325px for 441px of title, sizes and button). Scrolls on a screen too short for it. */
#garment-size-modal-content {
  height: auto;
  /* Its width as before; the padding (2rem above, 1.5rem below) outside the height. */
  max-height: calc(100vh - 2rem - 3.5rem);
  overflow-y: auto;
}

/* Make Pattern with a picture that doesn't look like a garment drawing: as tall as what's in it, and wide enough
   for its two buttons side by side (a window's usual 255px cut both off); on a phone they go one above the other. */
#garment-check-modal-content {
  width: min(32rem, calc(100vw - 2rem - 3rem));
  height: auto;
  max-height: calc(100vh - 2rem - 3.5rem);
  overflow-y: auto;
}

#garment-check-modal-content .garment-size-actions {
  flex-wrap: wrap;
}

#garment-check-modal-content p,
#garment-check-problems {
  margin-top: 1rem;
  text-align: left;
}

#garment-check-problems {
  padding-left: 1.25rem;
  list-style: disc;
}

/* The same, in the upload box, as soon as the picture is in. */
.drop-zone .drop-zone-warning {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 2;
  margin: 0;
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
  background: var(--Sew-Off-bg);
  color: var(--Sew-Off);
  font-size: 0.8125rem;
  line-height: 1.3;
}

.garment-size-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.375rem 2rem;
}

.garment-size-grid input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 2rem;
  height: 2rem;
  border: 0.125rem solid var(--Gray);
  border-radius: 0.25rem;
  background: var(--White);
  margin-right: 0.625rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  vertical-align: middle;
  position: relative;
}

.garment-size-grid input[type="radio"]:checked {
  background: var(--Pure-Blue);
  border-color: var(--Pure-Blue);
}

.garment-size-grid input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.5rem;
  height: 0.8125rem;
  border: solid var(--White);
  border-width: 0 0.1875rem 0.1875rem 0;
  transform: translate(-50%, -60%) rotate(45deg) scale(0.8);
  pointer-events: none;
}

.garment-size-grid input[type="radio"]:focus {
  outline: 0.0625rem solid var(--Pure-Blue);
  outline-offset: 0.125rem;
}

/* Main content (drop zones between header and footer) */
.homepage-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  padding: 0rem;
  margin-bottom: 0rem;
  height: calc(100vh - 7.5rem - 8.125rem);
}

.homepage-main.trial-count-active {
  height: calc(100vh - 9.875rem - 8.125rem);
}

/* Drop zones */
.drop-zone {
  flex: 0 0 40%;
  height: 95%;
  border: 0.125rem dashed var(--gray-border);
  border-radius: 0.625rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: white;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition);
  text-align: center;
}

.drop-zone input {
  display: none;
}

.drop-zone .drop-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* !important: over the New design's body.homepage .drop-zone h3 */
.drop-zone .icon {
  font-size: 3.5rem;
  color: var(--Pure-Blue) !important;
}

.drop-zone img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.drop-zone.dragover-valid {
  border-color: var(--Pure-Blue);
  background: var(--Pure-Blue-light);
}

.drop-zone.dragover-invalid {
  border-color: var(--red);
  background: var(--trial-period-light-red-colour);
}

.drop-zone .tooltip {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(220, 53, 69, 0.9);
  color: var(--White);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  display: none;
  white-space: nowrap;
}

.drop-zone.dragover-invalid .tooltip {
  display: block;
}

.homepage-remove-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--Pure-Blue);
  color: var(--White);
  border: none;
  border-radius: 50%;
  width: 1.75rem;
  height: 1.75rem;
  font-size: 1.125rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.drop-zone.has-image .homepage-remove-btn {
  display: flex;
}

.homepage-footer-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8.125rem;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  /* column */
  flex-direction: column;
}

.homepage-footer-btn .homepage-upload-guide {
  color: var(--black);
  text-align: center;
  font-size: 1rem;
  font-weight: normal;
  font-family: var(--font-family-open-sans);
  margin-bottom: 1rem;
  transition: color 0.18s;
  cursor: pointer;
  text-decoration: underline;
}

.homepage-upload-guide:hover,
.homepage-upload-guide:active,
.homepage-upload-guide:focus {
  color: var(--Pure-Blue);
  cursor: pointer;
}

/* ---- What was left from the redesign review (13 Nov 2026, evening: "fix what is left") ---- */
.drop-words-touch { display: none; }
@media (pointer: coarse) {
  .drop-words-fine { display: none; }
  .drop-words-touch { display: inline; }
}

/* ---- Phones (13 Nov 2026, Israa): Make a pattern takes photos of the drawings and keeps them for later
   (script/make/phone_drawings.js); the Library is for looking, downloading and sharing, with no editing. ---- */
.phone-capture-panel {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px 104px;
  box-sizing: border-box;
  color: #000646;
}
/* !important: over h1's !important (and more) */
.phone-capture-panel h1 { margin: 4px 0 8px !important; font-family: var(--ds-font-head) !important; font-size: 1.75rem !important; line-height: 1.2 !important; }
/* (Room at its foot for the trial-ending banner too, while it shows.) */
body.trial-banner-shown .phone-capture-panel { padding-bottom: calc(104px + var(--trial-banner-height, 0px)); }
.pd-lead { margin: 0 0 18px; font-size: 1rem; line-height: 1.5; color: #4A5868; }
.pd-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pd-side { display: flex; flex-direction: column; gap: 8px; }
.pd-pic {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 2px dashed #B9C0D4;
  border-radius: 14px;
  background: #FFFFFF;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-pic.has-photo { border-style: solid; border-color: #0025E6; }
.pd-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-pic-label {
  position: relative;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-family: var(--font-family-roboto);
  font-weight: 600;
  font-size: 0.9375rem;
  color: #000646;
}
.pd-pic.has-photo .pd-pic-label { position: absolute; left: 8px; bottom: 8px; }
.pd-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1.5px solid #0025E6;
  border-radius: 999px;
  background: #FFFFFF;
  color: #0025E6;
  font-family: var(--font-family-roboto);
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
}
.pd-btn-primary { background: #0025E6; color: #FFFFFF; }
.pd-btn .pd-file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.pd-btn:focus-within { outline: 2px solid #0025E6; outline-offset: 2px; }
.pd-name { display: block; margin: 18px 0 6px; font-family: var(--font-family-roboto); font-weight: 500; color: #000646; }
#pdName {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 0 14px;
  border: 1px solid #0025E6;
  border-radius: 999px;
  background: #FFFFFF;
  color: #000646;
  font: inherit;
  font-size: 1rem;
}
.pd-keep {
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  background: #0025E6;
  color: #FFFFFF;
  font-family: var(--font-family-roboto);
  font-weight: 500;
  font-size: 1.0625rem;
  cursor: pointer;
}
.pd-keep:disabled { background: #B9C3F5; cursor: not-allowed; }
.pd-status { min-height: 1.4em; margin: 10px 0 0; font-size: 0.9375rem; color: #000646; }
.pd-tip { margin: 6px 0 0; font-size: 0.875rem; line-height: 1.5; color: #4A5868; }
.pd-kept { margin-top: 26px; }
/* !important: over h2's !important */
.pd-kept h2,
.kept-drawings h2 { margin: 0 0 10px !important; font-family: var(--font-family-roboto); font-size: 1.125rem !important; color: #000646; }
.pd-kept-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pd-kept-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #E3E3EA;
  border-radius: 14px;
  background: #FFFFFF;
}
.pd-thumbs { display: flex; gap: 6px; flex: none; }
.pd-thumbs img,
.pd-thumb-missing { width: 45px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid #E3E3EA; background: #F3F3F5; }
.pd-thumb-missing { display: flex; align-items: center; justify-content: center; font-size: 0.6875rem; color: #6B7280; }
.pd-kept-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pd-kept-text strong { font-family: var(--font-family-roboto); color: #000646; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-kept-text span { font-size: 0.8125rem; color: #6B7280; }
.pd-use {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #0025E6;
  color: #FFFFFF;
  font-family: var(--font-family-roboto);
  font-weight: 500;
  cursor: pointer;
}
.pd-remove {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #D5D8E0;
  border-radius: 999px;
  background: #FFFFFF;
  color: #B3261E;
  font-family: var(--font-family-roboto);
  cursor: pointer;
}
.kept-drawings { width: 81%; max-width: 1160px; margin: 14px auto 0; box-sizing: border-box; }
.kept-drawings .pd-kept-row { flex-direction: row; flex-wrap: wrap; }
.kept-drawings .pd-kept-row li { flex: 1 1 340px; max-width: 520px; }
@media (max-width: 1024px) {
  .kept-drawings { width: auto; margin: 14px 24px 0; }
}

