:root{--navy:#1a2c45;--green:#006642;--fresh:#16a567;--mint:#eaf8f0;--cream:#fff9eb;--line:#d5e5db;--text:#1d2d41;--gray:#6d7a79}*{box-sizing:border-box}body{margin:0;background:#f8fbf9;color:var(--text);font:16px/1.6 -apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif}.brand{display:flex;align-items:center;justify-content:space-between;background:var(--navy);color:#fff;min-height:69px;padding:14px 18px;gap:12px}.brand a{color:#fff;text-decoration:none;white-space:nowrap;font-size:14px}.brand strong{letter-spacing:.03em}.brand strong span{color:#a8efc9}.wrap{max-width:860px;margin:auto;padding:28px 14px 60px}.intro{margin:0 4px 24px}.eyebrow{font-size:12px;letter-spacing:.09em;font-weight:800;color:#05794a}.intro h1{font-size:clamp(25px,6vw,34px);line-height:1.28;margin:9px 0}.intro p{margin:8px 0 0;color:#667872}.panel{border:1px solid #d9e8dd;border-radius:23px;padding:22px 18px;background:#fff;box-shadow:0 10px 22px rgba(12,51,32,.05);margin:0 0 22px}.panel h2{font-size:21px;margin:0 0 18px}.num{background:var(--mint);color:var(--green);display:inline-flex;justify-content:center;align-items:center;border-radius:50%;width:31px;height:31px;margin-right:5px}.selected-hint{color:var(--green);font-weight:800;margin-bottom:12px}.owned-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.owned{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:3px;border:2px solid var(--line);border-radius:14px;background:#fbfdfb;color:var(--text);padding:13px 33px 13px 12px;cursor:pointer;min-height:110px;font:inherit}.owned b{font-size:20px;line-height:1.2;overflow-wrap:anywhere}.owned small{font-size:12px;color:var(--gray)}.owned-stage{color:var(--green);font-size:11px;font-weight:bold}.owned.selected{border-color:#0b9d60;background:var(--mint)}.owned-check{position:absolute;right:12px;top:12px;font-weight:bold;color:var(--green)}button{cursor:pointer;font:inherit}button:disabled{opacity:.5;cursor:default}.primary{width:100%;border:0;background:linear-gradient(110deg,#037747,#004d31);color:#fff;font-size:17px;font-weight:800;border-radius:17px;padding:16px;margin-top:17px;text-align:center;text-decoration:none;display:block}.secondary{background:#fff;border:1px solid #a7c9b2;color:var(--green);font-weight:800;border-radius:13px;padding:11px 15px;margin-top:10px}.fine,.foot{font-size:12px;color:#74847e;line-height:1.7}.foot{text-align:center}.notice{min-height:24px;font-weight:700;color:var(--green)}.notice.error{color:#b3303c}.section-title{display:flex;justify-content:space-between;align-items:center;gap:15px}.link{border:0;background:transparent;color:var(--green);font-weight:800}.storybox{border:1px solid #d2e6db;border-radius:20px;overflow:hidden;margin:0 0 18px}.storyhero{background:linear-gradient(135deg,#e0f8e6,#fff8e6);padding:19px}.storyhero h3{margin:6px 0;font-size:22px}.storyhero p{margin:0;color:#475b55;font-size:14px}.scene-list{padding:4px 17px}.scene{display:flex;gap:13px;align-items:flex-start;padding:14px 0;border-bottom:1px solid #edf2ee}.scene:last-child{border-bottom:0}.scene-circle{border-radius:50%;flex:0 0 35px;height:35px;display:grid;place-items:center;background:#087f4c;color:#fff;font-weight:800}.scene-circle.pending{background:#f1d99c;color:#624a20}.scene small{font-size:12px;color:#6d8176}.scene p{margin:3px 0}.scene .chinese{color:#057544;font-weight:700}.missing{background:#f9fcf9;padding:14px 18px;border-top:1px solid #e4f0e8}.missing>strong{color:var(--green)}.missing>p{margin:6px 0}.actionlink{margin:13px 0 0}.readycard{display:flex;gap:12px;align-items:center;background:#eaf8f0;padding:10px;margin-top:12px;border-radius:12px;color:var(--green);font-weight:800}.readycard img{width:100px;height:75px;object-fit:cover;border-radius:9px}.readycard small{display:block;font-weight:400;color:#64776c}.hidden{display:none!important}.count{font-size:13px;color:var(--green);padding:4px 9px;background:#e4f5e9;border-radius:999px}.queue-group{border:1px solid var(--line);border-radius:15px;padding:12px 16px;margin:10px 0}.queue-group h3{font-size:17px;margin:3px 0}.request-row{display:flex;align-items:center;gap:11px;padding:10px 3px;border-top:1px solid #eff4f0;cursor:pointer}.request-row input{width:21px;height:21px;accent-color:var(--green)}.request-row span{display:flex;flex-direction:column}.request-row small{color:#708178}.editor{background:#f1f9f3;border-radius:19px;padding:15px;margin-top:22px}.editor h3{margin-top:3px}.editor label,.panel form label{display:block;margin:12px 0;font-size:14px;font-weight:700}.editor input:not([type=file]),#loginForm input{display:block;width:100%;font:inherit;background:white;margin-top:5px;padding:12px;border:1px solid #c7d5ce;border-radius:12px}.editor input[type=file]{display:block;margin-top:8px;max-width:100%}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}@media(max-width:420px){.wrap{padding:20px 12px 60px}.panel{padding:17px 13px}.grid2{grid-template-columns:1fr}.owned b{font-size:18px}.brand strong{font-size:15px}}@media(prefers-reduced-motion:no-preference){.primary,.owned{transition:transform .15s,box-shadow .15s}.primary:not(:disabled):active,.owned:active{transform:scale(.985)}}

.card-editor{margin:15px 0;border:1px solid #b9d8c5;border-radius:15px;padding:14px;background:#fff}.card-editor legend{font-weight:800;color:#006b43;padding:0 7px}.card-editor label{display:block;font-size:14px;font-weight:700;margin:10px 0}.card-editor input:not([type=file]){display:block;width:100%;font:inherit;border:1px solid #c7d5ce;border-radius:12px;padding:11px;margin-top:5px}.card-editor input[type=file]{display:block;margin-top:7px;max-width:100%}
/* Admin request briefs + controlled image intake */
.guide{background:#f0f9f3;border-radius:14px;padding:16px;margin:12px 0 18px;color:#234b35}.guide p{margin:2px 0 13px;font-size:13px}.guide b{font-size:15px}.request-entry{border-top:1px solid #ebf2ed;padding:3px 0}.story-request{margin:0 0 13px 32px;border-radius:11px;background:#f7faf8;padding:7px 11px}.story-request summary,.metadata summary{cursor:pointer;color:#006642;font-weight:800}.request-detail{padding:8px 0}.request-detail p{margin:8px 0;font-size:14px}.request-detail ol{padding-left:23px;font-size:14px}.request-detail li{margin:8px 0}.request-detail li small{display:block;color:#23794d}.prompt-preview{display:block;width:100%;min-height:180px;max-height:350px;overflow:auto;resize:vertical;background:#fff;border:1px solid #d7e4da;padding:12px;font:12px/1.6 monospace;border-radius:11px}.copy-request,.copy-ftp{margin:9px 0 0;font-size:13px}.method-tabs{padding:5px 0 3px}.image-preview{margin:12px 0;border:1px dashed #b8d6c7;border-radius:12px;padding:13px;min-height:80px;display:flex;align-items:center;justify-content:center;background:#fafdfa;color:#73837a;text-align:center;font-size:13px}.image-preview img{display:block;max-width:100%;height:180px;object-fit:contain;border-radius:9px}.metadata{margin:10px 0;background:#fff;border:1px solid #d4e7da;border-radius:12px;padding:10px}.ftp-help{padding:14px;margin-top:15px;border:1px solid #b2d9c5;border-radius:12px;background:#e9f7ef}.ftp-help p{font-size:13px;margin:8px 0}.ftp-help code{overflow-wrap:anywhere;word-break:break-word}.ftp-help .file-name{display:block;margin:9px 0;background:white;border:1px solid #c6dfd2;border-radius:8px;font-size:12px;padding:8px 10px}.card-editor legend{font-size:16px}.queue-group{margin-bottom:16px}

/* Per-student image pasting (touch/keyboard/drag), safe preview and explicit grant */
.direct-card{background:#effaf3;border:1px solid #b9dec9;border-radius:16px;padding:15px 13px;margin:22px 0 8px}
.direct-card h4{margin:0 0 4px;color:#064f35;font-size:17px;line-height:1.4}
.paste-target{display:flex;align-items:center;justify-content:center;min-height:210px;background:#fff;border:2px dashed #76b697;border-radius:14px;padding:14px;text-align:center;color:#376351;outline-offset:3px;cursor:text;overflow:hidden;line-height:1.6;-webkit-user-select:text;user-select:text}
.paste-target:focus{outline:3px solid #78b9e8}
.paste-target.has-image{border-style:solid;border-color:#138b5a;background:#fff}
.paste-target img{max-width:100%;width:auto;max-height:280px;object-fit:contain;border-radius:9px;pointer-events:none}
.paste-target small{display:block;font-size:12px;color:#87968b}
.direct-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:10px 0}
.direct-actions .secondary{margin:0;padding:11px;font-size:13px}
.direct-file-label{display:inline-flex;align-items:center;justify-content:center;position:relative;margin:0!important;padding:11px;border-radius:12px;border:1px solid #a7c9b2;color:#006642;background:#fff;cursor:pointer;font-size:13px!important;font-weight:800}
.direct-file-label input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.direct-caption{font-size:12px;color:#4f7460;overflow-wrap:anywhere}
.direct-save{margin:12px 0 3px;font-size:15px;line-height:1.35}
@media(max-width:420px){.direct-actions>*{flex:1 1 100%}.direct-file-label{width:100%}.direct-card{padding:12px 10px}.paste-target{min-height:190px}}

.count{display:inline-block;white-space:nowrap}.manage-notice:empty{display:none}.manage-notice:not(:empty){padding:10px 13px;border:1px solid #a9d5b9;background:#ebf8ef;color:#006642;font-size:14px;font-weight:800;border-radius:12px;margin:12px 0}.manage-notice.error{border-color:#ebbaba;background:#fff2f2;color:#b12d36}

/* 2026-11-02: completed inventory + reusable cards + Doubao wait feedback */
.owned.used:not(.selected){background:#f1f3f2;border-color:#c9d2ce;color:#697570}
.owned.used:not(.selected) b{color:#5a6662}
.owned.used .owned-stage{color:#678077}
.owned.used.selected{border-color:#069a61;background:#e4f5eb;color:var(--text)}
.used-label{font-size:10px;line-height:1.3;font-weight:800;letter-spacing:.01em;color:#5b6d65;background:#e0e6e2;border-radius:999px;padding:2px 7px;max-width:100%}
.owned.used.selected .used-label{background:#ccead9;color:#08734b}
.owned:focus-visible{outline:3px solid #70b8e1;outline-offset:3px}
.generation-progress{margin-top:15px;padding:15px 16px;background:#e9f7ef;border:1px solid #bbdfca;border-radius:15px;color:#086c43;font-weight:800;display:flex;align-items:center;gap:14px}
.generation-progress small{display:block;color:#648275;font-weight:500;font-size:12px}
.progress-dots{display:flex;gap:6px;align-items:center;height:27px;flex-shrink:0}
.progress-dots i{display:block;width:9px;height:9px;border-radius:50%;background:#0a9861;animation:sc-dots 1.1s ease-in-out infinite}
.progress-dots i:nth-child(2){animation-delay:.18s}.progress-dots i:nth-child(3){animation-delay:.36s}
@keyframes sc-dots{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-7px);opacity:1}}
@media(prefers-reduced-motion:reduce){.progress-dots i{animation:none;opacity:1}}

/* 2026-11-02: owned-card photos in the 2-card story picker (display only).
   Matches the collection's image-first cards. No impact on Doubao requests. */
.owned-grid{gap:12px}
.owned{display:flex;flex-direction:column;gap:0;min-width:0;min-height:0;
  padding:6px 6px 12px;border-radius:18px;background:#fff;overflow:hidden;
  box-shadow:0 4px 14px rgba(27,58,46,.045)}
.owned-picture{display:block;position:relative;width:100%;aspect-ratio:1.12/1;
  overflow:hidden;border-radius:12px;background:linear-gradient(140deg,#e8f3ec,#d9eadd)}
.owned-picture img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.owned-no-art{display:flex;align-items:center;justify-content:center;width:100%;height:100%;
  font-size:38px;filter:saturate(.65)}
.owned-rarity{position:absolute;top:9px;left:9px;display:inline-flex;align-items:center;
  justify-content:center;background:rgba(255,255,255,.94);color:#0c8660;border-radius:999px;
  min-width:29px;height:29px;padding:0 7px;font-size:12px;font-weight:900;
  box-shadow:0 1px 6px rgba(0,0,0,.06)}
.owned-meta{display:flex;flex-direction:column;align-items:flex-start;gap:3px;
  width:100%;padding:10px 28px 0 5px;min-width:0}
.owned-meta .owned-stage{font-size:10px;line-height:1.45}
.owned-meta b{font-size:17px;line-height:1.3;overflow-wrap:anywhere;word-break:normal}
.owned-meta small{font-size:12px;line-height:1.5;color:#697b74;overflow-wrap:anywhere}
.owned-check{top:auto;bottom:16px;right:12px;font-size:23px;line-height:1}
.owned.used:not(.selected){background:#f4f5f4}
.owned.used:not(.selected) .owned-picture img{filter:grayscale(.82);opacity:.65}
.owned.used:not(.selected) .owned-rarity{color:#757f7a}
.owned.used:not(.selected) .owned-meta small{color:#79847f}
.owned.used.selected .owned-picture img{filter:none;opacity:1}
.owned .used-label{margin-top:5px;max-width:100%;overflow-wrap:anywhere;font-size:10px}
@media(max-width:420px){.owned-grid{gap:9px}.owned{padding:5px 5px 11px;border-radius:16px}
  .owned-picture{border-radius:11px}.owned-meta{padding:8px 24px 0 4px}
  .owned-meta b{font-size:16px}.owned-meta small{font-size:11px}
  .owned-check{bottom:12px;right:9px;font-size:20px}}


/* SANCHINA Story Picker UX — 2026-11-03. Presentation only. */
/* Card gallery: images stay colorful independently of whether used before. */
.owned-grid .owned.used:not(.selected),
.owned-grid .owned.used.selected{background:#fff;color:var(--text);border-color:#d4e8db}
.owned-grid .owned.used:not(.selected) b{color:var(--text)}
.owned-grid .owned.used .owned-stage{color:var(--green)}
.owned-grid .owned.used:not(.selected) .owned-picture img,
.owned-grid .owned.used.selected .owned-picture img{filter:none;opacity:1}
.owned-grid .owned.used:not(.selected) .owned-rarity{color:#0c8660}
.owned-grid .owned.used:not(.selected) .owned-meta small{color:#697b74}
.owned-grid .owned.selected{border-color:#06ac65;box-shadow:0 0 0 2px rgba(6,199,85,.16),0 9px 20px rgba(10,104,65,.11);background:#eaf9ef}
.owned-grid .owned.selected .owned-check{color:#007848}
.usage-pill{display:inline-flex;align-items:center;justify-content:center;
  margin-top:7px;max-width:100%;min-height:24px;padding:4px 8px;border-radius:999px;
  font-size:11px;line-height:1.3;font-weight:800;letter-spacing:-.015em;
  overflow-wrap:anywhere;text-align:center}
.usage-pill-used{border:1.5px solid #06a753;color:#008842;background:#fff}
.usage-pill-new{border:1.5px solid #009d54;color:#fff;background:#009d54}
.owned-grid .owned .owned-meta{padding-right:22px}
/* iPhone-sized collapsible inventory, with selection count and Generate visible at all times. */
.pick-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.pick-heading h2{margin:0;min-width:0;line-height:1.3}
.fold-toggle{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;
  border:1.5px solid #b0d9c1;border-radius:13px;color:#067b4b;background:#eefaf2;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation}
.fold-toggle svg{width:21px;height:21px;transition:transform .18s ease}
.fold-toggle[aria-expanded="false"] svg{transform:rotate(-90deg)}
.fold-toggle:focus-visible,.story-toggle:focus-visible{outline:3px solid #77bdd9;outline-offset:2px}
#ownedCardsCollapse[hidden]{display:none!important}
.pick-panel .selected-hint{margin:0 0 12px}
.pick-panel .primary{margin-top:15px}
.pick-help{margin:11px 3px 0}
/* Story history: native details/summary preserves touch, keyboard and screen-reader behavior. */
.story-group{min-width:0;margin-top:16px}
.story-group:first-child{margin-top:0}
.story-group-title{display:flex;align-items:center;justify-content:space-between;
  gap:9px;margin:0 2px 11px;font-size:15px;color:#0b6847;font-weight:850}
.story-group-title span{font-size:12px;font-weight:700;color:#54826a;background:#ebf7ee;
  padding:2px 9px;border-radius:999px;white-space:nowrap}
.storybox-accordion{margin:0 0 11px;border-color:#cce6d7;box-shadow:0 3px 12px rgba(11,79,48,.04)}
.story-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;
  cursor:pointer;min-height:64px;padding:14px 14px 14px 16px;list-style:none;
  background:linear-gradient(112deg,#ebfaef,#fff9ee);-webkit-tap-highlight-color:transparent}
.story-toggle::-webkit-details-marker{display:none}
.story-toggle::marker{content:''}
.story-head-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0;flex:1;gap:4px}
.story-head-copy .eyebrow{font-size:11px;line-height:1.4}
.story-head-title{font-size:18px;font-weight:850;line-height:1.4;overflow-wrap:anywhere}
.story-head-tools{display:flex;align-items:center;gap:9px;flex-shrink:0}
.story-status{border:1px solid #b7dccc;background:#fff;color:#007c4e;
  font-size:11px;font-weight:850;border-radius:999px;white-space:nowrap;padding:4px 8px}
.story-status-active{border-color:#f1d997;background:#fff8db;color:#8a5b0c}
.story-chevron{display:block;width:10px;height:10px;border-right:2.4px solid #087a4d;
  border-bottom:2.4px solid #087a4d;transform:rotate(45deg);transition:transform .18s ease;margin-right:3px}
.storybox-accordion[open] .story-chevron{transform:rotate(225deg)}
.storybox-accordion.is-complete:not([open]) .story-toggle{background:#fff;min-height:60px;padding:11px 13px}
.storybox-accordion.is-complete:not([open]) .story-head-copy .eyebrow{display:none}
.storybox-accordion.is-complete:not([open]) .story-head-title{font-size:15px}
.storybox-accordion .story-inner{border-top:1px solid #e2eee7}
.storybox-accordion .story-synopsis-text{margin:0;padding:14px 16px;
  font-size:14px;color:#455f53;line-height:1.7;background:#f5fbf6;overflow-wrap:anywhere}
.storybox-accordion .scene-list{background:#fff}
.storybox-accordion .missing{margin:0}
@media(max-width:420px){
 .usage-pill{font-size:10px;padding:4px 6px;line-height:1.3}
 .owned-grid .owned .owned-meta{padding-right:18px}
 .pick-heading h2{font-size:19px}
 .story-toggle{padding:12px 11px;gap:8px}
 .story-head-title{font-size:16px}
 .story-status{font-size:10px;padding:3px 6px}
 .story-head-tools{gap:7px}
 .storybox-accordion.is-complete:not([open]) .story-head-title{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.fold-toggle svg,.story-chevron{transition:none}}


/* SANCHINA iPhone story picker: approved 2026-11-03 flow / presentation only.
   The WordPress red header is provided by the existing parent wrapper. */
:root{--story-line-green:#06c755}
body{background:#f9fbfa}
.story-picker-wrap{padding:10px 12px calc(155px + env(safe-area-inset-bottom,0px));}
.story-back-bar{margin:0 2px 8px}
.story-back-link{display:inline-flex;gap:4px;align-items:center;justify-content:center;
 border:1px solid #e7bc82;border-radius:999px;background:#fff4e4;
 color:#67472a;text-decoration:none;font-size:13px;font-weight:850;
 line-height:1.3;min-height:33px;padding:5px 14px;white-space:nowrap;
 -webkit-tap-highlight-color:transparent}
.story-back-link>span{font-size:22px;line-height:.7;margin-top:-3px}
.story-back-link:focus-visible{outline:3px solid #70b8e1;outline-offset:3px}
.story-picker-wrap>.pick-panel{margin-top:0}
.story-picker-wrap>.pick-panel .pick-heading{margin-bottom:10px}
.story-picker-wrap>.pick-panel .fine{margin-top:13px}
/* Anchored CTA: always visible during selection, no need to scroll past 15 cards. */
.story-action-dock{position:fixed;z-index:100;bottom:0;left:0;right:0;
 padding:9px max(14px,env(safe-area-inset-left,0px)) calc(12px + env(safe-area-inset-bottom,0px));
 background:linear-gradient(to bottom,rgba(255,255,255,.91),#fff 28%);
 border-top:1px solid #d7e8da;box-shadow:0 -8px 24px rgba(26,67,42,.09);
 transition:transform .18s ease,opacity .18s ease}
.story-action-dock-inner{max-width:820px;margin:auto}
.story-dock-hint{font-size:12px;font-weight:850;color:#58756a;text-align:center;
 min-height:19px;margin:0 0 6px;line-height:1.45}
.story-action-dock .primary{margin:0;min-height:56px;padding:12px 16px;
 background:var(--story-line-green);color:#fff;border-radius:17px;
 font-size:17px;line-height:1.45;box-shadow:0 6px 16px rgba(6,199,85,.18);
 transition:background .18s ease,box-shadow .18s ease,transform .15s ease}
.story-action-dock .primary:disabled{background:#c6cfca;color:#fff;opacity:1;
 box-shadow:none;cursor:default}
.story-action-dock.is-ready{background:linear-gradient(to bottom,rgba(246,255,249,.93),#fff 28%)}
.story-action-dock.is-ready .story-dock-hint{color:#00854a}
.story-action-dock.is-ready .primary:not(:disabled){background:#06c755;
 box-shadow:0 5px 0 #009e44,0 11px 20px rgba(6,199,85,.23)}
.story-action-dock.is-generating .primary:disabled{background:#06a85a;opacity:1}
.story-action-dock.is-away{transform:translateY(110%);opacity:0;pointer-events:none}
.story-action-dock .generation-progress{margin:9px 0 0;padding:8px 12px;font-size:12px;
 line-height:1.35;border-radius:12px}
.story-action-dock .generation-progress small{font-size:11px}
.story-action-dock .progress-dots{height:24px}
/* Give the history footer room while the action dock is overlaid. */
.story-picker-wrap>.foot{margin-top:18px}
@media(max-width:420px){
 .story-picker-wrap{padding:9px 11px calc(148px + env(safe-area-inset-bottom,0px))}
 .story-picker-wrap>.pick-panel{padding:12px 11px 15px;border-radius:20px}
 .story-picker-wrap>.pick-panel h2{font-size:19px}
 .story-action-dock{padding:8px 12px calc(12px + env(safe-area-inset-bottom,0px))}
 .story-action-dock .primary{min-height:51px;font-size:16px}
}
@media(prefers-reduced-motion:reduce){.story-action-dock,.story-action-dock .primary{transition:none}}


/* SANCHINA story picker R4 — remove the enclosing card and number, place
   the title/return/collapse controls together beneath the red site header.
   UI only: existing selection, disclosure and POST handlers remain intact. */
.story-picker-wrap{padding-top:5px;background:#f9fbfa}
.story-picker-toolbar{display:grid;grid-template-columns:76px minmax(0,1fr) 38px;
  align-items:center;column-gap:8px;padding:4px 0 9px;margin:0;
  background:transparent;min-height:62px}
.story-picker-toolbar .story-back-link{justify-self:start;margin:0;min-height:34px;
  padding:5px 12px;background:#fff5e6;border:1.5px solid #d9ac71;
  font-size:13px;color:#704a2a;font-weight:850;box-shadow:0 2px 5px rgba(110,68,19,.05)}
.story-picker-title{font-size:clamp(15px,4.45vw,19px);font-weight:850;
  line-height:1.32;letter-spacing:-.035em;color:#1a2c45;
  text-align:center;margin:0;min-width:0;overflow-wrap:anywhere}
.story-picker-title span{display:block;white-space:nowrap}
.story-picker-toolbar .fold-toggle{width:36px;height:36px;flex:0 0 36px;
  justify-self:end;border-radius:11px;background:#eff9f1;border-color:#afd9bd}
.story-picker-toolbar .fold-toggle svg{width:20px;height:20px}
/* Removing the panel class from #pickPanel eliminates its rounded white frame,
   shadow, border and the large space above the card inventory. */
.story-picker-content{background:transparent;border:0;border-radius:0;
  box-shadow:none;margin:0 0 18px;padding:0}
.story-picker-content>.selected-hint{text-align:center;font-size:13px;
  margin:0 0 11px;color:#087b4c}
.story-picker-content .owned-grid{margin:0}
/* Keep the exact requested long CTA text readable at 320px and up. */
.story-action-dock .primary{font-size:clamp(13px,3.75vw,16px);line-height:1.35;
  padding:12px 8px;white-space:normal;overflow-wrap:anywhere}
@media(max-width:350px){
 .story-picker-toolbar{grid-template-columns:68px minmax(0,1fr) 34px;column-gap:5px}
 .story-picker-toolbar .story-back-link{padding:5px 8px;font-size:12px}
 .story-picker-toolbar .fold-toggle{width:33px;height:33px}
 .story-picker-title{font-size:14px;letter-spacing:-.05em}
 .story-action-dock .primary{font-size:13px;padding-inline:5px}
}


/* 2026-11-03 R5: universal Chinese-story presentation (UI ONLY).
   Uses a generic book/card motif (no 西遊記-only heroes), warm SANCHINA
   gold and cream styling, and NO "AI" copy. Existing state & POST untouched. */
:root{--story-gold:#d8a656;--story-gold-soft:#f5ddb1;--story-ink:#1c3044;--story-cream:#fffaf2}
html{background:#fffaf5}
body{background:linear-gradient(180deg,#fffaf7 0,#fffdf7 460px,#fffaf4 100%);color:var(--story-ink)}
.story-picker-wrap{padding:5px 12px calc(158px + env(safe-area-inset-bottom,0px));background:transparent}
.story-picker-banner{position:relative;margin:0 -2px 8px;padding:0 2px 7px;
  isolation:isolate;background:radial-gradient(ellipse at 50% 60%,rgba(255,211,159,.36),transparent 66%)}
.story-picker-toolbar{position:relative;z-index:2;display:grid;
  grid-template-columns:74px minmax(0,1fr) 36px;gap:5px;align-items:center;
  min-height:62px;padding:3px 0 0;margin:0}
.story-picker-title{font-size:clamp(16px,4.35vw,21px);font-weight:900;
  letter-spacing:-.04em;line-height:1.32;text-align:center;color:#813624;
  text-shadow:0 1px 0 #fff8ed}
.story-picker-toolbar .story-back-link{border:1.5px solid #d5a45c;
  border-radius:999px;background:#fff4df;color:#6b4223;
  box-shadow:0 3px 8px rgba(123,77,27,.12);font-size:13px;
  padding:6px 10px;min-height:36px}
.story-picker-toolbar .fold-toggle{background:#fff8e8;border-color:#d9bd85;
  color:#067c4d;width:36px;height:36px;border-radius:13px;
  box-shadow:0 2px 7px rgba(116,81,25,.07)}
.story-picker-hero{height:99px;display:flex;align-items:center;justify-content:center;
  position:relative;margin:-2px auto -3px;pointer-events:none}
.story-picker-hero img{display:block;width:min(100%,355px);height:100%;object-fit:contain;
  object-position:center}
.story-picker-tagline{position:relative;z-index:1;font-size:clamp(11px,3vw,13px);
  font-weight:850;line-height:1.5;text-align:center;color:#563623;
  background:linear-gradient(95deg,#fff5dc,#fffdf5 46%,#fff0d2);
  border:1px solid #e3bd7d;border-radius:10px;padding:7px 7px;
  margin:0 auto;max-width:620px;box-shadow:0 3px 9px rgba(137,87,30,.075)}
.story-picker-content{margin:0 0 24px;padding:0;background:transparent;border:0;box-shadow:none}
.story-picker-content>.selected-hint{display:flex;align-items:center;justify-content:center;
  gap:6px;margin:4px auto 13px;padding:8px 10px;max-width:580px;
  background:linear-gradient(90deg,rgba(249,235,205,.35),#edf9f0 45%,rgba(249,235,205,.35));
  border-radius:999px;color:#027d47;text-align:center;
  font-size:clamp(12px,3.5vw,15px);font-weight:900;line-height:1.35}
.story-picker-content>.selected-hint::before{content:'✦';color:#d9a33b;font-size:18px;margin-right:1px}
.story-picker-content>.selected-hint::after{content:'✦';color:#d9a33b;font-size:18px;margin-left:1px}
/* Cards are always colorful, including those previously used. */
.story-picker-content .owned-grid{gap:12px}
.story-picker-content .owned-grid .owned,
.story-picker-content .owned-grid .owned.used:not(.selected){
  border:1.7px solid #e2b567;border-radius:19px;
  background:linear-gradient(180deg,#fff 0%,#fffdf8 75%,#fffaf2 100%);
  box-shadow:0 5px 0 rgba(236,192,113,.15),0 8px 16px rgba(117,72,21,.1);
  padding:6px 6px 11px;color:var(--story-ink)}
.story-picker-content .owned-grid .owned .owned-picture{border-radius:13px;
  aspect-ratio:1.25/1;overflow:hidden;background:#f5dfc0}
.story-picker-content .owned-grid .owned.used:not(.selected) .owned-picture img,
.story-picker-content .owned-grid .owned.used.selected .owned-picture img{
  filter:none;opacity:1}
.story-picker-content .owned-grid .owned .owned-meta{padding:9px 22px 0 5px;gap:3px}
.story-picker-content .owned-grid .owned .owned-meta b{color:#1b2d41;font-size:clamp(15px,4.5vw,19px);font-weight:850}
.story-picker-content .owned-grid .owned .owned-meta .owned-stage{color:#007c49;font-size:11px;font-weight:850}
.story-picker-content .owned-grid .owned .owned-meta small{color:#747a7d}
.story-picker-content .owned-grid .owned .owned-check{color:#03814e;bottom:13px;right:9px;
  font-size:23px;line-height:1}
.story-picker-content .owned-grid .owned.selected,
.story-picker-content .owned-grid .owned.used.selected{
  border:2.2px solid #06bb63;background:#eaf9ed;
  box-shadow:0 0 0 2px rgba(6,199,85,.16),0 7px 17px rgba(8,120,68,.11)}
.story-picker-content .owned-grid .owned.selected .owned-check{color:#007d48}
.story-picker-content .usage-pill-used{background:#fff;color:#008a4c;border-color:#0ba763}
.story-picker-content .usage-pill-new{background:#079f50;color:white;border-color:#079f50}
.story-picker-content .owned-rarity{background:#fffdf6;box-shadow:0 2px 5px rgba(36,37,30,.12)}
.story-picker-content .pick-help{text-align:center;color:#66796c}
.story-creation-note{margin:7px 3px 0;text-align:center;font-size:11px!important;color:#8b8b80}
/* Story history and current-state badges remain operational. Gold ties the view
   to the detail-page completion panel without making the content noisy. */
.story-picker-wrap>#listPanel{border:1.5px solid #e8d2a8;
  background:#fffdf9;box-shadow:0 5px 17px rgba(109,74,29,.075)}
.story-picker-wrap>#listPanel .num{background:#fff0d7;color:#9b5a22}
.story-picker-wrap .story-group-title{color:#8c5a2d}
.story-picker-wrap .storybox-accordion{border-color:#e6cfa2}
.story-picker-wrap .storybox-accordion.is-complete:not([open]) .story-toggle{
  background:linear-gradient(90deg,#fffdf9,#fff9ef)}
/* Bottom floating CTA: preserve the original disabled/ready behavior. */
.story-action-dock{border-top:1px solid #ead7bb;
  background:linear-gradient(to bottom,rgba(255,249,240,.94),#fffaf6 40%);
  box-shadow:0 -7px 22px rgba(115,81,36,.10)}
.story-action-dock.is-ready{background:linear-gradient(to bottom,rgba(250,254,245,.94),#fffaf7 35%)}
.story-action-dock .primary{border-radius:999px;border:3px solid rgba(255,255,255,.94);
  font-weight:900;letter-spacing:-.025em;box-shadow:none}
.story-action-dock.is-ready .primary:not(:disabled){
  box-shadow:0 4px 0 #00a14a,0 7px 16px rgba(6,199,85,.23)}
.story-dock-hint{color:#137647}
@media(min-width:600px){
 .story-picker-hero{height:120px}.story-picker-hero img{width:440px}
 .story-picker-toolbar{grid-template-columns:100px minmax(0,1fr) 45px}
 .story-picker-title{font-size:26px}
 .story-picker-content .owned-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:350px){
 .story-picker-wrap{padding-left:9px;padding-right:9px}
 .story-picker-toolbar{grid-template-columns:65px minmax(0,1fr) 32px;gap:4px;min-height:59px}
 .story-picker-title{font-size:14px}
 .story-picker-toolbar .story-back-link{padding:5px 7px;font-size:12px}
 .story-picker-toolbar .fold-toggle{width:32px;height:32px}
 .story-picker-hero{height:85px}
 .story-picker-tagline{font-size:10.5px;padding:6px 4px}
 .story-picker-content>.selected-hint{font-size:11px;padding:7px 4px}
 .story-picker-content>.selected-hint::before,
 .story-picker-content>.selected-hint::after{font-size:12px}
 .story-picker-content .owned-grid{gap:8px}
 .story-picker-content .owned-grid .owned .owned-meta b{font-size:15px}
 .story-picker-content .usage-pill{font-size:9px;padding:4px}
}
@media(prefers-reduced-motion:reduce){
 .story-picker-hero img,.story-picker-content .owned{transition:none}
}


/* SANCHINA Story Picker R6 — single headline, illustrated story scroll, 0/1/2
   progress conveyed by the same fixed CTA. UI only; original selected IDs,
   LINE session, story handling and POST/create payload stay untouched. */
.story-picker-banner{margin-bottom:8px;padding-bottom:0;background:
  radial-gradient(ellipse at 50% 60%,rgba(251,211,150,.33),transparent 70%)}
.story-picker-toolbar{min-height:62px;padding-top:3px;padding-bottom:0}
.story-picker-title{font-size:clamp(14px,4.05vw,19px);line-height:1.38;letter-spacing:-.055em}
.story-picker-title span{white-space:nowrap}
.story-picker-hero{height:112px;margin:1px auto -2px}
.story-picker-hero img{height:100%;width:min(100%,390px);object-fit:contain}
/* R6 has no redundant tagline or count above the cards. */
.story-picker-content{margin-top:4px}
.story-picker-content .owned-grid{gap:11px}
.story-picker-content>.selected-hint,.story-picker-tagline{display:none!important}
.story-action-dock{padding-top:9px;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px));
  background:linear-gradient(to bottom,rgba(255,250,242,.95),#fffaf5 36%);
  border-top:1px solid #e7d5b6}
.story-action-dock .story-progress-button{margin:0;min-height:57px;
  font-size:clamp(13px,3.6vw,17px);line-height:1.3;
  padding:11px 7px;border-radius:999px;border:3px solid white;
  white-space:nowrap;overflow:hidden;text-overflow:clip;
  transition:background .18s ease,color .18s ease,box-shadow .18s ease;
  -webkit-tap-highlight-color:transparent}
/* 0 of 2: clearly disabled and unfilled. */
.story-action-dock .story-progress-button[data-selected="0"]:disabled{
  background:#bdc6c1;color:#fff;opacity:1;box-shadow:none}
/* 1 of 2: exactly half of the action fills; remains disabled intentionally. */
.story-action-dock .story-progress-button[data-selected="1"]:disabled{
  background:linear-gradient(90deg,#06c755 0%,#06c755 50%,#fff9ed 50%,#fff9ed 100%);
  color:#074832;opacity:1;border-color:#fff;
  box-shadow:0 2px 0 rgba(201,156,83,.35),0 4px 12px rgba(133,108,56,.10)}
/* 2 of 2: active, full green. */
.story-action-dock .story-progress-button[data-selected="2"]:not(:disabled){
  background:#06c755;color:white;opacity:1;
  box-shadow:0 4px 0 #00a44a,0 8px 15px rgba(6,199,85,.22)}
/* Creating: disabled but don't momentarily return to gray. */
.story-action-dock.is-generating .story-progress-button[data-selected="2"]:disabled{
  background:#08a956;color:white;opacity:1}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;
  padding:0!important;margin:-1px!important;overflow:hidden!important;
  clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media (max-width:350px){
  .story-picker-title{font-size:13px;letter-spacing:-.055em}
  .story-picker-hero{height:98px}
  .story-action-dock .story-progress-button{font-size:12.5px;min-height:53px}
}
@media (min-width:600px){
  .story-picker-hero{height:138px}.story-picker-hero img{width:500px}
}
@media (prefers-reduced-motion:reduce){
  .story-action-dock .story-progress-button{transition:none}
}


/* SANCHINA — 2026-11-03 Story Result R7. Generated story presentation only.
   Genuine card images are used where they exist; unmade images get a label. */
.story-scene-list{padding:12px 10px 5px;background:#fffdf8;display:grid;gap:12px}
.story-scene-card{position:relative;display:grid;grid-template-columns:minmax(86px,35%) minmax(0,1fr);
 gap:12px;align-items:start;border:1.5px solid #ecd0a1;border-radius:20px;padding:12px 12px 12px 10px;
 background:linear-gradient(135deg,#fffdf8,#fffaf0);box-shadow:0 3px 10px rgba(93,62,21,.055);min-width:0}
.story-scene-art{position:relative;min-width:0;aspect-ratio:1.05/1;overflow:hidden;
 border-radius:14px;background:linear-gradient(145deg,#fff6dd,#f2f7e9);border:1px solid #ead19c}
.story-scene-art img{display:block;position:relative;z-index:1;width:100%;height:100%;object-fit:cover}
.story-scene-art .story-no-art{display:none}
.story-scene-art.has-no-art .story-no-art{position:absolute;inset:0;display:flex;
 flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:4px;
 color:#997242;font-size:12px;font-weight:750;line-height:1.3}
.story-scene-art.has-no-art .story-no-art>span{font-size:30px;line-height:1}
.story-scene-number{position:absolute;z-index:3;left:3px;top:3px;width:33px;height:33px;display:grid;place-items:center;
 border-radius:999px;background:#06b65f;color:#fff;border:2px solid #fff;font-weight:900;
 box-shadow:0 2px 6px rgba(0,87,39,.13)}
.story-scene-number.pending{background:#d5a04a}
.story-scene-copy{min-width:0}
.story-scene-label{display:block;color:#935018;font-size:14px;font-weight:900;line-height:1.35;margin:0 0 6px}
.story-scene-japanese{font-size:14px;line-height:1.65;color:#1c3045;font-weight:650;margin:0 0 7px;overflow-wrap:anywhere}
.story-scene-chinese{font-size:15px;line-height:1.55;color:#007a46;font-weight:850;margin:0 0 4px;overflow-wrap:anywhere}
.story-scene-pinyin{font-size:12px;line-height:1.55;color:#7b8583;font-weight:450;margin:0;overflow-wrap:anywhere}
.story-scene-pinyin.is-loading{font-size:11px;color:#8e9b95}
.story-scene-pinyin.is-error{color:#a16b25}
.story-required{margin:15px 10px 18px;border:1.5px solid #cfdfb7;border-radius:22px;
 padding:14px;background:linear-gradient(145deg,#f2faee,#fffdf7);box-shadow:0 3px 10px rgba(44,79,43,.045)}
.story-required-title{font-size:clamp(17px,4.6vw,21px);color:#076d42;line-height:1.4;
 font-weight:900;margin:1px 0 13px;text-align:center}
.story-required-body{display:grid;grid-template-columns:minmax(95px,34%) minmax(0,1fr);
 align-items:center;gap:13px;padding:11px;border-radius:18px;background:#fff;
 border:1px solid #e3e9cb;min-width:0}
.story-required-body .story-scene-art{aspect-ratio:1/1}
.story-required-text{display:flex;flex-direction:column;min-width:0;align-items:flex-start;gap:3px}
.story-required-tag{font-size:12px;font-weight:850;color:#8d5b24;
 background:#fff3d9;border-radius:999px;padding:3px 9px;margin-bottom:3px}
.story-required-text strong{font-size:clamp(24px,6.2vw,33px);color:#783b1b;font-weight:900;line-height:1.2;overflow-wrap:anywhere}
.story-required-pinyin{font-size:16px;color:#697572;line-height:1.35}
.story-required-jp{font-size:14px;font-weight:650;color:#25384e}
.story-required-wait{font-size:11px;color:#9d773c;font-weight:750;margin-top:2px}
.story-request-cta{display:flex;justify-content:center;align-items:center;gap:8px;
 width:100%;min-height:56px;margin:16px 0 0;padding:12px 10px;
 border:0;border-radius:999px;background:#06c755;box-shadow:0 4px 0 #009c46,0 8px 17px rgba(6,199,85,.19);
 color:white;font-size:clamp(13px,3.8vw,17px);font-weight:900;line-height:1.3;text-align:center;
 -webkit-tap-highlight-color:transparent;touch-action:manipulation}
.story-request-cta span{font-size:27px;line-height:.7}
.story-request-cta:disabled{background:#a2cbbb;box-shadow:none;opacity:1}
.story-request-cta:focus-visible{outline:3px solid #a7d7ff;outline-offset:3px}
.story-request-status{font-size:12px;line-height:1.65;color:#537666;text-align:center;margin:12px 0 2px}
.story-completed-status{margin:12px 10px 18px;padding:13px;border-radius:14px;
 background:#eaf8ef;color:#007a46;text-align:center;font-weight:850}
@media(max-width:350px){.story-scene-list{padding-inline:6px;gap:9px}
.story-scene-card{grid-template-columns:82px minmax(0,1fr);padding:9px 7px;gap:8px;border-radius:15px}
.story-scene-label{font-size:12px}.story-scene-japanese{font-size:12px}.story-scene-chinese{font-size:13px}
.story-scene-pinyin{font-size:11px}.story-scene-number{width:27px;height:27px;font-size:12px}
.story-required{padding:9px;margin-inline:6px}.story-required-body{grid-template-columns:96px minmax(0,1fr);gap:8px;padding:8px}
.story-required-text strong{font-size:23px}.story-request-cta{font-size:12px}}
@media(prefers-reduced-motion:reduce){.story-request-cta{transition:none}}


/* SANCHINA — 2026-11-03 Story Result R8 visual polish
   R7適用済み環境に上書きする追加調整。 */
.story-scene-list{padding:0;background:transparent;gap:14px}
.story-scene-card{grid-template-columns:minmax(94px,34%) minmax(0,1fr);border:1.5px solid #e8cf9f;border-radius:24px;padding:12px;background:#fffdf8;box-shadow:none}
.story-scene-art{border-radius:16px;background:linear-gradient(145deg,#fff4d7,#eef7ea);border:1px solid #e6cd97}
.story-scene-art.has-no-art{background:linear-gradient(145deg,#fff8e7,#f8f1df)}
.story-scene-art.has-no-art .story-no-art{color:#9a7748}
.story-scene-art.has-no-art .story-no-art small{font-size:12px;font-weight:800}
.story-scene-number{left:-8px;top:-8px;width:38px;height:38px;font-size:18px;box-shadow:0 3px 8px rgba(0,87,39,.15)}
.story-scene-number.pending{background:#e1ad47}
.story-scene-label{color:#8b938e;font-size:13px;font-weight:800;margin-bottom:8px}
.story-scene-japanese{font-size:15px;line-height:1.75;color:#203248;font-weight:650;margin:0 0 8px}
.story-scene-chinese{font-size:17px;line-height:1.55;color:#0a8a54;font-weight:900;margin:0 0 4px}
.story-scene-pinyin{font-size:12px;line-height:1.6;color:#777f80}
.story-required{margin:18px 0 18px;border:1.5px solid #cfe1bf;border-radius:24px;padding:16px;background:linear-gradient(180deg,#eef8ee,#fbfdf8)}
.story-required-title{display:flex;align-items:center;gap:8px;justify-content:flex-start;text-align:left;font-size:clamp(20px,5.2vw,24px);margin:0 0 14px;color:#066a41}
.story-required-body{grid-template-columns:minmax(110px,31%) minmax(0,1fr);gap:14px;padding:14px;border-radius:18px;background:#fff;border:1px solid #e1ecd6;box-shadow:0 5px 12px rgba(20,70,32,.05)}
.story-required-tag{font-size:12px;padding:4px 11px}
.story-required-text strong{font-size:clamp(30px,8vw,40px);line-height:1.05;color:#7d3a18}
.story-required-pinyin{font-size:20px;line-height:1.2;color:#6f7678}
.story-required-jp{font-size:15px;font-weight:700;color:#21384d}
.story-required-wait{font-size:12px;color:#9a7740;font-weight:800;margin-top:4px}
.story-request-cta{min-height:60px;margin-top:16px;background:#06c755;box-shadow:0 4px 0 #00a547,0 12px 20px rgba(6,199,85,.16);font-size:clamp(15px,4.4vw,20px);letter-spacing:.01em}
.story-request-cta:hover{filter:brightness(1.02)}
.story-request-status{display:none}
.story-group-title{color:#92511c}
.story-group-title span{background:#eff8ef;color:#52705b}
@media(max-width:390px){
  .story-scene-card{grid-template-columns:minmax(88px,33%) minmax(0,1fr);padding:11px;border-radius:20px}
  .story-required{padding:12px;border-radius:20px}
  .story-required-body{grid-template-columns:104px minmax(0,1fr);padding:11px;gap:10px}
  .story-required-title{font-size:20px}
  .story-required-text strong{font-size:30px}
  .story-required-pinyin{font-size:17px}
}

/* Story result R9: protect the single admin-request action from earlier styling. */
.story-required .story-request-cta,
.storybox .story-request-cta.request{
  background:#06C755!important;
  color:#fff!important;
  border:0!important;
  opacity:1;
  -webkit-text-fill-color:#fff;
}
.story-required .story-request-cta:disabled{
  background:#86bfa1!important;
  box-shadow:none;
}
.story-scene-card .story-scene-pinyin{
  display:block!important;
  color:#6d7877;
  margin-top:4px;
  font-weight:500;
}


/* R10: one clean outline around the third card, no nested double frames. */
.story-picker-wrap>#listPanel{
 border:0!important;box-shadow:none!important;background:transparent!important;
 padding-left:0;padding-right:0;
}

.story-picker-wrap #stories .storybox-accordion[open]{
 border:0!important;box-shadow:none!important;background:transparent;
}
.story-picker-wrap #stories .storybox-accordion[open] .story-inner{
 border-top:0!important;background:transparent;
}
.story-picker-wrap #stories .storybox-accordion[open] .story-synopsis-text{
 border-radius:14px;
}
.story-picker-wrap #stories .story-required{
 margin:14px 0 18px;padding:13px 14px;border:1.5px solid #cfe1bf;
 border-radius:21px;background:linear-gradient(180deg,#f3faef,#fffdf7);
 box-shadow:none;
}
.story-picker-wrap #stories .story-required-body{
 border:0!important;border-radius:0!important;background:transparent!important;
 box-shadow:none!important;padding:2px 0 0;gap:12px;
}
.story-picker-wrap #stories .story-required .story-request-cta{
 display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;
 width:100%;min-height:44px;height:44px;
 margin:13px 0 0;padding:7px 8px;
 font-size:clamp(12px,3.5vw,15px);line-height:1.1;font-weight:900;
 white-space:nowrap;letter-spacing:-.035em;
 border-radius:999px;border:0;
 background:#06c755!important;color:#fff!important;-webkit-text-fill-color:#fff;
 box-shadow:0 3px 0 #00a84b,0 6px 11px rgba(6,199,85,.12);
}
.story-picker-wrap #stories .story-required .story-request-cta span{
 font-size:19px;line-height:1;margin-left:3px;flex-shrink:0;
}
.story-picker-wrap #stories .story-required .story-request-cta.is-requested:disabled,
.story-picker-wrap #stories .story-required .story-request-cta.is-sending:disabled{
 background:#b6bcbc!important;color:#fff!important;-webkit-text-fill-color:#fff;
 opacity:1!important;box-shadow:none!important;cursor:default;
}
@media(max-width:355px){
 .story-picker-wrap #stories .story-required{padding:11px}
 .story-picker-wrap #stories .story-required .story-request-cta{font-size:12px;padding:7px 5px}
}


/* R12: Third-card illustration is deliberately absent until staff publishing.
   Show an unmistakable uncreated / requested visual; first two card images stay normal. */
.story-picker-wrap #stories .scene-missing-card .story-scene-art.has-no-art,
.story-picker-wrap #stories .story-required .story-scene-art.has-no-art {
  background:linear-gradient(145deg,#2c3741 0%,#19252f 100%) !important;
  border:1px solid #536471 !important;
}
.story-picker-wrap #stories .scene-missing-card .story-scene-art.has-no-art .story-no-art,
.story-picker-wrap #stories .story-required .story-scene-art.has-no-art .story-no-art {
  color:#f4f1e9 !important;
  font-weight:800;
}
.story-picker-wrap #stories .scene-missing-card .story-scene-art.has-no-art .story-no-art small,
.story-picker-wrap #stories .story-required .story-scene-art.has-no-art .story-no-art small {
  font-size:12px;
  line-height:1.45;
}
.story-picker-wrap #stories .story-required .story-scene-art.has-no-art .story-no-art>span {
  font-size:24px;
  opacity:.7;
}

/* SANCHINA R13: retry only when the phonetic-reading request genuinely fails. */
.story-picker-wrap #stories .story-pinyin-retry{
 display:inline-flex;align-items:center;justify-content:center;
 margin:5px 0 0;padding:5px 10px;border:1px solid #0b9c60;
 border-radius:99px;background:#fff;color:#087d4d;
 font-size:12px;line-height:1.4;font-weight:800;white-space:nowrap;
 cursor:pointer;touch-action:manipulation;
}
.story-picker-wrap #stories .story-pinyin-retry:focus-visible{outline:2px solid #06c755;outline-offset:2px}
