/* =========================================================
   The Lab — Design Reviews (app surface)
   File: /the-lab/app/assets/css/design-reviews.css
   Rides on the shared shell (the-lab.css). Scoped to .dr-.
   ========================================================= */

.dr { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 22px; align-items: start; }
@media (max-width: 1080px) { .dr { grid-template-columns: 1fr; } .dr-rail { order: -1; } }

/* ---------- intro ---------- */
.dr-intro {
  background: linear-gradient(135deg, #241a5e 0%, #4338ca 60%, #6366f1 100%);
  color: #eafffb; border-radius: 20px; padding: 26px 28px; position: relative; overflow: hidden;
  box-shadow: 0 22px 50px -26px rgba(30,20,90,.5);
}
.dr-intro::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(110,231,216,.35), transparent 70%);
}
.dr-intro-eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #6ee7d8; }
.dr-intro-h { margin: 8px 0 6px; font-size: 25px; line-height: 1.12; font-weight: 900; letter-spacing: -.025em; max-width: 22ch; }
.dr-intro-p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #c7f2ea; max-width: 62ch; font-weight: 500; }

/* ---------- tabs ---------- */
.dr-tabs { display: flex; gap: 6px; margin: 18px 0 4px; border-bottom: 1px solid var(--lab-line); }
.dr-tab {
  appearance: none; border: 0; background: transparent; cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 750; color: #64748b; padding: 11px 14px 13px; position: relative;
  display: inline-flex; align-items: center; gap: 7px;
}
.dr-tab:hover { color: var(--lab-ink); }
.dr-tab.is-active { color: #4338ca; }
.dr-tab.is-active::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2.5px; border-radius: 3px; background: #4338ca; }
.dr-tab-badge {
  font-size: 10.5px; font-weight: 800; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: rgba(99,102,241,.12); color: #4338ca; display: inline-grid; place-items: center;
}
.dr-tab.is-active .dr-tab-badge { background: #4338ca; color: #fff; }

.dr-panel { display: none; padding-top: 18px; }
.dr-panel.is-active { display: block; animation: dr-fade .28s ease; }
@keyframes dr-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- request form ---------- */
.dr-req { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .dr-req { grid-template-columns: 1fr; } }

.dr-form { display: grid; gap: 16px; }
.dr-frow { display: grid; gap: 7px; }
.dr-frow--2 { grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .dr-frow--2 { grid-template-columns: 1fr; } }
.dr-lab { font-size: 12px; font-weight: 750; color: var(--lab-ink); letter-spacing: -.01em; }
.dr-lab em { font-style: normal; font-weight: 600; color: #94a3b8; }
.dr-in, .dr-sel, .dr-ta {
  width: 100%; box-sizing: border-box; font-family: inherit; font-size: 13.5px; color: var(--lab-ink);
  background: #fff; border: 1px solid #d9e2e2; border-radius: 11px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s;
}
.dr-ta { min-height: 84px; resize: vertical; line-height: 1.5; }
.dr-in:focus, .dr-sel:focus, .dr-ta:focus { outline: 0; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.18); }
.dr-count { font-size: 11px; font-weight: 650; color: #94a3b8; text-align: right; }

/* segmented control (stage, scope) */
.dr-seg { display: flex; gap: 6px; background: #eef3f3; border-radius: 12px; padding: 4px; }
.dr-seg button {
  flex: 1; appearance: none; border: 0; cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 700;
  color: #64748b; background: transparent; border-radius: 9px; padding: 8px 6px; transition: all .15s;
}
.dr-seg button.is-on { background: #fff; color: #4338ca; box-shadow: 0 2px 8px -3px rgba(6,17,31,.2); }

/* lens picker */
.dr-lenses { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 560px) { .dr-lenses { grid-template-columns: 1fr; } }
.dr-chip-pick {
  appearance: none; text-align: left; cursor: pointer; font-family: inherit; background: #fff;
  border: 1px solid #d9e2e2; border-radius: 12px; padding: 10px 12px; transition: all .15s; display: grid; gap: 2px;
}
.dr-chip-pick strong { font-size: 12.5px; font-weight: 750; color: var(--lab-ink); }
.dr-chip-pick span { font-size: 11px; font-weight: 550; color: #94a3b8; line-height: 1.35; }
.dr-chip-pick.is-on { border-color: #6366f1; background: rgba(99,102,241,.06); box-shadow: 0 0 0 2px rgba(99,102,241,.2) inset; }
.dr-chip-pick.is-on strong { color: #4338ca; }

/* drop zone */
.dr-drop {
  border: 1.5px dashed #c4d3d2; border-radius: 14px; background: #fbfdfd; padding: 20px 16px; text-align: center;
  cursor: pointer; transition: all .16s;
}
.dr-drop:hover, .dr-drop.is-drag { border-color: #6366f1; background: rgba(99,102,241,.06); }
.dr-drop-ic { width: 38px; height: 38px; border-radius: 11px; margin: 0 auto 8px; display: grid; place-items: center; background: rgba(99,102,241,.12); color: #4338ca; font-size: 19px; }
.dr-drop strong { display: block; font-size: 13px; font-weight: 750; color: var(--lab-ink); }
.dr-drop span { display: block; margin-top: 3px; font-size: 11.5px; color: #64748b; font-weight: 550; }
.dr-drop-types { margin-top: 8px; font-size: 10.5px; color: #94a3b8; font-weight: 600; }
.dr-file {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid #d9e2e2; border-radius: 12px; background: #fff; margin-top: 8px;
}
.dr-file-ic { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(99,102,241,.12); color: #4338ca; font-size: 15px; }
.dr-file-tx { flex: 1; min-width: 0; }
.dr-file-tx strong { display: block; font-size: 12.5px; font-weight: 700; color: var(--lab-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-file-tx span { font-size: 11px; color: #94a3b8; font-weight: 600; }
.dr-file-x { flex: none; appearance: none; border: 0; background: transparent; cursor: pointer; color: #b6c0cc; font-size: 16px; padding: 4px; border-radius: 7px; }
.dr-file-x:hover { color: #e11d48; background: rgba(225,29,72,.08); }
.dr-file-bar { height: 4px; border-radius: 3px; background: rgba(99,102,241,.12); overflow: hidden; margin-top: 6px; }
.dr-file-bar i { display: block; height: 100%; background: #6366f1; width: 0; transition: width .2s; }

/* primary button */
.dr-btn {
  appearance: none; border: 0; cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 750;
  border-radius: 12px; padding: 12px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #4338ca; color: #fff; text-decoration: none; box-shadow: 0 10px 24px -12px rgba(67,56,202,.6);
}
.dr-btn:hover { background: #3730a3; }
.dr-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.dr-btn--ghost { background: #eef3f3; color: #4338ca; box-shadow: none; }
.dr-btn--ghost:hover { background: #e2ecec; }
.dr-btn--sm { padding: 9px 15px; font-size: 12.5px; border-radius: 10px; }
.dr-form-status { font-size: 12px; font-weight: 700; color: #4338ca; margin: 0; }

/* live preview */
.dr-preview-lab { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; margin: 0 0 10px; }
.dr-pcard {
  background: #fff; border: 1px solid var(--lab-line); border-radius: 16px; padding: 18px; position: sticky; top: 14px;
  box-shadow: 0 14px 34px -22px rgba(6,17,31,.4);
}
.dr-pcard-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.dr-chip {
  font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 4px 10px; border-radius: 20px;
  background: rgba(99,102,241,.12); color: #4338ca;
}
.dr-pcard h3 { margin: 0 0 4px; font-size: 16px; font-weight: 850; letter-spacing: -.02em; color: var(--lab-ink); }
.dr-pcard-goal { margin: 0 0 12px; font-size: 12.5px; line-height: 1.5; color: #64748b; font-weight: 500; }
.dr-pcard-focus { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.dr-minichip { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 14px; background: rgba(99,102,241,.06); color: #4338ca; border: 1px solid rgba(99,102,241,.28); }
.dr-pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 11px; border-top: 1px solid var(--lab-line); font-size: 11.5px; font-weight: 650; color: #94a3b8; }
.dr-pcard-scope { color: #4338ca; font-weight: 750; }

/* ---------- review cards (my reviews / queue) ---------- */
.dr-grid { display: grid; gap: 12px; }
.dr-card {
  background: #fff; border: 1px solid var(--lab-line); border-radius: 15px; padding: 16px 17px; cursor: pointer;
  transition: transform .14s, box-shadow .14s, border-color .14s; text-align: left; width: 100%; appearance: none; font-family: inherit;
}
.dr-card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -20px rgba(6,17,31,.34); border-color: #cdd9d8; }
.dr-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; flex-wrap: wrap; }
.dr-card h3 { margin: 0 0 5px; font-size: 15px; font-weight: 800; letter-spacing: -.02em; color: var(--lab-ink); }
.dr-card-goal { margin: 0 0 12px; font-size: 12.5px; line-height: 1.5; color: #64748b; font-weight: 500; }
.dr-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; font-weight: 650; color: #94a3b8; }
.dr-card-by { display: inline-flex; align-items: center; gap: 7px; }
.dr-av { width: 24px; height: 24px; border-radius: 7px; background: radial-gradient(120% 120% at 30% 20%,#4338ca,#3730a3); color: #eafffb; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; flex: none; }

/* status pills */
.dr-status { font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 4px 9px; border-radius: 20px; }
.dr-status--open      { background: #eef3f3; color: #64748b; }
.dr-status--in_review { background: #e0f2fe; color: #0369a1; }
.dr-status--revisions { background: #fef3c7; color: #b45309; }
.dr-type-hint { margin: 6px 0 0; font-size: 11.5px; line-height: 1.45; color: #5b5a86; background: rgba(99,102,241,.06); border: 1px solid rgba(99,102,241,.16); border-radius: 9px; padding: 8px 10px; }
.dr-status--resolved  { background: #dcfce7; color: #15803d; }
.dr-scope-tag { font-size: 10.5px; font-weight: 750; color: #94a3b8; }

/* signal tally dots */
.dr-tally { display: inline-flex; gap: 3px; align-items: center; }
.dr-tally i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dr-tally i.strong { background: #22c55e; }
.dr-tally i.developing { background: #f59e0b; }
.dr-tally i.needs_work { background: #ef4444; }

/* empty / loading */
.dr-empty { text-align: center; padding: 40px 22px; border: 1px dashed #d5dee0; border-radius: 16px; background: #fbfdfd; }
.dr-empty strong { display: block; font-size: 15px; font-weight: 850; letter-spacing: -.02em; color: var(--lab-ink); }
.dr-empty span { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: #64748b; font-weight: 550; max-width: 44ch; margin-left: auto; margin-right: auto; }
.dr-loading { padding: 30px; text-align: center; font-size: 12.5px; font-weight: 650; color: #94a3b8; }

/* ---------- rail ---------- */
.dr-rail { display: grid; gap: 14px; position: sticky; top: 14px; }
.dr-rail-card { background: #fff; border: 1px solid var(--lab-line); border-radius: 16px; padding: 17px; }
.dr-rail-card h4 { margin: 0 0 12px; font-size: 12.5px; font-weight: 850; letter-spacing: -.01em; color: var(--lab-ink); }
.dr-steps { display: grid; gap: 13px; }
.dr-step { display: flex; gap: 11px; align-items: flex-start; }
.dr-step-n { flex: none; width: 24px; height: 24px; border-radius: 8px; background: rgba(99,102,241,.12); color: #4338ca; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.dr-step-tx strong { display: block; font-size: 12.5px; font-weight: 750; color: var(--lab-ink); }
.dr-step-tx span { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.45; color: #64748b; font-weight: 550; }
.dr-lens-mini { display: grid; gap: 8px; }
.dr-lens-mini div { display: flex; gap: 9px; align-items: baseline; }
.dr-lens-mini b { font-size: 12px; font-weight: 800; color: #4338ca; min-width: 62px; }
.dr-lens-mini span { font-size: 11.5px; line-height: 1.4; color: #64748b; font-weight: 550; }

/* ---------- drawer (detail) ---------- */
.dr-scrim { position: fixed; inset: 0; background: rgba(7,17,31,.42); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .28s; z-index: 200; }
.dr-scrim.is-open { opacity: 1; pointer-events: auto; }
.dr-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(560px, 94vw); background: #f4f8f8; z-index: 201;
  transform: translateX(100%); transition: transform .34s cubic-bezier(.3,.9,.3,1); display: flex; flex-direction: column;
  box-shadow: -30px 0 60px -30px rgba(6,17,31,.5);
}
.dr-drawer.is-open { transform: none; }
.dr-dhead { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 16px; background: #fff; border-bottom: 1px solid var(--lab-line); }
.dr-dhead-tx { flex: 1; min-width: 0; }
.dr-dhead h2 { margin: 6px 0 4px; font-size: 18px; font-weight: 850; letter-spacing: -.025em; color: var(--lab-ink); }
.dr-dhead-meta { font-size: 12px; font-weight: 600; color: #64748b; }
.dr-dclose { flex: none; appearance: none; border: 1px solid var(--lab-line); background: #fff; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 17px; color: #64748b; display: grid; place-items: center; }
.dr-dclose:hover { color: var(--lab-ink); border-color: #cdd9d8; }
.dr-dbody { flex: 1; overflow-y: auto; padding: 20px 22px 30px; display: grid; gap: 18px; }
.dr-dsect h4 { margin: 0 0 9px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.dr-dgoal { margin: 0; font-size: 14px; line-height: 1.55; color: var(--lab-ink); font-weight: 500; }
.dr-dfocus-line { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: #64748b; font-weight: 500; }
.dr-asset { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--lab-line); border-radius: 13px; background: #fff; text-decoration: none; }
.dr-asset:hover { border-color: #6366f1; }
.dr-asset-tx { flex: 1; min-width: 0; }
.dr-asset-tx strong { display: block; font-size: 13px; font-weight: 750; color: var(--lab-ink); }
.dr-asset-tx span { font-size: 11.5px; color: #4338ca; font-weight: 650; }

/* signal composer */
.dr-signal-form { background: #fff; border: 1px solid var(--lab-line); border-radius: 14px; padding: 16px; display: grid; gap: 13px; }
.dr-rate-row { display: grid; gap: 7px; }
.dr-rate-row > label { font-size: 12.5px; font-weight: 750; color: var(--lab-ink); }
.dr-rates { display: flex; gap: 6px; }
.dr-rate {
  flex: 1; appearance: none; cursor: pointer; font-family: inherit; font-size: 11.5px; font-weight: 750;
  border: 1px solid #d9e2e2; background: #fff; border-radius: 10px; padding: 9px 6px; color: #64748b; transition: all .14s;
}
.dr-rate[data-r="strong"].is-on     { border-color: #22c55e; background: #f0fdf4; color: #15803d; }
.dr-rate[data-r="developing"].is-on { border-color: #f59e0b; background: #fffbeb; color: #b45309; }
.dr-rate[data-r="needs_work"].is-on { border-color: #ef4444; background: #fef2f2; color: #b91c1c; }

/* signal list */
.dr-signal { background: #fff; border: 1px solid var(--lab-line); border-radius: 13px; padding: 14px 15px; }
.dr-signal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; flex-wrap: wrap; }
.dr-signal-lens { font-size: 12px; font-weight: 800; color: var(--lab-ink); }
.dr-signal-rate { font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 3px 8px; border-radius: 14px; }
.dr-signal-rate.strong { background: #dcfce7; color: #15803d; }
.dr-signal-rate.developing { background: #fef3c7; color: #b45309; }
.dr-signal-rate.needs_work { background: #fee2e2; color: #b91c1c; }
.dr-signal-role { font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 7px; border-radius: 12px; background: #ede9fe; color: #6d28d9; }
.dr-signal-role.peer { background: rgba(99,102,241,.12); color: #4338ca; }
.dr-signal p { margin: 0; font-size: 12.5px; line-height: 1.55; color: #475569; font-weight: 500; }
.dr-signal-by { margin-top: 8px; font-size: 11px; font-weight: 650; color: #94a3b8; }

/* owner status controls */
.dr-owner-ctl { display: flex; flex-wrap: wrap; gap: 8px; }
.dr-summary { background: linear-gradient(135deg,#4338ca,#3730a3); color: #eafffb; border-radius: 14px; padding: 16px 18px; }
.dr-summary h4 { color: #6ee7d8; margin: 0 0 8px; }
.dr-summary p { margin: 0; font-size: 13px; line-height: 1.55; font-weight: 500; }
