/* studio-v3.css — Course Conditions workroom design system */
/* Loaded by workspace.js render() alongside existing stylesheets */

/* ── Design tokens ── */
:root {
  --v3-cream: #f5f0e8;
  --v3-cream-mid: #ede7d9;
  --v3-cream-dark: #d9d0be;
  --v3-green: #1c3a2a;
  --v3-green-mid: #2a5040;
  --v3-green-light: #3d6b52;
  --v3-green-faint: #e8f0eb;
  --v3-text: #1a2820;
  --v3-text-mid: #4a5e54;
  --v3-text-light: #7a8e84;
  --v3-border: #c8bfac;
  --v3-radius: 8px;
  --v3-radius-lg: 12px;
  --v3-topbar-h: 52px;
  --v3-brand-h: 32px;
}

/* ── Global reset for v3 context ── */
.v3-app *, .v3-app *::before, .v3-app *::after {
  box-sizing: border-box;
}

.v3-app {
  background: var(--v3-cream);
  color: var(--v3-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* ── Top bar ── */
.v3-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--v3-topbar-h);
  background: var(--v3-green);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--v3-green-mid);
}

.v3-topbar-left {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  text-decoration: none;
}

.v3-logo-mark {
  height: 26px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

.v3-wordmark {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  opacity: 0.92;
  white-space: nowrap;
}

/* ── Top bar nav ── */
.v3-topbar-nav {
  display: flex;
  gap: 2px;
  margin-left: 12px;
}

.v3-nav-link {
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.v3-nav-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
.v3-nav-link.v3-active, .v3-nav-link[aria-current] { background: rgba(255,255,255,0.14); color: #fff; }

/* ── New idea button ── */
.v3-btn-new {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  background: var(--v3-cream);
  color: var(--v3-green);
  border: none;
  border-radius: 6px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  transition: background 0.15s;
}
.v3-btn-new:hover { background: #fff; }
.v3-btn-new svg { flex-shrink: 0; }

/* ── Account menu in topbar ── */
.v3-account-wrap {
  position: relative;
  flex-shrink: 0;
}
.v3-account-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.v3-account-toggle:hover { background: rgba(255,255,255,0.28); }

/* ── Brand state line ── */
.v3-brand-state {
  height: var(--v3-brand-h);
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-size: 11.5px;
  color: var(--v3-text-light);
  background: var(--v3-cream-mid);
  border-bottom: 1px solid var(--v3-cream-dark);
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

/* ── Main workspace layout ── */
.v3-workspace {
  display: grid;
  grid-template-columns: 1fr 320px;
  height: calc(100vh - var(--v3-topbar-h) - var(--v3-brand-h));
  overflow: hidden;
}

/* ── Surface (left column) ── */
.v3-surface {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Published look tile ── */
.v3-tile-look {
  background: #fff;
  border: 1px solid var(--v3-border);
  border-radius: var(--v3-radius-lg);
  overflow: hidden;
  max-width: 480px;
  align-self: flex-start;
}

.v3-tile-img-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--v3-cream-mid);
}

.v3-look-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.v3-tile-label {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--v3-green-mid);
  background: var(--v3-green-faint);
  border-top: 1px solid var(--v3-border);
}
.v3-tile-label svg { flex-shrink: 0; }

/* ── Concept card section ── */
.v3-concepts-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v3-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v3-text-light);
}

.v3-concepts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.v3-concept-card {
  background: #fff;
  border: 1px solid var(--v3-border);
  border-radius: var(--v3-radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.1s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.v3-concept-card:hover {
  box-shadow: 0 4px 16px rgba(28,58,42,0.12);
  transform: translateY(-1px);
}

.v3-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: var(--v3-cream-mid);
}

.v3-card-no-img {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--v3-cream-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--v3-text-light);
  text-align: center;
  padding: 8px;
}

.v3-card-meta {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.v3-card-tag {
  font-size: 10px;
  color: var(--v3-text-light);
  letter-spacing: 0.03em;
}

.v3-card-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--v3-text);
}

/* ── Composer pane (right column) ── */
.v3-composer-pane {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-left: 1px solid var(--v3-border);
  overflow: hidden;
}

