/* studio.css — the generator workspace */

.studio-wrap { padding: 104px 0 60px; min-height: 100vh; }

/* ---------- brief bar ---------- */
.brief {
  border: 1px solid var(--line); background: var(--ink-1); border-radius: var(--r-lg);
  padding: 22px 24px; margin-bottom: 26px; box-shadow: var(--shadow-sm);
}
.brief-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.brief-top h1 { font-size: 24px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 12px; }
.brief-grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 16px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--bone-3); }
.input, .select {
  width: 100%; background: var(--ink-3); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  color: var(--bone); font-family: var(--font-sans); font-size: 16px; padding: 13px 15px; transition: border-color 0.25s, background 0.25s;
}
.input::placeholder { color: var(--bone-4); }
.input:focus, .select:focus { outline: none; border-color: var(--lime); background: var(--ink-2); }
.select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

.vibes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.vibe {
  font-family: var(--font-sans); font-size: 13px; padding: 8px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); color: var(--bone-2); cursor: pointer; background: none; transition: 0.2s; user-select: none;
}
.vibe:hover { border-color: var(--bone-3); color: var(--bone); }
.vibe.on { background: var(--lime); color: var(--ink); border-color: var(--lime); font-weight: 600; }

.brief-actions { display: flex; gap: 10px; }

/* ---------- studio grid ---------- */
.studio { display: grid; grid-template-columns: 1fr 372px; gap: 26px; align-items: start; }

.panel { border: 1px solid var(--line); background: var(--ink-1); border-radius: var(--r-lg); padding: 24px; margin-bottom: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-head h2 { font-size: 19px; font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.panel-head .pn { font-family: var(--font-mono); font-size: 11px; color: var(--lime); }
.panel-head .hint { font-size: 12.5px; color: var(--bone-3); }
.icon-btn { background: none; border: 1px solid var(--line-2); color: var(--bone-2); border-radius: var(--r-pill); padding: 7px 14px; font-size: 13px; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; transition: 0.2s; font-family: var(--font-sans); }
.icon-btn:hover { border-color: var(--bone-3); color: var(--bone); }

/* logo grid */
.logo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.logo-cell {
  background: #fbfaf6; border-radius: var(--r); aspect-ratio: 4 / 3; display: grid; place-items: center;
  padding: 20px; cursor: pointer; border: 2px solid transparent; position: relative; transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
  overflow: hidden;
}
.logo-cell svg { max-width: 86%; max-height: 78%; }
.logo-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.logo-cell.sel { border-color: var(--lime); box-shadow: 0 0 0 4px var(--lime-dim); }
.logo-cell .pick { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--lime); color: var(--ink); display: none; place-items: center; }
.logo-cell.sel .pick { display: grid; }

/* shimmer while generating */
.shimmer { position: relative; overflow: hidden; }
.shimmer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(212,255,64,0.10) 50%, transparent 70%); transform: translateX(-100%); animation: shimmer 1.1s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* palette grid */
.pal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pal-card { border: 2px solid transparent; border-radius: var(--r); overflow: hidden; cursor: pointer; background: var(--ink-2); transition: transform 0.3s var(--ease-out); }
.pal-card:hover { transform: translateY(-2px); }
.pal-card.sel { border-color: var(--lime); }
.pal-strip { display: flex; height: 64px; }
.pal-strip span { flex: 1; }
.pal-card .pal-foot { display: flex; justify-content: space-between; padding: 9px 12px; font-family: var(--font-mono); font-size: 10.5px; color: var(--bone-3); text-transform: capitalize; }

/* type grid */
.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.type-card { border: 2px solid transparent; border-radius: var(--r); padding: 18px 20px; cursor: pointer; background: var(--ink-2); transition: transform 0.3s var(--ease-out); }
.type-card:hover { transform: translateY(-2px); }
.type-card.sel { border-color: var(--lime); }
.type-card .tprev { font-size: 30px; line-height: 1; margin-bottom: 12px; color: var(--bone); }
.type-card .tname { font-size: 13px; color: var(--bone); font-weight: 600; }
.type-card .tmeta { font-family: var(--font-mono); font-size: 10.5px; color: var(--bone-3); margin-top: 4px; }

/* mockups */
.mock-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mock-cell { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--ink-2); }
.mock-cell .mock-svg { width: 100%; display: block; }
.mock-cell .mlabel { padding: 10px 14px; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--bone-3); border-top: 1px solid var(--line); }

