/* Marka DNA, direction B "Çekim föyü" (Berdan, 2026-11-28; Buket approved 2026-11-29): js/brand-dna*.js.
   Kağıt masa throughout: paper on the desk, white panels, one denim, Satoshi, mono for figures only. */


/* ---------- shared: the fan of prints, the video slot, read rows, swatches, rules ---------- */
.bd-fan { position: relative; flex: none; width: 46px; height: 34px; }
.bd-fan img {
  position: absolute; top: 3px; width: 22px; height: 28px; object-fit: cover;
  border: 2px solid var(--surface); box-shadow: 0 2px 5px -2px #16181b59; background: var(--raise);
}
.bd-fan img:nth-child(1) { left: 0; transform: rotate(-8deg); }
.bd-fan img:nth-child(2) { left: 11px; transform: rotate(-1deg); z-index: 1; }
.bd-fan img:nth-child(3) { left: 22px; transform: rotate(7deg); z-index: 2; }
.bd-fan.is-blank::before {
  content: ''; position: absolute; top: 3px; left: 11px; width: 22px; height: 28px;
  border: 1.5px dashed var(--dash); border-radius: 2px;
}

.bd-read-row { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 4px 14px; align-items: start; }
.bd-read-label { padding-top: 7px; font: var(--label-weight) var(--t-label)/1.3 var(--font-label); letter-spacing: var(--label-track); text-transform: uppercase; color: var(--ink-muted); }
.bd-read-text {
  width: 100%; min-height: 0; padding: 5px 8px; resize: none; field-sizing: content;
  border: 1px solid transparent; border-radius: var(--r-1); background: transparent;
  color: var(--ink); font: 450 var(--t-body)/1.5 var(--font-ui);
  transition: border-color 120ms, background-color 120ms;
}
.bd-read-text:hover { border-color: var(--line); background: var(--surface); }
.bd-read-text:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-wash); }
.bd-swatches { grid-column: 2; display: flex; gap: 5px; padding-left: 8px; }
.bd-swatch { width: 22px; height: 22px; border-radius: 4px; background: var(--c); box-shadow: inset 0 0 0 1px var(--line-strong); }
.bd-refs { grid-column: 3; grid-row: 1; display: flex; gap: 3px; padding-top: 7px; color: var(--ink-muted); font-size: var(--t-label); }
.bd-refs span { min-width: 20px; padding: 1px 3px; border-radius: 3px; background: var(--raise); text-align: center; }

.bd-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bd-rule-col { display: grid; align-content: start; gap: 6px; }
.bd-rule-col .bd-read-label { padding: 0; }
.bd-rule-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.bd-rule-list li { display: flex; align-items: center; gap: 8px; font-size: var(--t-body); }
.bd-rule-list .i { flex: none; width: 14px; height: 14px; }
.bd-rule-col:first-child .bd-rule-list .i { color: var(--ok); }
.bd-rule-col:last-child .bd-rule-list .i { color: var(--ink-muted); }
.bd-rule-add {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px;
  border: 0; border-radius: var(--r-1); background: transparent; color: var(--ink-muted); font: 500 var(--t-meta) var(--font-ui); cursor: pointer;
}
.bd-rule-add:hover { background: var(--wash-2); color: var(--ink); }
.bd-rule-add .i { width: 13px; height: 13px; }

.bd-skel {
  display: block; height: 12px; margin-top: 9px; border-radius: 99px;
  background: linear-gradient(90deg, var(--raise) 0 30%, var(--wash-2) 50%, var(--raise) 70% 100%) 0 0 / 300% 100%;
  animation: bd-shimmer 1.6s linear infinite;
}
.bd-read-row:nth-child(odd) .bd-skel { width: 78%; }
.bd-read-row:nth-child(even) .bd-skel { width: 58%; }
@keyframes bd-shimmer { to { background-position: -300% 0; } }
@media (prefers-reduced-motion: reduce) { .bd-skel, .bd-print.is-reading img { animation: none; } }

