html.story-open,html.story-open body{overflow:hidden!important;overscroll-behavior:none}
.story-home-tray{border-bottom:1px solid #ededed;background:#fff;min-height:112px}
.story-tray-scroll{display:flex;gap:14px;overflow-x:auto;padding:12px 12px 11px;scrollbar-width:none;overscroll-behavior-inline:contain}
.story-tray-scroll::-webkit-scrollbar{display:none}
.story-tray-item{display:grid;justify-items:center;gap:6px;flex:0 0 76px;min-width:0}
.story-ring-button{position:relative;display:grid;place-items:center;width:70px;height:70px;padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer}
.story-ring{position:relative;display:grid;place-items:center;width:70px;height:70px;border-radius:50%;padding:3px;background:#d8d8dd}
.story-ring-button.unseen .story-ring,.story-ring-button.has-story .story-ring{background:conic-gradient(from 215deg,#ff3da4,#7a48ff,#4f8cff,#ff3da4)}
.story-ring-button.seen .story-ring{background:#d5d5d9}
.story-avatar{display:grid;place-items:center;overflow:hidden;border-radius:50%;background:#eeecf6;color:#6255a1;font-weight:700}
.story-avatar img{width:100%;height:100%;object-fit:cover}
.story-tray-avatar{width:62px;height:62px;border:2px solid #fff;font-size:20px}
.story-add-badge{position:absolute;right:-2px;bottom:-2px;display:grid;place-items:center;width:24px;height:24px;border:3px solid #fff;border-radius:50%;background:#7052e7;color:#fff}
.story-add-badge svg{width:14px;height:14px;stroke-width:2.3}
.story-tray-label{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;color:#444;font-size:11px;line-height:1.2}
.story-tray-loading,.story-tray-error{padding:38px 16px;color:#888;font-size:12px;text-align:center}
.story-composer-overlay,.story-viewer-overlay,.story-insights-overlay,.story-settings-overlay,.story-people-overlay{position:fixed;inset:0;z-index:1000;background:#090b0e;color:#f8f8fa;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.story-composer-overlay{display:grid;grid-template-rows:auto 1fr auto auto auto;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.story-compose-top,.story-settings-head,.story-insights-head{display:grid;grid-template-columns:48px 1fr 48px;align-items:center;min-height:64px;padding:0 12px}
.story-compose-top strong,.story-settings-head strong,.story-insights-head strong{text-align:center;font-size:17px}
.story-compose-top button,.story-settings-head button,.story-insights-head button{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:#fff}
.story-compose-top svg,.story-settings-head svg,.story-insights-head svg{width:27px;height:27px}
.story-compose-media{position:relative;display:grid;place-items:center;min-height:0;margin:0 auto;width:min(100%,540px);border-radius:24px;overflow:hidden;background:#111}
.story-compose-media img,.story-compose-media video{display:block;width:100%;height:100%;max-height:calc(100dvh - 240px);object-fit:contain;background:#050505}
.story-compose-caption{padding:10px 16px}
.story-compose-caption input{width:100%;box-sizing:border-box;min-height:46px;padding:0 14px;border:1px solid #2a2d34;border-radius:16px;background:#17191e;color:#fff;font:inherit}
.story-compose-caption input::placeholder{color:#8d929d}
.story-compose-status{min-height:18px;margin:0;padding:0 18px 6px;color:#ffb8b8;font-size:12px;text-align:center}
.story-compose-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:8px 16px 14px}
.story-compose-actions button{min-height:48px;border:0;border-radius:999px;background:#fff;color:#111;font:inherit;font-weight:750}
.story-compose-actions button:last-child{background:#7052e7;color:#fff}
.story-compose-actions button:disabled{opacity:.5}
.story-viewer-overlay{display:grid;place-items:center;background:#000}
.story-viewer-shell{position:relative;width:min(100%,540px);height:100dvh;overflow:hidden;background:#000}
.story-progress{position:absolute;z-index:8;top:calc(env(safe-area-inset-top) + 9px);left:8px;right:8px;display:flex;gap:4px;height:3px}
.story-progress-track{position:relative;flex:1;overflow:hidden;border-radius:999px;background:#ffffff55}
.story-progress-track i{position:absolute;inset:0;transform:scaleX(0);transform-origin:left;background:#fff}
.story-progress-track.complete i{transform:scaleX(1)}
.story-progress-track.active i.run{animation:story-progress linear forwards}
@keyframes story-progress{to{transform:scaleX(1)}}
.story-viewer-top{position:absolute;z-index:9;top:calc(env(safe-area-inset-top) + 18px);left:10px;right:10px;display:flex;align-items:center;gap:4px}
.story-viewer-who{display:flex;align-items:center;gap:9px;min-width:0;flex:1;padding:0;border:0;background:transparent;color:#fff;text-align:left}
.story-view-avatar{flex:0 0 38px;width:38px;height:38px;border:1.5px solid #ffffffcc;font-size:14px}
.story-viewer-copy{display:grid;min-width:0}
.story-viewer-name{display:flex;align-items:center;gap:5px;min-width:0;font-size:13px;font-weight:750}
.story-viewer-name>svg{flex:none}
.story-viewer-copy small{color:#d4d4d8;font-size:11px}
.story-verified{width:14px!important;height:14px!important}
.story-top-icon,.story-bottom-icon{border:0;background:transparent;color:#fff}
.story-top-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:50%}
.story-top-icon svg{width:25px;height:25px}
.story-stage{position:absolute;inset:0;display:grid;place-items:center;background:#000}
.story-media{display:block;width:100%;height:100%;object-fit:contain;background:#000}
.story-tap-zone{position:absolute;z-index:4;top:76px;bottom:118px;width:37%;border:0;background:transparent}
.story-tap-left{left:0}.story-tap-right{right:0}
.story-owner-view .story-tap-zone{bottom:94px}
.story-owner-view .story-view-caption{bottom:calc(96px + env(safe-area-inset-bottom))}
.story-owner-stage{touch-action:pan-y}
.story-view-caption{position:absolute;z-index:7;left:18px;right:18px;bottom:112px;margin:0;padding:10px 12px;border-radius:14px;background:#0008;color:#fff;font-size:15px;line-height:1.4;text-align:center;white-space:pre-wrap}
.story-viewer-bottom{position:absolute;z-index:10;left:0;right:0;bottom:0;display:flex;align-items:center;gap:8px;min-height:92px;padding:12px 14px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(transparent,#000b 28%,#000)}
.story-reply-form{display:flex;align-items:center;flex:1;min-width:0;height:46px;border:1px solid #ffffff88;border-radius:999px;padding:0 6px 0 14px;background:#0005}
.story-reply-form input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:#fff;font:inherit;font-size:16px}
.story-reply-form input::placeholder{color:#ddd}
.story-reply-form button{display:grid;place-items:center;width:38px;height:38px;border:0;background:transparent;color:#fff}
.story-reply-form svg{width:22px;height:22px}
.story-bottom-icon{display:grid;place-items:center;flex:0 0 43px;width:43px;height:43px;border-radius:50%}
.story-bottom-icon svg{width:27px;height:27px}
.story-bottom-icon.liked{color:#ff4d85}
.story-bottom-icon.liked svg{fill:currentColor}
.story-owner-actions{justify-content:center;min-height:78px;padding-top:8px;background:linear-gradient(transparent,#000b 34%,#000)}
.story-owner-highlight{display:grid;justify-items:center;gap:3px;min-width:74px;padding:4px 12px;border:0;background:transparent;color:#fff;font:inherit;font-size:10px;font-weight:650}
.story-owner-highlight svg{width:25px;height:25px}
.story-highlight-sheet-backdrop{position:absolute;z-index:40;inset:0;display:flex;align-items:flex-end;background:#0007}
.story-highlight-sheet{width:100%;box-sizing:border-box;padding:8px 14px calc(16px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;background:var(--iris-surface,#171a1f);color:var(--iris-text,#fff);box-shadow:0 -18px 50px #0008}
.story-highlight-grabber{width:42px;height:4px;margin:0 auto 8px;border-radius:999px;background:color-mix(in srgb,var(--iris-muted,#aaa) 55%,transparent)}
.story-highlight-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:3px 2px 10px}.story-highlight-sheet-head strong{font-size:15px}.story-highlight-sheet-head button{width:32px;height:32px;border:0;border-radius:50%;background:var(--iris-surface-2,#252a31);color:inherit;font:inherit;font-size:21px}
.story-highlight-sheet-status{min-height:14px;margin:0 2px 6px;color:var(--iris-muted,#a0a6b0);font-size:10px}
.story-highlight-picker-list{display:flex;gap:12px;overflow-x:auto;padding:4px 2px 2px;scrollbar-width:none}.story-highlight-picker-list::-webkit-scrollbar{display:none}
.story-highlight-picker-item{display:grid;justify-items:center;gap:5px;flex:0 0 66px;padding:0;border:0;background:transparent;color:inherit;font:inherit}.story-highlight-picker-item>span{display:grid;place-items:center;width:56px;height:56px;border:1.5px solid color-mix(in srgb,var(--iris-accent,#7052e7) 55%,var(--iris-line,#444));border-radius:50%;background:var(--iris-surface-2,#23272d);font-size:18px;font-weight:700}.story-highlight-picker-item>small{max-width:66px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}.story-highlight-picker-item.is-added{opacity:.5}.story-highlight-picker-new>span{border-style:dashed;font-size:24px;font-weight:400}
.story-highlight-create-inline{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;width:100%;padding:4px 0}.story-highlight-create-inline input{min-width:0;min-height:42px;padding:0 12px;border:1px solid var(--iris-line,#40464f);border-radius:11px;background:var(--iris-bg,#0c0f13);color:inherit;font:inherit}.story-highlight-create-inline button{min-height:42px;padding:0 12px;border:0;border-radius:11px;background:var(--iris-surface-2,#252a31);color:inherit;font:inherit;font-size:12px;font-weight:700}.story-highlight-create-inline button[type='submit']{background:var(--iris-accent,#7052e7);color:#fff}
.story-insights-overlay,.story-settings-overlay,.story-people-overlay{overflow-y:auto;background:#111419}
.story-insights-head,.story-settings-head{position:sticky;z-index:20;top:0;padding-top:env(safe-area-inset-top);background:#0c0f13e8;backdrop-filter:blur(18px);border-bottom:1px solid #242830}
.story-insights-preview{display:grid;place-items:center;height:220px;padding:20px;background:#0c0f13}
.story-insights-preview img,.story-insights-preview video{width:128px;height:190px;object-fit:cover;border-radius:18px;background:#000}
.story-insights-tabs{position:sticky;z-index:18;top:calc(64px + env(safe-area-inset-top));display:grid;grid-template-columns:82px 82px 1fr;align-items:center;height:62px;padding:0 20px;border-bottom:1px solid #262a31;background:#171a1f}
.story-insights-tabs button{position:relative;display:flex;align-items:center;justify-content:center;gap:7px;height:62px;border:0;background:transparent;color:#e8e9ed}
.story-insights-tabs button svg{width:27px;height:27px}
.story-insights-tabs button.active{color:#6d82ff}
.story-insights-tabs button.active::after{content:"";position:absolute;left:8px;right:8px;bottom:0;height:3px;border-radius:3px;background:#6d82ff}
.story-insights-tabs .story-insights-delete{justify-self:end;color:#fff}
.story-insights-content{padding-bottom:calc(40px + env(safe-area-inset-bottom))}
.story-insight-section{padding:24px 20px;border-bottom:10px solid #20242b}
.story-insight-section h2,.story-insights-content>h2{margin:0 0 22px;font-size:22px}
.story-metric{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;font-size:16px}
.story-metric strong{font-weight:500}
.story-dot{display:inline-block;width:9px;height:9px;margin-right:8px;border-radius:50%}
.story-dot.pink{background:#d149c8}.story-dot.purple{background:#7443ff}
.story-donut{--story-percent:0%;display:grid;place-items:center;width:min(72vw,300px);aspect-ratio:1;margin:20px auto 18px;border-radius:50%;background:conic-gradient(#cf49ca 0 var(--story-percent),#6f40ff var(--story-percent) 100%);position:relative}
.story-donut::after{content:"";position:absolute;inset:17px;border-radius:50%;background:#111419}
.story-donut>div{position:relative;z-index:1;display:grid;text-align:center}
.story-donut small{font-size:14px}.story-donut strong{font-size:46px;font-weight:500}
.story-viewer-row{display:flex;align-items:center;gap:12px;min-height:68px;padding:7px 0;border-bottom:1px solid #262a31}
.story-list-avatar{flex:0 0 52px;width:52px;height:52px;font-size:18px}
.story-list-copy{display:grid;gap:3px;min-width:0;flex:1}
.story-list-copy strong{display:flex;align-items:center;gap:5px;min-width:0;font-size:15px}
.story-list-copy small{color:#9aa0aa;font-size:12px}
.story-viewer-row>button{display:grid;place-items:center;width:44px;height:44px;border:0;background:transparent;color:#fff}
.story-viewer-row>button svg{width:25px;height:25px}
.story-empty{padding:28px 0;color:#969ca7;text-align:center}
.story-settings-content{padding-bottom:calc(30px + env(safe-area-inset-bottom))}
.story-settings-section{padding:24px 20px;border-bottom:1px solid #252931}
.story-settings-section h2{margin:0 0 20px;font-size:18px}
.story-settings-row{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:68px;padding:0;border:0;background:transparent;color:#f6f7fa;font:inherit;text-align:left}
.story-settings-row strong{font-size:17px;font-weight:500}
.story-settings-value{color:#a2a8b3}
.story-settings-description{margin:0 0 12px;color:#f1f2f5;font-size:17px}
.story-policy-group{display:grid}
.story-policy-row{display:flex;align-items:center;justify-content:space-between;min-height:58px;font-size:17px}
.story-policy-row input{appearance:none;width:28px;height:28px;border:2px solid #aeb4bf;border-radius:50%;background:transparent}
.story-policy-row input:checked{border:7px solid #fff}
.story-toggle-row{display:flex;align-items:center;gap:16px;min-height:82px}
.story-toggle-row>span{display:grid;gap:5px;flex:1}
.story-toggle-row strong{font-size:17px;font-weight:500}
.story-toggle-row small{color:#969ca7;font-size:13px;line-height:1.4}
.story-toggle-row input{appearance:none;position:relative;flex:0 0 60px;width:60px;height:34px;border-radius:999px;background:#8e95a2;transition:.18s}
.story-toggle-row input::after{content:"";position:absolute;top:3px;left:3px;width:28px;height:28px;border-radius:50%;background:#111419;transition:.18s}
.story-toggle-row input:checked{background:#fff}
.story-toggle-row input:checked::after{transform:translateX(26px)}
.story-settings-done{background:#4d63f5!important}
.story-people-search{position:sticky;z-index:17;top:calc(64px + env(safe-area-inset-top));padding:12px 16px;background:#111419}
.story-people-search input{width:100%;box-sizing:border-box;min-height:44px;padding:0 14px;border:1px solid #30343d;border-radius:14px;background:#1a1e24;color:#fff;font:inherit}
.story-people-list{padding:0 20px 40px}
.story-person-toggle{width:auto!important;min-width:76px!important;height:38px!important;padding:0 14px!important;border:1px solid #4d63f5!important;border-radius:999px!important;color:#fff!important;background:#4d63f5!important;font:inherit!important;font-size:13px!important;font-weight:700!important}
.story-person-toggle.selected{border-color:#3a3e47!important;background:transparent!important;color:#c9ccd2!important}
.story-toast{position:fixed;z-index:1100;left:50%;bottom:calc(92px + env(safe-area-inset-bottom));max-width:min(88vw,420px);padding:11px 16px;border-radius:999px;background:#15171bea;color:#fff;font:13px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 8px 30px #0005;opacity:0;transform:translate(-50%,12px);pointer-events:none;transition:.18s}
.story-toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:700px){.story-home-tray{border-left:0;border-right:0}.story-insights-overlay,.story-settings-overlay,.story-people-overlay{left:50%;right:auto;width:min(100%,620px);transform:translateX(-50%);box-shadow:0 0 60px #0008}.story-composer-overlay{left:50%;right:auto;width:min(100%,620px);transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.story-progress-track.active i.run{animation:none;transform:scaleX(1)}.story-toast,.story-toggle-row input,.story-toggle-row input::after{transition:none}}.story-archive-overlay{position:fixed;inset:0;z-index:1000;overflow-y:auto;background:#111419;color:#fff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.story-archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:8px 8px calc(30px + env(safe-area-inset-bottom))}
.story-archive-grid>.story-empty{grid-column:1/-1}
.story-archive-card{position:relative;display:block;aspect-ratio:9/16;padding:0;border:0;border-radius:8px;overflow:hidden;background:#050505;color:#fff}
.story-archive-card img,.story-archive-card video{width:100%;height:100%;object-fit:cover}
.story-archive-card time{position:absolute;left:6px;bottom:6px;padding:3px 6px;border-radius:999px;background:#0009;font-size:10px}
@media(min-width:700px){.story-archive-overlay{left:50%;right:auto;width:min(100%,620px);transform:translateX(-50%);box-shadow:0 0 60px #0008}}

/* Story insights/viewers mobile polish — compact, aligned, and consistently guttered. */
.story-insights-preview{
  box-sizing:border-box;
  height:188px;
  padding:14px 20px;
}
.story-insights-preview img,
.story-insights-preview video{
  width:108px;
  height:160px;
  border-radius:16px;
}
.story-insights-tabs{
  grid-template-columns:70px 88px 1fr;
  height:58px;
  padding:0 18px;
}
.story-insights-tabs button{
  height:58px;
  gap:6px;
  font:inherit;
  font-size:15px;
  line-height:1;
}
.story-insights-tabs button svg{width:25px;height:25px}
.story-insights-tabs button>span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:1ch;
  font-size:15px;
  font-weight:500;
  line-height:1;
}
.story-insights-tabs button.active::after{
  left:50%;
  right:auto;
  width:50px;
  height:3px;
  transform:translateX(-50%);
}
.story-insights-tabs .story-insights-delete{
  justify-self:end;
  width:44px;
  padding:0;
}
.story-insights-content.story-viewers-mode{
  box-sizing:border-box;
  padding:0 20px calc(40px + env(safe-area-inset-bottom));
}
.story-insights-content.story-viewers-mode>h2{
  margin:0;
  padding:24px 0 8px;
  font-size:22px;
  font-weight:750;
  line-height:1.18;
  letter-spacing:-.02em;
}
.story-insights-content.story-viewers-mode>.story-empty{
  margin:0;
  padding:42px 0 24px;
  color:#969ca7;
  font-size:16px;
  line-height:1.4;
  text-align:center;
}
.story-insights-content.story-viewers-mode>.story-viewer-row{
  min-height:70px;
  padding:8px 0;
}
.story-insights-content.story-viewers-mode .story-list-avatar{
  width:50px;
  height:50px;
  flex-basis:50px;
}
.story-insights-content.story-viewers-mode .story-list-copy strong{font-size:15px}
.story-insights-content.story-viewers-mode .story-list-copy small{font-size:12px}
@media(max-width:359px){
  .story-insights-content.story-viewers-mode{padding-inline:16px}
  .story-insights-tabs{padding-inline:14px;grid-template-columns:64px 82px 1fr}
  .story-insights-content.story-viewers-mode>h2{font-size:20px}
}

/* Stories inherit the same Iris palette as the rest of the signed-in app. */
html[data-iris-theme] .story-home-tray{
  background:var(--iris-bg)!important;
  color:var(--iris-text)!important;
  border-bottom-color:var(--iris-line)!important;
}
html[data-iris-theme] .story-ring{background:var(--iris-surface-3)!important}
html[data-iris-theme] .story-ring-button.unseen .story-ring,
html[data-iris-theme] .story-ring-button.has-story .story-ring{
  background:conic-gradient(from 215deg,
    var(--iris-accent),
    color-mix(in srgb,var(--iris-accent) 62%,var(--iris-text)),
    var(--iris-accent),
    color-mix(in srgb,var(--iris-accent) 62%,var(--iris-text)))!important;
}
html[data-iris-theme] .story-ring-button.seen .story-ring{background:var(--iris-line)!important}
html[data-iris-theme] .story-avatar{background:var(--iris-surface-2)!important;color:var(--iris-accent)!important}
html[data-iris-theme] .story-tray-avatar{border-color:var(--iris-bg)!important}
html[data-iris-theme] .story-add-badge{background:var(--iris-accent)!important;color:#fff!important;border-color:var(--iris-bg)!important}
html[data-iris-theme] .story-tray-label{color:var(--iris-text)!important}
html[data-iris-theme] .story-tray-loading,
html[data-iris-theme] .story-tray-error{color:var(--iris-muted)!important}

html[data-iris-theme] .story-composer-overlay,
html[data-iris-theme] .story-viewer-overlay,
html[data-iris-theme] .story-insights-overlay,
html[data-iris-theme] .story-settings-overlay,
html[data-iris-theme] .story-people-overlay,
html[data-iris-theme] .story-archive-overlay{
  background:var(--iris-bg)!important;
  color:var(--iris-text)!important;
}
html[data-iris-theme] .story-viewer-shell,
html[data-iris-theme] .story-stage,
html[data-iris-theme] .story-media{
  background:var(--iris-bg)!important;
}
html[data-iris-theme] .story-compose-top,
html[data-iris-theme] .story-viewer-top{
  color:var(--iris-text)!important;
}
html[data-iris-theme] .story-viewer-top{
  background:linear-gradient(color-mix(in srgb,var(--iris-bg) 84%,transparent),transparent)!important;
}
html[data-iris-theme] .story-compose-top button,
html[data-iris-theme] .story-settings-head button,
html[data-iris-theme] .story-insights-head button,
html[data-iris-theme] .story-top-icon,
html[data-iris-theme] .story-bottom-icon,
html[data-iris-theme] .story-viewer-who,
html[data-iris-theme] .story-viewer-row>button{
  color:var(--iris-text)!important;
}
html[data-iris-theme] .story-view-avatar{border-color:color-mix(in srgb,var(--iris-text) 78%,transparent)!important}
html[data-iris-theme] .story-viewer-copy small{color:var(--iris-muted)!important}
html[data-iris-theme] .story-progress-track{background:color-mix(in srgb,var(--iris-text) 24%,transparent)!important}
html[data-iris-theme] .story-progress-track i{background:var(--iris-text)!important}
html[data-iris-theme] .story-compose-media,
html[data-iris-theme] .story-compose-media img,
html[data-iris-theme] .story-compose-media video{
  background:var(--iris-surface-2)!important;
}
html[data-iris-theme] .story-compose-caption input,
html[data-iris-theme] .story-people-search input{
  background:var(--iris-surface-2)!important;
  color:var(--iris-text)!important;
  border-color:var(--iris-line)!important;
}
html[data-iris-theme] .story-compose-caption input::placeholder,
html[data-iris-theme] .story-reply-form input::placeholder,
html[data-iris-theme] .story-people-search input::placeholder{color:var(--iris-muted)!important}
html[data-iris-theme] .story-compose-actions button{
  background:var(--iris-button)!important;
  color:var(--iris-button-text)!important;
  border:1px solid var(--iris-line)!important;
}
html[data-iris-theme] .story-compose-actions button:last-child,
html[data-iris-theme] .story-settings-done,
html[data-iris-theme] .story-person-toggle{
  background:var(--iris-accent)!important;
  color:#fff!important;
  border-color:var(--iris-accent)!important;
}
html[data-iris-theme] .story-compose-status{color:color-mix(in srgb,#a03b4d 80%,var(--iris-text))!important}
html[data-iris-theme] .story-view-caption{
  background:color-mix(in srgb,var(--iris-surface) 88%,transparent)!important;
  color:var(--iris-text)!important;
  border:1px solid color-mix(in srgb,var(--iris-line) 80%,transparent)!important;
}
html[data-iris-theme] .story-viewer-bottom{
  background:linear-gradient(transparent,color-mix(in srgb,var(--iris-bg) 88%,transparent) 28%,var(--iris-bg))!important;
}
html[data-iris-theme] .story-reply-form{
  background:color-mix(in srgb,var(--iris-surface) 82%,transparent)!important;
  border-color:var(--iris-line)!important;
}
html[data-iris-theme] .story-reply-form input{color:var(--iris-text)!important}
html[data-iris-theme] .story-reply-form button{color:var(--iris-text)!important}
html[data-iris-theme] .story-bottom-icon.liked{color:var(--iris-accent)!important}

html[data-iris-theme] .story-insights-head,
html[data-iris-theme] .story-settings-head{
  background:color-mix(in srgb,var(--iris-bg) 94%,transparent)!important;
  color:var(--iris-text)!important;
  border-bottom-color:var(--iris-line)!important;
}
html[data-iris-theme] .story-insights-preview{background:var(--iris-surface)!important}
html[data-iris-theme] .story-insights-preview img,
html[data-iris-theme] .story-insights-preview video{background:var(--iris-surface-2)!important}
html[data-iris-theme] .story-insights-tabs{
  background:var(--iris-surface)!important;
  border-bottom-color:var(--iris-line)!important;
}
html[data-iris-theme] .story-insights-tabs button{color:var(--iris-muted)!important}
html[data-iris-theme] .story-insights-tabs button.active{color:var(--iris-accent)!important}
html[data-iris-theme] .story-insights-tabs button.active::after{background:var(--iris-accent)!important}
html[data-iris-theme] .story-insights-tabs .story-insights-delete{color:var(--iris-text)!important}
html[data-iris-theme] .story-insight-section{border-bottom-color:var(--iris-surface-2)!important}
html[data-iris-theme] .story-donut{
  background:conic-gradient(
    var(--iris-accent) 0 var(--story-percent),
    color-mix(in srgb,var(--iris-accent) 34%,var(--iris-surface-3)) var(--story-percent) 100%)!important;
}
html[data-iris-theme] .story-donut::after{background:var(--iris-bg)!important}
html[data-iris-theme] .story-dot.pink{background:var(--iris-accent)!important}
html[data-iris-theme] .story-dot.purple{background:color-mix(in srgb,var(--iris-accent) 58%,var(--iris-text))!important}
html[data-iris-theme] .story-viewer-row{border-bottom-color:var(--iris-line)!important}
html[data-iris-theme] .story-list-copy small,
html[data-iris-theme] .story-empty,
html[data-iris-theme] .story-settings-value,
html[data-iris-theme] .story-toggle-row small{color:var(--iris-muted)!important}
html[data-iris-theme] .story-settings-section{border-bottom-color:var(--iris-line)!important}
html[data-iris-theme] .story-settings-row,
html[data-iris-theme] .story-settings-description,
html[data-iris-theme] .story-policy-row{color:var(--iris-text)!important}
html[data-iris-theme] .story-policy-row input{border-color:var(--iris-muted)!important}
html[data-iris-theme] .story-policy-row input:checked{border-color:var(--iris-accent)!important}
html[data-iris-theme] .story-toggle-row input{background:var(--iris-surface-3)!important}
html[data-iris-theme] .story-toggle-row input::after{background:var(--iris-button-text)!important}
html[data-iris-theme] .story-toggle-row input:checked{background:var(--iris-accent)!important}
html[data-iris-theme] .story-people-search{background:var(--iris-bg)!important}
html[data-iris-theme] .story-person-toggle.selected{
  background:var(--iris-surface)!important;
  color:var(--iris-muted)!important;
  border-color:var(--iris-line)!important;
}
html[data-iris-theme] .story-toast{
  background:var(--iris-surface-2)!important;
  color:var(--iris-text)!important;
  box-shadow:0 8px 30px var(--iris-shadow)!important;
}
html[data-iris-theme] .story-archive-card{
  background:var(--iris-surface-2)!important;
  color:var(--iris-text)!important;
}
html[data-iris-theme] .story-archive-card time{
  background:color-mix(in srgb,var(--iris-surface) 88%,transparent)!important;
  color:var(--iris-text)!important;
  border:1px solid color-mix(in srgb,var(--iris-line) 80%,transparent)!important;
}
@media(min-width:700px){
  html[data-iris-theme] .story-insights-overlay,
  html[data-iris-theme] .story-settings-overlay,
  html[data-iris-theme] .story-people-overlay,
  html[data-iris-theme] .story-archive-overlay,
  html[data-iris-theme] .story-composer-overlay{box-shadow:0 0 60px var(--iris-shadow)!important}
}

/* Native iOS-style Story creator/editor v1 */
.story-create-overlay,
.story-composer-overlay.story-editor-v2{
  position:fixed!important;inset:0!important;z-index:2147482000!important;background:#080b0e!important;color:#fff!important;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.story-create-overlay{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.story-camera-shell,.story-editor-shell{position:relative;width:100%;height:100%;overflow:hidden;background:#080b0e}
.story-camera-stage,.story-editor-v2 .story-compose-media{
  position:absolute;left:0;right:0;top:0;bottom:86px;margin:0!important;width:100%!important;border-radius:0!important;overflow:hidden;background:#111!important;
}
.story-camera-placeholder{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:8px;padding:28px;text-align:center;background:radial-gradient(circle at 50% 38%,#2a2d33,#0c0e12 62%,#050607)}
.story-camera-placeholder>span{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#ffffff17}
.story-camera-placeholder svg{width:31px;height:31px}.story-camera-placeholder strong{font-size:20px}.story-camera-placeholder small{max-width:260px;color:#b7bbc4;font-size:13px;line-height:1.4}
.story-camera-close,.story-camera-settings,.story-editor-close{
  position:absolute;z-index:8;top:18px;display:grid;place-items:center;width:46px;height:46px;border:0;border-radius:50%;background:#1118;color:#fff;backdrop-filter:blur(12px)
}
.story-camera-close,.story-editor-close{left:16px}.story-camera-settings{right:16px}.story-camera-close svg,.story-camera-settings svg,.story-editor-close svg{width:27px;height:27px}
.story-camera-tools{position:absolute;z-index:8;left:18px;top:116px;display:grid;gap:12px}
.story-camera-tools button{display:grid;grid-template-columns:38px auto;align-items:center;gap:8px;min-height:44px;padding:0;border:0;background:transparent;color:#fff;text-align:left;font:inherit;font-size:13px;font-weight:650}
.story-camera-tools button svg{width:28px;height:28px}
.story-camera-bottom{position:absolute;z-index:9;left:0;right:0;bottom:78px;display:grid;grid-template-columns:72px 1fr 72px;align-items:center;padding:0 18px}
.story-gallery-launch,.story-flip{display:grid;place-items:center;width:54px;height:54px;margin:auto;border:0;border-radius:50%;background:#25282f;color:#fff}
.story-gallery-launch svg,.story-flip svg{width:28px;height:28px}
.story-shutter{position:relative;display:grid;place-items:center;width:86px;height:86px;margin:auto;border:4px solid #fff;border-radius:50%;background:transparent;padding:5px}
.story-shutter>span{display:block;width:100%;height:100%;border-radius:50%;background:#f4f4f4;transition:.16s}
.story-shutter.recording>span{width:38px;height:38px;border-radius:9px;background:#ff3b4f}
.story-mode-bar{position:absolute;z-index:8;left:0;right:0;bottom:18px;display:flex;justify-content:center;gap:20px;color:#838790;font-size:12px;font-weight:650;letter-spacing:.06em}
.story-mode-bar strong{color:#fff}.story-camera-status{position:absolute;z-index:10;left:24px;right:24px;bottom:178px;margin:0;color:#fff;text-align:center;font-size:12px;text-shadow:0 1px 4px #000}
.story-camera-effect .story-camera-stage{filter:saturate(1.25) contrast(1.08)}
.story-editor-v2{display:block!important;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)!important}
.story-editor-v2 .story-compose-media img,.story-editor-v2 .story-compose-media video{width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;background:#000!important}
.story-editor-tools{position:absolute;z-index:9;right:14px;top:18px;display:grid;gap:10px}
.story-editor-tools button{display:grid;place-items:center;width:46px;height:46px;border:0;border-radius:50%;background:#2c2f35d9;color:#fff}
.story-editor-tools button b{font-size:20px;font-weight:700}.story-editor-tools svg{width:25px;height:25px}.story-editor-tools button.active{background:#7052e7}
.story-editor-caption{position:absolute;z-index:9;left:18px;right:96px;bottom:96px}
.story-editor-caption input{width:100%;box-sizing:border-box;min-height:44px;padding:0 12px;border:0;border-bottom:1px solid #ffffff77;background:transparent;color:#fff;font:inherit;font-size:15px;outline:0}
.story-editor-caption input::placeholder{color:#fff}
.story-editor-v2 .story-compose-status{position:absolute;z-index:10;left:18px;right:18px;bottom:78px;min-height:16px;padding:0;color:#ffb8b8;font-size:11px;text-align:center}
.story-editor-share{position:absolute;z-index:10;left:0;right:0;bottom:0;display:grid;grid-template-columns:86px 98px 1fr 60px;align-items:center;gap:6px;min-height:84px;padding:8px 14px calc(8px + env(safe-area-inset-bottom));background:#080b0ef2}
.story-audience{display:grid;justify-items:center;gap:5px;min-width:0;padding:0;border:0;background:transparent;color:#fff;font:inherit}
.story-audience small{font-size:10px;white-space:nowrap}.story-audience-dot,.story-close-friends-mark{display:grid;place-items:center;width:40px;height:40px;border:2px solid transparent;border-radius:50%;overflow:hidden;background:#2a2d34}
.story-audience-dot .story-avatar{width:100%;height:100%}.story-close-friends-mark{background:#20d766;color:#fff;font-size:20px}.story-audience.selected .story-audience-dot,.story-audience.selected .story-close-friends-mark{border-color:#fff;box-shadow:0 0 0 2px #7052e7}
.story-share-arrow{grid-column:4;display:grid;place-items:center;width:54px;height:54px;border:0;border-radius:50%;background:#f5f5f5;color:#111}.story-share-arrow svg{width:28px;height:28px}
html[data-iris-theme] .story-create-overlay,html[data-iris-theme] .story-composer-overlay.story-editor-v2{background:#080b0e!important;color:#fff!important}
.story-create-overlay~#bottom-nav,.story-composer-overlay.story-editor-v2~#bottom-nav{visibility:hidden!important}
@media(min-width:700px){.story-create-overlay,.story-composer-overlay.story-editor-v2{left:50%!important;right:auto!important;width:min(100%,620px)!important;transform:translateX(-50%)!important;box-shadow:0 0 60px #0008!important}}
.story-viewer-overlay,.story-insights-overlay,.story-settings-overlay,.story-people-overlay,.story-archive-overlay{z-index:2147482000!important}

/* Live device camera Story preview */
.story-camera-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#000}
.story-camera-preview[style*="scaleX(-1)"]{transform:scaleX(-1)}
.story-mode-bar{justify-content:center!important;gap:0!important}
.story-mode-bar strong{font-size:14px;letter-spacing:.08em;color:#fff!important}

.story-camera-zoom{position:absolute;z-index:7;left:50%;bottom:110px;transform:translateX(-50%);display:grid;place-items:center;min-width:42px;height:30px;padding:0 9px;border-radius:999px;background:#111a;color:#fff;font:700 13px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;backdrop-filter:blur(10px);pointer-events:none}


/* Edge-to-edge Story camera v4: camera fills the entire physical display; controls float above it. */
.story-create-overlay{
  padding:0!important;
  background:#000!important;
}
.story-create-overlay .story-camera-shell{
  position:relative!important;
  width:100%!important;
  height:100dvh!important;
  min-height:100dvh!important;
  overflow:hidden!important;
  background:#000!important;
}
.story-create-overlay .story-camera-stage{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  border-radius:0!important;
  overflow:hidden!important;
  background:#000!important;
}
.story-create-overlay .story-camera-preview{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  background:#000!important;
}
.story-create-overlay .story-camera-close,
.story-create-overlay .story-camera-settings{
  top:calc(env(safe-area-inset-top) + 14px)!important;
}
.story-create-overlay .story-camera-tools{
  top:calc(env(safe-area-inset-top) + 112px)!important;
}
.story-create-overlay .story-camera-bottom{
  bottom:calc(env(safe-area-inset-bottom) + 54px)!important;
}
.story-create-overlay .story-mode-bar{
  bottom:calc(env(safe-area-inset-bottom) + 14px)!important;
  background:transparent!important;
}
.story-create-overlay .story-camera-zoom{
  bottom:calc(env(safe-area-inset-bottom) + 174px)!important;
}
.story-create-overlay .story-camera-status{
  bottom:calc(env(safe-area-inset-bottom) + 218px)!important;
}

/* Native iOS Story camera: AVFoundation supplies a portrait, locked-1x preview behind the existing Iris controls. */
html.story-native-preview-active,
html.story-native-preview-active body{background:transparent!important}
html.story-native-preview-active #app,
html.story-native-preview-active #pane,
html.story-native-preview-active #bottom-nav{visibility:hidden!important}
html.story-native-preview-active .story-create-overlay{visibility:visible!important;background:transparent!important}
.story-create-overlay.story-native-camera,
.story-create-overlay.story-native-camera .story-camera-shell,
.story-create-overlay.story-native-camera .story-camera-stage{background:transparent!important}
.story-create-overlay.story-native-camera .story-camera-preview{visibility:hidden!important}

/* Native Story camera must stay visible underneath themed web UI. */
html.story-native-preview-active[data-iris-theme] .story-create-overlay.story-native-camera,
html.story-native-preview-active[data-iris-theme] .story-create-overlay.story-native-camera .story-camera-shell,
html.story-native-preview-active[data-iris-theme] .story-create-overlay.story-native-camera .story-camera-stage{background:transparent!important}

/* Camera lifecycle: reveal controls and native video together, never a themed loading sheet. */
html .story-create-overlay.story-camera-pending{opacity:0!important;pointer-events:auto!important}
html.story-native-preview-active body>.shell,
html.story-native-preview-active body>.shell *{visibility:hidden!important}
html.story-native-preview-active body>.shell{background:transparent!important}

/* Owner story management: keep the current story paused while actions are open. */
.story-actions-backdrop{position:absolute;inset:0;z-index:60;display:flex;align-items:flex-end;justify-content:center;background:#0008}
.story-actions-sheet{box-sizing:border-box;width:min(100%,540px);max-height:calc(100dvh - env(safe-area-inset-top) - 30px);overflow-y:auto;padding:10px 16px calc(16px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;background:var(--iris-surface,#171a1f);color:var(--iris-text,#fff);box-shadow:0 -12px 40px #0005}
.story-actions-grabber{width:40px;height:4px;margin:0 auto 16px;border-radius:999px;background:var(--iris-muted,#888)}
.story-actions-title{display:block;font-size:17px;padding:0 8px 4px}
.story-actions-status{margin:0;padding:6px 8px;color:var(--iris-muted,#aaa);font-size:13px;line-height:1.4}
.story-actions-status:empty{display:none}
.story-actions-list{display:grid;gap:4px;margin-top:8px}
.story-actions-sheet .story-action-row{display:flex;align-items:center;gap:14px;min-height:54px;width:100%;padding:12px;border:0;border-radius:14px;background:transparent;color:inherit;text-align:left;font:inherit;font-size:16px;cursor:pointer}
.story-actions-sheet .story-action-row svg{flex:none;width:24px;height:24px}
.story-actions-sheet .story-action-row:active,.story-actions-sheet .story-action-row:focus-visible{background:color-mix(in srgb,currentColor 10%,transparent);outline:2px solid var(--iris-accent,#7052e7);outline-offset:-2px}
.story-actions-sheet .story-action-danger{color:#ff5267}
.story-actions-sheet button:disabled{opacity:.5;cursor:wait}
.story-actions-open .story-progress-track i{animation-play-state:paused!important}
.isa-story-card[type="button"]{font:inherit;color:inherit;text-align:left;cursor:pointer}

/* Story camera controls: every visible tool performs an action. */
.story-create-overlay .story-camera-zoom{z-index:12;min-width:48px;min-height:44px;border:1px solid #ffffff38;pointer-events:auto;touch-action:manipulation;cursor:pointer}
.story-create-overlay .story-camera-zoom:disabled{opacity:.45;cursor:default}
.story-create-overlay .story-shutter{touch-action:none;-webkit-touch-callout:none;user-select:none}
.story-create-overlay .story-camera-tools button[hidden]{display:none}
.story-create-overlay .story-camera-tools button[aria-pressed="true"]{color:#e5c26c}
.story-create-overlay .story-camera-effect-overlay{position:absolute;inset:0;z-index:2;pointer-events:none}
.story-create-overlay .story-camera-layout-grid{position:absolute;inset:0;z-index:3;pointer-events:none}
.story-create-overlay .story-camera-layout-cell{position:absolute;box-sizing:border-box;border:0;overflow:hidden}
.story-create-overlay .story-camera-layout-cell.has-left-divider{border-left:1px solid #ffffff38}
.story-create-overlay .story-camera-layout-cell.has-top-divider{border-top:1px solid #ffffff38}
.story-create-overlay .story-camera-layout-cell.is-empty{background:linear-gradient(145deg,#30322ed9,#202530e6);backdrop-filter:blur(32px);-webkit-backdrop-filter:blur(32px)}
.story-create-overlay .story-camera-layout-cell img{width:100%;height:100%;object-fit:cover}
.story-create-overlay .story-camera-controls-panel{position:absolute;z-index:20;left:18px;right:18px;bottom:calc(env(safe-area-inset-bottom) + 228px);max-height:min(380px,55dvh);overflow-y:auto;padding:16px;box-sizing:border-box;border:1px solid #ffffff29;border-radius:22px;background:#15171def;color:#fff;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);box-shadow:0 8px 36px #0006}
.story-create-overlay .story-camera-controls-panel[hidden]{display:none}
.story-camera-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.story-camera-panel-head strong{font-size:15px;font-weight:650}
.story-camera-panel-head button{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:50%;background:#ffffff12;color:#fff}
.story-camera-panel-head svg{width:19px;height:19px}
.story-camera-panel-choices{display:flex;flex-wrap:wrap;gap:8px}
.story-camera-panel-choices button,.story-camera-text-create{min-height:44px;padding:10px 15px;border:1px solid #ffffff35;border-radius:999px;background:#ffffff0c;color:#fff;font:600 14px -apple-system,BlinkMacSystemFont,sans-serif}
.story-camera-panel-choices button[aria-pressed="true"]{background:#e5c26c;color:#111;border-color:#e5c26c}
.story-camera-controls-panel textarea{display:block;box-sizing:border-box;width:100%;min-height:100px;max-height:180px;resize:none;padding:12px;border:1px solid #ffffff30;border-radius:14px;background:#0004;color:#fff;font:16px -apple-system,BlinkMacSystemFont,sans-serif}
.story-camera-text-create{margin-top:12px;background:#f5f5f5;color:#111;width:100%}
.story-camera-controls-panel:has(textarea){top:calc(env(safe-area-inset-top) + 76px);bottom:auto;max-height:calc(100dvh - env(safe-area-inset-top) - 90px)}
.story-camera-tools button:disabled,.story-gallery-launch:disabled,.story-flip:disabled{opacity:.45}
.story-create-overlay .story-camera-stage,.story-viewer-overlay .story-stage{touch-action:none}
.story-create-overlay .story-camera-shell,.story-editor-shell,.story-viewer-shell{transition:transform .14s cubic-bezier(.22,.8,.25,1)}
@media(prefers-reduced-motion:reduce){.story-create-overlay .story-camera-shell,.story-editor-shell,.story-viewer-shell{transition:none}}

/* Photo timer and clean, unnumbered grid choices. */
.story-camera-tools button[data-create]{display:flex;min-width:44px}
.story-camera-text-mark{display:block;width:38px;text-align:center;font:650 32px Georgia,serif;letter-spacing:-2px}
.story-camera-tools [data-timer-label]{font-variant-numeric:tabular-nums}
.story-camera-countdown{position:absolute;inset:0;z-index:25;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;pointer-events:none;background:radial-gradient(ellipse at center,#0002,transparent 65%)}
.story-camera-countdown[hidden]{display:none}
.story-camera-countdown strong{font:650 clamp(100px,30vw,150px)/1 -apple-system,BlinkMacSystemFont,sans-serif;color:#fff;font-variant-numeric:tabular-nums;text-shadow:0 4px 24px #0009}
.story-camera-countdown button{pointer-events:auto;min-height:44px;padding:9px 22px;border:1px solid #ffffff50;border-radius:999px;background:#1118;color:#fff;font:600 14px -apple-system,BlinkMacSystemFont,sans-serif;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.story-counting-down .story-camera-tools,.story-counting-down .story-camera-bottom,.story-counting-down .story-camera-zoom{opacity:.35}
.story-grid-choices{display:flex;justify-content:center;gap:16px}
.story-grid-choices button{display:grid;place-items:center;width:74px;height:74px;padding:12px;border-radius:18px}
.story-grid-choice{display:grid;width:30px;height:44px;gap:2px;overflow:hidden;border:2px solid currentColor;border-radius:7px}
.story-grid-choice[data-grid-count="2"]{grid-template-rows:repeat(2,1fr)}
.story-grid-choice[data-grid-count="4"]{grid-template:repeat(2,1fr)/repeat(2,1fr)}
.story-grid-choice i{background:currentColor;opacity:.5}

/* Text stories: a full-screen canvas with color swatches above the keyboard. */
.story-text-overlay{position:fixed!important;inset:0!important;z-index:2147482000!important;overflow:hidden;color:#fff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--story-text-keyboard-gap:0px}
.story-text-shell{box-sizing:border-box;display:flex;flex-direction:column;width:100%;height:calc(100dvh - var(--story-text-keyboard-gap));padding:calc(env(safe-area-inset-top) + 12px) 16px max(16px,env(safe-area-inset-bottom));background:transparent}
.story-text-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none}
.story-text-head button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 16px;border:1px solid #ffffff40;border-radius:999px;background:#1117;color:#fff;font:600 14px -apple-system,BlinkMacSystemFont,sans-serif;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.story-text-head [data-text-back]{width:44px;padding:8px}
.story-text-head svg{width:22px;height:22px}
.story-text-head [data-text-done]{border:0;background:transparent}
.story-text-head button:disabled{opacity:.5}
.story-text-stage{flex:1;min-height:60px;display:flex;align-items:center;justify-content:center;padding:12px 0;overflow:hidden}
.story-text-stage textarea{box-sizing:border-box;display:block;width:80%;max-height:100%;margin:0;padding:4px 0;border:0;border-radius:0;outline:0;resize:none;overflow-y:auto;background:transparent!important;text-align:center;font:700 30px/1.28 -apple-system,BlinkMacSystemFont,sans-serif;caret-color:var(--story-text-ink,#fff);-webkit-text-fill-color:var(--story-text-ink,#fff);touch-action:pan-y;scrollbar-width:none}
.story-text-stage textarea::placeholder{color:var(--story-text-ink,#fff);opacity:.7}
.story-text-stage textarea:disabled{opacity:1}
.story-text-status{flex:none;margin:0;text-align:center;font-size:12px;text-shadow:0 1px 5px #000;min-height:0}
.story-text-status:empty{display:none}
.story-text-palette{flex:none;min-width:0;display:grid;gap:12px;padding:12px 10px;border:1px solid #ffffff26;border-radius:22px;background:#1115;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
.story-text-tabs{display:flex;justify-content:center;gap:8px}
.story-text-tabs button{min-height:36px;padding:7px 16px;border:0;border-radius:999px;background:transparent;color:#ffffffb3;font:600 13px -apple-system,BlinkMacSystemFont,sans-serif}
.story-text-tabs button[aria-pressed="true"]{background:#ffffff24;color:#fff}
.story-text-swatches{display:flex;gap:12px;overflow-x:auto;overscroll-behavior:contain;padding:4px 3px;scrollbar-width:none}
.story-text-swatches::-webkit-scrollbar{display:none}
.story-text-swatches button{flex:none;box-sizing:border-box;width:44px;height:44px;padding:0;border:2px solid #ffffff60;border-radius:50%;cursor:pointer}
.story-text-swatches button[aria-pressed="true"]{border:3px solid #fff;box-shadow:0 0 0 2px #ffffff65}
.story-text-overlay[data-story-keyboard-open="1"] .story-text-shell{padding-bottom:10px}
.story-text-overlay[data-story-keyboard-open="1"] .story-text-palette{gap:6px;padding-top:8px;padding-bottom:6px}

.story-editor-tools button[hidden]{display:none}

/* Keep the captured media edge to edge and caption text readable. */
html[data-iris-theme] .story-composer-overlay.story-editor-v2{padding:0!important}
.story-editor-v2 .story-editor-shell{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;background:#000!important}
html[data-iris-theme] .story-editor-v2 .story-compose-media{inset:0!important;display:block!important;width:100%!important;height:100%!important;background:#000!important}
.story-editor-v2 .story-compose-media img,.story-editor-v2 .story-compose-media video{position:absolute;inset:0;min-height:0;display:block}
.story-editor-v2 .story-editor-close,.story-editor-v2 .story-editor-tools{top:calc(env(safe-area-inset-top) + 18px)}
html[data-iris-theme] .story-editor-v2 .story-editor-caption input{background:transparent!important;color:#fff!important;border:0!important;border-bottom:1px solid #ffffff77!important;border-radius:0!important;font-size:16px!important}
html[data-iris-theme] .story-editor-v2 .story-editor-caption input::placeholder{color:#fff!important;opacity:.85}
.story-editor-v2 .story-editor-caption{bottom:calc(100px + env(safe-area-inset-bottom))}
.story-editor-v2[data-story-keyboard-open='1'] .story-editor-caption{right:18px;bottom:calc(var(--story-keyboard-gap,0px) + 18px);display:flex;align-items:center;gap:10px}
.story-editor-v2[data-story-keyboard-open='1'] .story-editor-caption input{flex:1;min-width:0}
.story-editor-v2[data-story-keyboard-open='1'] .story-editor-share{visibility:hidden;pointer-events:none}
.story-editor-text-done{flex:none;min-height:44px;padding:0 14px;border:0;border-radius:999px;background:#f5f5f5;color:#111;font:600 14px -apple-system,BlinkMacSystemFont,sans-serif}
.story-editor-text-done[hidden]{display:none}

/* Tap cycles zoom; holding reveals a camera dial above the shutter. */
.story-create-overlay .story-camera-zoom{touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;font-size:15px;font-weight:600}
.story-create-overlay .story-camera-zoom:active{transform:translateX(-50%) scale(.94)}
.story-create-overlay.story-zoom-open .story-camera-zoom{opacity:0;pointer-events:none}
.story-zoom-dial{position:absolute;z-index:8;left:50%;bottom:calc(env(safe-area-inset-bottom) + 70px);width:min(640px,calc(100% + 100px));aspect-ratio:600/330;transform:translateX(-50%);touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;outline:none;cursor:ew-resize;animation:story-zoom-reveal .14s ease-out}
.story-zoom-dial[hidden]{display:none}
.story-create-overlay.story-zoom-open .story-mode-bar{z-index:9}
.story-zoom-dial svg{display:block;width:100%;height:100%;overflow:visible;pointer-events:none}
.story-zoom-dial::before{content:'';position:absolute;top:0;left:0;width:100%;aspect-ratio:1;border-radius:50%;background:#20211fba;pointer-events:none}
.story-zoom-dial svg{position:relative}
.story-zoom-dial-shade{fill:transparent}
.story-zoom-dial-indicator{fill:#ffd353}
.story-zoom-dial-value{fill:#ffd353;font:500 25px -apple-system,BlinkMacSystemFont,sans-serif;font-variant-numeric:tabular-nums}
.story-zoom-dial-label{fill:#fff;font:400 24px -apple-system,BlinkMacSystemFont,sans-serif;font-variant-numeric:tabular-nums}
.story-zoom-dial:focus-visible .story-zoom-dial-indicator{stroke:#fff;stroke-width:2}
@keyframes story-zoom-reveal{from{opacity:0;transform:translateX(-50%) translateY(8px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}
@media(prefers-reduced-motion:reduce){.story-zoom-dial{animation:none}}