.v3-composer-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--v3-border);
  flex-shrink: 0;
}

.v3-composer-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v3-text-light);
}

/* ── Thread feed ── */
.v3-thread-feed {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v3-thread-empty {
  color: var(--v3-text-light);
  font-size: 13px;
  text-align: center;
  margin-top: 24px;
}

.v3-thread-empty a {
  color: var(--v3-green-light);
}

.v3-note-card {
  background: var(--v3-green-faint);
  border: 1px solid var(--v3-cream-dark);
  border-radius: var(--v3-radius);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.v3-note-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--v3-text-mid);
}

.v3-note-author {
  font-weight: 600;
  color: var(--v3-text);
}

.v3-note-time {
  color: var(--v3-text-light);
  font-size: 10px;
}

.v3-note-body {
  font-size: 13px;
  color: var(--v3-text);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
}

/* ── Composer box ── */
.v3-composer-box {
  flex-shrink: 0;
  padding: 12px 14px;
  border-top: 1px solid var(--v3-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--v3-cream);
}

.v3-thought-input {
  width: 100%;
  border: 1px solid var(--v3-border);
  border-radius: var(--v3-radius);
  padding: 9px 11px;
  font-size: 13px;
  font-family: inherit;
  color: var(--v3-text);
  background: #fff;
  resize: none;
  line-height: 1.5;
  transition: border-color 0.15s;
}
.v3-thought-input:focus {
  outline: none;
  border-color: var(--v3-green-light);
}
.v3-thought-input::placeholder { color: var(--v3-text-light); }

.v3-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.v3-attach-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--v3-text-mid);
  font-size: 12px;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.15s;
}
.v3-attach-btn:hover { background: var(--v3-cream-dark); }
.v3-attach-btn svg { flex-shrink: 0; }

.v3-send-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--v3-green);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.v3-send-btn:hover { background: var(--v3-green-mid); }

.v3-guest-prompt {
  font-size: 12px;
  color: var(--v3-text-mid);
  padding: 8px 0 4px;
}
.v3-guest-prompt a { color: var(--v3-green-light); }

/* ── Shell overrides — replace workspace chrome ── */
body.v3-shell {
  background: var(--v3-cream);
  overflow-x: hidden;
}

/* Hide legacy sidebar when v3 shell is active */
body.v3-shell .sidebar,
body.v3-shell .app > .topbar,
body.v3-shell .workspace-tabs,
body.v3-shell .app-footer {
  display: none !important;
}

body.v3-shell main.app {
  display: block;
  margin: 0;
  padding: 0;
}

body.v3-shell #workspace-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  overflow: visible;
}

/* ── v3 inner content area ── */
.v3-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── General content page overrides ── */
body.v3-shell .page-heading {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--v3-cream-dark);
  background: var(--v3-cream-mid);
}

body.v3-shell .page-heading h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--v3-text);
  margin: 4px 0 0;
}

body.v3-shell .page-heading .eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--v3-text-light);
  margin: 0;
}

body.v3-shell .inspiration-wall,
body.v3-shell .original-pinboard {
  padding: 16px 20px;
}

/* ── Inspiration wall visual polish ── */
body.v3-shell .lw-notice {
  padding: 10px 20px;
  background: var(--v3-green-faint);
  border-bottom: 1px solid var(--v3-cream-dark);
  font-size: 12px;
  color: var(--v3-text-mid);
}

body.v3-shell .lw-notice a {
  color: var(--v3-green-light);
}

body.v3-shell .lw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 16px 20px;
}

body.v3-shell .lw-card {
  background: #fff;
  border: 1px solid var(--v3-border);
  border-radius: var(--v3-radius);
  overflow: hidden;
}

body.v3-shell .lw-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

body.v3-shell .inspiration-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--v3-cream-dark);
  font-size: 12px;
  color: var(--v3-text-mid);
}

body.v3-shell .lw-add {
  margin: 12px 20px;
}

body.v3-shell .lw-contribute {
  background: #fff;
  border: 1px solid var(--v3-border);
  border-radius: var(--v3-radius);
  padding: 16px;
  margin-top: 8px;
}

