.story-strip{display:flex;gap:16px;overflow-x:auto;padding:12px 2px 18px;scrollbar-width:thin}.story-avatar{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:72px;max-width:90px;border:0;background:none;color:inherit;text-decoration:none;font-size:.875rem}.story-avatar>span:first-child{width:66px;height:66px;border-radius:50%;border:3px solid #df3f8b;display:grid;place-items:center;font-size:1.5rem;overflow:hidden;background:#fff}.story-avatar img{width:100%;height:100%;object-fit:cover;border:3px solid white;border-radius:50%}.story-avatar.seen>span:first-child{border-color:#adb5bd}.story-avatar>span:last-child{max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.story-editor{display:grid;grid-template-columns:minmax(180px,300px) 1fr;gap:28px}.story-preview{aspect-ratio:9/16;background:#11131a;border-radius:18px;overflow:hidden;position:relative;align-self:start;position:sticky;top:20px}.story-preview video{width:100%;height:100%;object-fit:cover}.story-preview>span{position:absolute;inset:0;display:grid;place-items:center;color:#d7d8e2;text-align:center;padding:25px;pointer-events:none}.story-dialog{padding:0;border:0;background:#0b0f14;color:white;width:min(100vw,460px);max-width:100vw;height:min(100dvh,850px);max-height:100dvh;border-radius:16px;overflow:hidden}.story-dialog::backdrop{background:#000c}.story-player{position:relative;height:100%;display:flex;flex-direction:column}.story-player video{width:100%;height:100%;object-fit:contain;position:absolute;inset:0}.story-player-header{position:relative;z-index:2;padding:12px;background:linear-gradient(#000b,transparent)}.story-segments{display:flex;gap:3px;margin-bottom:10px}.story-segments progress{height:3px;flex:1;width:0;accent-color:#fff}.story-player-meta{display:flex;align-items:center;gap:8px}.story-player button{border:0;border-radius:24px;min-width:44px;min-height:44px;background:#ffffff20;color:white}.story-player-meta button:last-child{margin-left:auto}.story-player-caption{position:relative;z-index:2;margin-top:auto;padding:18px;background:linear-gradient(transparent,#000c);font-size:.95rem}.story-player-nav{display:flex;gap:10px;position:relative;z-index:2;padding:0 14px 14px}.story-player-nav button{flex:1}.story-lock{position:absolute;inset:90px 15px 130px;z-index:3;display:flex;flex-direction:column;justify-content:center;text-align:center;gap:12px;background:#10151e;padding:20px;border-radius:16px;overflow:auto}.story-lock[hidden]{display:none}.story-lock select{min-height:44px}.story-lock button{background:#c62870}.story-lock a{color:#ffd4e7}.story-lock-icon{font-size:36px}.story-purchase-card{padding:18px;background:white;border:1px solid #ddd;border-radius:14px}.story-purchase-card p{margin-bottom:6px}.story-controls progress{accent-color:#d12d78;height:14px}body.story-open{overflow:hidden}@media(max-width:600px){.story-editor{grid-template-columns:1fr}.story-preview{position:relative;top:0;width:min(60vw,250px);margin:auto}.story-dialog{width:100vw;height:100dvh;border-radius:0}.story-controls{padding-bottom:30px}}@media(prefers-reduced-motion:reduce){.story-dialog *{scroll-behavior:auto}}

.story-preview>span[hidden]{display:none}
.reels-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:18px}.reel-card{background:#fff;border:1px solid #e3e3e9;border-radius:16px;overflow:hidden}.reel-card-preview{display:grid;place-items:center;width:100%;aspect-ratio:9/16;padding:0;border:0;background:#141820;color:#fff;font-size:2rem;overflow:hidden}.reel-card-preview img{width:100%;height:100%;object-fit:cover}.reel-card-body{padding:14px}.reel-card-body p{overflow-wrap:anywhere;margin:8px 0}.reel-card-body small{color:#555}.reel-card-body summary{cursor:pointer;font-size:.875rem}.reel-card-body textarea{min-height:90px}@media(max-width:480px){.reels-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.reel-card-body{padding:10px}}

/* Immersive story composer, using CutyBody's Liquid Glass theme. */
.cb-story-studio {
  --story-pink: var(--cb-accent);
  --story-ink: var(--cb-text);
  --story-muted: #b9bdca;
  max-width: 1100px;
  color: var(--story-ink);
}
body.cb-story-composing {
  padding: 0;
  color: var(--cb-text);
  background:
    radial-gradient(900px 600px at 10% 0%, #ff3d6d21, transparent 65%),
    radial-gradient(800px 650px at 95% 30%, #6a5cff25, transparent 65%),
    linear-gradient(180deg, var(--cb-bg0), var(--cb-bg1)) !important;
}
body.cb-story-composing > .cb-topbar,
body.cb-story-composing > .cb-bottomnav { display: none; }
body.cb-story-composing main.pb-5 { padding-bottom: 24px !important; }
.cb-story-heading {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 8px 4px 20px;
}
.cb-story-heading h1 { font-size: 1rem; margin: 0; color: #cdd0db; }
.cb-story-brand {
  display: inline-flex; align-items: center;
  font-size: 1.5rem; font-weight: 800; letter-spacing: -1px;
  text-decoration: none; color: var(--story-ink);
}
.cb-story-brand:before {
  content: ''; width: 9px; height: 9px; margin-right: 9px;
  border-radius: 50%; background: linear-gradient(135deg, var(--cb-accent), var(--cb-accent-2));
  box-shadow: 0 0 18px #ff3d6d45;
}
.cb-story-brand span {
  background: linear-gradient(135deg, #ff7092, #b1a7ff);
  background-clip: text; -webkit-background-clip: text; color: transparent;
}
.cb-story-close {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--cb-stroke); border-radius: 50%;
  background: var(--cb-surface-2); color: var(--cb-text); text-decoration: none;
}
.cb-story-editor {
  grid-template-columns: minmax(280px, 1fr) 340px; gap: 0;
  border: 1px solid var(--cb-stroke); border-radius: var(--cb-radius);
  overflow: hidden; background: var(--cb-surface);
  backdrop-filter: blur(var(--cb-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--cb-blur)) saturate(140%);
  box-shadow: var(--cb-shadow);
}
.cb-story-canvas {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 24px 68px 20px 24px; min-width: 0;
  background: radial-gradient(ellipse at 20% 0, #ff3d6d0a, transparent 65%), #080b1280;
}
.cb-story-canvas .story-preview {
  height: min(64dvh, 620px); width: auto; max-width: 100%; aspect-ratio: 9/16;
  position: relative; top: 0; align-self: center; border-radius: 16px;
  background: radial-gradient(ellipse at top right, #302340, #11151e 65%);
  box-shadow: 0 0 0 1px #ffffff14, 0 16px 45px #0007;
}
.cb-story-canvas .story-preview > span { line-height: 1.8; font-size: .95rem; color: #d1c9dc; }
.cb-story-canvas video { background: #080b12; }
.cb-story-caption {
  position: absolute; left: 8%; right: 8%; bottom: 22%; text-align: center;
  color: #fff; white-space: pre-wrap; overflow-wrap: anywhere;
  font-size: clamp(15px, 2vw, 23px); line-height: 1.3;
  text-shadow: 0 2px 8px #000a; pointer-events: none; max-height: 60%; overflow: hidden;
}
.cb-story-tools { position: absolute; top: 26px; right: 12px; display: grid; gap: 12px; }
.cb-story-tools button {
  display: grid; place-items: center; gap: 3px; color: var(--cb-text);
  background: linear-gradient(180deg, #ffffff12, #ffffff07);
  border: 1px solid var(--cb-stroke); border-radius: 14px;
  min-width: 44px; min-height: 49px; font-size: 18px; padding: 5px;
}
.cb-story-tools button span { font-size: 10px; }
.cb-story-tools button[aria-pressed=true] {
  background: linear-gradient(135deg, #ff3d6d38, #6a5cff38);
  border-color: #b09aff85; box-shadow: 0 4px 18px #6a5cff18;
}
.cb-story-file {
  color: var(--cb-text); border-radius: 22px; border: 1px solid #ffffff30;
  background: linear-gradient(180deg, #ffffff13, #ffffff08);
  padding: 10px 18px; margin: 16px 0 8px; font-size: .8rem; cursor: pointer;
}
.cb-story-canvas #storyFile {
  max-width: 100%; font-size: 12px; color: #d8dbe5 !important;
  background: #ffffff08 !important; border-color: #ffffff20 !important;
}
.cb-story-canvas #storyFile::file-selector-button { background: #ffffff16; color: #fff; border: 0; }
.cb-story-help {
  font-size: .76rem; line-height: 1.6; color: var(--story-muted);
  margin: 8px 0 0; overflow-wrap: anywhere;
}
.cb-story-canvas .cb-story-help { text-align: center; }
.cb-story-settings {
  color-scheme: dark; padding: 26px 22px; display: flex; flex-direction: column; min-width: 0;
  border-left: 1px solid var(--cb-stroke);
  background: linear-gradient(155deg, #ffffff08, #ffffff02);
}
.cb-story-settings h2 { font-size: 1.05rem; font-weight: 650; margin: 0 0 8px; }
.cb-story-settings .form-label { font-size: .8rem; font-weight: 550; color: #d7dbe5; }
.cb-story-settings .form-control,
.cb-story-settings .form-select {
  min-height: 44px; font-size: 16px;
  background-color: #ffffff0b !important; color: var(--cb-text) !important;
  border-color: #ffffff24 !important; border-radius: var(--cb-radius-sm) !important;
}
.cb-story-settings .form-control:focus,
.cb-story-settings .form-select:focus {
  background-color: #ffffff10 !important; border-color: #a395ff !important;
  box-shadow: 0 0 0 3px #8f7dff29 !important;
}
.cb-story-settings .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23c9c7d7' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right .75rem center !important;
  background-size: 16px 12px !important;
}
.cb-story-settings .form-select option { background: #171c28; color: #f2f3f8; }
.cb-story-settings .form-control::placeholder { color: #a9aebd !important; }
.cb-story-paid { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 0 16px; cursor: pointer; }
.cb-story-paid strong { display: block; font-size: .84rem; }
.cb-story-paid small { display: block; font-size: .74rem; color: var(--story-muted); margin-top: 3px; }
.cb-story-paid input {
  appearance: none; -webkit-appearance: none; position: relative; flex-shrink: 0;
  width: 44px; height: 26px; border-radius: 20px; border: 1px solid #ffffff38;
  background: #ffffff12; cursor: pointer;
}
.cb-story-paid input:before {
  content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #d7dbe5; transition: transform .15s;
}
.cb-story-paid input:checked { background: linear-gradient(135deg, var(--cb-accent), var(--cb-accent-2)); border-color: #c0a5ff88; }
.cb-story-paid input:checked:before { transform: translateX(18px); background: #fff; }
.cb-story-summary {
  padding: 14px; background: linear-gradient(135deg, #ff3d6d12, #6a5cff18);
  border: 1px solid #b49eff2b; border-radius: var(--cb-radius-sm);
  display: grid; gap: 6px; font-size: .78rem; line-height: 1.5; margin-top: 20px;
}
.cb-story-summary span { color: #c2bfd3; }
.cb-story-publish { margin-top: auto; padding-top: 24px; }
.cb-story-publish #storySubmit {
  background: linear-gradient(135deg, var(--cb-accent), var(--cb-accent-2)) !important;
  color: #fff; border: 0; border-radius: 24px; min-height: 46px;
  box-shadow: 0 10px 30px #6a5cff26; font-weight: 700;
}
.cb-story-review { color: #c4baff; font-size: .8rem; display: block; width: 100%; margin-bottom: 8px; }
.cb-story-review:hover { color: #e1dbff; background: #ffffff08; }
.cb-story-publish #storyUploadStatus { font-size: .82rem; overflow-wrap: anywhere; }
.cb-story-settings #storyError { background: #41192b !important; color: #ffd2df !important; border: 1px solid #a64c70 !important; }
.cb-story-editor [hidden] { display: none !important; }
.cb-story-editor button:focus-visible,
.cb-story-editor input:focus-visible,
.cb-story-file:focus-visible { outline: 3px solid #b4a5ff; outline-offset: 3px; }
.cb-story-player-caption {
  position: absolute; top: 44%; left: 8%; right: 8%; text-align: center;
  font-size: clamp(18px, 4vw, 26px); line-height: 1.3; overflow-wrap: anywhere;
  white-space: pre-wrap; color: #fff; text-shadow: 0 2px 8px #000a;
  pointer-events: none; z-index: 1; max-height: 35%; overflow: hidden;
}
@media (max-width: 767px) {
  .cb-story-studio { padding: 8px !important; }
  .cb-story-heading { padding: 0 6px 8px; }
  .cb-story-heading h1 { font-size: .9rem; }
  .cb-story-brand { font-size: 1.3rem; }
  .cb-story-editor { grid-template-columns: 1fr; border-radius: 20px; }
  .cb-story-canvas { padding: 12px 55px 14px 12px; }
  .cb-story-canvas .story-preview { height: min(53dvh, 480px); max-width: 100%; margin: 0; }
  .cb-story-tools { top: 16px; right: 8px; gap: 8px; }
  .cb-story-settings {
    padding: 22px 18px; border-radius: 22px 22px 0 0;
    border-left: 0; border-top: 1px solid #ffffff26;
    margin-top: -8px; background: linear-gradient(150deg, #1d1c2c, #111722 70%); z-index: 1;
  }
  .cb-story-settings:before { content: ''; width: 32px; height: 4px; background: #ffffff30; border-radius: 4px; align-self: center; margin: -12px 0 18px; }
  .cb-story-caption { font-size: 20px; }
  .cb-story-publish { padding-top: 16px; }
  .cb-story-file { margin-top: 12px; padding: 8px 14px; }
  .cb-story-canvas #storyFile { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .cb-story-paid input:before { transition: none; } }

/* Direct composition tools, canvas layers and mobile editing sheets. */
.cb-story-header-actions{display:flex;align-items:center;gap:10px}.cb-story-glass-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;border:1px solid var(--cb-stroke);border-radius:14px;padding:8px 12px;background:linear-gradient(180deg,#ffffff12,#ffffff07);color:var(--cb-text);font-size:.8rem}.cb-story-notice{font-size:.8rem;color:#c6bedc;line-height:1.5;margin:0 4px 12px}.cb-story-notice:empty{display:none}.cb-story-draft-banner{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 16px;margin-bottom:14px;border:1px solid #bda0ff44;border-radius:16px;background:#6a5cff16;color:#e5e0f7;font-size:.8rem}.cb-story-draft-banner[hidden]{display:none}.cb-story-draft-banner button{border:0;background:none;color:#d2bcff;min-height:40px}.cb-story-editor{position:relative;grid-template-rows:minmax(0,1fr) auto}.cb-story-canvas{grid-column:1;grid-row:1/span 2}.cb-story-settings{grid-column:2;grid-row:1;max-height:min(64dvh,620px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#ffffff30 transparent}.cb-story-publish{grid-column:2;grid-row:2;padding:16px 22px 22px;border-left:1px solid var(--cb-stroke);border-top:1px solid #ffffff0a;background:#ffffff03}.cb-story-publish #storySubmit{width:100%}.cb-story-panel-close{display:none}.cb-story-field-row{display:flex;gap:10px;align-items:end}.cb-story-field-row>div{flex:1;min-width:0}.cb-story-field-row>button{flex:1}.cb-story-field-row .form-label{margin-top:12px}.cb-story-colors{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:16px 0}.cb-story-colors button{width:28px;height:28px;border-radius:50%;border:2px solid #ffffff44;box-shadow:0 0 0 3px #ffffff08}.cb-story-colors label{display:inline-flex;gap:6px;align-items:center;font-size:.75rem;color:#c6c8d5}.cb-story-colors input{width:30px;height:30px;padding:0;border:0;background:none}.cb-story-check{display:flex;align-items:center;gap:9px;font-size:.8rem;margin:14px 0;min-height:30px}.cb-story-check input{width:20px;height:20px;accent-color:var(--cb-accent-2)}.cb-story-emoji-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0}.cb-story-emoji-picker button{font-size:26px;min-height:50px;border:1px solid #ffffff18;border-radius:14px;background:#ffffff08}.cb-story-filter-picker{display:grid;gap:10px;margin:18px 0}.cb-story-filter-picker button{color:#e5e2f1;border:1px solid #ffffff20;background:#ffffff08;min-height:44px;border-radius:12px;text-align:left;padding:12px}.cb-story-filter-picker button[aria-pressed=true]{background:linear-gradient(135deg,#ff3d6d22,#6a5cff33);border-color:#ac9cff90}.cb-story-filter-picker button[data-story-filter=warm]{color:#ffd1a8}.cb-story-filter-picker button[data-story-filter=soft]{color:#d3c7eb}.cb-story-filter-picker button[data-story-filter=vivid]{color:#f6a8d2}.cb-story-canvas .story-preview{container-type:inline-size}.cb-story-canvas #storyImagePreview{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#080b12}.cb-story-canvas #storyFile{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;padding:0;border:0;bottom:0}.cb-story-canvas:has(#storyFile:focus-visible) .cb-story-file{outline:3px solid #b4a5ff;outline-offset:3px}.cb-story-sticker-layer{position:absolute;inset:0;pointer-events:none}.cb-story-design-text{position:absolute;left:50%;top:45%;bottom:auto;width:82%;max-height:80%;overflow-wrap:anywhere;white-space:pre-wrap;color:#fff;font-size:7cqw;line-height:1.15;transform:translate(-50%,-50%);text-shadow:0 2px 8px #0009;padding:.12em .2em;z-index:3}.cb-story-design-text.has-background{background:#10121ee6;border-radius:.2em;text-shadow:none}.cb-story-canvas .cb-story-caption{pointer-events:auto;touch-action:none;cursor:move;overflow:visible;outline:0;max-height:none}.cb-story-canvas .cb-story-caption:focus{cursor:text;outline:1px dashed #ffffff80;background-color:#10121e70}.cb-story-canvas .cb-story-caption.is-empty{pointer-events:none}.cb-story-sticker{position:absolute;max-width:86%;white-space:pre-wrap;overflow-wrap:anywhere;text-align:center;line-height:1.2;transform:translate(-50%,-50%);pointer-events:auto;touch-action:none;cursor:move;user-select:none;color:#fff}.cb-story-sticker.cb-sticker-location,.cb-story-sticker.cb-sticker-label{background:#faf6ee;color:#312a35;padding:.3em .6em;border-radius:.25em;font-weight:700;text-shadow:none;box-shadow:0 3px 12px #0002}.cb-story-sticker.cb-sticker-label{background:linear-gradient(135deg,#ff3d6d,#6a5cff);color:white}.cb-story-sticker.is-selected{outline:1px dashed #ffffffb0;outline-offset:5px}.cb-story-design{container-type:inline-size;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none;z-index:1;overflow:hidden}.cb-story-design .cb-story-sticker{pointer-events:none;cursor:default}.cb-story-caption:focus-visible{outline:2px solid #b4a5ff!important}.cb-story-editor:not(.is-panel-open) .cb-story-panel-close{display:none}.cb-story-publish #storyError{font-size:.8rem}.cb-story-publish #storyUploadStatus{margin-bottom:0}
@media(max-width:767px){.cb-story-heading{gap:8px}.cb-story-heading h1{display:none}.cb-story-header-actions{gap:8px}.cb-story-header-actions button{font-size:.7rem;padding:6px 10px;min-height:40px}.cb-story-close{width:40px;height:40px}.cb-story-editor{display:flex;flex-direction:column;overflow:hidden}.cb-story-canvas{padding:10px 54px 16px 10px;min-height:calc(100dvh - 180px);justify-content:center}.cb-story-canvas .story-preview{height:min(calc(100dvh - 258px),660px);max-width:100%;flex-shrink:0}.cb-story-canvas .cb-story-file{margin:12px 0 0;padding:8px 14px}.cb-story-canvas .cb-story-help{font-size:.65rem;margin-top:8px}.cb-story-tools{top:18px;right:7px;gap:8px}.cb-story-tools button{min-height:46px}.cb-story-tools button span{font-size:9px}.cb-story-settings{display:none;position:absolute;left:0;right:0;bottom:80px;max-height:min(58dvh,570px);border-left:0;padding:15px 18px 22px;background:linear-gradient(150deg,#201e30,#111722 70%);box-shadow:0 -12px 40px #0007;margin-top:0;border-radius:22px 22px 0 0;z-index:12}.cb-story-editor.is-panel-open .cb-story-settings{display:flex}.cb-story-panel-close{display:block;align-self:end;border:0;border-radius:14px;background:#ffffff0c;color:#d1c4ff;padding:7px 12px;font-size:.8rem;min-height:40px;margin-bottom:10px}.cb-story-settings:before{display:none}.cb-story-publish{position:relative;z-index:13;display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px;background:#10141f;border-left:0;min-height:80px}.cb-story-publish .cb-story-review{width:auto;flex:1;font-size:.73rem;margin:0;padding:8px;line-height:1.4}.cb-story-publish #storySubmit{width:auto;flex:1.2;font-size:.83rem;padding:10px 13px;white-space:nowrap}.cb-story-publish #storyUploadPanel,.cb-story-publish #storyError{width:100%;margin-top:8px!important}.cb-story-canvas .cb-story-caption{font-size:7cqw}.cb-story-settings:has(#storyAccessPanel:not([hidden])){max-height:min(65dvh,620px)}}

/* Handle two-finger gestures on the composition without zooming the page. */
.cb-story-canvas #storyComposition{touch-action:none}.cb-story-canvas #storyPreview::-webkit-media-controls{display:none!important}
