/* 4.6.12: full-width phone Story artboard; keyboard overlays never scale it. */
@media (max-width:760px) {
  body .sms-story-composer__overlay.sms-story--mobile {
    --sms-story-accent:#08734c;--sms-story-surface:#fff;--sms-story-ink:#172033;
    position:fixed;inset:0 auto auto 0!important;z-index:2147483000;
    width:100%;height:var(--sms-story-mobile-height,100lvh);min-height:100%;
    padding:0;background:#101214;color:#fff;overflow:hidden;isolation:isolate;
  }
  body .sms-story--mobile *,body .sms-story--mobile *::before,body .sms-story--mobile *::after {box-sizing:border-box}
  body .sms-story--mobile [hidden] {display:none!important}
  body .sms-story--mobile .sms-story-composer__dialog {position:relative;width:100%;height:100%;min-height:0;display:block;overflow:hidden;background:#101214}
  body .sms-story--mobile .sms-story-composer__header {
    position:absolute;z-index:30;top:var(--sms-story-mobile-top,0px);left:0;right:0;
    min-height:54px;display:grid;grid-template-columns:44px minmax(0,1fr) 82px;gap:8px;
    padding:6px max(10px,env(safe-area-inset-right)) 6px max(10px,env(safe-area-inset-left));
    border:0;background:linear-gradient(#10121499,transparent);color:white;
  }
  body .sms-story--mobile .sms-story-composer__heading {align-self:center;text-align:center}
  body .sms-story--mobile .sms-story-composer__heading h2 {font-size:17px;line-height:1.2;letter-spacing:normal;font-weight:700;margin:0;color:white;text-shadow:0 1px 5px #0009}
  body .sms-story--mobile .sms-story-composer__heading>span {display:none}
  body .sms-story--mobile .sms-story-composer__close {height:44px;width:44px;min-width:44px;min-height:44px;background:#10121466;border:0;border-radius:50%;box-shadow:none;font:36px/1 system-ui;color:white;padding:0;outline:0}
  body .sms-story--mobile .sms-story-mobile__brand {display:block;align-self:center;width:82px;max-height:34px;height:auto;object-fit:contain;background:#ffffffed;padding:5px;border-radius:8px}
  body .sms-story--mobile .sms-story-composer__mobile-publish,body .sms-story--mobile .sms-story-editor__control-head,body .sms-story--mobile .sms-story-composer__footer {display:none!important}
  body .sms-story--mobile .sms-story-composer__form {position:absolute;inset:0;min-height:0;display:block;overflow:hidden}
  body .sms-story--mobile .sms-story-editor {position:static;display:block;width:100%;height:100%;min-height:0;background:transparent}
  body .sms-story--mobile .sms-story-composer__stage {position:absolute;top:var(--sms-story-canvas-top,0px);left:0;right:0;display:block;height:var(--sms-story-canvas-height,177.778vw);min-height:0;padding:0;gap:0;background:transparent;max-height:calc(100% - var(--sms-story-dock-height,76px));overflow-x:hidden;overflow-y:auto;scrollbar-width:none;overscroll-behavior:contain}
  body .sms-story--mobile .sms-story-composer__canvas-wrap {position:relative;display:block;width:var(--sms-story-preview-width,100vw);height:var(--sms-story-canvas-height,177.778vw);aspect-ratio:9/16;max-width:100%;margin:0;padding:0;overflow:visible;border:0;outline:0;box-shadow:none;background:transparent}
  body .sms-story--mobile .sms-story-editor__canvas {display:block;width:100%;max-width:none;height:100%;max-height:none;aspect-ratio:9/16;border:0;border-radius:20px;box-shadow:none!important;outline:0!important;overflow:hidden}
  body .sms-story--mobile .sms-story-editor__quick-text {display:none!important}
  body .sms-story--mobile .sms-story-editor__controls {position:static;display:contents;pointer-events:auto}
  body .sms-story--mobile .sms-story-editor__tools {
    position:absolute;z-index:20;left:0;right:0;bottom:calc(var(--sms-story-visible-bottom,0px) + var(--sms-story-dock-height,76px));
    padding:28px 10px 8px;background:linear-gradient(transparent,#10121499);color:white;
  }
  body .sms-story--mobile .sms-story-editor__tool-grid {
    position:static;width:100%;display:flex!important;flex-direction:row!important;gap:10px!important;
    overflow-x:auto!important;overflow-y:hidden!important;touch-action:pan-x;overscroll-behavior:contain;
    padding:3px 0!important;border:0!important;border-radius:0;background:transparent!important;box-shadow:none;scrollbar-width:none;scroll-snap-type:none;
  }
  body .sms-story--mobile .sms-story-editor__tools.sms-story-editor__tool-grid {position:absolute;width:100%;padding:28px 10px 8px!important;background:linear-gradient(transparent,#10121499)!important}
  body .sms-story--mobile [data-sms-story-tool=stickers] {order:0}
  body .sms-story--mobile [data-sms-story-tool=text] {order:1}
  body .sms-story--mobile [data-sms-story-tool=music] {order:2}
  body .sms-story--mobile [data-sms-story-mobile-media] {order:3}
  body .sms-story--mobile [data-sms-story-mobile-background] {order:4}
  body .sms-story--mobile [data-sms-story-tool=draw] {order:5}
  body .sms-story--mobile [data-sms-story-tool=link] {order:6}
  body .sms-story--mobile [data-sms-story-tool=mention] {order:7}
  body .sms-story--mobile .sms-story-editor__tool-grid button {
    flex:0 0 56px!important;width:56px;min-width:0!important;min-height:66px!important;padding:0!important;gap:4px!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    border:0!important;border-radius:14px!important;background:transparent!important;color:#fff!important;box-shadow:none!important;letter-spacing:normal;touch-action:manipulation;
  }
  body .sms-story--mobile .sms-story-editor__tool-icon,body .sms-story--mobile .sms-story-editor__tool-grid button.is-active .sms-story-editor__tool-icon {
    flex:0 0 44px!important;width:44px!important;height:44px!important;min-height:44px;border:1px solid #ffffff20!important;border-radius:50%!important;padding:10px!important;
    display:grid;place-items:center;background:#10121485!important;color:#fff!important;box-shadow:none!important;font:700 22px/24px system-ui!important;
  }
  body .sms-story--mobile .sms-story-editor__tool-grid button.is-active .sms-story-editor__tool-icon {background:#08734c!important;border-color:#b5f0d9!important}
  body .sms-story--mobile .sms-story-editor__tool-icon svg {width:24px;height:24px;display:block}
  body .sms-story--mobile .sms-story-editor__tool-label {font-size:12px!important;font-weight:650!important;line-height:1.2!important;letter-spacing:normal;white-space:nowrap!important;overflow-wrap:normal;text-shadow:0 1px 4px #000b}
  body .sms-story--mobile .sms-story-mobile__background-button .sms-story-editor__tool-icon {background:linear-gradient(145deg,#20bc91,#7564ed,#ed6495)!important}
  body .sms-story--mobile .sms-story-mobile__dock {
    position:absolute;z-index:22;left:0;right:0;bottom:var(--sms-story-visible-bottom,0px);
    display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:6px 10px;
    padding:10px max(14px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));background:#101214;color:white;
  }
  body .sms-story--mobile .sms-story-composer__visibility {display:flex;align-items:center;min-width:0;gap:6px;margin:0;padding:0;border:0;grid-column:1;font-size:13px}
  body .sms-story--mobile .sms-story-composer__visibility>span {display:none}
  body .sms-story--mobile .sms-story-composer__visibility select {width:100%;max-width:100%;min-height:48px;padding:8px 24px 8px 12px;background:#ffffff19;color:white;border:1px solid #ffffff26;border-radius:24px;font:600 14px/1.3 system-ui}
  body .sms-story--mobile .sms-story-composer__visibility select option {background:#172033;color:#fff}
  body .sms-story--mobile .sms-story-composer__visibility strong {font-size:14px;line-height:1.4;color:inherit}
  body .sms-story--mobile .sms-story-composer__publish {display:block;grid-column:2;width:100%;min-height:48px;margin:0;padding:10px 12px;border:0;border-radius:14px;box-shadow:none;background:var(--sms-story-accent);color:#fff;font:750 17px/1.25 system-ui;letter-spacing:normal;cursor:pointer}
  body .sms-story--mobile .sms-story-composer__publish:disabled {opacity:.45;cursor:not-allowed}
  body .sms-story--mobile .sms-story-composer__notice {grid-column:1/-1;order:-1;min-height:0;margin:0;font-size:13px;line-height:1.35;overflow-wrap:anywhere;max-height:55px;overflow:auto;color:white}
  body .sms-story--mobile .sms-story-composer__notice:empty {display:none}
  body .sms-story--mobile [data-sms-story-progress] {grid-column:1/-1;order:-1;display:block;width:100%;height:5px;accent-color:var(--sms-story-accent);margin:0}
  body .sms-story--mobile .sms-story-editor__story-type {display:none}
  body .sms-story--mobile .sms-story-editor__sheet {
    position:absolute;z-index:32;left:0;right:0;bottom:calc(var(--sms-story-visible-bottom,0px) + var(--sms-story-dock-height,76px));
    display:block;max-height:calc(100% - var(--sms-story-visible-bottom,0px) - var(--sms-story-mobile-top,0px) - var(--sms-story-dock-height,76px) - 64px);
    height:auto;padding:0 14px 14px;margin:0;pointer-events:auto;overflow:auto;overscroll-behavior:contain;
    border:1px solid #dfe5e8;border-bottom:0;border-radius:22px 22px 0 0;background:#fff;color:var(--sms-story-ink);box-shadow:0 -6px 22px #0003;backdrop-filter:none;
  }
  body .sms-story--mobile .sms-story-editor__sheet::before {display:none}
  body .sms-story--mobile .sms-story-mobile__sheet-head {position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:54px;padding:5px 0 7px;background:#fff;color:var(--sms-story-ink);font-size:17px}
  body .sms-story--mobile .sms-story-mobile__done {min-height:44px;min-width:64px;border:0;border-radius:10px;padding:8px 12px;background:#e2f1e9;color:#065f40;font:700 16px/1.3 system-ui;cursor:pointer}
  body .sms-story--mobile .sms-story-editor__panel {gap:12px;font-size:15px;line-height:1.4;color:var(--sms-story-ink)}
  body .sms-story--mobile .sms-story-editor__panel input:not([type=range]):not([type=color]):not([type=file]),body .sms-story--mobile .sms-story-editor__panel select,body .sms-story--mobile .sms-story-editor__panel textarea {min-height:44px;font-size:16px;line-height:1.4;max-width:100%;border-radius:12px;padding:10px;border:1px solid #d7dfe5;color:var(--sms-story-ink);background:#fff}
  body .sms-story--mobile .sms-story-editor__panel input[type=range] {min-height:32px;accent-color:var(--sms-story-accent)}
  body .sms-story--mobile .sms-story-editor__row button {min-height:44px;font-size:14px;flex:1}
  body .sms-story--mobile .sms-story-editor__text-field,body .sms-story--mobile .sms-story-editor__text-panel>.sms-story-editor__field,body .sms-story--mobile .sms-story-editor__text-help {display:none}
  body .sms-story--mobile .sms-story-mobile__background-sheet {position:absolute;z-index:35;left:0;right:0;bottom:var(--sms-story-visible-bottom,0px);max-height:65%;overflow:auto;padding:8px 16px max(20px,env(safe-area-inset-bottom));border-radius:24px 24px 0 0;background:#fff;color:var(--sms-story-ink);box-shadow:0 -8px 35px #0003}
  body .sms-story--mobile .sms-story-editor__desktop-backgrounds {display:block}
  body .sms-story--mobile .sms-story-editor__desktop-backgrounds>.sms-story-editor__field-label {display:none}
  body .sms-story--mobile .sms-story-editor__background-presets {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px 8px;padding:8px 3px 18px}
  body .sms-story--mobile .sms-story-editor__background-preset {width:100%;aspect-ratio:1;height:auto;min-height:40px;border-radius:50%;border:2px solid #ffffffb0;box-shadow:0 2px 5px #0002}
  body .sms-story--mobile .sms-story-editor__background-preset.is-active {outline:2px solid var(--sms-story-accent);outline-offset:2px}
  body .sms-story--mobile .sms-story-mobile__inline {position:absolute;z-index:12;width:86%;transform-origin:center;pointer-events:auto}
  body .sms-story--mobile .sms-story-mobile__inline textarea {
    display:block;width:100%;min-height:48px;max-height:none;resize:none;overflow:auto;border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important;
    background:transparent!important;padding:0!important;margin:0!important;font-size:var(--sms-story-input-font-size,26px)!important;font-weight:800;line-height:1.15!important;letter-spacing:normal;
    text-align:center;text-shadow:0 1px 5px #0009;caret-color:currentColor;touch-action:auto;
  }
  body .sms-story--mobile .sms-story-mobile__inline textarea::placeholder {color:inherit;opacity:.8}
  body .sms-story--mobile .sms-story-editor__text-layer {font-size:clamp(20px,6vw,30px);line-height:1.15;white-space:pre-wrap;overflow-wrap:anywhere}
  body .sms-story--mobile .sms-story-editor__text-layer.is-draft {font-size:22px;max-width:86%;background:transparent!important;outline:0;opacity:.85}
  body .sms-story--mobile .sms-story-editor__text-layer.is-draft .sms-story-editor__layer-handle {display:none}
  body .sms-story--mobile .sms-story-editor__layer.is-selected {outline:1px solid #ffffffb0;outline-offset:3px;border-radius:2px}
  body .sms-story--mobile .sms-story-editor__layer-handle {width:44px;height:44px;border:0;background:transparent;box-shadow:none;padding:0;border-radius:50%;color:#fff}
  body .sms-story--mobile .sms-story-editor__layer-handle::before {content:'';position:absolute;inset:16px;width:auto;height:auto;transform:none;border:1px solid #0003;border-radius:50%;background:white;box-shadow:0 1px 3px #0004}
  body .sms-story--mobile .sms-story-editor__layer-handle::after,body .sms-story--mobile .sms-story-editor__layer-handle-icon {display:none}
  body .sms-story--mobile .sms-story-editor__layer-handle--resize {right:-25px;bottom:-25px}
  body .sms-story--mobile .sms-story-editor__layer-handle--rotate {right:auto;left:-25px;top:-25px}
  body .sms-story--mobile .sms-story-mobile__editing-dock {position:absolute;z-index:28;left:0;right:0;bottom:var(--sms-story-visible-bottom,0px);display:grid;gap:6px;padding:8px 12px;background:linear-gradient(transparent,#101214bf);color:white}
  body .sms-story--mobile .sms-story-mobile__editbar {display:flex;justify-content:center;gap:6px;width:min(100%,320px);margin:0 auto;padding:4px;background:#101214b3;border-radius:16px}
  body .sms-story--mobile .sms-story-mobile__action {flex:1;min-height:44px;padding:6px;border:0;border-radius:10px;background:transparent;color:white;font:650 16px/1.2 system-ui;box-shadow:none;letter-spacing:normal}
  body .sms-story--mobile [data-sms-story-inline-font] {font-size:25px}
  body .sms-story--mobile [data-sms-story-inline-done] {grid-column:3;background:#10121480;font-size:16px;min-height:44px;color:white}
  body .sms-story--mobile .sms-story-mobile__colors .sms-story-editor__swatches {display:flex;justify-content:center;gap:10px;overflow-x:auto;padding:5px}
  body .sms-story--mobile .sms-story-mobile__colors .sms-story-editor__swatch,body .sms-story--mobile .sms-story-mobile__colors .sms-story-editor__custom-color {flex:none;width:32px;height:32px;min-height:32px;margin:4px 0;border-color:#ffffff77}
  body .sms-story--mobile .sms-story-mobile__emojis {display:flex;overflow-x:auto;gap:2px;scrollbar-width:none}
  body .sms-story--mobile .sms-story-mobile__emoji {flex:1 0 40px;min-height:44px;padding:4px;border:0;background:transparent;box-shadow:none;font-size:24px}
  body .sms-story--mobile .sms-story-mobile__size-rail {position:absolute;z-index:27;left:4px;top:calc(var(--sms-story-mobile-top,0px) + 75px);width:36px;height:170px;display:grid;place-items:center}
  body .sms-story--mobile .sms-story-mobile__size-rail label {width:36px;height:170px;display:grid;place-items:center;margin:0}
  body .sms-story--mobile .sms-story-mobile__size-rail label>span {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  body .sms-story--mobile .sms-story-mobile__size-rail input {width:150px;height:36px;min-height:36px;padding:0;margin:0;transform:rotate(-90deg);accent-color:#fff;cursor:pointer;touch-action:none}
  body .sms-story--mobile.sms-story--typing .sms-story-mobile__dock,body .sms-story--mobile.sms-story--typing .sms-story-editor__tools,body .sms-story--mobile.sms-story--typing .sms-story-mobile__brand {display:none!important}
  body .sms-story--mobile button:focus-visible,body .sms-story--mobile select:focus-visible,body .sms-story--mobile input:focus-visible {outline:2px solid #55d7a5;outline-offset:2px}
}