body.v3-shell .lw-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  margin-bottom: 10px;
}

body.v3-shell .lw-form input,
body.v3-shell .lw-form textarea {
  border: 1px solid var(--v3-border);
  border-radius: 5px;
  padding: 7px 9px;
  font-size: 13px;
  font-family: inherit;
  background: var(--v3-cream);
  color: var(--v3-text);
}
body.v3-shell .lw-form input:focus,
body.v3-shell .lw-form textarea:focus {
  outline: none;
  border-color: var(--v3-green-light);
  background: #fff;
}

body.v3-shell .section-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 20px 8px;
}

body.v3-shell .section-heading h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--v3-text);
  margin: 0;
}

body.v3-shell .section-heading .muted {
  font-size: 12px;
  color: var(--v3-text-light);
}

body.v3-shell .direction-continuation {
  padding: 20px;
  background: var(--v3-cream-mid);
  border-top: 1px solid var(--v3-cream-dark);
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ── lw-tabs nav ── */
body.v3-shell .lw-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--v3-cream-dark);
  background: var(--v3-cream-mid);
}

body.v3-shell .lw-tabs a {
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 13px;
  text-decoration: none;
  color: var(--v3-text-mid);
  transition: background 0.15s;
}
body.v3-shell .lw-tabs a:hover { background: var(--v3-cream-dark); }
body.v3-shell .lw-tabs a[aria-current] {
  background: var(--v3-green);
  color: #fff;
}

/* ── Concept studio create form ── */
body.v3-shell .cs-prompt-panel {
  border: 1px solid var(--v3-border);
  border-radius: var(--v3-radius-lg);
  background: #fff;
  padding: 0;
  overflow: hidden;
}

body.v3-shell .concept-studio {
  padding: 20px;
  max-width: 840px;
}

body.v3-shell .cs-heading {
  padding: 0 0 20px;
}

body.v3-shell .cs-heading h1 {
  font-size: 20px;
  color: var(--v3-text);
}

body.v3-shell .cs-form {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.v3-shell .cs-prompt-label textarea {
  width: 100%;
  border: 1px solid var(--v3-border);
  border-radius: var(--v3-radius);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--v3-text);
  background: var(--v3-cream);
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
  transition: border-color 0.15s;
}
body.v3-shell .cs-prompt-label textarea:focus {
  outline: none;
  border-color: var(--v3-green-light);
  background: #fff;
}

body.v3-shell .button.dark,
body.v3-shell button.button.dark {
  background: var(--v3-green);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}
body.v3-shell .button.dark:hover { background: var(--v3-green-mid); }

/* ── Account details dropdown ── */
.v3-account-details {
  position: relative;
  flex-shrink: 0;
  margin-left: 6px;
}

.v3-account-details summary {
  list-style: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  user-select: none;
  transition: background 0.15s;
}
.v3-account-details summary::-webkit-details-marker { display: none; }
.v3-account-details[open] summary,
.v3-account-details summary:hover { background: rgba(255,255,255,0.28); }

.v3-account-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--v3-border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  min-width: 180px;
  z-index: 200;
  padding: 6px 0;
}

.v3-account-panel strong {
  display: block;
  padding: 6px 14px 6px;
  font-size: 13px;
  border-bottom: 1px solid var(--v3-cream-dark);
  margin-bottom: 2px;
}

.v3-account-panel a {
  display: block;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--v3-text);
  text-decoration: none;
}
.v3-account-panel a:hover { background: var(--v3-green-faint); }

.v3-account-panel form {
  padding: 4px 14px 6px;
  margin-top: 2px;
  border-top: 1px solid var(--v3-cream-dark);
}

.v3-signout-btn {
  font-size: 13px;
  color: var(--v3-text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  width: 100%;
  text-align: left;
}
.v3-signout-btn:hover { color: var(--v3-green); }

/* Legacy sidebar hidden by v3 */
body.v3-shell .sidebar { display: none !important; }

/* ── Concept studio create form enhancements ── */
body.v3-shell .cs-attach {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--v3-cream);
  border: 1px solid var(--v3-border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--v3-text-mid);
  cursor: pointer;
  transition: background 0.15s;
}
body.v3-shell .cs-attach:hover { background: var(--v3-cream-dark); }

