/* Bouquet — studio prototype. The interface follows the uberdesigner tool studios:
   black page, glass panels, pills, Neue Montreal (falls back to Helvetica Neue where it is not installed). */
@font-face { font-family: "PP Neue Montreal"; src: url(fonts/PPNeueMontreal-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url(fonts/ppneuemontreal-medium.otf) format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(fonts/GeistMono.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #060608; --surface: #111114; --raised: #18181c;
  --text: #fff; --text-2: #8d8d90; --text-3: #5c5c60; --ink: #0a0a0b;
  --line: rgba(255,255,255,.10); --fill: rgba(255,255,255,.06); --fill-2: rgba(255,255,255,.10);
  --glass: rgba(22,22,23,.72);
  --sans: "PP Neue Montreal", "Neue Montreal", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.215,.61,.355,1);
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body { background: #000; color: var(--text); font: 400 16px/1.35 var(--sans); letter-spacing: -.03em; overflow: hidden; -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; }
button, label { font: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; }
button { border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 5; pointer-events: none; }

.studio { position: fixed; inset: 12px; display: grid; grid-template-rows: auto 1fr; gap: 12px; padding: 14px; border-radius: 28px;
  background: radial-gradient(120% 90% at 50% 0%, #0e0e10 0%, var(--bg) 60%); box-shadow: inset 0 0 0 1px var(--line); }

/* top bar */
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.top__l, .top__r { display: flex; align-items: center; gap: 8px; position: relative; }
.menu { position: absolute; right: 0; top: 48px; width: 264px; padding: 6px; border-radius: 20px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line), 0 24px 48px -16px #000; backdrop-filter: blur(24px) saturate(1.5); z-index: 12; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s; }
.menu.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu button { display: grid; gap: 2px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 14px; transition: background .18s var(--ease); }
.menu button:hover { background: var(--fill-2); }
.menu b { font-weight: 400; font-size: 16px; }
.menu span { font-size: 12px; letter-spacing: -.01em; color: var(--text-2); }
.top__name { margin-left: 8px; color: var(--text-2); }
.rb { text-decoration: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); transition: background .18s var(--ease), color .18s var(--ease); }
.rb:hover { background: var(--fill-2); color: #fff; }
.pill { height: 40px; padding: 0 18px 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: background .18s var(--ease), transform .18s var(--ease); }
.pill--line { background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); }
.pill--line:hover { background: var(--fill-2); }
.pill--white { background: #fff; color: var(--ink); }
.pill--white:hover { background: #e9e9ec; }
.pill:active { transform: scale(.97); }
.pill[disabled] { opacity: .4; pointer-events: none; }

/* work area */
.work { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) 320px; grid-template-rows: minmax(0, 1fr) auto; gap: 12px 14px; }
.src { grid-area: 1 / 1; position: relative; display: grid; place-items: center; min-height: 0; min-width: 0; }
.canvas { grid-area: 1 / 2; position: relative; display: grid; place-items: center; min-height: 0; min-width: 0; cursor: grab; touch-action: none; }
.canvas.on-flower { cursor: move; }
.canvas.is-drag { cursor: grabbing; }
.panel { grid-area: 1 / 3 / 3 / 4; }
.strip { grid-area: 2 / 1 / 3 / 3; }

/* the photo */
.frame { position: relative; border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 24px 48px -24px #000; cursor: crosshair; touch-action: none; }
.frame img, .frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.frame img { transition: filter .28s var(--ease); }
.frame.has-sel img, .frame.has-sel #holes { filter: brightness(.42) saturate(.7); }
#holes { transition: filter .28s var(--ease); pointer-events: none; }
#lift { pointer-events: none; opacity: 0; transform: translateY(0) scale(1); transition: opacity .16s var(--ease), transform .3s var(--ease);
  filter: drop-shadow(0 0 1px rgba(255,255,255,.9)) drop-shadow(0 10px 18px rgba(0,0,0,.6)); }
.frame.has-sel #lift { opacity: 1; transform: translateY(-5px) scale(1.02); }
.frame.is-busy { cursor: progress; }
.scan { position: absolute; inset: 0; display: grid; place-items: end start; padding: 16px; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease);
  background: linear-gradient(180deg, rgba(6,6,8,0) 0%, rgba(6,6,8,0) 44%, rgba(255,255,255,.16) 50%, rgba(6,6,8,0) 56%, rgba(6,6,8,0) 100%) 0 0 / 100% 220% no-repeat, rgba(6,6,8,.35); }
.frame.is-busy .scan { opacity: 1; animation: scan 1.5s linear infinite; }
.scan span { font: 400 12px/1 var(--mono); letter-spacing: 0; color: #fff; padding: 7px 10px; border-radius: 999px; background: rgba(6,6,8,.6); backdrop-filter: blur(12px); }
@keyframes scan { from { background-position: 0 120%, 0 0; } to { background-position: 0 -20%, 0 0; } }
.hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: 12px; letter-spacing: -.02em; color: #fff; white-space: nowrap; padding: 7px 12px; border-radius: 999px; background: rgba(6,6,8,.55); backdrop-filter: blur(12px); pointer-events: none; transition: opacity .4s var(--ease); z-index: 2; }
.hint.is-off { opacity: 0; }
.src.is-drop .frame { box-shadow: inset 0 0 0 2px #fff, 0 24px 48px -24px #000; }

/* the artboard */
.board { position: relative; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s var(--ease); pointer-events: none;
  background-color: transparent;
  background-image: linear-gradient(45deg, rgba(255,255,255,.028) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.028) 75%), linear-gradient(45deg, rgba(255,255,255,.028) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.028) 75%);
  background-size: 20px 20px; background-position: 0 0, 10px 10px; }
.board.has-bg { background-image: none; }
.board::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(60% 46% at 50% 44%, rgba(120,150,255,.10), transparent 70%); }
.empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; color: var(--text-3); font-size: 14px; line-height: 1.45; pointer-events: none; transition: opacity .4s var(--ease); }
.empty.is-off { opacity: 0; }

/* the panel */
.panel { background: var(--glass); border-radius: 24px; padding: 22px 20px; box-shadow: inset 0 0 0 1px var(--line), 0 24px 48px -24px #000; backdrop-filter: blur(24px) saturate(1.5); overflow: auto; min-height: 0; position: relative; z-index: 6; scrollbar-width: none; }
.panel__head { display: flex; align-items: center; gap: 2px; margin-bottom: 18px; }
.panel h1 { font-size: 20px; font-weight: 400; letter-spacing: -.03em; margin-right: auto; }
.panel h2 { font-size: 12px; font-weight: 400; letter-spacing: .02em; color: var(--text-3); margin: 22px 0 10px; display: flex; justify-content: space-between; }
.panel h2 span { color: var(--text-2); font-variant-numeric: tabular-nums; }
.txt { height: 32px; padding: 0 10px; border-radius: 999px; font-size: 14px; color: var(--text-2); transition: color .18s var(--ease), background .18s var(--ease); }
.txt:hover { color: #fff; background: var(--fill); }
.txt[disabled] { opacity: .35; pointer-events: none; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills button { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 14px; background: var(--fill); transition: background .18s var(--ease), color .18s var(--ease); }
.pills button:hover { background: var(--fill-2); }
.pills button.on { background: #fff; color: var(--ink); }
.sw { display: flex; flex-wrap: wrap; gap: 10px; }
.sw button, .sw__pick { width: 28px; height: 28px; border-radius: 50%; background: var(--c, transparent); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); position: relative; transition: transform .18s var(--ease); display: block; overflow: hidden; }
.sw button[data-v="none"] { background: repeating-conic-gradient(#3a3a3e 0 25%, #1c1c1f 0 50%) 0 0 / 10px 10px; }
.sw button.on, .sw__pick.on { box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 0 0 2px var(--bg), 0 0 0 3.5px #fff; overflow: visible; }
.sw button:hover, .sw__pick:hover { transform: scale(1.08); }
.sw__pick { background: conic-gradient(#ff6b6b, #ffd166, #6fe3a8, #5b8cff, #b69cff, #ff6b6b); }
.sw__pick input { position: absolute; inset: -6px; width: 44px; height: 44px; opacity: 0; cursor: pointer; }
.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.shelf__none { grid-column: 1 / -1; font-size: 14px; color: var(--text-3); }
.chip { position: relative; aspect-ratio: 1; border-radius: 14px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; overflow: hidden; animation: chip .4s var(--ease) both; }
.chip img { max-width: 82%; max-height: 82%; display: block; transition: opacity .18s var(--ease), transform .18s var(--ease); }
.chip__x { position: absolute; top: 5px; right: 5px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(6,6,8,.72); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease); }
.chip:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.chip:hover img { transform: scale(1.06); }
.chip:hover .chip__x { background: #fff; color: var(--ink); transform: scale(1.1); }
@keyframes chip { from { opacity: 0; transform: scale(.8); } }

/* the photo strip */
.strip { display: flex; gap: 8px; padding: 10px 12px; border-radius: 24px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line), 0 24px 48px -24px #000; backdrop-filter: blur(24px) saturate(1.5); overflow-x: auto; scrollbar-width: none; position: relative; z-index: 6; justify-self: start; max-width: 100%; }
.ph { flex: none; width: 78px; display: grid; gap: 6px; justify-items: center; font-size: 12px; letter-spacing: -.03em; color: var(--text-2); }
.ph i { width: 64px; height: 64px; border-radius: 16px; background: var(--fill) center / cover no-repeat; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .18s var(--ease), transform .18s var(--ease); display: grid; place-items: center; font-style: normal; font-size: 22px; color: var(--text-2); }
.ph:hover i { transform: translateY(-2px); }
.ph.on { color: #fff; }
.ph.on i { box-shadow: inset 0 0 0 2px #fff; }
.ph span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ghost { position: fixed; left: 0; top: 0; z-index: 9; pointer-events: none; display: none; transform-origin: 50% 60%; filter: drop-shadow(0 0 1px rgba(255,255,255,.9)) drop-shadow(0 18px 26px rgba(0,0,0,.6)); will-change: transform; }
.is-carrying .ghost { display: block; }
.is-carrying, .is-carrying .frame { cursor: grabbing; }
.canvas.is-target .board { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.board { transition: background-color .3s var(--ease), box-shadow .2s var(--ease); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); z-index: 20; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* loading: a stem grows as the model arrives */
.loader { position: fixed; inset: 0; z-index: 30; background: var(--bg); display: grid; place-items: center; transition: opacity .7s var(--ease), visibility 0s .7s; }
body:not(.is-loading) .loader { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__stem { position: relative; width: 2px; height: min(38vh, 300px); }
.loader__stem i { position: absolute; left: 0; bottom: 0; width: 2px; height: 0%; border-radius: 2px; background: linear-gradient(0deg, rgba(120,170,140,.25), #9fd6b0); transition: height .5s var(--ease); }
.loader__stem b { position: absolute; left: 50%; bottom: var(--p, 0%); width: 12px; height: 16px; margin: 0 0 -4px -6px; border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 50% 30%, #fff, #a9b8ff 45%, #5b2fd6 100%); box-shadow: 0 0 24px 2px rgba(140,160,255,.55); transition: bottom .5s var(--ease); }
.loader__n { position: absolute; left: 28px; bottom: 24px; font: 400 14px/1 var(--mono); letter-spacing: 0; color: #fff; }
.loader__t { position: absolute; right: 28px; bottom: 24px; font-size: 14px; color: var(--text-2); }

@media (max-width: 1080px) {
  .work { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) 264px; gap: 10px; }
  .panel { padding: 18px 16px; }
}
@media (max-width: 760px) {
  body { overflow: auto; }
  .studio { position: relative; inset: auto; margin: 8px; min-height: calc(100vh - 16px); }
  .work { grid-template-columns: 1fr; grid-template-rows: 46vh 56vh auto auto; }
  .src { grid-area: 1 / 1; } .canvas { grid-area: 2 / 1; } .strip { grid-area: 3 / 1; } .panel { grid-area: 4 / 1; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01s !important; transition-duration: .01s !important; } }


/* ================= aligned to the uberdesigner tool shell (measured on new.uberdesigner.ai/tools/glass/studio) =================
   16 px page margin · the stage: 24 radius, one hairline · bar 40 · inspector 328 with 24 padding · chips 32 / 14 px · strip tiles 92 × 110 with 76 thumbs
   · Neue Montreal 16 / 22.4, −3 % · three greys: #c9c9cc, #8d8d90, #5c5c60 */
:root { --text-1: #c9c9cc; --line-2: rgba(255,255,255,.08); }
body { line-height: 1.4; }
.studio { inset: 16px; gap: 28px; padding: 20px 16px 16px; border-radius: 24px; background: #050506; box-shadow: inset 0 0 0 1px var(--line-2); }
.top { gap: 16px; }
.rb { background: var(--glass); color: var(--text-1); box-shadow: inset 0 0 0 1px var(--line); }
.top__name { margin-left: 8px; font-size: 16px; line-height: 20px; letter-spacing: -.01em; color: #fff; }
.pill { padding: 0 20px; }
.pill--line { background: var(--glass); box-shadow: inset 0 0 0 1px var(--line), 0 24px 48px -24px #000; }
.pill--white { box-shadow: 0 16px 32px -16px #000; }
.work { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) 328px; gap: 16px; }
.frame, .board { border-radius: 12px; }
.panel { padding: 0 0 24px; }
.panel__head { padding: 24px 24px 8px; margin: 0; min-height: 64px; }
.panel h1 { line-height: 24px; letter-spacing: -.02em; }
.panel > :not(.panel__head) { margin-left: 24px; margin-right: 24px; }
.panel h2 { font-size: 12px; line-height: 16px; letter-spacing: .02em; color: var(--text-3); margin-top: 28px; margin-bottom: 16px; }
.panel__head + h2 { margin-top: 12px; }
.txt { font-size: 14px; }
.pills { gap: 8px; }
.pills button { font-size: 14px; line-height: 19.6px; letter-spacing: -.03em; display: inline-flex; align-items: center; }
.chip { border-radius: 12px; }
.strip { padding: 10px 12px; gap: 8px; }
.ph { width: 92px; height: 110px; padding: 4px 2px 6px; gap: 8px; align-content: start; border-radius: 16px; font-size: 12px; line-height: 16px; letter-spacing: -.03em; }
.ph i { width: 76px; height: 76px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.ph.on i { box-shadow: 0 0 0 2px #fff; }
.hint { font-size: 12px; line-height: 16px; }
.scan span { font-family: var(--sans); letter-spacing: -.03em; }

/* the first-run tour */
.tour { position: fixed; inset: 0; z-index: 40; visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility 0s .3s; }
.tour.is-on { visibility: visible; opacity: 1; transition-delay: 0s; }
.tour__hole { position: absolute; border-radius: 20px; box-shadow: 0 0 0 2048px rgba(0,0,0,.78), inset 0 0 0 1px rgba(255,255,255,.18); transition: left .45s var(--ease), top .45s var(--ease), width .45s var(--ease), height .45s var(--ease); }
.tour__pop { position: absolute; left: 0; top: 0; width: 272px; padding: 14px 16px 12px; border-radius: 16px; background: rgba(16,16,17,.92); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 64px -20px #000; backdrop-filter: blur(20px) saturate(1.4); transition: transform .45s var(--ease); }
.tour__top { display: flex; justify-content: space-between; align-items: center; height: 14px; margin-bottom: 8px; }
.tour__n { font: 400 11px/14px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; color: #6e6e72; }
.tour__skip { font-size: 12px; line-height: 14px; color: #6e6e72; transition: color .18s var(--ease); }
.tour__skip:hover { color: #fff; }
.tour__pop b { display: block; font-weight: 400; font-size: 15px; line-height: 20px; }
.tour__pop p { margin-top: 4px; font-size: 13px; line-height: 18px; color: var(--text-2); }
.tour__bar { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 14px; }
.tour__dots { display: flex; gap: 3px; padding-bottom: 12px; }
.tour__dots i { width: 4px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.14); transition: width .3s var(--ease), background .3s var(--ease); }
.tour__dots i.is-on { width: 12px; background: #fff; }
.tour__btns { display: flex; gap: 4px; }
.tour__btns button { height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; }
.tour__back { color: var(--text-2); } .tour__back:hover { color: #fff; }
.tour__next { background: #fff; color: var(--ink); } .tour__next:hover { background: #e9e9ec; }

/* tracking: this cut of Neue Montreal sets tighter than the one on the site — at −3 % the letters touch and the word spaces close. Opened up everywhere. */
body { letter-spacing: 0; word-spacing: .02em; }
.pills button, .ph, .hint, .scan span, .txt, .pill, .shelf__none, .empty, .toast, .top__name, .menu span, .tour__pop b, .tour__pop p, .tour__skip, .tour__btns button { letter-spacing: 0; }
.panel h1 { letter-spacing: -.005em; }
.panel h2 { letter-spacing: .03em; }

/* the artboard is plain: no glow behind the bouquet */
.board::after { content: none; }

/* a chip: the flower, a cross to take it out, two arrows to move it back or forward in the stack */
.chip { cursor: default; }
.chip__x, .chip__mv button { cursor: pointer; }
.chip:hover .chip__x { background: rgba(6,6,8,.72); color: var(--text-1); transform: none; }
.chip__mv { position: absolute; left: 5px; right: 5px; bottom: 5px; display: flex; justify-content: space-between; opacity: 0; transition: opacity .18s var(--ease); }
.chip:hover .chip__mv, .chip:focus-within .chip__mv { opacity: 1; }
.chip__mv button { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(6,6,8,.72); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-1); transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease); }
.chip__x:hover, .chip__mv button:hover { background: #fff !important; color: var(--ink) !important; transform: scale(1.1) !important; }
.chip__mv button[disabled] { opacity: .3; pointer-events: none; }
@media (hover: none) { .chip__mv { opacity: 1; } }