/* ---------- the studio picker (shared) ---------- */
.bd-pick-name { display: grid; gap: 1px; min-width: 0; }
.bd-pick-name b { overflow: hidden; font-size: var(--t-small); text-overflow: ellipsis; white-space: nowrap; }
.bd-pick-name small { color: var(--ink-muted); font-size: var(--t-meta); }
.bd-pick-empty { margin: 0; color: var(--ink-muted); font-size: var(--t-small); line-height: 1.5; }
.bd-pick-new { justify-self: start; display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Lookbook: the profiles as open cards (Buket 2026-11-30) ---------- */
.bd-cards .field-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bd-cards .field-label { display: inline-flex; align-items: center; gap: 6px; }
.bd-cards .field-label .i { width: 14px; height: 14px; color: var(--accent); }
.bd-card-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bd-card {
  display: grid; gap: 6px; min-width: 0; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-1);
  background: var(--surface); color: var(--ink); text-align: left; cursor: pointer;
  transition: border-color 120ms, background-color 120ms, transform var(--dur-press) var(--ease-out);
}
.bd-card:hover { border-color: var(--accent); }
.bd-card:active { transform: scale(.98); }
.bd-card.is-on { border-color: var(--accent); background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent); }
.bd-card-prints { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.bd-card-prints img, .bd-card-gap { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; background: var(--raise); }
.bd-card-gap { border: 1.5px dashed var(--dash); background: transparent; }
.bd-card-name { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 2px; }
.bd-card-name b { overflow: hidden; font-size: var(--t-small); text-overflow: ellipsis; white-space: nowrap; }
.bd-card-name .i { flex: none; width: 14px; height: 14px; margin-left: auto; color: var(--accent); }
.bd-card.is-blank { grid-column: 1 / -1; padding: 8px 10px; }
.bd-card.is-blank .bd-card-prints { display: none; }
.bd-card.is-blank .bd-card-name b { color: var(--ink-muted); font-weight: 600; }
.bd-card.is-blank.is-on .bd-card-name b { color: var(--ink); }
.bd-card-note { margin: 0; color: var(--ink-muted); font-size: var(--t-small); line-height: 1.45; }

.chip-group.bd-over > div { display: none; }
.chip-group.bd-over .field-label { display: inline; }

.bd-drop {
  position: relative; display: grid; justify-items: center; gap: 6px; padding: 30px 20px; border: 1.5px dashed var(--dash);
  border-radius: var(--r-2); background: var(--surface); color: var(--ink); text-align: center; cursor: pointer; transition: border-color 120ms, background-color 120ms;
}
.bd-drop:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.bd-drop > .i { width: 20px; height: 20px; color: var(--accent); }
.bd-drop b { font-size: var(--t-title); }
.bd-drop span { color: var(--ink-muted); font-size: var(--t-small); }
.bd-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- B: Çekim föyü ---------- */
@media (min-width: 1001px) { .bd-screen .output-panel { grid-row: 2 / 4; } }
.bd-desk { background: var(--paste) radial-gradient(var(--wb-dot) 1px, transparent 1.2px) 0 0 / 24px 24px; }
.bd-stage { min-height: 0; overflow-y: auto; padding: 36px 40px 56px; }
.bd-stage > * { margin-inline: auto; }

.bd-sheet {
  display: grid; gap: 26px; max-width: 900px; padding: 30px 34px 22px; background: var(--surface);
  box-shadow: 0 1px 0 #16181b14, 0 16px 34px -20px #16181b59;
}
.bd-sheet-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; min-height: 52px; }
.bd-sheet-name {
  flex: 1; min-width: 0; margin: -4px 0 0 -8px; padding: 2px 8px; border: 1px solid transparent; border-radius: var(--r-1);
  background: transparent; color: var(--ink); font: 700 var(--t-page)/1.15 var(--font-ui); letter-spacing: -.02em;
}
.bd-sheet-name:hover { border-color: var(--line); }
.bd-sheet-name:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.bd-contact { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0 0 4px; list-style: none; }
.bd-print { position: relative; display: grid; gap: 5px; transition: opacity 160ms var(--ease-out); }
.bd-print img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--raise); transition: box-shadow 160ms var(--ease-out); }
.bd-print-n { color: var(--ink-muted); font-size: var(--t-label); }
.is-citing .bd-print[data-n]:not(.is-cited) { opacity: .28; }
.bd-print.is-cited img { box-shadow: 0 0 0 2px var(--accent); }
.bd-print.is-cited .bd-print-n { color: var(--accent); font-weight: 700; }
.bd-print.is-reading img { animation: bd-pulse 1.4s ease-in-out infinite alternate; }
.bd-print.is-reading:nth-child(2n) img { animation-delay: .35s; }
.bd-print.is-reading:nth-child(3n) img { animation-delay: .7s; }
@keyframes bd-pulse { from { opacity: 1; } to { opacity: .45; } }
.bd-add {
  display: grid; place-content: center; justify-items: center; gap: 3px; width: 100%; aspect-ratio: 3 / 4; padding: 4px;
  border: 1.5px dashed var(--dash); background: transparent; color: var(--ink-muted); font: 600 var(--t-meta) var(--font-ui); text-align: center; cursor: pointer;
}
.bd-add:hover { border-color: var(--accent); color: var(--accent); }
.bd-add .i { width: 15px; height: 15px; }
.bd-add small { font-size: var(--t-label); }

