#ym-create-form{padding:24px}#ym-create-form .ym-label{display:block;font-size:13px;font-weight:600;margin:0 0 8px}#ym-create-form input:not([type=file]),#ym-create-form textarea{width:100%;box-sizing:border-box;margin-bottom:20px;border:1px solid #dfe1d7;border-radius:10px;padding:14px;background:#fafbf7;color:#20221e;font:inherit}#ym-create-form textarea{min-height:240px;resize:vertical}#ym-create-form .ym-source-meta{padding:0}#ym-create-form .ym-creation-footer{padding:20px 0 0;margin-top:18px}#ym-create-form select,.ym-dialog select{padding:9px;border:1px solid #dfe1d7;border-radius:8px;background:#fff;color:#20221e}.ym-dialog label{display:block;margin-bottom:8px}.ym-dialog textarea,.ym-dialog input{box-sizing:border-box;width:100%;padding:12px;border:1px solid #dfe1d7;border-radius:8px;font:inherit}.ym-dialog textarea{min-height:110px}.ym-history .ym-project>svg{width:37px}.ym-history-item>.ym-icon{width:26px}#ym-action-error{color:#b32e29}.ym-mobile-shade{cursor:pointer}.ym-page-bottom{flex-wrap:wrap}.ym-settings label{font-size:12px}.ym-settings select{margin-left:4px}
@media(max-width:700px){#ym-create-form{padding:16px}#ym-create-form .ym-creation-footer{gap:16px;flex-wrap:wrap}#ym-create-form .ym-creation-footer>.ym-btn{width:100%}.ym-settings{flex-wrap:wrap}.ym-create-heading h1{font-size:38px}.ym-topbar{gap:8px}}
/* the studio page scrolls without a visible track (requested) */
.ym-create{scrollbar-width:none;-ms-overflow-style:none}
.ym-create::-webkit-scrollbar{width:0;height:0;display:none}
.ym-account{position:relative}
.ym-credit[data-credit]{min-height:48px;padding:0 18px;gap:12px;border:1px solid #e4e7dc;background:#fff;color:#20221e;font-size:15px!important}
.ym-credit b{font-size:20px;font-weight:700;letter-spacing:-.02em;color:#20221e}
.ym-credit-label{font-size:15px;font-weight:600;color:#7c8471}
.ym-orb{width:26px;height:26px;border-radius:50%;background:radial-gradient(circle at 36% 30%,#f2ff7d,#daf24d 56%,#c2e233 100%);box-shadow:inset 0 -2px 4px #a2c02a2e}
.ym-avatar[data-account]{display:grid;place-items:center;width:46px;height:46px;padding:2px;border:1px solid #e4e7dc;border-radius:50%;background:#fff;overflow:hidden}
.ym-avatar[data-account] img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}
.ym-pop{position:absolute;top:calc(100% + 10px);right:0;z-index:60;width:min(320px,calc(100vw - 28px));padding:14px;border:1px solid #e2e6d5;border-radius:16px;background:#fff;box-shadow:0 18px 40px #18201026;text-align:left}
.ym-pop[hidden]{display:none}
.ym-pop-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:4px 2px 12px;border-bottom:1px solid #eef1e4;font-size:12px;color:#69705c}
.ym-pop-head strong{font-size:26px;color:#2a2d22}
.ym-ledger{padding:6px 0}
.ym-ledger-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 2px}
.ym-ledger-item span{display:flex;flex-direction:column;gap:2px;min-width:0}
.ym-ledger-item b{font-size:12.5px;font-weight:600;line-height:1.35}
.ym-ledger-item small{font-size:11px;color:#7c8471}
.ym-ledger-item em{font-style:normal;font-size:13px;font-weight:700;color:#3d4432;white-space:nowrap}
.ym-ledger-item em.plus{color:#4c8a2a}
.ym-pop-link{display:block;margin-top:8px;padding-top:12px;border-top:1px solid #eef1e4;font-size:12.5px;font-weight:600;color:#4d5a1f}
.ym-pop-id{display:flex;align-items:center;gap:11px;padding:4px 2px 12px;border-bottom:1px solid #eef1e4}
.ym-pop-id img{width:44px;height:44px;border-radius:50%;border:1px solid #e4e7dc;background:#fff;object-fit:cover}
.ym-pop-id span{display:flex;flex-direction:column;gap:2px;min-width:0}
.ym-pop-id b{font-size:13.5px}
.ym-pop-id small{font-size:11.5px;color:#7c8471;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ym-pop>a:not(.ym-pop-link),.ym-pop>button{display:flex;align-items:center;gap:11px;width:100%;margin:0;padding:11px 6px;border:0;border-radius:8px;background:none;color:#2a2d22;font-size:13px;font-weight:500;text-align:left}
.ym-pop>a:not(.ym-pop-link):hover,.ym-pop>button:hover{background:#f4f7e9}
.ym-pop svg{width:17px;height:17px;color:#5d6a22}
@media(max-width:700px){.ym-pop{right:-4px}.ym-credit[data-credit]{min-height:42px;padding:0 14px;gap:9px}.ym-credit b{font-size:17px}.ym-credit-label{font-size:13px}.ym-orb{width:22px;height:22px}.ym-avatar[data-account]{width:40px;height:40px}}
.ym-pickers{display:flex;align-items:center;flex-wrap:wrap;gap:12px;flex:1;min-width:0}
.ym-picker{position:relative;min-width:0}
.ym-picker-trigger{position:relative;display:inline-flex;align-items:center;gap:9px;min-height:46px;padding:0 15px;border:1px solid #dfe1d7;border-radius:14px;background:#fff;color:#5c6152;font-size:13px;font-weight:600;overflow:hidden;isolation:isolate;transition:border-color .15s ease,color .18s ease,background .15s ease}
.ym-picker-trigger::before{content:"";position:absolute;inset:0;z-index:0;background:#20221e;clip-path:circle(0 at 50% 50%);transition:clip-path .22s ease-out;pointer-events:none}
.ym-picker-trigger>*{position:relative;z-index:1}
.ym-picker-trigger:hover:not([aria-expanded=true]){border-color:#20221e;color:#fff}
.ym-picker-trigger:hover:not([aria-expanded=true])::before{clip-path:circle(160% at 50% 50%)}
.ym-picker-trigger:hover:not([aria-expanded=true]) svg,.ym-picker-trigger:hover:not([aria-expanded=true]) span,.ym-picker-trigger:hover:not([aria-expanded=true]) span::before{color:#fff}
.ym-picker-trigger[aria-expanded=true]{border-color:#8b5cf6;background:#f3edff;box-shadow:0 0 0 2px rgba(139,92,246,.12)}
.ym-picker-trigger>svg{width:16px;height:16px;color:#7c8471;stroke-width:1.9}
.ym-picker-trigger>span{display:inline-flex;align-items:center;gap:9px;color:#20221e;font-weight:600;white-space:nowrap}
.ym-picker-trigger>span::before{content:attr(data-picker-label);padding-right:9px;border-right:1px solid #d7dbcb;color:#7c8471;font-size:11px;font-weight:500}
.ym-picker-trigger[aria-expanded=true]>span,.ym-picker-trigger[aria-expanded=true]>span::before,.ym-picker-trigger[aria-expanded=true]>svg{color:#5b2fbd}
.ym-picker-trigger .ym-caret{width:13px;height:13px;transition:transform .16s ease-out}
.ym-picker-trigger[aria-expanded=true] .ym-caret{transform:rotate(180deg)}
.ym-picker-popover{position:absolute;bottom:calc(100% + 10px);left:0;z-index:70;padding:16px;border:1px solid #e2e6d5;border-radius:18px;background:#fff;box-shadow:0 20px 44px #18201026}
.ym-picker-popover[hidden]{display:none}
.ym-style-popover{width:min(720px,calc(100vw - 90px))}
.ym-style-head{display:flex;flex-direction:column;gap:3px;margin-bottom:12px}
.ym-style-head strong{color:#20221e;font-size:14px;font-weight:650}
.ym-style-head span{color:#7c8471;font-size:11px}
.ym-style-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}
.ym-style-filters button{min-height:34px;padding:0 10px;border:1px solid #dfe1d7;border-radius:999px;background:#f4f6ee;color:#5c6152;font-size:11.5px;font-weight:600}
.ym-style-filters button:hover{border-color:#b1b590;color:#20221e}
.ym-style-filters button.active{border-color:#20221e;background:#20221e;color:#fff}
.ym-style-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.ym-style-card{position:relative;display:flex;flex-direction:column;gap:7px;padding:7px;border:1px solid #dfe1d7;border-radius:14px;background:#fff;text-align:left}
.ym-style-card[hidden]{display:none}
.ym-style-card:hover{border-color:#b1b590}
.ym-style-card.active{border-color:#8b5cf6;background:#f3edff;box-shadow:inset 0 0 0 1px #8b5cf6}
.ym-style-thumb{display:block;width:100%;height:104px;border-radius:10px;background-position:center;background-size:cover;box-shadow:inset 0 0 0 1px #e9ecdf}
.ym-style-thumb-auto{display:flex;align-items:center;justify-content:center;background:#e9ddff;color:#5b2fbd}
.ym-style-thumb-auto svg{width:20px;height:20px}
.ym-style-meta{display:flex;flex-direction:column;gap:2px;padding:0 2px 2px}
.ym-style-name{color:#20221e;font-size:12.5px;font-weight:650}
.ym-style-card.active .ym-style-name{color:#5b2fbd}
.ym-style-tag{color:#7c8471;font-size:11px;line-height:1.35}
.ym-style-badge{position:absolute;top:12px;right:12px;padding:2px 7px;border-radius:999px;background:#e9ddff;color:#5b2fbd;font-size:10.5px;font-weight:650}
.ym-pages-popover{width:min(440px,calc(100vw - 60px));display:grid;gap:14px}
.ym-pages-title{color:#20221e;font-size:13px;font-weight:650}
.ym-pages-control{display:grid;grid-template-columns:minmax(0,1fr) 126px;gap:14px;align-items:center}
.ym-pages-shell{display:grid;gap:10px;min-width:0;padding:8px 2px 2px}
.ym-pages-slider{width:100%;height:24px;margin:0;appearance:none;-webkit-appearance:none;background:transparent;cursor:pointer}
.ym-pages-slider::-webkit-slider-runnable-track{height:8px;border-radius:999px;background:linear-gradient(90deg,#8b5cf6 0%,#8b5cf6 var(--ym-pages-progress,50%),#eef1e4 var(--ym-pages-progress,50%),#eef1e4 100%)}
.ym-pages-slider::-webkit-slider-thumb{width:16px;height:24px;margin-top:-8px;border:3px solid #fff;border-radius:7px;appearance:none;-webkit-appearance:none;background:#8b5cf6;box-shadow:0 2px 9px #2e15603d}
.ym-pages-slider::-moz-range-track{height:8px;border-radius:999px;background:#eef1e4}
.ym-pages-slider::-moz-range-progress{height:8px;border-radius:999px;background:#8b5cf6}
.ym-pages-slider::-moz-range-thumb{width:12px;height:18px;border:3px solid #fff;border-radius:7px;background:#8b5cf6}
.ym-pages-slider:focus-visible{outline:none;filter:drop-shadow(0 0 4px #8b5cf66b)}
.ym-pages-values{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));color:#7c8471;font-size:11px;text-align:center}
.ym-pages-values span:first-child{text-align:left}
.ym-pages-values span:last-child{text-align:right}
.ym-pages-readout{display:grid;align-content:center;gap:4px;min-height:68px;padding:11px 12px;border:1px solid #d7dbcb;border-radius:12px;background:#f4f6ee}
.ym-pages-readout-label{color:#7c8471;font-size:11px;white-space:nowrap}
.ym-pages-readout strong{color:#20221e;font-size:18px;font-weight:600;letter-spacing:-.02em}
.ym-pages-hint{margin:0;color:#7c8471;font-size:11px;line-height:1.5}
@media(max-width:1100px){.ym-style-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.ym-style-popover{width:min(100%,calc(100vw - 40px))}.ym-style-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ym-pages-popover{width:min(100%,calc(100vw - 40px))}.ym-pages-control{grid-template-columns:1fr}.ym-pages-readout{min-height:52px;grid-template-columns:1fr auto;align-items:center}.ym-picker-trigger{min-height:42px;padding:0 12px}}
/* ---- studio density: type and control metrics at ~75%; layout structure unchanged ---- */
.ym-side-brand strong{font-size:18px;letter-spacing:-.9px}
.ym-nav a{font-size:12px;padding:11px;gap:10px;border-radius:8px}
.ym-nav svg{width:15px;height:15px}
.ym-history-head{font-size:10px;padding:18px 8px 9px}
.ym-project strong{font-size:10px}
.ym-project small{font-size:8.5px;margin-top:2px}
.ym-sidebar-bottom a{font-size:9px;padding:7px 4px;gap:8px}
.ym-topbar{height:50px;min-height:50px;padding:0 10px 9px 0;gap:10px}
.ym-breadcrumb{font-size:9px}
.ym-create-heading{margin-bottom:27px}
.ym-create-heading h1{font-size:clamp(30px,3.6vw,51px);letter-spacing:-2.2px}
.ym-create-heading p{font-size:12px;margin-top:13px}
.ym-create-heading em{letter-spacing:-1.5px;margin-left:4px}
.ym-label{font-size:10.5px;margin:0 0 7px}
#ym-create-form input:not([type=file]),#ym-create-form textarea{font-size:12px;padding:10px;border-radius:8px;margin-bottom:15px}
#ym-create-form .ym-source-meta{font-size:9px}
.ym-btn{font-size:10px!important;padding:9px 13px;gap:6px;border-radius:22px}
.ym-btn svg{width:14px;height:14px}
.ym-hint{font-size:10px;padding:12px;margin:15px 0;line-height:1.6}
.ym-content-note{font-size:8.5px;margin-top:17px}
.ym-upload-panel{border-radius:18px}
.ym-pop{width:min(240px,calc(100vw - 24px));padding:11px;border-radius:12px}
.ym-pop-head{font-size:9px;padding:3px 2px 9px}
.ym-pop-head strong{font-size:19px}
.ym-ledger-item{padding:6px 2px;gap:9px}
.ym-ledger-item b{font-size:9.5px}
.ym-ledger-item small{font-size:8.5px}
.ym-ledger-item em{font-size:10px}
.ym-pop-link{font-size:9.5px;margin-top:6px;padding-top:9px}
.ym-pop-id{gap:8px;padding:3px 2px 9px}
.ym-pop-id img{width:34px;height:34px}
.ym-pop-id b{font-size:10px}
.ym-pop-id small{font-size:8.5px}
.ym-pop>a:not(.ym-pop-link),.ym-pop>button{gap:8px;padding:8px 5px;font-size:10px}
.ym-pop svg{width:13px;height:13px}
.ym-modal-head{padding:19px 20px 15px}
.ym-modal-head h2{font-size:19px;letter-spacing:-.6px}
.ym-dialog input,.ym-dialog textarea{font-size:10.5px;padding:9px}
.ym-dialog p{font-size:11px}
.ym-project-heading h1{font-size:17px}
.ym-project-heading p,.ym-board-content{font-size:10px}
.ym-page-bottom{font-size:7.5px}
.ym-muted{font-size:9px}
/* credit pill and avatar at the same density */
.ym-credit[data-credit]{min-height:36px;padding:0 13px;gap:9px;font-size:11.5px!important}
.ym-credit b{font-size:15px}
.ym-credit-label{font-size:11.5px}
.ym-orb{width:20px;height:20px}
.ym-avatar[data-account]{width:36px;height:36px}
/* pickers at the same density, in the site palette (lime / ink / olive) */
.ym-pickers{gap:9px}
.ym-picker-trigger{min-height:36px;padding:0 11px;gap:7px;border-radius:11px;font-size:10px}
.ym-picker-trigger>svg{width:13px;height:13px}
.ym-picker-trigger>span{gap:7px}
.ym-picker-trigger>span::before{padding-right:7px;font-size:8.5px}
.ym-picker-trigger .ym-caret{width:10px;height:10px}
.ym-picker-trigger[aria-expanded=true]{border-color:#bfd13c;background:#f4f8da;box-shadow:0 0 0 2px #e7f55a59}
.ym-picker-trigger[aria-expanded=true]>span,.ym-picker-trigger[aria-expanded=true]>span::before,.ym-picker-trigger[aria-expanded=true]>svg{color:#55611b}
.ym-picker-popover{bottom:calc(100% + 8px);padding:12px;border-radius:14px}
.ym-style-popover{width:min(560px,calc(100vw - 80px))}
.ym-style-head{gap:2px;margin-bottom:9px}
.ym-style-head strong{font-size:10.5px}
.ym-style-head span{font-size:8.5px}
.ym-style-filters{gap:6px;margin-bottom:9px}
.ym-style-filters button{min-height:26px;padding:0 8px;font-size:8.5px}
.ym-style-grid{gap:8px}
.ym-style-card{gap:5px;padding:5px;border-radius:11px}
.ym-style-thumb{height:78px;border-radius:8px}
.ym-style-thumb-auto svg{width:15px;height:15px}
.ym-style-meta{gap:1px}
.ym-style-name{font-size:9.5px}
.ym-style-tag{font-size:8.5px}
.ym-style-badge{top:9px;right:9px;padding:2px 5px;font-size:8px}
.ym-style-card.active{border-color:#bfd13c;background:#f4f8da;box-shadow:inset 0 0 0 1px #d4e258}
.ym-style-card.active .ym-style-name{color:#55611b}
.ym-style-thumb-auto,.ym-style-badge{background:#eaf3b8;color:#55611b}
.ym-style-thumb{box-shadow:inset 0 0 0 1px #e6eada}
.ym-pages-popover{width:min(340px,calc(100vw - 50px));gap:11px}
.ym-pages-title{font-size:10px}
.ym-pages-control{grid-template-columns:minmax(0,1fr) 96px;gap:11px}
.ym-pages-shell{gap:8px;padding:6px 2px 2px}
.ym-pages-slider{height:19px}
.ym-pages-slider::-webkit-slider-runnable-track{height:7px;background:linear-gradient(90deg,#20221e 0%,#20221e var(--ym-pages-progress,50%),#eef1e4 var(--ym-pages-progress,50%),#eef1e4 100%)}
.ym-pages-slider::-webkit-slider-thumb{width:12px;height:19px;margin-top:-6px;border:2px solid #fff;border-radius:6px;background:#e7f55a;box-shadow:0 1px 6px #20221e33}
.ym-pages-slider::-moz-range-track{height:7px;background:#eef1e4}
.ym-pages-slider::-moz-range-progress{height:7px;background:#20221e}
.ym-pages-slider::-moz-range-thumb{width:10px;height:15px;border:2px solid #fff;border-radius:6px;background:#e7f55a}
.ym-pages-slider:focus-visible{filter:drop-shadow(0 0 4px #c9dd4599)}
.ym-pages-values{font-size:8.5px}
.ym-pages-readout{min-height:52px;padding:8px 9px;border-radius:9px;background:#f6f8ed;border-color:#e0e6c9}
.ym-pages-readout-label{font-size:8.5px}
.ym-pages-readout strong{font-size:13.5px}
.ym-pages-hint{font-size:8.5px;line-height:1.45}
@media(max-width:700px){.ym-picker-trigger{min-height:34px;padding:0 10px}.ym-credit[data-credit]{min-height:32px;padding:0 11px;gap:7px}.ym-credit b{font-size:13.5px}.ym-credit-label{font-size:10px}.ym-orb{width:17px;height:17px}.ym-avatar[data-account]{width:32px;height:32px}.ym-style-popover,.ym-pages-popover{width:min(100%,calc(100vw - 32px))}}
/* sidebar rail toggle, in the spirit of the 即梦 sidebar control */
.ym-side-mark{display:none;width:24px;height:28px;object-fit:contain}
.ym-collapse{width:28px;height:28px;padding:4px;border:1px solid #e2e5da;border-radius:9px;background:#fff;color:#4e5445}
.ym-collapse:hover:not(:disabled){border-color:#20221e;background:#fff}
.ym-collapse svg{width:14px;height:14px}
.ym-expand{width:28px;height:28px;padding:4px;border:1px solid #e2e5da;border-radius:9px;background:#fff;color:#4e5445}
.ym-expand:hover:not(:disabled){border-color:#20221e;background:#fff}
.ym-expand svg{width:14px;height:14px}
.is-collapsed .ym-side-brand a{justify-content:center}
.is-collapsed .ym-side-brand .ym-side-mark{display:block;width:26px;height:30px}
.is-collapsed .ym-side-brand>.ym-collapse{display:none}
.is-collapsed .ym-nav a{font-size:0;gap:0;justify-content:center;padding:12px}
@media(max-width:700px){.ym-collapse,.ym-side-mark{display:none}}
/* picker pills a further step smaller, and a shorter story input */
.ym-picker-trigger{min-height:30px;padding:0 9px;gap:6px;border-radius:10px;font-size:9px}
.ym-picker-trigger>svg{width:12px;height:12px}
.ym-picker-trigger>span{gap:6px}
.ym-picker-trigger>span::before{padding-right:6px;font-size:7.5px}
.ym-picker-trigger .ym-caret{width:9px;height:9px}
#ym-create-form textarea{min-height:150px}
.ym-creation-footer{padding:13px 20px}
@media(max-width:700px){.ym-picker-trigger{min-height:28px;padding:0 8px}.ym-picker-trigger>span::before{font-size:7px}#ym-create-form textarea{min-height:130px}}
/* the base `.ym-shell button{font:inherit}` outranks plain class rules, so state these sizes explicitly */
.ym-picker-trigger{font-size:12px!important}
#ym-create-form .ym-label{font-size:10px;margin:0 0 7px}
/* tighter gap between the story box and the import button (the earlier density rule
   uses a longer selector, so this one has to be explicit) */
#ym-create-form textarea{margin-bottom:6px!important}
#ym-create-form .ym-source-meta{padding:0!important;min-height:0!important}
#ym-create-form .ym-hint{margin:9px 0 12px}
#ym-create-form .ym-source-meta .ym-btn{margin:0}
/* style library and pages popovers ~15% larger */
.ym-picker-popover{padding:14px;border-radius:16px}
.ym-style-popover{width:min(645px,calc(100vw - 100px))}
.ym-style-head{gap:2px;margin-bottom:10px}
.ym-style-head strong{font-size:12px}
.ym-style-head span{font-size:9.8px}
.ym-style-filters{gap:7px;margin-bottom:10px}
.ym-style-filters button{min-height:30px;padding:0 9px;font-size:9.8px}
.ym-style-grid{gap:9px}
.ym-style-card{gap:6px;padding:6px;border-radius:12.5px}
.ym-style-thumb{height:90px;border-radius:9px}
.ym-style-thumb-auto svg{width:17px;height:17px}
.ym-style-name{font-size:11px}
.ym-style-tag{font-size:9.8px}
.ym-style-badge{top:10px;right:10px;padding:2px 6px;font-size:9.2px}
.ym-pages-popover{width:min(380px,calc(100vw - 50px));gap:12px}
.ym-pages-title{font-size:11.5px}
.ym-pages-control{grid-template-columns:minmax(0,1fr) 110px;gap:12px}
.ym-pages-shell{gap:9px;padding:7px 2px 2px}
.ym-pages-slider{height:22px}
.ym-pages-slider::-webkit-slider-runnable-track{height:8px}
.ym-pages-slider::-webkit-slider-thumb{width:14px;height:22px;margin-top:-7px;border-radius:7px}
.ym-pages-slider::-moz-range-track,.ym-pages-slider::-moz-range-progress{height:8px}
.ym-pages-slider::-moz-range-thumb{width:12px;height:18px;border-radius:7px}
.ym-pages-values{font-size:9.8px}
.ym-pages-readout{min-height:60px;padding:9px 10px;border-radius:10px}
.ym-pages-readout-label{font-size:9.8px}
.ym-pages-readout strong{font-size:15.5px}
.ym-pages-hint{font-size:9.8px}
/* collapsed rail: logo centred on the icon column, and the logo opens the sidebar */
.is-collapsed .ym-side-brand{padding:0 0 25px}
.is-collapsed .ym-side-brand a{display:flex;width:100%;justify-content:center;padding:12px}
.is-collapsed .ym-side-mark{width:22px;height:26px}
@media(max-width:1100px){.ym-style-popover{width:min(560px,calc(100vw - 60px))}}
@media(max-width:700px){.ym-style-popover,.ym-pages-popover{width:min(100%,calc(100vw - 28px))}}
/* Session check: a neutral pill until the account state is known, so a signed-in creator
 * never sees a "Sign in" link flash in the studio header. */
.ym-credit.is-pending{box-sizing:border-box;width:88px;justify-content:center;background:#eef1e0;border-color:#e0e4d2}
@media(prefers-reduced-motion:no-preference){.ym-credit.is-pending{animation:ym-credit-pending 1.2s ease-in-out infinite}}
@keyframes ym-credit-pending{0%,100%{opacity:.5}50%{opacity:1}}
/* trimmed studio chrome: the rail expand button and the Workspace label are gone
   (the rail logo expands the sidebar instead), and the rail logo sits a little higher */
.ym-expand{display:none!important}
.ym-breadcrumb{display:none!important}
.is-collapsed .ym-side-brand{padding:0 0 37px}
.is-collapsed .ym-side-brand a{padding:0 12px 12px}
/* Comic text language: third pill in the footer row (style / pages / language).
   The list is a compact two-column grid so the popover stays inside the panel even
   when it is anchored to the right-most pill; "Original" is the default and keeps
   the pre-existing behaviour of drawing the story in the language it was pasted in. */
.ym-language-popover{width:min(310px,calc(100vw - 40px));display:grid;gap:10px}
.ym-language-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.ym-language-item{display:flex;flex-direction:column;gap:2px;min-height:40px;padding:7px 9px;border:1px solid #dfe1d7;border-radius:10px;background:#fff;color:#20221e;font-size:11.5px;font-weight:600;text-align:left;line-height:1.25}
.ym-language-item:hover{border-color:#b1b590}
.ym-language-item.active{border-color:#8b5cf6;background:#f3edff;box-shadow:inset 0 0 0 1px #8b5cf6;color:#5b2fbd}
.ym-language-item.active .ym-language-name::after{content:" ✓";font-size:9.5px}
.ym-language-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ym-language-note{font-size:9.2px;font-weight:500;color:#7c8471;line-height:1.3}
.ym-language-item.active .ym-language-note{color:#6b46c1}
@media(max-width:700px){.ym-language-popover{width:min(100%,calc(100vw - 32px))}.ym-language-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* bold text a couple of px larger, still clearly bigger than the unbolded text */
#ym-create-form .ym-label{font-size:13px}
.ym-btn{font-size:12px!important}
.ym-nav a{font-size:14px}
/* rail: bring the two nav icons up closer to the logo */
.is-collapsed .ym-side-brand{padding:0 0 18px}
/* Comic text language: third pill in the footer row (style / pages / language).
   The list is a compact two-column grid so the popover stays inside the panel even
   when it is anchored to the right-most pill; "Original" is the default and keeps
   the pre-existing behaviour of drawing the story in the language it was pasted in.
   Accent colours follow the site palette (olive/lime) used by the style library,
   not the old purple, so all three pills read as one control group. */
.ym-language-popover{width:min(310px,calc(100vw - 40px));display:grid;gap:10px}
.ym-language-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.ym-language-item{display:flex;flex-direction:column;gap:2px;min-height:40px;padding:7px 9px;border:1px solid #dfe1d7;border-radius:10px;background:#fff;color:#20221e;font-size:11.5px;font-weight:600;text-align:left;line-height:1.25}
.ym-language-item:hover{border-color:#b1b590}
.ym-language-item.active{border-color:#bfd13c;background:#f4f8da;box-shadow:inset 0 0 0 1px #d4e258;color:#55611b}
.ym-language-item.active .ym-language-name::after{content:" ✓";font-size:9.5px}
.ym-language-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ym-language-note{font-size:9.2px;font-weight:500;color:#7c8471;line-height:1.3}
.ym-language-item.active .ym-language-note{color:#6b7a22}
@media(max-width:700px){.ym-language-popover{width:min(100%,calc(100vw - 32px))}.ym-language-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Only two page tiers now: the value labels must sit on the ends of the track
   (left label at the left end, right label at the right end) instead of the
   middle columns the five-tier grid reserved. The picker also writes the column
   count inline, so this stays correct if the tiers change again. */
.ym-pages-values{grid-template-columns:repeat(2,minmax(0,1fr))}

/* Expanded American Ink style library on small screens. */
@media(max-width:700px){#ym-create-form{overflow:visible}.ym-style-popover{width:calc(100vw - 64px);max-height:min(560px,70dvh);overflow-y:auto}}

/* Text fields keep their existing thin border without an outer focus ring. */
.ym-shell input:not([type=range]):not([type=checkbox]):not([type=radio]):focus,.ym-shell textarea:focus,.ym-dialog input:not([type=range]):not([type=checkbox]):not([type=radio]):focus,.ym-dialog textarea:focus{outline:none;box-shadow:none}

/* Show the existing U brand mark next to the workspace wordmark. */
.ym-side-brand .ym-side-mark{display:block;flex-shrink:0;width:26px;height:30px}.ym-side-brand a{display:flex;align-items:center;gap:9px}.is-collapsed .ym-side-brand .ym-side-mark{width:22px;height:26px}
/* Creation history mirrors the domestic folder hierarchy in the overseas palette. */
.ym-history-head{font-size:11px}.ym-history-empty{padding:12px 8px;font-size:11px}.ym-history [hidden]{display:none!important}
.ym-history-item{gap:4px;padding:7px 6px;margin-bottom:3px}.ym-history-item.selected{background:#f2f6da}.ym-project{flex:1;min-width:0;gap:9px}.ym-project>span{flex:1;min-width:0}.ym-project img{width:34px;height:44px;flex:none}.ym-project strong{font-size:11px;display:flex;align-items:center;gap:4px;line-height:1.5;overflow:hidden}.ym-project strong svg{width:11px;height:11px;color:#6f8124}.ym-project small{font-size:9px;line-height:1.5;color:#7b836f}.ym-history-options.ym-icon{width:27px;height:30px;color:#7a806f}.ym-history-options svg{width:17px;height:17px}.ym-history-item:hover,.ym-series-head:hover{background:#f5f6ee}.ym-history-item.selected:hover{background:#eef3cd}
.ym-history-series{margin:7px 0 9px}.ym-series-head{display:flex;align-items:center;gap:3px;border-radius:8px;padding:5px 2px}.ym-series-toggle{display:flex;align-items:center;gap:6px;flex:1;min-width:0;border:0;background:transparent;color:#303726;text-align:left;padding:5px 2px}.ym-series-toggle>svg{width:15px;height:15px}.ym-series-toggle>svg:first-child{width:12px;color:#7e8770;transition:transform 150ms}.ym-series-toggle[aria-expanded=false]>svg:first-child{transform:rotate(-90deg)}.ym-series-toggle>svg:nth-child(2){color:#778831;width:17px}.ym-series-toggle strong{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:600}.ym-series-toggle strong svg{width:10px;height:10px;margin-right:3px;color:#6f8124}.ym-series-toggle small{font-size:9px;color:#7b836f;white-space:nowrap}.ym-series-episodes{margin:3px 0 0 8px;padding-left:8px;border-left:1px solid #e3e8d5}.ym-series-episodes .ym-project strong{font-size:11px}
.ym-history-menu{position:fixed;z-index:70;width:174px;padding:6px;background:#fff;border:1px solid #dfe4d4;border-radius:12px;box-shadow:0 12px 35px #242b1a20;color:#303726}.ym-history-menu button{display:flex;align-items:center;gap:11px;width:100%;border:0;background:transparent;color:inherit;border-radius:7px;padding:11px;font:12px 'DM Sans',Arial,sans-serif;cursor:pointer;text-align:left}.ym-history-menu svg{width:16px;height:16px;flex:none}.ym-history-menu button:hover,.ym-history-menu button:focus-visible{background:#f4f6eb}.ym-history-menu .danger,.ym-dialog .ym-btn.danger{color:#ba3c32}.ym-dialog .ym-btn.danger{border-color:#e6b5ae;background:#fff6f4}.ym-history-menu button:focus-visible,.ym-history button:focus-visible{outline:2px solid #889735;outline-offset:1px}.ym-history-options[aria-expanded=true]{background:#edf2d4;color:#536123}
@media(prefers-reduced-motion:reduce){.ym-series-toggle>svg:first-child{transition:none}}

.ip-character-section{margin-top:18px;padding-top:16px;border-top:1px solid #deded8}
.ip-character-section[hidden]{display:none!important}
.ip-character-section h3{margin:0 0 5px;font-size:14px}
.ip-character-section p{margin:0 0 12px;font-size:11px;color:#676b61;line-height:1.5}
.ip-character-grid{display:grid;grid-auto-rows:1fr;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.ip-character-card{container-type:inline-size;display:flex;flex-direction:column;min-width:0;border:1px solid #deded8;border-radius:12.5px;overflow:hidden;background:#fff}
.ip-character-card button{cursor:pointer;font:inherit}
.ip-character-select{display:flex;flex-direction:column;gap:5px;width:100%;padding:9px;border:0;background:transparent;text-align:left}
.ip-character-select img{display:block;width:100%;aspect-ratio:3/2;object-fit:contain;background:#fff;border-radius:6px}
.ip-character-select strong{font-size:12px}
.ip-character-select [data-ip-selection-label]{font-size:10px;color:#62665b}
.ip-character-card:has(>.ip-character-select[aria-pressed="true"]){border-color:#bfd13c;background:#f4f8da;box-shadow:inset 0 0 0 1px #d4e258}
.ip-character-card:has(>.ip-character-select[aria-pressed="true"]) .ip-character-select strong{color:#55611b}
.ip-character-edit{display:block;width:calc(100% - 18px);margin:auto 9px 9px;padding:6px;border:1px solid #deded8;border-radius:7px;background:#f7f8f3;font-size:10px!important;color:#35392e}
.ip-character-card button:focus-visible{outline:2px solid #647421;outline-offset:-2px}
@media(max-width:640px){.ip-character-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.character-source-edit{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 14px;margin-bottom:10px;border:1px solid #deded8;border-radius:12px;background:#f7f8f3;font-size:12px}
.character-source-edit[hidden]{display:none!important}
.character-source-edit button{font:inherit;padding:6px 12px;border:1px solid #d2d4ca;border-radius:8px;background:#fff;color:#35392e;cursor:pointer}
.character-source-edit button:disabled{opacity:.5;cursor:wait}



@container (max-width:140px){.ip-character-select strong{min-height:2lh}}
