/* Shared phone workbench: the artwork leads; tools have one stable home. */
@import url('/shared/ui-fonts.css?v=1');
.ms-root{display:none}.ms-sheet:not([open]){display:none}
.ms-root,.ms-sheet{--ms-paper:#fbf6ea;--ms-surface:#fffdf7;--ms-ink:#173f73;--ms-muted:#697784;--ms-line:#173f7319;--ms-pink:#f6e5e8;font-family:'PingFang SC','Avenir Next',sans-serif;color:var(--ms-ink);font-size:14px;line-height:1.5;box-sizing:border-box}
.ms-root *,.ms-sheet *{box-sizing:border-box}
.ms-root svg,.ms-sheet-header svg,.ms-more-item>svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.ms-root button,.ms-sheet-header button,.ms-more-item{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;transition:background .18s ease,opacity .18s ease;box-shadow:none}
.ms-root button:active,.ms-sheet-header button:active,.ms-more-item:active{background:#173f730a;transform:none!important}.ms-root button:focus-visible,.ms-sheet button:focus-visible{outline:3px solid #cc814e;outline-offset:2px}
.ms-root .ms-icon-button,.ms-sheet-header .ms-icon-button{height:44px;width:44px;min-height:44px;min-width:44px;padding:10px;border:0;border-radius:12px;background:transparent;display:grid;place-items:center}
.ms-root button:disabled{opacity:.3;cursor:default}
.ms-sheet{position:fixed;inset:auto 0 0;margin:0 auto!important;max-width:min(540px,100vw)!important;width:100%!important;border:0!important;border-radius:24px 24px 0 0!important;padding:0!important;background:var(--ms-surface)!important;max-height:min(83dvh,calc(var(--editor-height,100dvh) - 12px))!important;overflow:hidden!important;box-shadow:0 -12px 50px #173f731a!important}
.ms-sheet[open]{display:flex;flex-direction:column;animation:ms-appear .18s ease-out}
.ms-sheet::backdrop{background:#172e4647;backdrop-filter:blur(2px)}.ms-sheet-handle{height:4px;width:34px;border-radius:4px;background:#cbd0cc;display:block;flex:none;margin:10px auto 4px}
.ms-sheet-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:6px 16px 13px 22px;flex:none;border-bottom:1px solid var(--ms-line)}
.ms-sheet-header h2{font:600 19px/1.4 'PingFang SC',sans-serif!important;color:var(--ms-ink);margin:7px 0 0!important}.ms-sheet-description{font-size:12px;line-height:1.65;color:var(--ms-muted);margin:5px 0 0!important}
.ms-sheet-content{overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;min-height:0;padding:20px 20px max(24px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:16px}
.ms-sheet-content input[type=text],.ms-sheet-content input[type=number],.ms-sheet-content input[type=search],.ms-sheet-content textarea,.ms-sheet-content select{font-size:16px!important;min-height:44px}
.ms-sheet-content fieldset{min-width:0}.ms-sheet-content legend{font-size:13px}.ms-sheet-content button{touch-action:manipulation}
.ms-more-list{display:grid}.ms-more-item{width:100%;display:flex;align-items:center;justify-content:space-between;gap:20px;text-align:left;border:0;border-bottom:1px solid var(--ms-line);background:transparent;min-height:68px;padding:13px 2px;border-radius:0}.ms-more-item:last-child{border-bottom:0}.ms-more-item strong{display:block;font-size:15px;font-weight:500}.ms-more-item small{display:block;font-size:12px;color:var(--ms-muted);margin-top:4px}.ms-more-item>svg{width:18px;height:18px;color:var(--ms-muted)}
.ms-status{position:fixed;z-index:90;left:50%;transform:translateX(-50%);bottom:145px;background:var(--ms-ink);color:var(--ms-paper);font-size:13px;line-height:1.6;padding:11px 16px;border-radius:12px;max-width:calc(100% - 32px);width:max-content;pointer-events:none;box-shadow:0 4px 18px #173f7324;margin:0}.ms-status[hidden]{display:none}
.ms-more-item{text-decoration:none;overflow-wrap:anywhere}.ms-more-item>span{min-width:0}
.ms-sheet-header>div{min-width:0}.ms-sheet-header .ms-icon-button{flex:none}
@media(max-width:760px), (pointer:coarse) and (max-width:1024px){
  .ms-root{display:contents}
  .ms-header{order:-10;flex:none;height:56px;min-height:56px;padding:6px 8px;display:flex;align-items:center;gap:3px;background:var(--ms-paper);border-bottom:1px solid var(--ms-line);z-index:35}
  .ms-title{flex:1;min-width:0;display:flex;align-items:baseline;gap:9px}.ms-title strong{font-family:PF,'PingFang SC',sans-serif;font-size:24px;line-height:1.3;font-weight:400;white-space:nowrap}.ms-title>span{font-size:11px;color:var(--ms-muted);white-space:nowrap}
  .ms-root .ms-save-button{display:flex;align-items:center;justify-content:center;gap:5px;height:44px;min-width:60px;border:0;background:none;font-size:13px;padding:8px;color:var(--ms-ink);border-radius:12px}.ms-save-button svg{width:19px;height:19px}
  .ms-dock{order:10;flex:none;z-index:35;position:relative;background:var(--ms-surface);padding:8px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--ms-line);box-shadow:0 -5px 22px #173f7304}
  .ms-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  .ms-root .ms-tool{display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;min-width:0;height:57px;border:0;border-radius:12px;background:none;padding:4px;font-size:12px;line-height:1.35}
  .ms-root .ms-tool[aria-pressed=true]{background:var(--ms-pink);color:var(--ms-ink)}.ms-tool svg{width:23px;height:23px}
  .ms-actions{display:flex;align-items:center;gap:18px;margin-top:9px}.ms-history{display:flex;gap:4px;flex:none}.ms-history svg{width:19px;height:19px}
  .ms-root .ms-primary{flex:1;min-width:0;height:46px;display:flex;align-items:center;justify-content:center;gap:14px;border:0;border-radius:14px;background:var(--ms-ink);color:var(--ms-paper);font-size:14px;font-weight:500;letter-spacing:0;padding:10px 16px;box-shadow:none}.ms-root .ms-primary:active{background:#2c527f}.ms-primary svg{width:18px;height:18px}
}
@media(max-width:360px){.ms-title>span{display:none}.ms-dock{padding-inline:12px}.ms-actions{gap:12px}.ms-title strong{font-size:22px}}
@media(max-height:520px) and (min-width:600px) and (max-width:760px), (max-height:520px) and (min-width:600px) and (pointer:coarse) and (max-width:1024px){.ms-header{height:48px;min-height:48px;padding-block:2px}.ms-dock{display:flex;align-items:center;gap:14px;padding:5px 12px}.ms-tools{flex:1;gap:4px}.ms-root .ms-tool{height:48px;font-size:11px}.ms-tool svg{width:20px;height:20px}.ms-actions{margin:0;gap:8px}.ms-root .ms-primary{font-size:12px;padding:8px 12px;height:44px}.ms-primary svg{display:none}}
@keyframes ms-appear{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.ms-root *,.ms-sheet{animation:none!important;transition:none!important}}
.ms-root .ms-my-entry{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;color:var(--ms-ink,#173f73);text-decoration:none;font:600 14px/1.2 'PingFang SC',sans-serif;flex-shrink:0;letter-spacing:0}
