/* =====================================================================
   FEATURES — Brand studio · Presentation mode · First-visit hints
   (shell-styled; the previews inside use skin tokens)
   ===================================================================== */

/* ---------- shared modal ---------- */
.bs-modal {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
  background: rgba(6,6,6,.62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transition: opacity .28s ease;
}
.bs-modal.in { opacity: 1; }
.bs-modal > * { transform: translateY(14px) scale(.985); transition: transform .45s cubic-bezier(.2, .9, .2, 1); }
.bs-modal.in > * { transform: none; }
.bs-head { display: flex; align-items: flex-start; gap: 16px; justify-content: space-between; }
.bs-head h2 { font-family: var(--sh-display); font-weight: 500; font-size: 28px; letter-spacing: -.045em; line-height: 1.05; margin: 10px 0 8px; }
.bs-head p { margin: 0; color: var(--sh-text-2); font-size: 13.5px; line-height: 1.5; max-width: 34em; }
.bs-lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--sh-text); margin-bottom: 8px; }
.bs-in {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 11px; background: var(--sh-surface-2); color: var(--sh-text);
  border: 1px solid var(--sh-line-2); font: inherit; font-size: 13.5px; outline: none; transition: border-color .2s;
}
.bs-in:focus { border-color: color-mix(in oklab, var(--sh-accent) 70%, transparent); }
.bs-link { border: 0; background: none; padding: 0; color: var(--sh-accent); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.bs-chip { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--sh-line-2); background: var(--sh-surface-2); color: var(--sh-text-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.bs-chip:hover { color: var(--sh-text); border-color: color-mix(in oklab, var(--sh-accent) 50%, transparent); }
.bs-actions { display: flex; gap: 10px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.bs-actions .btn-shell { height: 44px; font-size: 14px; }

/* ---------- brand studio ---------- */
.bs-sheet {
  width: min(1180px, 100%); max-height: calc(100vh - 48px); display: grid; grid-template-columns: 400px minmax(0, 1fr);
  border-radius: 24px; overflow: hidden; background: var(--sh-bg-2); border: 1px solid var(--sh-line-2); box-shadow: 0 60px 120px -40px rgba(0,0,0,.9);
}
.bs-form { display: grid; gap: 18px; align-content: start; padding: 26px 26px 28px; overflow-y: auto; border-right: 1px solid var(--sh-line); scrollbar-width: thin; }
.bs-samples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--sh-text-3); }
.bs-samples > span { margin-right: 2px; }
.bs-drop {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; cursor: pointer;
  border: 1.5px dashed var(--sh-line-2); background: var(--sh-surface); transition: border-color .2s, background .2s;
}
.bs-drop:hover, .bs-drop.over { border-color: var(--sh-accent); background: color-mix(in oklab, var(--sh-accent) 8%, var(--sh-surface)); }
.bs-drop b { display: block; font-size: 13.5px; } .bs-drop span { display: block; font-size: 12px; color: var(--sh-text-3); }
.bs-logo-pv { width: 64px; height: 48px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: #888; flex: none; overflow: hidden; }
.bs-drop:not(.has) .bs-logo-pv { background: var(--sh-surface-3); color: var(--sh-text-2); }
.bs-logo-pv img { max-width: 56px; max-height: 40px; object-fit: contain; }
.bs-logo-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; }
.bs-note { font-size: 11.5px; color: var(--sh-accent); }
.bs-colrow { display: flex; gap: 8px; align-items: center; }
.bs-col { -webkit-appearance: none; appearance: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--sh-line-2); border-radius: 11px; background: none; cursor: pointer; flex: none; }
.bs-col::-webkit-color-swatch-wrapper { padding: 3px; } .bs-col::-webkit-color-swatch { border: 0; border-radius: 8px; }
.bs-col::-moz-color-swatch { border: 0; border-radius: 8px; }
.bs-hex { font-family: var(--sh-mono); text-transform: uppercase; font-size: 13px; }
.bs-bases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bs-base { display: grid; gap: 3px; justify-items: start; text-align: left; padding: 10px; border-radius: 12px; border: 1px solid var(--sh-line); background: var(--sh-surface); color: var(--sh-text); }
.bs-base:hover { background: var(--sh-surface-2); }
.bs-base.on { border-color: var(--sh-accent); box-shadow: inset 0 0 0 1px var(--sh-accent); background: var(--sh-surface-2); }
.bs-base-sw { display: flex; margin-bottom: 4px; } .bs-base-sw i { width: 14px; height: 14px; border-radius: 50%; margin-right: -4px; border: 1.5px solid var(--sh-surface); }
.bs-base b { font-size: 13px; } .bs-base small { font-size: 11px; color: var(--sh-text-3); }
.bs-2 { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.bs-2 .g-seg button { text-transform: capitalize; }
.bs-lbl-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; } .bs-lbl-row .bs-lbl { margin: 0; }
.bs-val { font-family: var(--sh-mono); font-size: 11px; color: var(--sh-text-3); flex: 1; }
.bs-checks { display: grid; gap: 5px; padding: 12px 14px; border-radius: 12px; background: var(--sh-surface); border: 1px solid var(--sh-line); }
.bs-check-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--sh-accent); }
.bs-check-h .ic { width: 15px; height: 15px; }
.bs-check { font-size: 12px; color: var(--sh-text-2); padding-left: 23px; }
.bs-preview { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 24px; min-width: 0; background: radial-gradient(80% 60% at 50% 30%, #1a1a19, var(--sh-bg-2)); overflow-y: auto; }
.bs-pv-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bs-prep { display: flex; align-items: center; gap: 10px; }
.bs-prep span, .ps-brand span, .vw-prep span, .pr-prep span { display: flex; flex-direction: column; line-height: 1.15; }
.bs-prep small, .ps-brand small, .vw-prep small, .pr-prep small { font: 500 9.5px/1.2 var(--sh-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--sh-text-3); }
.bs-prep b { font-size: 14px; }
.bs-pv-apps, .bs-pv-modes { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--sh-surface); border: 1px solid var(--sh-line); }
.bs-pv-apps button, .bs-pv-modes button { height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--sh-text-2); font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.bs-pv-modes button { width: 32px; padding: 0; } .bs-pv-modes .ic { width: 15px; height: 15px; }
.bs-pv-apps button.on, .bs-pv-modes button.on { background: var(--sh-surface-3); color: var(--sh-text); }
.bs-pv { position: relative; width: 100%; aspect-ratio: 1280 / 762; border-radius: 14px; overflow: hidden; border: 1px solid var(--sh-line-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
.bs-pv-inner { position: absolute; left: 0; top: 0; width: 1280px; height: 762px; transform-origin: 0 0; }
.bs-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.bs-strip div { display: grid; gap: 5px; font-size: 10.5px; color: var(--sh-text-3); }
.bs-strip i { height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.bs-hint { margin: 0; font-size: 12px; color: var(--sh-text-3); }

/* brand marks */
.brand-logo { display: block; width: auto; max-width: 120px; object-fit: contain; border-radius: 4px; }
.brand-initials { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font: 700 11px/1 var(--sh-body); letter-spacing: .02em; flex: none; }
.g-prep, .vw-prep { display: inline-flex; align-items: center; gap: 10px; }
.g-prep { margin-bottom: 18px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--sh-surface); border: 1px solid var(--sh-line-2); font-size: 13px; color: var(--sh-text-2); }
.g-prep b { color: var(--sh-text); }
.g-prep .brand-logo { height: 22px; max-width: 90px; background: #fff; padding: 2px 4px; border-radius: 6px; }
.vw-prep { padding: 0 12px 0 4px; margin-right: 4px; border-right: 1px solid var(--sh-line); }
.vw-prep .brand-logo { height: 18px; max-width: 72px; background: #fff; padding: 2px 3px; border-radius: 5px; }
.vw-prep b { font-size: 13px; }

/* gallery language bar: brand card */
.lang-brand { border-color: color-mix(in oklab, var(--sh-accent) 40%, var(--sh-line)); }
.lang-brand .lang-sw .brand-logo { height: 22px; max-width: 54px; background: #fff; padding: 2px 4px; border-radius: 6px; margin-right: 8px; }
.lang-brand .lang-sw .brand-initials { margin-right: 8px; width: 22px; height: 22px; font-size: 9.5px; }
.lang-edit { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--sh-text-3); }
.lang-edit:hover { background: var(--sh-surface-3); color: var(--sh-text); }
.lang-edit .ic { width: 15px; height: 15px; }
.lang-brand kbd { display: none; }
.lang-add { border-style: dashed; border-color: var(--sh-line-2); background: transparent; }
.lang-add:hover { border-color: var(--sh-accent); }
.lang-plus { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in oklab, var(--sh-accent) 16%, transparent); color: var(--sh-accent); }

/* dock: brand skin + studio button */
.dk-sw.brand .brand-logo { height: 16px; max-width: 34px; background: #fff; padding: 1px 3px; border-radius: 4px; }
.dk-sw.brand .brand-initials { width: 18px; height: 18px; font-size: 8px; border-radius: 5px; }
.dk-brand { width: 34px; height: 42px; border-radius: 12px; border: 1px dashed var(--sh-line-2); background: none; color: var(--sh-text-2); display: grid; place-items: center; margin-left: 2px; }
.dk-brand:hover { color: var(--sh-accent); border-color: var(--sh-accent); }
.dk-brand .ic { width: 16px; height: 16px; }
.help-q { font-family: var(--sh-display); font-weight: 600; font-size: 15px; line-height: 1; }
.sh-btn.present { background: transparent; }
.sh-btn { white-space: nowrap; }
.vw-prep b { white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1360px) { .vw-top > .brand-mark { display: none; } .vw-title small { max-width: 26vw; } }
@media (max-width: 1240px) { .sh-btn.present span, .vw-prep small, .vw-count { display: none; } .sh-btn.present { padding: 0 11px; } .vw-title small { max-width: 20vw; } }

/* ---------- presentation setup ---------- */
.ps-sheet { width: min(560px, 100%); display: grid; gap: 18px; padding: 26px; border-radius: 24px; background: var(--sh-bg-2); border: 1px solid var(--sh-line-2); box-shadow: 0 60px 120px -40px rgba(0,0,0,.9); }
.ps-brand { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--sh-surface); border: 1px solid var(--sh-line); }
.ps-brand .bs-link { margin-left: auto; }
.ps-brand b { font-size: 14px; }
.ps-brand.empty .ic { width: 20px; height: 20px; color: var(--sh-accent); }
.ps-brand.empty small { text-transform: none; letter-spacing: 0; font: 400 12px/1.3 var(--sh-body); color: var(--sh-text-3); }
.ps-brand .brand-logo { height: 26px; background: #fff; padding: 3px 5px; border-radius: 6px; }
.ps-row { display: grid; gap: 2px; }
.ps-inline { display: flex; align-items: center; justify-content: space-between; }
.ps-inline .bs-lbl { margin: 0; }
.ps-seg { display: flex; flex-wrap: wrap; }
.ps-seg button { text-transform: none !important; }
.ps-seg button:disabled { opacity: .35; cursor: not-allowed; }
.ps-toggle { width: 46px; height: 26px; border-radius: 999px; border: 1px solid var(--sh-line-2); background: var(--sh-surface-3); position: relative; padding: 0; }
.ps-toggle i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--sh-text); transition: transform .3s cubic-bezier(.3, 1.4, .4, 1); }
.ps-toggle.on { background: var(--sh-accent); border-color: transparent; } .ps-toggle.on i { transform: translateX(20px); background: var(--sh-on-accent); }
.ps-keys { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--sh-text-3); }
.ps-keys span { display: inline-flex; align-items: center; gap: 5px; }
kbd { font: 500 11px/1 var(--sh-mono); padding: 4px 6px; border-radius: 6px; border: 1px solid var(--sh-line-2); background: var(--sh-surface-2); color: var(--sh-text-2); }
.ps-count { margin-left: auto; font: 500 11.5px/1 var(--sh-mono); color: var(--sh-text-3); }

/* ---------- presenting ---------- */
body.presenting .vw-top, body.presenting .dock, body.presenting .cmp-bar, body.presenting .vw-panel, body.presenting .vw-step { display: none !important; }
body.presenting .vw-stage { background: radial-gradient(70% 60% at 50% 45%, #191918 0%, #0A0A09 75%); }
body.presenting.pr-idle, body.presenting.pr-idle * { cursor: none !important; }
.pr-layer { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
.pr-layer > * { pointer-events: auto; }
.pr-card {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 45%, rgba(24,24,30,.92), rgba(8,8,8,.97)); opacity: 0; transition: opacity .42s ease;
}
.pr-card.in { opacity: 1; }
.pr-card-in { display: grid; justify-items: center; gap: 14px; transform: translateY(12px); transition: transform .8s cubic-bezier(.2, .9, .2, 1); }
.pr-card.in .pr-card-in { transform: none; }
.pr-card-in .brand-mark { transform: scale(1.3); margin-bottom: 8px; }
.pr-card-in h1 { font-family: var(--sh-display); font-weight: 300; font-size: clamp(48px, 7vw, 112px); letter-spacing: -.06em; line-height: .95; margin: 0; }
.pr-card-in h1 span { display: block; font-weight: 400; font-size: .26em; letter-spacing: -.01em; color: var(--sh-accent); margin-top: 14px; }
.pr-card-in p { margin: 0; color: var(--sh-text-2); font-size: clamp(15px, 1.4vw, 20px); max-width: 30em; }
.pr-idx { font: 500 12px/1 var(--sh-mono); letter-spacing: .14em; color: var(--sh-text-3); }
.pr-ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: color-mix(in oklab, var(--sh-accent) 15%, transparent); color: var(--sh-accent); }
.pr-ic .ic { width: 30px; height: 30px; stroke-width: 1.4; }
.pr-tags { display: flex; gap: 8px; margin-top: 6px; }
.pr-tags span { font: 500 11px/1 var(--sh-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--sh-text-2); padding: 7px 11px; border-radius: 999px; border: 1px solid var(--sh-line-2); }
.pr-prep { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 16px 10px 10px; border-radius: 999px; border: 1px solid var(--sh-line-2); background: rgba(255,255,255,.03); text-align: left; }
.pr-prep .brand-logo { height: 30px; background: #fff; padding: 3px 6px; border-radius: 7px; }
.pr-prep b { font-size: 16px; }
.pr-cap {
  position: absolute; top: 22px; left: 50%; transform: translate(-50%, -8px); padding: 9px 16px; border-radius: 999px; white-space: nowrap;
  background: rgba(12,12,11,.78); border: 1px solid var(--sh-line-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 13px; font-weight: 500; color: var(--sh-text); opacity: 0; transition: opacity .35s, transform .45s cubic-bezier(.2, .9, .2, 1); pointer-events: none;
}
.pr-cap.on { opacity: 1; transform: translate(-50%, 0); }
.pr-hud {
  position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 24px); display: flex; align-items: center; gap: 4px; padding: 6px;
  border-radius: 18px; background: rgba(16,16,15,.86); border: 1px solid var(--sh-line-2); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.9); opacity: 0; transition: opacity .3s, transform .45s cubic-bezier(.2, .9, .2, 1); max-width: calc(100% - 24px);
}
.pr-hud.on, .pr-layer.paused .pr-hud { opacity: 1; transform: translate(-50%, 0); }
.pr-b { width: 40px; height: 40px; border-radius: 12px; border: 0; background: none; color: var(--sh-text-2); display: grid; place-items: center; flex: none; }
.pr-b:hover { background: var(--sh-surface-2); color: var(--sh-text); }
.pr-b .ic { width: 17px; height: 17px; }
.pr-div { width: 1px; height: 26px; background: var(--sh-line-2); margin: 0 6px; flex: none; }
.pr-mid { display: grid; gap: 6px; min-width: 260px; padding: 0 6px; }
.pr-lbl { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.pr-lbl b { font-family: var(--sh-display); font-weight: 600; letter-spacing: -.02em; font-size: 14px; }
.pr-lbl span { color: var(--sh-text-3); overflow: hidden; text-overflow: ellipsis; }
.pr-bar { height: 2px; border-radius: 2px; background: var(--sh-surface-3); overflow: hidden; }
.pr-bar-i { display: block; height: 100%; background: var(--sh-accent); transform-origin: 0 50%; transform: scaleX(0); }
.pr-dots { display: flex; gap: 4px; }
.pr-dots button { width: 14px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: var(--sh-surface-3); cursor: pointer; transition: background .3s, width .3s; }
.pr-dots button.done { background: color-mix(in oklab, var(--sh-accent) 45%, var(--sh-surface-3)); }
.pr-dots button.on { background: var(--sh-accent); width: 26px; }
.pr-layer.paused .pr-cap { opacity: 1; }
.pr-layer.paused::after { content: "Paused — Space to resume"; position: absolute; top: 22px; right: 22px; font: 500 11px/1 var(--sh-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--sh-text-2); padding: 8px 12px; border-radius: 999px; background: rgba(12,12,11,.8); border: 1px solid var(--sh-line-2); }

/* ---------- coach marks ---------- */
.hint-veil { position: fixed; inset: 0; z-index: 180; opacity: 0; transition: opacity .3s; }
.hint-veil.in { opacity: 1; }
.hint-spot {
  position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(5,5,5,.62), 0 0 0 1.5px color-mix(in oklab, var(--sh-accent) 80%, transparent), 0 0 30px 4px color-mix(in oklab, var(--sh-accent) 30%, transparent);
  transition: left .45s cubic-bezier(.2, .9, .2, 1), top .45s cubic-bezier(.2, .9, .2, 1), width .45s cubic-bezier(.2, .9, .2, 1), height .45s cubic-bezier(.2, .9, .2, 1); pointer-events: none;
}
.hint-card {
  position: fixed; width: 320px; padding: 18px 18px 14px; border-radius: 18px; background: #F3F2EE; color: #141413;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); transition: left .45s cubic-bezier(.2, .9, .2, 1), top .45s cubic-bezier(.2, .9, .2, 1);
}
.hint-n { font: 500 10.5px/1 var(--sh-mono); letter-spacing: .1em; color: #6E6CDE; margin-bottom: 8px; }
.hint-card b { display: block; font-family: var(--sh-display); font-weight: 600; font-size: 17px; letter-spacing: -.03em; margin-bottom: 6px; }
.hint-card p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.5; color: #4A4945; }
.hint-act { display: flex; align-items: center; gap: 10px; }
.hint-skip { border: 0; background: none; color: #77756F; font-size: 12.5px; font-weight: 600; padding: 6px 4px; }
.hint-dots { display: flex; gap: 4px; margin: 0 auto; }
.hint-dots i { width: 6px; height: 6px; border-radius: 50%; background: #CFCDC6; transition: width .3s, background .3s; }
.hint-dots i.on { width: 16px; border-radius: 3px; background: #141413; }
.hint-next { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 10px; border: 0; background: #141413; color: #F3F2EE; font-size: 13px; font-weight: 600; }
.hint-next .ic { width: 15px; height: 15px; }

/* ---------- help sheet ---------- */
.help-sheet { width: min(620px, 100%); display: grid; gap: 20px; padding: 26px; border-radius: 24px; background: var(--sh-bg-2); border: 1px solid var(--sh-line-2); box-shadow: 0 60px 120px -40px rgba(0,0,0,.9); }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.help-row { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--sh-text-2); }
.help-k { display: inline-flex; gap: 3px; min-width: 112px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .bs-sheet { grid-template-columns: 1fr; overflow-y: auto; }
  .bs-form { border-right: 0; overflow: visible; }
  .bs-preview { overflow: visible; }
  .vw-prep { display: none !important; }
  .sh-btn.present span { display: none; }
}
@media (max-width: 760px) {
  .bs-modal { padding: 10px; }
  .bs-bases { grid-template-columns: repeat(2, 1fr); }
  .bs-strip { grid-template-columns: repeat(4, 1fr); }
  .help-grid { grid-template-columns: 1fr; }
  .pr-mid { min-width: 0; } .pr-lbl span { display: none; }
  .hint-card { width: calc(100vw - 24px); }
  .g-cta .btn-shell { flex: 1 1 auto; justify-content: center; }
}