/* names helper */
.names-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.name-pill { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 14px; cursor: pointer; transition: 0.2s; background: var(--ink-2); }
.name-pill:hover { border-color: var(--lime); background: var(--ink-3); }
.name-pill .nm { font-family: var(--font-display); font-size: 18px; }
.name-pill .dm { font-family: var(--font-mono); font-size: 10.5px; color: var(--bone-3); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.name-pill .dm .ok { color: var(--lime); }
.name-pill .dm .no { color: var(--bone-4); }

/* ---------- right rail ---------- */
.rail { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.rail-card { border: 1px solid var(--line); background: var(--ink-1); border-radius: var(--r-lg); overflow: hidden; }
.rail-logo { background: #fbfaf6; padding: 36px 28px; display: grid; place-items: center; min-height: 168px; }
.rail-logo svg { max-width: 88%; max-height: 120px; }
.rail-logo.dark { background: var(--ink); }
.rail-section { padding: 18px 20px; border-top: 1px solid var(--line); }
.rail-section h4 { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--bone-3); margin-bottom: 12px; font-weight: 400; }
.swatches { display: flex; gap: 8px; }
.swatch { flex: 1; cursor: pointer; }
.swatch .sc { height: 40px; border-radius: 8px; border: 1px solid var(--line); transition: transform 0.2s; }
.swatch:hover .sc { transform: scale(1.06); }
.swatch .sh { font-family: var(--font-mono); font-size: 9px; color: var(--bone-3); margin-top: 5px; text-align: center; }
.rail-type { display: flex; flex-direction: column; gap: 8px; }
.rail-type .rt { display: flex; justify-content: space-between; align-items: baseline; }
.rail-type .rt .l { font-family: var(--font-mono); font-size: 10px; color: var(--bone-3); text-transform: uppercase; }
.rail-type .rt .v { font-family: var(--font-display); font-size: 17px; }
.rail-actions { padding: 18px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.rail-actions .btn { width: 100%; }
.rail-mini { display: flex; gap: 10px; }
.rail-mini .btn { flex: 1; }

.toggle-mode { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-pill); overflow: hidden; }
.toggle-mode button { background: none; border: none; color: var(--bone-3); padding: 6px 12px; font-size: 11px; cursor: pointer; font-family: var(--font-mono); }
.toggle-mode button.on { background: var(--bone); color: var(--ink); }

/* empty state */
.empty { text-align: center; padding: 70px 20px; color: var(--bone-3); }
.empty .big { font-family: var(--font-display); font-size: 26px; color: var(--bone-2); margin-bottom: 10px; }

/* toast */
.toasts { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { background: var(--bone); color: var(--ink); padding: 12px 20px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; animation: toastin 0.4s var(--ease-out); }
.toast.lime { background: var(--lime); }
@keyframes toastin { from { opacity: 0; transform: translateY(14px); } }

/* progress overlay for export */
.export-state { font-size: 12.5px; color: var(--bone-3); text-align: center; min-height: 16px; font-family: var(--font-mono); }

@media (max-width: 980px) {
  .studio { grid-template-columns: 1fr; }
  .rail { position: static; }
  .brief-grid { grid-template-columns: 1fr; }
  .logo-grid, .names-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .logo-grid, .pal-grid, .type-grid, .mock-grid, .names-grid { grid-template-columns: 1fr; }
}

/* ---------- dashboard ---------- */
.dash-wrap { padding: 116px 0 60px; min-height: 100vh; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; flex-wrap: wrap; gap: 18px; }
.dash-head h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.03em; }
.dash-head p { color: var(--bone-2); margin-top: 8px; }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dash-card { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--ink-1); transition: transform 0.4s var(--ease-out), border-color 0.3s; }
.dash-card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.dash-card .dtop { height: 150px; background: #fbfaf6; display: grid; place-items: center; padding: 26px; }
.dash-card .dtop svg { max-width: 80%; max-height: 80%; }
.dash-card .dpal { display: flex; height: 8px; }
.dash-card .dpal span { flex: 1; }
.dash-card .dbody { padding: 18px 20px; }
.dash-card .dname { font-family: var(--font-display); font-size: 22px; }
.dash-card .dmeta { font-family: var(--font-mono); font-size: 11px; color: var(--bone-3); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.dash-card .dact { display: flex; gap: 8px; margin-top: 16px; }
.dash-card .dact .btn { flex: 1; }
.dash-empty { text-align: center; padding: 100px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.dash-empty .big { font-family: var(--font-display); font-size: 32px; margin-bottom: 12px; }
.dash-empty p { color: var(--bone-2); margin-bottom: 24px; }

@media (max-width: 860px) { .dash-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dash-grid { grid-template-columns: 1fr; } }