.bd-spec { display: grid; gap: 2px; border-top: 1px solid var(--line-strong); }
.bd-spec .bd-read-row { grid-template-columns: 118px minmax(0, 1fr) auto; padding: 8px 0; border-bottom: 1px solid var(--line); }
.bd-spec .bd-read-row:hover .bd-refs span { background: var(--accent-wash); color: var(--accent); }
.bd-spec .bd-read-row.is-skeleton { grid-template-columns: 118px minmax(0, 1fr) 80px; min-height: 46px; }

.bd-side .field-label { display: block; margin-bottom: 2px; }
.bd-plist { display: grid; gap: 4px; }
.bd-prow {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 5px 9px 5px 6px; border: 1px solid transparent;
  border-radius: var(--r-1); background: transparent; color: var(--ink); text-align: left; cursor: pointer; transition: background-color 120ms;
}
.bd-prow:hover { background: var(--wash); }
.bd-prow.is-on { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-wash); }
.bd-new { justify-self: start; display: inline-flex; align-items: center; gap: 7px; margin-top: 2px; }
.bd-empty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; align-items: center; max-width: 980px; margin-top: 4vh; }
.bd-empty-text { display: grid; gap: 14px; }
.bd-empty-title { font-size: var(--t-head); letter-spacing: -.02em; line-height: 1.25; text-wrap: balance; }
.bd-empty-text p { margin: 0; color: var(--ink-muted); line-height: 1.55; max-width: 52ch; }
.bd-empty .bd-drop { margin-top: 6px; }

/* the empty desk has nothing to save: the side panel keeps the run-foot layout without the foot */
.gen .bd-side:not(:has(> .run-foot)) { padding: 0; gap: 0; }

/* ---------- finish review, 28 November ---------- */
.bd-sheet-name { flex: 1 1 260px; }
.bd-rule-text {
  flex: 1; min-width: 0; padding: 3px 6px; border: 1px solid transparent; border-radius: var(--r-1); background: transparent;
  color: var(--ink); font: 450 var(--t-body)/1.4 var(--font-ui);
}
.bd-rule-text:hover { border-color: var(--line); background: var(--surface); }
.bd-rule-text:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-wash); }
.bd-add { position: relative; }
.bd-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bd-drop:focus-within, .bd-add:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.bd-pick-name small.is-unsaved { color: var(--amber); font-weight: 600; }
.bd-contact > li { min-width: 0; }
.bd-add { box-sizing: border-box; min-width: 0; overflow: hidden; }

