/* Shared, inexpensive surfaces and interactions. No blur or looping motion. */
:root { --bean-surface: #151c2a; --bean-raised: #1c2534; --bean-edge: #303b4b; --bean-muted: #aab4c5; --bean-accent: #eed8aa; }
body button, body a, body input, body textarea, body select { -webkit-tap-highlight-color: transparent; }
body button, body .btn, body .nav-item, body .create-choice { transition: background-color 140ms ease, border-color 140ms ease, opacity 140ms ease; }
body button:focus-visible, body a:focus-visible, body input:focus-visible, body textarea:focus-visible { outline: 2px solid var(--bean-accent); outline-offset: 3px; }
body button:disabled { opacity: .48; cursor: not-allowed; }
body .btn { min-height: 46px; border-radius: 14px; font-weight: 650; }
body .btn-primary { background: var(--bean-accent); color: #161a23; border: 1px solid var(--bean-accent); box-shadow: none; }
body .btn-secondary { background: var(--bean-raised); border: 1px solid var(--bean-edge); }
body .field-label { color: #dce2ec; font-size: .88rem; }
body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), body textarea, body select {
  border-radius: 12px; border: 1px solid var(--bean-edge); background-color: #101722; color: #f4f1e9;
}
body textarea { line-height: 1.55; resize: vertical; }
body input::placeholder, body textarea::placeholder { color: #8f9aac; }
body .sheet-panel { border: 1px solid var(--bean-edge); border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px #0004; padding-inline: 1.15rem; }
body .sheet-panel h2 { letter-spacing: -.035em; }
body .sheet-status:empty { display: none; }
body .sheet-status:not(:empty) { border-radius: 12px; padding: .7rem .85rem; background: #202a39; color: #e5eaf2; font-size: .88rem; line-height: 1.45; }
body .empty-state { border: 1px solid var(--bean-edge); border-radius: 18px; padding: 1.75rem 1.2rem; color: var(--bean-muted); line-height: 1.6; box-shadow: none; }
body .create-dropzone, body .studio-dropzone {
  border: 1px dashed #526076; border-radius: 18px; background: #141d2b; padding: 1.8rem 1rem; text-align: center;
  transition: border-color 140ms ease, background-color 140ms ease;
}
body .create-dropzone.is-over, body .studio-dropzone.is-over { border-color: var(--bean-accent); background: #293142; }
body .studio-drop-title { color: #f7f2e7; font-size: 1.05rem; font-weight: 600; margin: .6rem 0 .35rem; }
body .studio-drop-sub { color: var(--bean-muted); font-size: .84rem; }
body .create-choice { border: 1px solid var(--bean-edge); border-radius: 14px; background: #151e2c; min-height: 60px; }
body .create-choice.is-active { border-color: var(--bean-accent); background: #292b2d; }
body .app-panel { scroll-padding-top: 1rem; }
body .create-thumb { border-radius: 14px; overflow: hidden; }
body .create-thumb-remove { width: 44px; height: 44px; }
.bean-composer-intro { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .2rem 0 1rem; }
.bean-composer-intro strong { display: block; font-size: 1.05rem; color: #f6f0e5; }
.bean-composer-intro p { margin: .25rem 0 0; color: var(--bean-muted); font-size: .85rem; }
.bean-pill { border: 1px solid var(--bean-edge); border-radius: 999px; padding: .4rem .65rem; font-size: .74rem; white-space: nowrap; color: #c9d3e2; }
.bean-upload-symbol { display: grid; place-items: center; width: 54px; height: 54px; margin: auto; background: #283245; border: 1px solid #3b485d; border-radius: 17px; color: var(--bean-accent); }
.bean-upload-symbol svg { width: 26px; height: 26px; }
.bean-upload-formats { margin: 1rem 0 0; color: #8593a7; font-size: .73rem; }
.bean-preview-shell { position: relative; background: #090e16; border: 1px solid var(--bean-edge); border-radius: 20px; overflow: hidden; }
.bean-preview-shell[hidden] { display: none; }
body #create-flick-preview { display: block; width: 100%; height: min(44dvh, 360px); max-height: none; object-fit: contain; border: 0; border-radius: 0; margin: 0; background: #090e16; }
.bean-preview-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .7rem; border-top: 1px solid var(--bean-edge); }
.bean-preview-toolbar button { min-height: 44px; border-radius: 10px; padding: .5rem .7rem; background: #202b3d; color: #ede9df; border: 1px solid #394559; font-size: .8rem; }
.bean-preview-meta { flex: 1 1 100%; color: var(--bean-muted); font-size: .78rem; padding: 0 .2rem .3rem; }
.bean-caption-heading { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.bean-caption-count { color: #8996aa; font-size: .76rem; }
.bean-publish-actions { position: sticky; bottom: 0; padding: .8rem 0 calc(.35rem + env(safe-area-inset-bottom)); background: #141a2a; border-top: 1px solid var(--bean-edge); }
.bean-publish-actions .btn { width: 100%; }
.bean-publish-note { font-size: .75rem; line-height: 1.4; color: #a6b1c2; margin: .55rem 0 0; text-align: center; }
.bean-notice, .bean-transfer { position: fixed; z-index: 130; left: 50%; transform: translateX(-50%); width: min(420px, calc(100% - 24px)); border: 1px solid #4b5769; border-radius: 18px; background: #202938; color: #f7f4eb; box-shadow: 0 8px 24px #0005; }
.bean-notice { bottom: calc(90px + env(safe-area-inset-bottom)); padding: .9rem 1rem; font-size: .88rem; pointer-events: none; }
.bean-transfer { top: calc(76px + env(safe-area-inset-top)); padding: .8rem; }
.bean-transfer[hidden], .bean-notice[hidden] { display: none; }
.bean-transfer-main { display: flex; align-items: center; gap: .8rem; }
.bean-transfer img { width: 44px; height: 58px; object-fit: cover; border-radius: 9px; background: #111927; }
.bean-transfer-copy { flex: 1; min-width: 0; }
.bean-transfer strong { display: block; font-size: .9rem; }
.bean-transfer p { margin: .3rem 0; color: #bdc8d8; font-size: .78rem; line-height: 1.4; overflow-wrap: anywhere; }
.bean-transfer progress { width: 100%; height: 4px; accent-color: var(--bean-accent); }
.bean-transfer-actions { display: flex; gap: .5rem; margin-top: .65rem; }
.bean-transfer-actions button { min-height: 44px; border-radius: 10px; padding: .5rem .8rem; background: #303c50; color: #f4f0e6; border: 1px solid #4b5769; }
.bean-transfer[data-state=error] { border-color: #b88476; }
.bean-transfer[data-state=done] { border-color: #729d87; }
.post-video[poster] { object-fit: contain; }
@media (min-width: 1000px) { .bean-transfer { left: auto; right: 24px; transform: none; } }
@media (prefers-reduced-motion: reduce) { body button, body a, body input, body textarea, body .create-dropzone, body .studio-dropzone { transition: none !important; } }
html.comfort-mode button, html.comfort-mode .btn { min-height: 48px; }

/* Compact mode picker leaves more room for the actual creation. */
#create-sheet .create-choice { min-height: 60px; padding: .6rem .5rem; gap: .25rem; }
#create-sheet .create-choice svg { width: 20px; height: 20px; }
#create-sheet .create-choice small { font-size: .72rem; }
#create-sheet .bean-composer-intro { margin-top: .1rem; }
.bean-transfer { top: calc(106px + env(safe-area-inset-top)); }

.studio-kind-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--bean-edge); border-radius: 14px; background: #101722; margin: .5rem 0 1rem; }
.studio-kind-tabs .studio-kind { min-height: 44px; min-width: 100px; padding: .6rem 1rem; border: 0; border-radius: 10px; color: #aab4c5; background: transparent; font: inherit; font-size: .88rem; cursor: pointer; }
.studio-kind-tabs .studio-kind[aria-selected=true] { background: #2c3748; color: #f4e4c3; }
#studio-dropzone { min-height: 260px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .4rem; border: 1px dashed #526076; }
#studio-dropzone .bean-upload-symbol { margin: 0 auto .4rem; }
#studio-dropzone .btn { margin-top: .75rem; min-width: 150px; }
.bean-upload-lede { color: var(--bean-muted); max-width: 38ch; line-height: 1.5; margin: .5rem 0 1rem; }
.studio-tip-btn { min-height: 44px; }
#panel-studio .studio-kind-tabs { display: flex; width: fit-content; margin-left: max(0px, calc((100% - 640px) / 2)); }