body.v3-shell .cs-note {
  font-size: 12px;
  color: var(--v3-text-light);
  line-height: 1.5;
}

body.v3-shell .cs-optional summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--v3-text-mid);
  padding: 6px 0;
}

body.v3-shell .cs-panel {
  background: var(--v3-cream-mid);
  border: 1px solid var(--v3-border);
  border-radius: var(--v3-radius);
  padding: 16px;
  margin: 12px 0;
}

body.v3-shell .cs-heading p {
  font-size: 13px;
  color: var(--v3-text-mid);
}

body.v3-shell .cs-notice {
  background: var(--v3-green-faint);
  border: 1px solid var(--v3-border);
  border-radius: var(--v3-radius);
  padding: 12px 14px;
  font-size: 13px;
}

body.v3-shell .cs-ack {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  background: var(--v3-green-faint);
  border: 1px solid var(--v3-border);
  border-radius: 6px;
  padding: 12px;
}

body.v3-shell .cs-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--v3-cream-dark);
}

body.v3-shell .cs-nav a,
body.v3-shell .cs-nav span {
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 13px;
  text-decoration: none;
  color: var(--v3-text-mid);
}

body.v3-shell .cs-nav a:hover { background: var(--v3-cream-dark); }

/* ── v3 Footer ── */
.v3-footer {
  padding: 12px 20px;
  font-size: 11px;
  color: var(--v3-text-light);
  background: var(--v3-cream-mid);
  border-top: 1px solid var(--v3-cream-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Screen-reader only utility ── */
.v3-sr-only,
.v3-content .page-heading.workspace-toolbar {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Mobile ── */
@media (max-width: 700px) {
  .v3-topbar { gap: 8px; padding: 0 12px; }
  .v3-wordmark { display: none; }
  .v3-topbar-nav { gap: 0; margin-left: 6px; }
  .v3-nav-link { font-size: 12px; padding: 4px 7px; }
  .v3-brand-state { padding: 0 12px; }

  .v3-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    overflow: visible;
  }

  .v3-surface {
    overflow-x: hidden;
    overflow-y: visible;
    padding: 12px;
    gap: 14px;
  }

  .v3-tile-look {
    max-width: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: var(--v3-radius);
  }

  .v3-tile-img-wrap {
    width: 120px;
    min-width: 120px;
    aspect-ratio: unset;
    height: 140px;
    border-radius: 0;
  }

  .v3-tile-label {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border-top: none;
    border-left: 1px solid var(--v3-border);
    padding: 12px;
    gap: 6px;
    font-size: 13px;
  }

  .v3-concepts-grid {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    max-width: 100%;
  }

  .v3-concepts-row { overflow: hidden; max-width: 100%; }

  .v3-concept-card {
    min-width: 130px;
    max-width: 130px;
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  .v3-composer-pane {
    border-left: none;
    border-top: 1px solid var(--v3-border);
    height: auto;
    overflow: visible;
  }

  .v3-thread-feed {
    overflow: visible;
    max-height: 220px;
    overflow-y: auto;
  }

  .v3-btn-new { padding: 6px 10px; font-size: 12px; }

  body.v3-shell .concept-studio { padding: 12px; }
}

/* Parent review fix: keep the top bar inside the viewport on narrow screens */
.v3-topbar { min-width: 0; }
.v3-topbar-nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.v3-topbar-nav::-webkit-scrollbar { display: none; }
.v3-btn-new { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 700px) {
  .v3-topbar { padding: 0 10px; gap: 6px; }
  .v3-topbar-nav { margin-left: 0; flex: 1 1 auto; }
  .v3-nav-link { padding: 4px 6px; font-size: 12px; }
  .v3-btn-new { padding: 5px 9px; font-size: 12px; }
  .v3-btn-new span { display: none; }
  .v3-account-details { margin-left: 0; }
  .v3-account-panel { right: 0; max-width: calc(100vw - 20px); }
}

/* Parent review fix: mobile — no overflow, composer on the first screen */
@media (max-width: 700px) {
  .v3-workspace { display: flex; flex-direction: column; min-width: 0; }
  .v3-surface, .v3-concepts-row, .v3-concepts-grid { min-width: 0; max-width: 100%; }
  .v3-concepts-grid { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .v3-concept-card { flex: 0 0 128px; }
  /* Composer directly under the look tile + concept strip; everything else follows */
  .v3-composer-pane { order: 1; }
  .v3-surface { order: 0; display: contents; }
  .v3-tile-look { order: 0; }
  .v3-concepts-row { order: 1; }
  .v3-composer-pane { order: 2; padding: 12px; }
  .v3-surface > .brand-snapshot, .v3-surface > .studio-reference-section { order: 3; }
  .v3-thread-feed { max-height: 132px; }
  .v3-tasks-panel { display: none; }
}

/* Parent review fix: published look is landscape — never crop the golfers */
.v3-tile-look { max-width: 100%; width: 100%; align-self: stretch; }
.v3-tile-img-wrap { aspect-ratio: auto; background: var(--v3-cream-mid); }
.v3-look-img { width: 100%; height: auto; max-height: 520px; object-fit: contain; object-position: center; display: block; }
.v3-concept-card { min-width: 0; background: #fff; border: 1px solid var(--v3-border); }
.v3-card-img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; border: 0; background: var(--v3-cream-mid); }
.v3-card-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
@media (max-width: 700px) {
  .v3-tile-look { display: block; }
  .v3-tile-img-wrap { width: 100%; min-width: 0; height: auto; aspect-ratio: 16/9; }
  .v3-look-img { height: 100%; max-height: none; object-fit: contain; }
  .v3-concepts-grid { padding-right: 12px; }
  .v3-concept-card { flex: 0 0 132px; }
  .v3-composer-pane { position: static; }
  .v3-composer-form { position: static; }
}

/* Parent review fix: surface children must not collapse inside the fixed-height column */
.v3-surface > * { flex-shrink: 0; }
.v3-tile-look { align-self: stretch; }

@media (max-width: 700px) {
  .v3-tile-img-wrap { aspect-ratio: 2/1; }
  .v3-concept-card { flex: 0 0 116px; }
  .v3-card-img { aspect-ratio: 1/1; }
  .v3-concepts-row { margin-top: -4px; }
  .v3-composer-pane { padding-top: 8px; }
  .v3-thread-feed { max-height: 96px; }
  .v3-thought-input { min-height: 64px; }
}

/* Parent review polish */
/* Mobile: keep consistent side margins; display:contents dropped the surface padding */
@media (max-width: 700px) {
  .v3-workspace { padding: 0 12px; gap: 12px; }
  .v3-tile-look, .v3-concepts-row, .v3-composer-pane, .v3-surface > .brand-snapshot, .v3-surface > .studio-reference-section { margin: 0; }
  .v3-concepts-grid { padding-right: 12px; margin-right: -12px; }
  .v3-composer-pane { padding-left: 0; padding-right: 0; }
  .v3-tile-label { white-space: nowrap; }
  .v3-tile-img-wrap { aspect-ratio: 16/9; }
  .v3-look-img { object-fit: contain; }
}
/* Sidebar task panel breathing room */
.v3-tasks-panel { padding: 12px 14px 16px; }
/* Inspiration: show whole reference images instead of hard crops; hide empty pagination */
body.v3-shell .lw-card img { object-fit: contain; background: var(--v3-cream-mid); }
body.v3-shell nav.lw-tabs:has(> span:only-child) { display: none; }
/* Create: style the native file input to match the form */
body.v3-shell .concept-studio input[type="file"] { display: block; width: 100%; padding: 10px 12px; border: 1px dashed var(--v3-border); border-radius: 10px; background: #fff; font: inherit; font-size: 13px; color: var(--v3-text); }
body.v3-shell .concept-studio input[type="file"]::file-selector-button { margin-right: 10px; padding: 6px 12px; border: 1px solid var(--v3-green-mid); border-radius: 999px; background: var(--v3-green-faint); color: var(--v3-green); font: inherit; font-size: 12px; cursor: pointer; }