/* the sheet between 1000 and 1440 px: the desk can be as narrow as ~380 px */
.bd-stage { container-type: inline-size; }
@container (max-width: 700px) {
  .bd-contact { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bd-rules { padding-left: 0; }
}
@container (max-width: 620px) {
  .bd-stage > .bd-sheet { padding: 22px 20px 18px; }
  .bd-contact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bd-spec .bd-read-row, .bd-spec .bd-read-row.is-skeleton { grid-template-columns: minmax(0, 1fr) auto; }
  .bd-spec .bd-read-label { grid-column: 1; grid-row: 1; }
  .bd-spec .bd-refs { grid-column: 2; grid-row: 1; }
  .bd-spec .bd-read-text, .bd-spec .bd-skel, .bd-spec .bd-swatches { grid-column: 1 / -1; }
  .bd-rules { grid-template-columns: minmax(0, 1fr); }
  .bd-empty { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Ece's cold read, 29 November: the result first, one name, less to read ---------- */
.bd-ba { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.bd-ba-tile { position: relative; overflow: hidden; background: var(--raise); }
.bd-ba-tile img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.bd-ba-tile:first-child img { object-fit: contain; background: #fff; }
.bd-ba-label { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 4px; background: var(--surface); color: var(--ink); font: 600 var(--t-meta) var(--font-ui); }
.bd-ba-tile.is-dna { box-shadow: 0 0 0 2px var(--accent); }
.bd-ba-tile.is-dna .bd-ba-label { background: var(--accent-fill, var(--accent)); color: #fff; }
.bd-ba-cap { grid-column: 1 / -1; color: var(--ink-muted); font-size: var(--t-small); }
.bd-sec { margin: 6px 0 -12px; color: var(--ink-muted); font: var(--label-weight) var(--t-label)/1.3 var(--font-label); letter-spacing: var(--label-track); text-transform: uppercase; }
.bd-hint { margin: -14px 0 -10px; color: var(--ink-muted); font-size: var(--t-small); }
.bd-video-link { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border: 0; border-radius: var(--r-1); background: transparent; color: var(--accent); font: 600 var(--t-small) var(--font-ui); text-decoration: none; cursor: pointer; }
.bd-video-link:hover { background: var(--accent-wash); }
.bd-video-link .i { width: 14px; height: 14px; fill: currentColor; }
.bd-empty .bd-ba { align-self: center; }
.bd-over-line { margin: 6px 0 0; font-size: var(--t-small); line-height: 1.4; color: var(--ink); }
.bd-over-line small { color: var(--accent); font-size: var(--t-meta); font-weight: 600; }
.bd-pick-name .bd-swatches { grid-column: auto; padding-left: 0; gap: 3px; margin-top: 3px; }
.bd-pick-name .bd-swatch { width: 12px; height: 12px; border-radius: 2px; }

/* ---------- Phase 1: the garment check line, removing a photo, the plan lock ---------- */
/* a profiled run whose garment looks changed: one quiet line under the pictures, no button */
.bd-check {
  display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 0; padding: 8px 12px; border-radius: var(--r-1);
  background: var(--wash-2); color: var(--ink); font-size: var(--t-small); line-height: 1.45;
}
.bd-check .i { flex: none; width: 14px; height: 14px; margin-top: 2px; color: var(--amber); }
.bd-print-x {
  position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0;
  border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lift); cursor: pointer;
  opacity: 0; transition: opacity 120ms var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.bd-print:hover .bd-print-x, .bd-print-x:focus-visible { opacity: 1; }
.bd-print-x:active { transform: scale(.92); }
.bd-print-x .i { width: 12px; height: 12px; }
@media (hover: none) { .bd-print-x { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bd-print-x { transition: none; } }
.bd-lock { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.bd-lock > .i { flex: none; width: 20px; height: 20px; color: var(--ink-muted); }
.bd-lock p { flex: 1 1 280px; margin: 0; font-size: var(--t-body); line-height: 1.5; }
.bd-locked-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.bd-locked-list .bd-prow { cursor: default; }
.bd-locked-list .bd-pick-name { flex: 1; }
/* a file dragged over a screen that takes it: the drop zone (or the desk under an open profile) says where it lands */
.bd-screen.is-dropping .bd-drop { border-color: var(--accent); background: var(--accent-wash); }
/* one accent only: the drop zone when it is on screen, else the desk's ring */
.bd-screen.is-dropping .bd-desk:not(:has(.bd-drop)) { box-shadow: inset 0 0 0 2px var(--accent); }
