/* ============================================================================
 * Moyin 漫剧工坊 · 独立样式（mo- 前缀，明亮浅色·蓝紫主题）
 * ========================================================================== */
:root {
    --mo-primary: #c8791f;
    --mo-primary-hover: #e0a13a;
    --mo-accent: #e0a13a;
    --mo-bg: var(--bg-warm);
    --mo-panel: #ffffff;
    --mo-panel2: var(--bg-warm);
    --mo-border: var(--border);
    --mo-text: #1f2333;
    --mo-muted: #6b7280;
    /* 在蓝紫强调底上使用的前景（保证对比度） */
    --mo-on-gold: #ffffff;
}

.mo-root {
    background: var(--mo-bg);
    color: var(--mo-text);
    min-height: calc(100vh - 40px);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(30,35,55,.06);
    overflow: hidden;
}
.mo-wrap { display: flex; flex-direction: column; min-height: calc(100vh - 40px); }

/* ---- Header ---- */
.mo-header {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 24px; border-bottom: 1px solid var(--mo-border);
    background: linear-gradient(135deg, rgba(200,121,31,0.08), rgba(200,121,31,0.04));
}
.mo-title { display: flex; align-items: center; gap: 14px; }
.mo-title-icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: linear-gradient(135deg, #c8791f, #e0a13a);
    display: flex; align-items: center; justify-content: center;
    color: var(--mo-on-gold); font-size: 20px; box-shadow: 0 4px 12px rgba(200,121,31,0.3);
}
.mo-header h1 { margin: 0; font-size: 20px; font-weight: 600; color: var(--strong); letter-spacing: 0.3px; }
.mo-sub { color: var(--mo-muted); font-size: 12px; margin-top: 2px; }
.mo-header-actions { display: flex; gap: 8px; }

/* ---- Model bar ---- */
.mo-modelbar {
    display: flex; flex-wrap: wrap; gap: 12px;
    padding: 14px 24px; border-bottom: 1px solid var(--mo-border);
    background: var(--mo-panel);
}
.mo-mg { display: flex; flex-direction: column; gap: 4px; min-width: 120px; flex: 1 1 150px; }
.mo-mg label { font-size: 11px; color: var(--mo-muted); font-weight: 500; }
.mo-mg select, .mo-mg input {
    background: var(--mo-panel2); color: var(--mo-text);
    border: 1px solid var(--mo-border); border-radius: 6px;
    padding: 6px 10px; font-size: 13px; font-family: inherit; outline: none;
    transition: border-color 0.15s;
}
.mo-mg select:focus, .mo-mg input:focus { border-color: var(--mo-primary); }

/* ---- Body layout (stepper | main | log) ---- */
.mo-body {
    display: grid;
    grid-template-columns: 180px 1fr 340px;
    gap: 18px; padding: 18px 24px;
    flex: 1;
}
.mo-body-left, .mo-body-main, .mo-body-right { min-width: 0; }

/* ---- Stepper (竖向) ---- */
.mo-stepper {
    display: flex; flex-direction: column;
    background: var(--mo-panel); border: 1px solid var(--mo-border);
    border-radius: 10px; padding: 14px 10px; position: sticky; top: 10px;
}
.mo-step {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 8px; border-radius: 8px; cursor: pointer;
    transition: background 0.15s;
}
.mo-step:hover { background: rgba(0,0,0,0.04); }
.mo-step-dot {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--mo-panel2); color: var(--mo-muted);
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--mo-border); font-weight: 600; font-size: 12px;
    flex-shrink: 0;
}
.mo-step.done .mo-step-dot { background: var(--mo-primary); color: var(--mo-on-gold); border-color: var(--mo-primary); }
.mo-step.active .mo-step-dot {
    background: linear-gradient(135deg, var(--mo-primary), var(--mo-accent));
    color: var(--mo-on-gold); border-color: transparent;
    box-shadow: 0 0 0 3px rgba(200,121,31,0.2);
}
.mo-step-text { flex: 1; min-width: 0; }
.mo-step-label { font-size: 13px; color: var(--mo-text); display: flex; align-items: center; gap: 6px; }
.mo-step-label i { font-size: 11px; color: var(--mo-muted); width: 14px; text-align: center; }
.mo-step.active .mo-step-label { color: var(--strong); font-weight: 600; }
.mo-step.active .mo-step-label i { color: var(--mo-primary); }
.mo-step-bar {
    width: 2px; height: 18px; background: var(--mo-border);
    margin-left: 23px;
}

