/* Only the restored native OutfitOOTD page. No shared workspace styling. */
.shopao-ootd-output { width:100%; font-size:12px; color:#666; }
.shopao-ootd-output-fields { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.shopao-ootd-output-fields label { display:flex; align-items:center; gap:6px; }
.shopao-ootd-output-fields select { height:30px; border:1px solid #e5e7eb; border-radius:6px; background:#fff; color:#333; padding:0 6px; font:inherit; font-variant-numeric:tabular-nums; }
.shopao-ootd-output-fields select:focus-visible { outline:2px solid #fd2845; outline-offset:2px; }
.shopao-ootd-output-hint { margin-top:6px; }
body:has([data-shopao-ootd-submit]):has(.ant-drawer-open,.ant-modal-wrap:not([style*="display: none"])) #ice-container > div:has(> div > button[aria-label="立即更新新版本"]) { z-index:0 !important; }
.shopao-ootd-adjust-panel { width:100%; min-width:0; background:white; border-radius:8px; }
.shopao-ootd-adjust-panel > .shopao-ootd-output { padding:8px 16px 12px; box-sizing:border-box; }
body:has([data-shopao-ootd-submit]) .shopao-recent-task-rail { display:none !important; }
/* OOTD adjustment keeps its bottom-right submit reachable under the update notice. */
body:has([data-shopao-ootd-submit]) #ice-container > div:has(> div > button[aria-label="立即更新新版本"]) { top:64px !important; bottom:auto !important; }
/* Preserve the original 780px desktop composer; only fit narrow screens. */
@media (max-width: 800px) {
  /* OutfitOOTD owns its notice avoidance; do not alter another workspace's overlay. */
  body:has([data-shopao-ootd-submit]) #ice-container > div:has(> div > button[aria-label="立即更新新版本"]) { top:calc(env(safe-area-inset-top, 0px) + 8px) !important; bottom:auto !important; max-width:calc(100vw - 16px); }
  body:has([data-shopao-ootd-submit]) .ant-drawer-content-wrapper:has(.drawer-select-layout-content) { width:100vw !important; min-width:0 !important; max-width:100vw !important; }
  body:has([data-shopao-ootd-submit]) .drawer-select-layout-content { flex-direction:column; min-height:0; }
  body:has([data-shopao-ootd-submit]) .drawer-select-layout-content-selector { min-height:0; min-width:0; width:100%; }
  body:has([data-shopao-ootd-submit]) .drawer-select-layout-content-selector-header { padding:8px !important; max-height:240px; overflow:auto; }
  body:has([data-shopao-ootd-submit]) .drawer-select-layout-content-selected-list { flex:0 0 220px !important; height:220px !important; width:100% !important; min-width:0; overflow:auto; }
  body:has([data-shopao-ootd-submit]) .shopao-mobile-recent-trigger { display:none !important; }
  body:has([data-shopao-ootd-submit]) .ant-modal:has(.model-outside-close) { width:calc(100vw - 16px) !important; min-width:0 !important; max-width:100%; margin:8px auto; padding:0; top:0; }
  body:has([data-shopao-ootd-submit]) .ant-modal:has(.model-outside-close) .ant-modal-content { min-width:0 !important; min-height:0 !important; height:calc(100dvh - 32px) !important; }
  body:has([data-shopao-ootd-submit]) .ant-modal:has(.main-image-wrapper) .modal-body { display:grid; grid-template-columns:60px minmax(0,1fr); grid-template-rows:minmax(0,1fr) 160px; height:100%; }
  body:has([data-shopao-ootd-submit]) .ant-modal .modal-body > .sidebar:first-child { width:60px; min-width:0; height:100%; }
  body:has([data-shopao-ootd-submit]) .ant-modal .main-image-wrapper { grid-column:2; grid-row:1; min-width:0 !important; width:100% !important; height:100% !important; margin:0 !important; padding:32px 8px 8px; box-sizing:border-box; }
  body:has([data-shopao-ootd-submit]) .ant-modal .sidebar-right { grid-column:1 / -1; width:100% !important; min-width:0; height:160px; overflow:auto; }
  body:has([data-shopao-ootd-submit]) .ant-modal .main-image-content,
  body:has([data-shopao-ootd-submit]) .ant-modal .main-image-content-inner,
  body:has([data-shopao-ootd-submit]) .ant-modal .main-image-content-parent { min-width:0; max-width:100%; }
  body:has([data-shopao-ootd-submit]) .ant-modal .actions-wrapper { max-width:100%; overflow-x:auto; flex-shrink:0; }
  body:has([data-shopao-ootd-submit]) .ant-modal .model-outside-close { right:4px; top:4px; z-index:2; }
  body:has([data-shopao-ootd-submit]) { height:100dvh; overflow:clip; box-sizing:border-box; }
  body:has([data-shopao-ootd-submit]) .full-screen:has(.framework-content),
  body:has([data-shopao-ootd-submit]) :has(> .framework-content) { height:calc(100dvh - 104px) !important; }
  body:has([data-shopao-ootd-submit]) :has(> .framework-content) { flex-direction:column; }
  body:has([data-shopao-ootd-submit]) .framework-sub-nav:not(:has(.aic-task-list-header)) { display:none; }
  body:has([data-shopao-ootd-submit]) .framework-sub-nav { width:100% !important; height:112px; flex:0 0 112px !important; overflow:hidden; border-right:0; }
  body:has([data-shopao-ootd-submit]) .framework-sub-nav > div { width:100% !important; height:112px !important; display:flex; flex-direction:row; }
  body:has([data-shopao-ootd-submit]) .framework-sub-nav .flex-layout { flex-direction:row !important; width:100%; }
  body:has([data-shopao-ootd-submit]) .aic-task-list-header { flex:0 0 128px; padding:8px !important; box-sizing:border-box; }
  body:has([data-shopao-ootd-submit]) .aic-task-list-header-title { margin-top:8px !important; }
  body:has([data-shopao-ootd-submit]) .aic-task-list-content { flex:1; min-width:0; height:112px !important; margin-top:0 !important; }
  body:has([data-shopao-ootd-submit]) .framework-content { min-width:0; min-height:0; width:100%; flex:1 1 0; }
  body:has([data-shopao-ootd-submit]) .framework-content > :has(.creation-dialog-edit-input-wrapper) { min-width:0 !important; width:100% !important; }
  body:has([data-shopao-ootd-submit]) .creation-dialog-scroller,
  body:has([data-shopao-ootd-submit]) .creation-dialog-scroller-wrapper { width:100% !important; max-width:100%; box-sizing:border-box; }
  body:has([data-shopao-ootd-submit]) .creation-dialog-scroller > :has(.gc-content) { width:calc(100% - 24px) !important; max-width:100%; box-sizing:border-box; }
  body:has([data-shopao-ootd-submit]) .gmc-list { width:100%; min-width:0; }
  body:has([data-shopao-ootd-submit]) .gmc-list > div { width:calc(50% - 2px) !important; max-width:100%; }
  body:has([data-shopao-ootd-submit]) .gmc-list > :has(.gli-left-top-tag) { width:min(100%,300px) !important; }
  body:has([data-shopao-ootd-submit]) .creation-dialog-edit-input-wrapper { width:calc(100% - 24px) !important; }
  body:has([data-shopao-ootd-submit]) .creation-dialog-edit-input-inner,
  body:has([data-shopao-ootd-submit]) .creation-dialog-edit-input { width:100% !important; max-width:100%; box-sizing:border-box; }
  body:has([data-shopao-ootd-submit]) .aic-model-edit-list { max-width:100%; overflow-x:auto; }
  body:has([data-shopao-ootd-submit]) .aic-model-edit-footer,
  body:has([data-shopao-ootd-submit]) .aic-model-edit-footer-left { flex-wrap:wrap; gap:8px; }
  body:has([data-shopao-ootd-submit]) .aic-model-edit-footer { height:auto !important; overflow:visible; }
  body:has([data-shopao-ootd-submit]) .framework-content > :not(.is-mini) .aic-model-edit-footer { max-height:none; }
  body:has([data-shopao-ootd-submit]) .is-mini .aic-model-edit-footer { overflow:hidden; }
  body:has([data-shopao-ootd-submit]) .aic-draft-fun-edit,
  body:has([data-shopao-ootd-submit]) .aic-draft-fun-tutorial {
    width:calc(100% - 24px) !important;
    max-width:780px;
    box-sizing:border-box;
  }
  body:has([data-shopao-ootd-submit]) .creation-model-edit-input { width:100% !important; box-sizing:border-box; }
  body:has([data-shopao-ootd-submit]) .aic-draft-fun-tutorial-img { width:100%; height:auto; }
  body:has([data-shopao-ootd-submit]) .aic-draft-fun-tutorial { height:auto !important; }
  body:has([data-shopao-ootd-submit]) .aic-draft-fun-list,
  body:has([data-shopao-ootd-submit]) .outstanding-cases-filter { max-width:100%; overflow-x:auto; justify-content:flex-start; flex-wrap:nowrap; }
  body:has([data-shopao-ootd-submit]) .aic-draft-wrapper { align-items:stretch; height:100%; min-height:0; overflow-y:auto; box-sizing:border-box; }
  body:has([data-shopao-ootd-submit]) .aic-draft-wrapper > * { flex-shrink:0; }
  body:has([data-shopao-ootd-submit]) .aic-draft-fun-edit,
  body:has([data-shopao-ootd-submit]) .aic-draft-fun-tutorial { align-self:center; }
}
/* Personal templates belong to OOTD only; native workbench geometry is retained. */
.shopao-ootd-template-entry {display:flex;gap:8px;margin-top:8px;}
.shopao-ootd-template-entry button,.shopao-ootd-template-dialog button {cursor:pointer;border:1px solid #e2e2e2;border-radius:6px;background:#fff;color:#333;padding:6px 12px;font:inherit;}
.shopao-ootd-template-dialog button:disabled {opacity:.5;cursor:default;}
.shopao-ootd-template-dialog {width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 40px);box-sizing:border-box;border:0;border-radius:12px;padding:22px;color:#292929;background:#fff;font:14px/1.5 system-ui,sans-serif;overflow:auto;}
.shopao-ootd-template-dialog::backdrop {background:rgba(0,0,0,.4);}
.shopao-ootd-template-dialog header,.shopao-ootd-template-dialog nav,.shopao-ootd-template-search,.shopao-ootd-template-pages {display:flex;gap:10px;align-items:center;}
.shopao-ootd-template-dialog header {justify-content:space-between;}
.shopao-ootd-template-dialog h2 {font-size:18px;margin:0 0 12px;}
.shopao-ootd-template-dialog nav {margin-bottom:16px;}
.shopao-ootd-template-dialog nav button[aria-pressed=true] {border-color:#8759eb;color:#7545dd;background:#f6f1ff;}
.shopao-ootd-template-dialog label {display:block;margin:12px 0;}
.shopao-ootd-template-dialog input:not([type=file]),.shopao-ootd-template-dialog select {padding:8px;border:1px solid #ddd;border-radius:6px;box-sizing:border-box;width:100%;font:inherit;}
.shopao-ootd-template-dialog [role=alert] {color:#b42318;}
.shopao-ootd-template-file {border:1px dashed #ccc;border-radius:8px;padding:18px;text-align:center;}
.shopao-ootd-template-file input {display:block;width:100%;margin-top:10px;}
.shopao-ootd-template-file img {display:block;max-width:100%;max-height:240px;object-fit:contain;margin:auto;}
.shopao-ootd-template-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:16px;}
.shopao-ootd-template-grid article {min-width:0;border:1px solid #eee;border-radius:8px;padding:10px;}
.shopao-ootd-template-grid article>p {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:8px 0 2px;}
.shopao-ootd-template-dialog .shopao-ootd-template-cover {width:100%;padding:0;border:0;background:#f7f7f7;}
.shopao-ootd-template-cover img {display:block;width:100%;height:190px;object-fit:contain;}
.shopao-ootd-template-actions {display:flex;gap:4px;flex-wrap:wrap;margin-top:8px;}
.shopao-ootd-template-dialog .shopao-ootd-template-actions button {padding:4px 7px;font-size:12px;}
.shopao-ootd-template-pages {justify-content:center;margin-top:20px;}
.shopao-ootd-template-empty {text-align:center;padding:40px 12px;color:#888;}
.shopao-ootd-template-preview img {display:block;max-width:100%;max-height:65dvh;object-fit:contain;margin:0 auto 14px;}
@media(max-width:600px){.shopao-ootd-template-dialog{padding:14px;}.shopao-ootd-template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}.shopao-ootd-template-cover img{height:160px;}}