/* ---- Main panel ---- */
.mo-panel {
    background: var(--mo-panel); border: 1px solid var(--mo-border);
    border-radius: 10px; padding: 18px;
}
.mo-panel-head {
    font-size: 16px; font-weight: 600; color: var(--strong);
    display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.mo-panel-head i { color: var(--mo-primary); }
.mo-panel-desc { color: var(--mo-muted); font-size: 13px; margin-bottom: 14px; }
.mo-panel-foot {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding-top: 14px; border-top: 1px solid var(--mo-border); margin-top: 14px;
}
.mo-panel-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

/* textarea 通用 */
.mo-textarea, .mo-panel textarea {
    width: 100%; box-sizing: border-box;
    background: var(--mo-panel2); color: var(--mo-text);
    border: 1px solid var(--mo-border); border-radius: 8px;
    padding: 10px 12px; font-size: 13px; line-height: 1.6;
    font-family: inherit; resize: vertical; outline: none;
    transition: border-color 0.15s;
}
.mo-textarea:focus, .mo-panel textarea:focus, .mo-panel input:focus { border-color: var(--mo-primary); }
.mo-panel input[type="text"], .mo-panel input:not([type]), .mo-panel input[type="number"] {
    background: var(--mo-panel2); color: var(--mo-text);
    border: 1px solid var(--mo-border); border-radius: 6px;
    padding: 6px 10px; font-size: 13px; outline: none; font-family: inherit;
}
.mo-input {
    background: var(--mo-panel2); color: var(--mo-text);
    border: 1px solid var(--mo-border); border-radius: 6px;
    padding: 6px 10px; font-size: 13px; outline: none; font-family: inherit;
    flex: 1; min-width: 140px;
}

/* ---- Buttons ---- */
.mo-btn {
    background: var(--mo-panel2); color: var(--mo-text);
    border: 1px solid var(--mo-border); border-radius: 8px;
    padding: 8px 14px; font-size: 13px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    font-family: inherit; transition: all 0.15s; white-space: nowrap;
    text-decoration: none;
}
.mo-btn:hover:not(:disabled) { border-color: var(--mo-primary); color: var(--strong); }
.mo-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.mo-btn.primary {
    background: linear-gradient(135deg, var(--mo-primary), var(--mo-accent));
    color: var(--mo-on-gold); border-color: transparent;
    box-shadow: 0 2px 8px rgba(200,121,31,0.3);
}
.mo-btn.primary:hover:not(:disabled) { box-shadow: 0 4px 16px rgba(200,121,31,0.5); }
.mo-btn.ghost { background: transparent; border-color: var(--mo-border); color: var(--mo-muted); }
.mo-btn.ghost:hover:not(:disabled) { color: var(--strong); background: rgba(0,0,0,0.04); }
.mo-btn.small { padding: 5px 10px; font-size: 12px; }
.mo-btn.xs { padding: 3px 8px; font-size: 11px; }

/* ---- Muted / Chip / Tag ---- */
.mo-muted { color: var(--mo-muted); font-size: 12px; }
.mo-chip {
    display: inline-block; padding: 2px 8px; border-radius: 10px;
    background: #f6ecd9; color: #c8791f;
    font-size: 11px; border: 1px solid rgba(200,121,31,0.25);
}
.mo-tag {
    display: inline-block; padding: 2px 7px; border-radius: 4px;
    background: #f6ecd9; color: #c8791f;
    font-size: 11px;
}
.mo-emo {
    font-size: 11px; color: #e07b63;
    padding: 1px 6px; background: rgba(224,123,99,.13);
    border-radius: 4px; margin: 0 4px;
}

/* ---- Empty state ---- */
.mo-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px 20px; color: var(--mo-muted); gap: 10px;
    background: var(--mo-panel2); border: 1px dashed var(--mo-border); border-radius: 10px;
    text-align: center;
}
.mo-empty i { font-size: 28px; color: var(--mo-primary); opacity: 0.6; }
.mo-empty.small { padding: 20px; }
.mo-empty.small i { font-size: 18px; }

/* ---- Step 0 解析摘要 ---- */
.mo-parsed-summary {
    margin-top: 16px; padding: 14px;
    background: var(--mo-panel2); border: 1px solid var(--mo-border); border-radius: 8px;
}
.mo-parsed-meta {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px; margin-bottom: 12px;
}
.mo-parsed-meta > div { display: flex; flex-direction: column; gap: 3px; }
.mo-parsed-meta label { font-size: 10px; color: var(--mo-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.mo-parsed-meta span { font-size: 13px; color: var(--mo-text); }
.mo-parsed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.mo-parsed-col {
    background: var(--mo-bg); border: 1px solid var(--mo-border);
    border-radius: 8px; padding: 10px; max-height: 260px; overflow-y: auto;
}
.mo-sec-title {
    font-size: 12px; font-weight: 600; color: var(--mo-primary);
    display: flex; align-items: center; gap: 6px; margin-bottom: 8px;
    padding-bottom: 6px; border-bottom: 1px solid var(--mo-border);
}
.mo-parsed-item {
    padding: 6px 0; font-size: 12px;
    border-bottom: 1px dashed rgba(0,0,0,0.08);
    display: flex; flex-direction: column; gap: 2px;
}
.mo-parsed-item:last-child { border-bottom: none; }
.mo-parsed-item b { color: var(--mo-text); }

/* ---- Step 1 角色 ---- */
.mo-char-list {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 14px;
}
.mo-char-card {
    display: grid; grid-template-columns: 120px 1fr; gap: 12px;
    padding: 12px; background: var(--mo-panel2);
    border: 1px solid var(--mo-border); border-radius: 10px;
}
.mo-char-thumb {
    width: 120px; height: 160px; border-radius: 8px; overflow: hidden;
    background: var(--mo-bg); display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 4px; color: var(--mo-muted); font-size: 11px;
}
.mo-char-thumb img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.mo-char-thumb.empty i { font-size: 22px; }
.mo-char-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mo-char-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mo-char-head b { font-size: 15px; color: var(--strong); }
.mo-anchors {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 10px;
    background: var(--mo-bg); border-radius: 6px; padding: 8px;
    font-size: 11px;
}
.mo-anchors > div { display: flex; gap: 6px; }
.mo-anchors label { color: var(--mo-primary); font-weight: 600; min-width: 56px; }
.mo-anchors span { color: var(--mo-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-char-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }

/* ---- Step 2 场景 ---- */
.mo-scene-list { display: flex; flex-direction: column; gap: 12px; }
.mo-scene-card {
    background: var(--mo-panel2); border: 1px solid var(--mo-border);
    border-radius: 10px; padding: 12px;
}
.mo-scene-head {
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
    margin-bottom: 10px;
}
.mo-scene-head b { font-size: 14px; color: var(--strong); }
.mo-scene-angles {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    margin: 10px 0;
}
.mo-angle {
    background: var(--mo-bg); border: 1px solid var(--mo-border);
    border-radius: 8px; padding: 8px;
    display: flex; flex-direction: column; gap: 6px;
}
.mo-angle-head { display: flex; align-items: center; justify-content: space-between; }
.mo-angle-thumb {
    aspect-ratio: 16/9; background: #000; border-radius: 6px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    color: var(--mo-muted);
}
.mo-angle-thumb img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.mo-angle-prompt {
    font-size: 10px; color: var(--mo-muted); line-height: 1.5;
    background: var(--mo-panel); border-radius: 4px; padding: 4px 6px;
    max-height: 40px; overflow: hidden; cursor: help;
}
.mo-scene-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---- Step 3 分镜 ---- */
.mo-shot-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.mo-shot {
    background: var(--mo-panel2); border: 1px solid var(--mo-border);
    border-radius: 10px; overflow: hidden; cursor: pointer;
    transition: all 0.15s;
}
.mo-shot:hover { border-color: var(--mo-primary); transform: translateY(-2px); }
.mo-shot-thumb {
    position: relative; aspect-ratio: 16/9; background: #000;
    display: flex; align-items: center; justify-content: center;
    color: var(--mo-muted);
}
.mo-shot-thumb img, .mo-shot-thumb video { width: 100%; height: 100%; object-fit: cover; }
.mo-shot-thumb.empty i { font-size: 22px; }
.mo-shot-idx {
    position: absolute; top: 6px; left: 6px;
    background: rgba(0,0,0,0.7); color: var(--mo-primary);
    padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600;
}
.mo-shot-meta { padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.mo-shot-title b { font-size: 13px; color: var(--strong); }
.mo-shot-params { display: flex; gap: 4px; flex-wrap: wrap; }

/* ---- Step 4 融合 ---- */
.mo-groups { display: flex; flex-direction: column; gap: 16px; }
.mo-group {
    background: var(--mo-panel2); border: 1px solid var(--mo-border);
    border-radius: 10px; padding: 12px;
}
.mo-group-head {
    display: flex; align-items: baseline; gap: 10px;
    padding-bottom: 10px; border-bottom: 1px solid var(--mo-border); margin-bottom: 10px;
}
.mo-group-head b { color: var(--strong); font-size: 14px; }
.mo-group-shots {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px; margin-bottom: 10px;
}
.mo-group-shot-thumb {
    position: relative; aspect-ratio: 16/9; background: #000;
    border-radius: 6px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    color: var(--mo-muted);
}
.mo-group-shot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mo-fusion-prompt {
    background: var(--mo-bg); border: 1px solid var(--mo-border);
    border-radius: 6px; padding: 10px; font-size: 12px;
    color: var(--mo-text); line-height: 1.6; margin-bottom: 10px;
    cursor: help;
}
.mo-fusion-prompt b { color: var(--mo-primary); }
.mo-fusion-video { margin-bottom: 10px; }
.mo-fusion-video video { width: 100%; max-height: 360px; border-radius: 6px; background: #000; }
.mo-group-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- Log panel ---- */
.mo-log {
    background: var(--mo-panel); border: 1px solid var(--mo-border);
    border-radius: 10px; overflow: hidden;
    position: sticky; top: 10px; max-height: calc(100vh - 220px);
    display: flex; flex-direction: column;
}
.mo-log-head {
    padding: 10px 14px; border-bottom: 1px solid var(--mo-border);
    font-size: 12px; font-weight: 600; color: var(--mo-text);
    display: flex; align-items: center; gap: 6px;
    background: var(--mo-panel2);
}
.mo-log-head i { color: var(--mo-primary); }
.mo-log-body {
    flex: 1; overflow-y: auto; padding: 6px 0; font-size: 11px;
    font-family: 'SF Mono', Menlo, monospace;
}
.mo-log-row {
    padding: 5px 14px; display: flex; gap: 8px; line-height: 1.4;
    border-bottom: 1px dashed rgba(0,0,0,0.06);
}
.mo-log-row .mo-log-t { color: var(--mo-muted); flex-shrink: 0; }
.mo-log-row .mo-log-l {
    flex-shrink: 0; padding: 0 5px; border-radius: 3px;
    color: var(--mo-muted); font-size: 9px; align-self: center;
}
.mo-log-row.OK .mo-log-l { background: rgba(77,191,168,.12); color: #4dbfa8; }
.mo-log-row.ERR .mo-log-l { background: rgba(224,123,99,.13); color: #e07b63; }
.mo-log-row.WARN .mo-log-l { background: rgba(232,176,75,.12); color: #e8c073; }
.mo-log-row .mo-log-m { color: var(--mo-text); word-break: break-word; }

/* ---- Modal ---- */
.mo-modal {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
}
.mo-modal-back {
    position: absolute; inset: 0; background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}
.mo-modal-body {
    position: relative; background: var(--mo-panel);
    border: 1px solid var(--mo-border); border-radius: 14px;
    max-width: 1200px; width: 94vw; max-height: 90vh;
    overflow: hidden; display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.mo-modal-head {
    padding: 14px 18px; border-bottom: 1px solid var(--mo-border);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    flex-shrink: 0;
}
.mo-modal-title {
    font-size: 15px; font-weight: 600; color: var(--strong);
    display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0;
}
.mo-modal-title i { color: var(--mo-primary); }
.mo-modal-close {
    background: transparent; border: none; color: var(--mo-muted);
    font-size: 18px; cursor: pointer; padding: 6px; border-radius: 4px;
}
.mo-modal-close:hover { background: rgba(0,0,0,0.06); color: var(--strong); }
.mo-modal-content { padding: 18px; overflow-y: auto; flex: 1; min-height: 0; }

/* shot detail modal */
.mo-shot-detail-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.mo-detail-left { display: flex; flex-direction: column; gap: 10px; }
.mo-detail-right { display: flex; flex-direction: column; gap: 8px; }
.mo-detail-label {
    font-size: 12px; color: var(--mo-muted); margin-top: 6px; font-weight: 500;
}
.mo-detail-title {
    flex: 1; background: transparent; border: 1px solid transparent;
    color: var(--strong); font-size: 16px; padding: 4px 8px; border-radius: 4px;
    font-family: inherit; outline: none;
}
.mo-detail-title:focus { border-color: var(--mo-primary); background: var(--mo-bg); }
.mo-detail-error {
    background: rgba(224,123,99,.13); border: 1px solid rgba(220,38,38,0.3);
    color: #e07b63; padding: 8px 12px; border-radius: 6px; font-size: 12px;
    display: flex; align-items: center; gap: 8px;
}
.mo-detail-media-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mo-detail-params {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 10px;
    background: var(--mo-panel2); border-radius: 6px; padding: 8px;
}
.mo-detail-params > div { display: flex; flex-direction: column; gap: 3px; }
.mo-detail-params label { font-size: 10px; color: var(--mo-muted); }
.mo-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mo-chip-check {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; background: var(--mo-panel2);
    border: 1px solid var(--mo-border); border-radius: 14px;
    font-size: 12px; cursor: pointer;
}
.mo-chip-check input { accent-color: var(--mo-primary); }
.mo-chip-check:hover { border-color: var(--mo-primary); }

/* ---- Prompt engineer modal ---- */
.mo-pe-body { max-width: 1100px; }
.mo-pe-grid {
    display: grid; grid-template-columns: 260px 1fr;
    gap: 0; padding: 0 !important; height: 70vh;
}
.mo-pe-left {
    background: var(--mo-panel2); border-right: 1px solid var(--mo-border);
    overflow-y: auto; padding: 12px;
}
.mo-pe-list { display: flex; flex-direction: column; gap: 6px; }
.mo-pe-item {
    padding: 10px 12px; border-radius: 6px; cursor: pointer;
    background: var(--mo-panel); border: 1px solid var(--mo-border);
    transition: all 0.15s;
}
.mo-pe-item:hover { border-color: var(--mo-primary); }
.mo-pe-item.is-active {
    background: linear-gradient(135deg, rgba(200,121,31,0.12), rgba(200,121,31,0.06));
    border-color: var(--mo-primary);
}
.mo-pe-item-step {
    font-size: 10px; color: var(--mo-primary);
    text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
}
.mo-pe-item-name { font-size: 13px; color: var(--strong); font-weight: 500; margin: 2px 0; }
.mo-pe-item-desc { font-size: 11px; color: var(--mo-muted); line-height: 1.4; }
.mo-pe-main { padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.mo-pe-title { margin-bottom: 4px; }
.mo-pe-title b { font-size: 15px; color: var(--strong); }
.mo-pe-vars { margin-top: 6px; font-size: 11px; color: var(--mo-muted); display: flex; flex-wrap: wrap; gap: 6px; }
.mo-pe-var { padding: 2px 6px; background: var(--mo-panel2); border-radius: 3px; }
.mo-pe-var code { color: var(--mo-primary); background: transparent; padding: 0; }
.mo-pe-textarea {
    font-family: 'SF Mono', Menlo, monospace; font-size: 12px;
    line-height: 1.55;
}
.mo-pe-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mo-pe-section { margin-top: 14px; border-top: 1px solid var(--mo-border); padding-top: 12px; }
.mo-pe-sec-title { font-size: 12px; color: var(--mo-primary); margin-bottom: 8px; font-weight: 600; }
.mo-pe-ver-list { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }
.mo-pe-ver {
    background: var(--mo-panel2); border: 1px solid var(--mo-border);
    border-radius: 6px; padding: 8px 10px;
}
.mo-pe-ver-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.mo-pe-ver-note { font-size: 11px; color: var(--mo-muted); margin-top: 3px; }
.mo-pe-ver-actions { margin-top: 6px; }

/* ---- Lightbox ---- */
.mo-lightbox {
    position: fixed; inset: 0; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
}
.mo-lightbox-back { position: absolute; inset: 0; background: rgba(0,0,0,0.9); }
.mo-lightbox img { max-width: 92vw; max-height: 92vh; position: relative; border-radius: 6px; }

/* ---- Toasts ---- */
.mo-toasts { position: fixed; bottom: 20px; right: 20px; z-index: 10001; display: flex; flex-direction: column; gap: 8px; }
.mo-toast {
    padding: 10px 16px; border-radius: 8px; background: var(--mo-panel);
    color: var(--strong); font-size: 13px; border: 1px solid var(--mo-border);
    box-shadow: 0 12px 32px rgba(30,35,55,.12);
    display: flex; align-items: center; gap: 8px;
    transition: opacity 0.3s; min-width: 220px;
}
.mo-toast-success { border-color: #4dbfa8; color: #4dbfa8; }
.mo-toast-error { border-color: #e07b63; color: #e07b63; }
.mo-toast-warning { border-color: #e8c073; color: #e8c073; }

/* ---- 响应式 ---- */
@media (max-width: 1400px) {
    .mo-body { grid-template-columns: 160px 1fr 300px; }
}
@media (max-width: 1100px) {
    .mo-body { grid-template-columns: 1fr; }
    .mo-body-left, .mo-body-right { display: none; }
    .mo-shot-detail-grid { grid-template-columns: 1fr; }
    .mo-pe-grid { grid-template-columns: 1fr; height: auto; max-height: 80vh; }
    .mo-pe-left { max-height: 200px; border-right: none; border-bottom: 1px solid var(--mo-border); }
}
