body{
    font-family:Arial,"Microsoft YaHei",sans-serif;
    background:#f6f7fb;
    margin:0;
    color:#222;
}

/* ===== 布局 ===== */
.layout{
    display:grid;
    grid-template-columns:380px minmax(0,1fr);
    gap:14px;
    max-width:1680px;
    margin:0 auto;
    padding:16px;
}

.sidebar{
    background:#fff;
    border-radius:14px;
    padding:14px;
    height:calc(100vh - 32px);
    overflow-y:auto;
    border:1px solid #e5e7eb;
}

.main{min-width:0}

/* ===== 顶部 ===== */
header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px;
}

header h1{
    font-size:32px;
    margin:0;
}

nav a{
    margin-left:8px;
    text-decoration:none;
    color:#333;
    padding:10px 15px;
    border-radius:10px;
    background:#fff;
    border:1px solid #e5e7eb;
}

.on{
    background:#111!important;
    color:#fff!important;
    border-color:#111!important;
}

/* ===== 通用卡片（只保留生成页） ===== */
.card{
    background:#fff;
    border-radius:14px;
    padding:22px;
    border:1px solid #e5e7eb;
}

/* ===== 表单 ===== */
label{
    display:block;
    margin-top:16px;
    font-weight:700;
}

input,select,textarea,button{
    width:100%;
    box-sizing:border-box;
    padding:13px;
    margin-top:7px;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:15px;
    background:#fff;
}

textarea{min-height:130px}

button{
    background:#111;
    color:#fff;
    border:0;
    margin-top:20px;
    cursor:pointer;
}

button:disabled{
    opacity:.55;
}

/* ===== 生成状态 ===== */
.notice{
    margin-top:14px;
    padding:12px;
    border-radius:10px;
    background:#f3f4f6;
    color:#555;
}

.notice.success{background:#ecfdf5;color:#047857}
.notice.error{background:#fef2f2;color:#b91c1c}
.notice.loading{background:#eff6ff;color:#1d4ed8}

/* ===== 左侧任务 ===== */
.job-card{
    display:grid;
    grid-template-columns:82px 1fr;
    gap:12px;
    padding:12px 0;
    border-bottom:1px solid #eee;
    color:inherit;
    text-decoration:none;
}

.job-card:hover .job-cover{
    transform:scale(1.03);
}

.job-cover{
    width:82px;
    height:82px;
    border-radius:12px;
    overflow:hidden;
    background:#f3f4f6;
    transition:.2s;
}

.job-cover img,
.job-cover video{
    width:100%;
    height:100%;
    object-fit:cover;
}

.job-title{
    font-weight:800;
    font-size:14px;
    margin-bottom:4px;
}

.job-prompt{
    font-size:13px;
    color:#555;
    margin-bottom:8px;
}

.job-status,
.job-meta-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    font-size:12px;
    color:#666;
    line-height:1.2;
}

.job-status-text{
    flex:0 0 auto;
}

.job-cost{
    flex:1;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.deleteJobBtn{
    width:auto;
    margin:0;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    color:#666;
    font-size:12px;
    line-height:1.2;
    cursor:pointer;
}

.deleteJobBtn:hover{
    color:#111;
    text-decoration:underline;
}

/* ===== 结果页（核心优化） ===== */
.result-page{
    max-width:1400px;
    margin:0 auto;
    padding:16px;
}

/* 去掉所有“框感” */
.clean-result-wrap{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:24px;
}

/* 顶部 */
.result-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:16px;
}

.result-header h1{
    font-size:28px;
    margin:0;
}

/* ===== 图片区域 ===== */
.clean-media-section{
    display:grid;
    gap:18px;
}

/* 1张 */
.clean-media-section.media-count-1{
    grid-template-columns:1fr;
    justify-items:center;
}

/* 2+张 */
.clean-media-section.media-count-2{
    grid-template-columns:repeat(2,1fr);
}

.clean-media-item{
    border:none;
    background:transparent;
    margin:0 0 22px 0;
}

/* 图片容器（完全去背景） */
.media-preview{
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:0;
    background:transparent;
}

/* 图片本体 */
.media-preview img,
.media-preview video{
    max-width:100%;
    max-height:620px;
    width:auto;
    height:auto;
    border-radius:10px;
}

/* 编号 */
.media-index{
    display:none;
}

/* 按钮区 */
.clean-actions{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:8px;
}

.clean-actions a,
.clean-actions span,
.btn-dark,
.btn-light,
.btn-primary{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:16px;
    padding:9px 15px;
    border-radius:10px;
    text-decoration:none;

    font-size:14px;
    line-height:1;
    font-weight:500;

    background:rgba(107,114,128,.5);
    color:#374151;
    border:1px solid rgba(107,114,128,.18);
    box-shadow:none;
}

.clean-actions a:hover,
.clean-actions span:hover,
.btn-dark:hover,
.btn-light:hover,
.btn-primary:hover{
    background:rgba(107,114,128,.16);
    color:#111827;
    filter:none;
}

/* ===== 信息区 ===== */
.clean-meta-section{
    margin-top:26px;
    padding-top:22px;
    border-top:1px solid #eee;
}

.clean-meta-row{
    display:grid;
    grid-template-columns:120px 1fr;
    gap:16px;
    padding:10px 0;
}

.clean-meta-row span{
    color:#777;
    font-size:13px;
}

.clean-meta-row strong{
    font-weight:600;
}

/* Prompt */
.clean-prompt{
    margin-top:22px;
    padding:16px;
    background:#fafafa;
    border-radius:10px;
}

/* JSON */
.clean-raw{
    margin-top:20px;
}




.prompt-tools-wrap {
    margin: 8px 0 12px;
}

.prompt-tools {
    display: flex;
    flex-wrap: nowrap;   /* ❗不换行 */
    gap: 8px;
    overflow-x: auto;    /* ❗一行放不下就横向滚动 */
    padding-bottom: 6px;
}
.promptTool {
    appearance: none;
    width: auto;
    min-width: 0;
    border: 1px solid #dbe3ef;
    background: #f8fafc;
    color: #334155;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 500;
    cursor: pointer;
    box-shadow: none;
    white-space: nowrap;
    transition: all .15s ease;
}

.promptTool:hover {
    background: #eef6ff;
    border-color: #b7d7ff;
    color: #1d4ed8;
}

.promptTool:active {
    transform: translateY(1px);
}

.promptTool:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.promptTool[data-action="style_mg"],
.promptTool[data-action="style_anime"],
.promptTool[data-action="style_illustration"],
.promptTool[data-action="style_storybook"] {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.promptTool[data-action="storyboard"],
.promptTool[data-action="storyboard_pro"] {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #5b21b6;
}


.wrap {
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
}



.dash-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:16px;
    margin-top:16px;
}

.dash-box{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:18px;
    text-align:center;
}

.dash-box .label{
    font-size:13px;
    color:#64748b;
}

.dash-box .value{
    font-size:28px;
    font-weight:600;
    margin-top:8px;
    color:#0f172a;
}

.dash-box.highlight{
    background:#eef2ff;
    border-color:#c7d2fe;
}



/* ===== 移动端 ===== */
@media(max-width:900px){
    .layout{
        grid-template-columns:1fr;
    }

    .clean-media-section.media-count-2{
        grid-template-columns:1fr;
    }
}
/* ===== 最近任务：链接文字 ===== */
.job-cover,
.job-title,
.job-prompt{
    color:inherit;
    text-decoration:none;
}

.job-title,
.job-prompt{
    display:block;
}

/* ===== 最近任务面板：专业版 ===== */
.layout{
    grid-template-columns:420px minmax(0,1fr);
    gap:18px;
    max-width:1760px;
}

.sidebar{
    padding:16px;
    background:linear-gradient(180deg,#ffffff 0%,#fbfcff 100%);
    box-shadow:0 18px 50px rgba(15,23,42,.06);
}

.sidebar h2{
    position:sticky;
    top:-16px;
    z-index:2;
    margin:0 0 12px;
    padding:16px 0 12px;
    background:linear-gradient(180deg,#ffffff 0%,rgba(255,255,255,.96) 75%,rgba(255,255,255,0) 100%);
    font-size:17px;
    letter-spacing:.02em;
    color:#0f172a;
}

#jobs{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.job-card{
    position:relative;
    display:grid;
    grid-template-columns:92px minmax(0,1fr);
    gap:12px;
    padding:10px;
    border:1px solid #eef2f7;
    border-radius:16px;
    background:#fff;
    box-shadow:0 8px 22px rgba(15,23,42,.035);
    transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.job-card:hover{
    transform:translateY(-1px);
    border-color:#dbe5f2;
    box-shadow:0 14px 30px rgba(15,23,42,.07);
}

.job-card:hover .job-cover{
    transform:none;
}

.job-cover{
    position:relative;
    width:92px;
    height:92px;
    display:block;
    border-radius:14px;
    background:#f1f5f9;
    overflow:hidden;
}

.job-cover img,
.job-cover video{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

.job-cover::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg,rgba(15,23,42,0) 55%,rgba(15,23,42,.16) 100%);
    pointer-events:none;
}

.media-badge{
    position:absolute;
    right:6px;
    bottom:6px;
    z-index:1;
    padding:2px 6px;
    border-radius:999px;
    background:rgba(15,23,42,.72);
    color:#fff;
    font-size:11px;
    line-height:1.4;
}

.skeleton,
.placeholder{
    width:100%;
    height:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    color:#64748b;
    background:linear-gradient(135deg,#f8fafc,#eef2ff);
    font-size:13px;
}

.skeleton span{
    font-weight:800;
    color:#334155;
}

.skeleton small{
    font-size:11px;
    color:#94a3b8;
}

.job-body{
    min-width:0;
    display:flex;
    flex-direction:column;
    padding:2px 0;
}

.job-title{
    display:block;
    color:#0f172a;
    font-size:14px;
    font-weight:800;
    line-height:1.25;
    text-decoration:none;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.job-prompt{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    margin-top:6px;
    min-height:36px;
    color:#64748b;
    font-size:12.5px;
    line-height:1.45;
    text-decoration:none;
    overflow:hidden;
}

.job-title:hover,
.job-prompt:hover{
    color:#111827;
}

.job-meta-row{
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:10px;
    margin-top:auto;
    padding-top:9px;
    border-top:1px solid #f1f5f9;
    font-size:12px;
    line-height:1;
    color:#64748b;
}

.job-status-pill{
    display:inline-flex;
    align-items:center;
    gap:5px;
    min-width:58px;
    font-weight:700;
    white-space:nowrap;
}

.job-status-pill i{
    width:7px;
    height:7px;
    border-radius:50%;
    background:#94a3b8;
    box-shadow:0 0 0 3px rgba(148,163,184,.15);
}

.job-status-pill.is-completed{color:#059669;}
.job-status-pill.is-completed i{background:#10b981;box-shadow:0 0 0 3px rgba(16,185,129,.14);}
.job-status-pill.is-processing{color:#2563eb;}
.job-status-pill.is-processing i{background:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.14);}
.job-status-pill.is-pending{color:#b45309;}
.job-status-pill.is-pending i{background:#f59e0b;box-shadow:0 0 0 3px rgba(245,158,11,.16);}
.job-status-pill.is-failed{color:#dc2626;}
.job-status-pill.is-failed i{background:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.14);}

.job-cost{
    min-width:0;
    justify-self:end;
    color:#475569;
    font-variant-numeric:tabular-nums;
    white-space:nowrap;
}

.deleteJobBtn{
    width:auto;
    margin:0;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    color:#94a3b8;
    font-size:12px;
    font-weight:500;
    line-height:1;
    cursor:pointer;
    user-select:none;
    white-space:nowrap;
    appearance:none;
}

.deleteJobBtn:hover{
    color:#ef4444;
    text-decoration:none;
}

.jobs-empty{
    min-height:180px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    color:#94a3b8;
    border:1px dashed #dbe3ef;
    border-radius:16px;
    background:#f8fafc;
    text-align:center;
}

.jobs-empty-icon{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    background:#eef2ff;
    color:#4f46e5;
    font-weight:800;
}

.jobs-empty strong{
    color:#475569;
}

.jobs-empty span{
    font-size:12px;
}

@media(max-width:900px){
    .layout{
        grid-template-columns:1fr;
    }

    .sidebar{
        height:auto;
        max-height:520px;
    }
}

/* ===== 后台：多服务商专业版 ===== */
.wrap.admin-wrap{
    max-width:1440px;
    margin:0 auto;
    padding:18px;
}

.admin-flash{
    margin:0 0 14px;
    padding:12px 14px;
    border-radius:12px;
    border:1px solid #bbf7d0;
    background:#f0fdf4;
    color:#166534;
    font-weight:700;
}

.admin-flash.error{
    border-color:#fecaca;
    background:#fef2f2;
    color:#991b1b;
}

.section-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom:14px;
}

.section-head h2{margin-bottom:6px}
.section-head p{margin:0;color:#6b7280;font-size:14px;line-height:1.6}

.provider-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:14px;
}

.admin-panel{
    border:1px solid #e5e7eb;
    background:#fff;
    border-radius:16px;
    padding:16px;
    margin-top:14px;
}

.provider-panel,
.model-panel{
    box-shadow:0 8px 24px rgba(15,23,42,.04);
}

.add-panel{
    background:#fbfdff;
    border-style:dashed;
}

.panel-title-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:8px;
}

.panel-title-row h3,
.panel-title-row strong{
    margin:0;
    font-size:17px;
}

.pill{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    height:24px;
    padding:0 9px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
    border:1px solid #e5e7eb;
    color:#6b7280;
    background:#f9fafb;
}

.pill.on{
    color:#047857;
    border-color:#bbf7d0;
    background:#ecfdf5;
}

.pill.off{
    color:#991b1b;
    border-color:#fecaca;
    background:#fef2f2;
}

.inline-check{
    display:flex;
    align-items:center;
    gap:8px;
    font-weight:700;
}

.inline-check input[type="checkbox"]{
    width:auto;
    margin:0;
}

.form-actions{
    display:flex;
    align-items:center;
    gap:12px;
    margin-top:10px;
}

.form-actions button{
    width:auto;
    min-width:110px;
}

.danger-text{
    width:auto!important;
    min-width:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    color:#b91c1c!important;
    margin:0!important;
    font-weight:700;
}

.danger-text:hover{text-decoration:underline}
.muted{color:#9ca3af;font-size:13px}
.danger-color{color:#b91c1c}

.balance-panel{padding:18px;margin-top:12px}
.balance-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:14px;
    margin-top:12px;
}

.balance-box{
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:16px;
    background:#fafafa;
}

.balance-box h4{margin:0 0 12px}
.balance-box p{margin:8px 0;color:#374151}

.admin-model-grid{
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
}

.model-panel textarea{
    min-height:90px;
    font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    font-size:13px;
}

/* ===== 豆包 / 即梦式统一创作框 ===== */
.studio-header p{
    margin:7px 0 0;
    color:#64748b;
    font-size:14px;
}

.composer-card{
    padding:22px;
}

.model-row{
    display:grid;
    grid-template-columns:minmax(260px, 420px) 1fr;
    gap:16px;
    align-items:end;
    margin-bottom:14px;
}

.mode-tip{
    padding:13px 14px;
    border:1px solid #e8eef6;
    border-radius:14px;
    background:#f8fafc;
    color:#64748b;
    font-size:13px;
    line-height:1.55;
}

.doubao-composer{
    position:relative;
    margin-top:12px;
    border:1px solid #dbe3ef;
    border-radius:22px;
    background:#fff;
    box-shadow:0 18px 45px rgba(15,23,42,.06);
    padding:14px;
    transition:border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.doubao-composer:focus-within,
.doubao-composer.is-dragging{
    border-color:#111827;
    box-shadow:0 22px 60px rgba(15,23,42,.10);
}

.doubao-composer.is-dragging{
    transform:translateY(-1px);
    background:#fbfdff;
}

.doubao-composer textarea{
    width:100%;
    min-height:190px;
    margin:0;
    padding:8px 8px 4px;
    border:0;
    outline:none;
    resize:vertical;
    box-shadow:none;
    font-size:16px;
    line-height:1.75;
    border-radius:16px;
}

.doubao-composer textarea:focus{
    outline:none;
}

.media-strip{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    padding:8px 4px 10px;
    min-height:0;
}

.media-chip{
    position:relative;
    width:auto;
    min-width:86px;
    max-width:126px;
    margin:0;
    padding:0;
    overflow:hidden;
    border:1px solid #e5e7eb;
    border-radius:14px;
    background:#f8fafc;
    color:#0f172a;
    box-shadow:0 8px 24px rgba(15,23,42,.06);
    cursor:pointer;
}

.media-chip img{
    display:block;
    width:110px;
    height:82px;
    object-fit:cover;
    background:#eef2f7;
}

.media-chip span{
    display:block;
    padding:7px 8px;
    font-size:12px;
    font-weight:800;
    text-align:left;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.media-chip i{
    position:absolute;
    top:5px;
    right:5px;
    width:20px;
    height:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    background:rgba(15,23,42,.66);
    color:#fff;
    font-style:normal;
    font-size:15px;
    line-height:1;
}

.media-chip.role-first_frame{border-color:#bfdbfe;background:#eff6ff;}
.media-chip.role-last_frame{border-color:#fecaca;background:#fff7f7;}

.composer-actions{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    padding:10px 4px 0;
    border-top:1px solid #f1f5f9;
}

.composer-actions span{
    margin-left:auto;
    color:#94a3b8;
    font-size:12px;
}

.light-action{
    width:auto;
    margin:0;
    padding:8px 13px;
    border:1px solid #dbe3ef;
    border-radius:999px;
    background:#f8fafc;
    color:#334155;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
}

.light-action:hover{
    background:#eef2ff;
    border-color:#c7d2fe;
    color:#3730a3;
}

.video-url-box{
    margin-top:14px;
}

.video-url-box details{
    border:1px solid #e8eef6;
    border-radius:14px;
    background:#fbfdff;
    padding:12px 14px;
}

.video-url-box summary{
    cursor:pointer;
    color:#475569;
    font-weight:700;
}

.grid.two{
    grid-template-columns:1fr 1fr;
}

.settings-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin-top:16px;
}

.check-line label{
    display:flex;
    align-items:center;
    gap:8px;
    min-height:46px;
}

.check-line input,
.video-url-box input[type="checkbox"]{
    width:auto;
    margin:0;
}

.primary-submit{
    height:52px;
    border-radius:16px;
    font-size:16px;
    font-weight:800;
    background:#111827;
}

@media(max-width:900px){
    .model-row,
    .settings-grid,
    .grid.two{
        grid-template-columns:1fr;
    }
    .composer-actions span{
        width:100%;
        margin-left:0;
    }
}

/* ===== 豆包/即梦式创作器增强 ===== */
.studio-header p{margin:6px 0 0;color:#667085;line-height:1.5}
.model-row{display:grid;grid-template-columns:minmax(260px,420px) 1fr;gap:16px;align-items:end;margin-bottom:14px}
.mode-tip{background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;padding:13px;color:#475467;line-height:1.55}
.prompt-tools-wrap{overflow-x:auto;margin:10px 0 14px}
.prompt-tools{display:flex;gap:8px;min-width:max-content}
.promptTool{width:auto;margin:0;padding:9px 12px;background:#fff;color:#344054;border:1px solid #e5e7eb;border-radius:999px;font-size:13px}
.promptTool:hover{border-color:#111;color:#111}
.doubao-composer{border:1.5px solid #d0d5dd;border-radius:18px;padding:12px;background:#fff;transition:.18s;box-shadow:0 8px 30px rgba(16,24,40,.04)}
.doubao-composer.is-dragging{border-color:#111;background:#f8fafc}
.doubao-composer textarea{border:0;padding:10px 8px;min-height:150px;resize:vertical;outline:none;box-shadow:none;margin:0}
.media-strip{display:flex;gap:10px;flex-wrap:wrap;padding:8px 4px 2px}
.media-chip{width:92px;height:92px;margin:0;padding:0;position:relative;overflow:hidden;border-radius:14px;background:#f2f4f7;border:1px solid #e5e7eb;color:#fff}
.media-chip img{width:100%;height:100%;object-fit:cover;display:block}
.media-chip span{position:absolute;left:6px;bottom:6px;padding:3px 7px;border-radius:999px;background:rgba(0,0,0,.62);font-size:12px;line-height:1}
.media-chip i{position:absolute;right:5px;top:5px;width:20px;height:20px;line-height:20px;border-radius:999px;background:rgba(0,0,0,.62);font-style:normal;text-align:center;font-size:14px}
.media-chip.role-first_frame{outline:2px solid #12b76a}
.media-chip.role-last_frame{outline:2px solid #f79009}
.composer-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-top:1px solid #f2f4f7;margin-top:8px;padding:10px 4px 2px;color:#98a2b3;font-size:13px}
.light-action,.ghost{width:auto;margin:0;padding:9px 12px;background:#f2f4f7;color:#344054;border:1px solid #eaecf0;border-radius:999px;font-weight:700}
.light-action:hover,.ghost:hover{background:#111;color:#fff;border-color:#111}
.light-action.is-disabled{opacity:.45;cursor:not-allowed;text-decoration:line-through}
.primary-submit{height:52px;border-radius:14px;font-size:17px;font-weight:800;margin-top:18px}
.grid{display:grid;gap:14px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;margin-top:14px}.check-line label{display:flex;align-items:center;gap:8px;margin-top:34px}.check-line input{width:auto;margin:0}
.scene-panel{margin:10px 0 14px;padding:10px;border:1px solid #eaecf0;border-radius:16px;background:linear-gradient(180deg,#fff,#f9fafb)}
.scene-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.scene-head h3{margin:0;font-size:17px}.scene-head p{margin:3px 0 0;color:#667085;font-size:12px}.small{padding:7px 10px;font-size:12px}
.scene-grid{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:7px}.scene-card{margin:0;padding:8px 10px;text-align:left;background:#fff;color:#344054;border:1px solid #eaecf0;border-radius:11px;min-height:48px;line-height:1.15}.scene-card b{display:block;color:#101828;margin-bottom:3px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.scene-card span{display:block;color:#667085;font-size:11px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.scene-card.active{background:#111;color:#fff;border-color:#111;box-shadow:0 5px 12px rgba(17,17,17,.13)}.scene-card.active b,.scene-card.active span{color:#fff}.scene-card:hover{border-color:#111}.scene-warning{margin:8px 0 0;color:#9a3412;background:#fff7ed;border:1px solid #fed7aa;border-radius:10px;padding:8px 10px;font-size:12px;line-height:1.35}
.material-panel{margin-top:14px}.material-box{background:#fcfcfd;border:1px solid #eaecf0;border-radius:14px;padding:12px;transition:.18s}.material-box textarea{min-height:74px;background:#fff}.material-box p{margin:7px 0 0;color:#667085;font-size:12px;line-height:1.4}.material-box.is-disabled{opacity:.48;filter:grayscale(.25)}
@media (max-width:1100px){.layout{grid-template-columns:1fr}.sidebar{height:auto;max-height:420px}.model-row,.grid.two{grid-template-columns:1fr}.scene-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.scene-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-grid{grid-template-columns:1fr}.studio-header{display:block}nav{margin-top:12px}.media-chip{width:78px;height:78px}}

/* ===== 专业版增强：队列 / 素材库 / 模型参数 ===== */
.job-error{margin-top:8px;padding:8px;border-radius:8px;background:#fef2f2;color:#991b1b;font-size:12px;line-height:1.4}
.model-schema-panel{margin-top:16px;padding:14px;border:1px solid #e5e7eb;border-radius:14px;background:#fafafa}
.schema-head{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#374151;font-size:14px}.schema-head span{color:#6b7280;font-size:12px}.dynamic-params{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dynamic-params label{margin-top:10px}.dynamic-params input{margin-top:6px}
.media-chip{position:relative;width:96px;min-width:96px;height:96px;border:1px solid #e5e7eb;border-radius:14px;overflow:hidden;background:#fff;padding:0;margin:0;cursor:pointer}.media-chip img{width:100%;height:100%;object-fit:cover}.media-chip span{position:absolute;left:6px;bottom:6px;padding:3px 7px;border-radius:999px;background:rgba(0,0,0,.7);color:#fff;font-size:12px}.media-chip i,.media-chip em{position:absolute;top:5px;width:20px;height:20px;border-radius:99px;background:rgba(0,0,0,.62);color:#fff;font-style:normal;display:flex;align-items:center;justify-content:center;font-size:14px}.media-chip i{right:5px}.media-chip .move-left{left:5px}.media-chip .move-right{left:28px}.media-chip.role-first_frame{outline:2px solid #2563eb}.media-chip.role-last_frame{outline:2px solid #7c3aed}
.asset-drawer{position:fixed;inset:0;background:rgba(15,23,42,.36);display:none;z-index:50}.asset-drawer.open{display:flex;justify-content:flex-end}.asset-drawer-panel{width:min(560px,92vw);height:100%;background:#fff;box-shadow:-20px 0 60px rgba(0,0,0,.18);padding:18px;overflow:auto}.asset-drawer-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.asset-drawer-head strong{display:block;font-size:20px}.asset-drawer-head span{display:block;color:#6b7280;font-size:13px;margin-top:3px}.asset-drawer-head button{width:42px;margin:0;border-radius:10px;background:#111;color:#fff}.asset-role-row{display:flex;gap:10px;margin:16px 0;flex-wrap:wrap}.asset-role{width:auto;margin:0;padding:9px 12px;border:1px solid #e5e7eb;background:#fff;color:#374151;border-radius:999px}.asset-role.active{background:#111;color:#fff;border-color:#111}.asset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.asset-card{margin:0;padding:0;border:1px solid #e5e7eb;background:#fff;color:#111;border-radius:14px;overflow:hidden;text-align:left}.asset-card img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}.asset-card span{display:block;padding:8px;font-size:12px;color:#4b5563;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.light-action.is-disabled{opacity:.45;filter:grayscale(1);cursor:not-allowed}.material-box.is-disabled{opacity:.45}.material-box.is-disabled textarea{pointer-events:none;background:#f3f4f6}.job-status-pill{display:inline-flex;align-items:center;gap:5px}.job-status-pill i{width:7px;height:7px;border-radius:99px;background:#9ca3af}.job-status-pill.is-completed i{background:#10b981}.job-status-pill.is-failed i{background:#ef4444}.job-status-pill.is-processing i{background:#3b82f6}.job-status-pill.is-pending i{background:#f59e0b}
@media(max-width:900px){.dynamic-params,.asset-grid{grid-template-columns:1fr 1fr}.layout{grid-template-columns:1fr}.sidebar{height:auto;max-height:420px}}

/* ===== 统一创作器 / 模型能力提示 ===== */
.model-capability-panel{
    margin:14px 0 16px;
    padding:14px 16px;
    border:1px solid #dbeafe;
    background:linear-gradient(135deg,#eff6ff,#f8fafc);
    border-radius:14px;
}
.capability-title{
    font-weight:900;
    color:#1e3a8a;
    margin-bottom:6px;
}
.capability-desc{
    color:#475569;
    font-size:14px;
    line-height:1.6;
}
.mj-workflow-box{
    border:1px solid #e9d5ff;
    background:#faf5ff;
}
.mj-button-list{
    display:flex;
    flex-direction:column;
    gap:8px;
    max-height:220px;
    overflow:auto;
}
.mj-button-list code{
    display:block;
    padding:8px 10px;
    background:#fff;
    border:1px solid #e9d5ff;
    border-radius:8px;
    color:#6b21a8;
    white-space:normal;
    word-break:break-all;
}
.clean-actions .btn-primary{
    background:#111827;
    color:#fff;
    border-color:#111827;
}
.clean-actions .btn-primary:hover{
    background:#374151;
    color:#fff;
}
.job-status-pill.is-processing{
    background:#eff6ff;
    color:#1d4ed8;
}
.job-status-pill.is-completed{
    background:#ecfdf5;
    color:#047857;
}
.job-status-pill.is-failed{
    background:#fef2f2;
    color:#b91c1c;
}
.job-status-pill.is-pending{
    background:#f8fafc;
    color:#64748b;
}


.inline-upload-row{display:flex;align-items:center;gap:10px;margin-top:8px;flex-wrap:wrap}.file-list-hint{font-size:12px;color:#64748b;line-height:1.5;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.material-box textarea{min-height:62px}
.user-pill{display:inline-flex;align-items:center;gap:6px;padding:10px 14px;border:1px solid #e5e7eb;border-radius:12px;background:#f8fafc;color:#334155;font-weight:700;white-space:nowrap}

/* COS immediate upload status */
.file-list-hint.uploading{color:#2563eb;}
.file-list-hint.success{color:#16a34a;}
.file-list-hint.error{color:#dc2626;}
.media-chip.is-uploading::after{content:'';position:absolute;left:0;right:0;bottom:0;height:3px;background:#2563eb;animation:uploadPulse 1s infinite ease-in-out;}
.media-chip.has-error{outline:2px solid #ef4444;}
@keyframes uploadPulse{0%{opacity:.35}50%{opacity:1}100%{opacity:.35}}
.asset-card video,.asset-card .asset-file-icon{width:100%;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;background:#f8fafc;object-fit:cover;font-size:42px;}

/* ===== 素材入口合并到富文本框底部 ===== */
.hidden-material-fields{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    overflow:hidden!important;
    clip:rect(0 0 0 0)!important;
    clip-path:inset(50%)!important;
    white-space:nowrap!important;
}
.hidden-material-fields textarea{
    min-height:0!important;
    height:1px!important;
    padding:0!important;
    border:0!important;
    margin:0!important;
}
.material-strip{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    padding:8px 4px 2px;
}
.material-chip{
    position:relative;
    display:flex;
    align-items:center;
    gap:10px;
    max-width:280px;
    min-width:190px;
    padding:8px 36px 8px 8px;
    border:1px solid #e5e7eb;
    border-radius:14px;
    background:#f8fafc;
    color:#111827;
    box-shadow:0 8px 24px rgba(15,23,42,.05);
}
.material-thumb{
    width:58px;
    height:58px;
    flex:0 0 58px;
    border-radius:10px;
    overflow:hidden;
    background:#eef2f7;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
}
.material-thumb img,
.material-thumb video{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.material-info{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:4px;
}
.material-info b{
    font-size:12px;
    color:#047857;
}
.material-info span{
    font-size:13px;
    color:#344054;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.material-chip.is-uploading .material-info b,
.material-chip.has-error .material-info b{
    color:#b45309;
}
.material-chip.has-error{
    border-color:#fecaca;
    background:#fef2f2;
}
.material-remove{
    position:absolute;
    right:7px;
    top:7px;
    width:24px;
    height:24px;
    padding:0;
    margin:0;
    border-radius:999px;
    background:#e5e7eb;
    color:#111827;
    border:0;
    line-height:24px;
}
.material-remove:hover{
    background:#111827;
    color:#fff;
}
.composer-material-actions .light-action[hidden]{
    display:none!important;
}
.asset-card video{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    display:block;
    background:#111827;
}
.asset-file-icon{
    width:100%;
    aspect-ratio:1/1;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f2f4f7;
    font-size:32px;
}

/* 隐藏 Seedance 顶部蓝色说明框 + 场景橙色提示条 */
.model-capability-panel,
.scene-warning{
    display:none!important;
}

/* 隐藏模型类型右侧文字提示 */
.mode-tip{
    display:none!important;
}

/* 隐藏下面的模型参数框 */
.model-schema-panel{
    display:none!important;
}








/* ===== 素材库管理增强：分类 / 场景用途 / 删除 ===== */
.asset-role-row,
.asset-filter-row{
    display:flex;
    gap:8px;
    margin:14px 0 0;
    flex-wrap:wrap;
}
.asset-filter-row{margin-top:10px;padding-bottom:10px;border-bottom:1px solid #f1f5f9;}
.asset-empty-tip{display:inline-flex;align-items:center;padding:9px 12px;border-radius:12px;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;font-size:13px;line-height:1.4;}
.asset-filter{width:auto;margin:0;padding:8px 11px;border:1px solid #e5e7eb;background:#fff;color:#475569;border-radius:999px;font-size:12px;font-weight:700;}
.asset-filter.active{background:#111;color:#fff;border-color:#111;}
.asset-card{display:flex;flex-direction:column;margin:0;padding:0;border:1px solid #e5e7eb;background:#fff;color:#111;border-radius:14px;overflow:hidden;text-align:left;}
.asset-preview-btn{width:100%;margin:0;padding:0;border:0;border-radius:0;background:#f8fafc;color:#111;display:block;}
.asset-preview-btn img,.asset-preview-btn video{width:100%;aspect-ratio:1/1;object-fit:cover;display:block;background:#f8fafc;}
.asset-card span{display:block;padding:8px 8px 2px;font-size:12px;color:#344054;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.asset-card small{display:block;padding:0 8px 8px;color:#98a2b3;font-size:11px;}
.asset-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:0;border-top:1px solid #f1f5f9;}
.asset-card-actions button{width:100%;margin:0;padding:9px 6px;border:0;border-radius:0;font-size:12px;font-weight:800;}
.asset-use-btn{background:#f8fafc;color:#111827;}
.asset-delete-btn{background:#fff;color:#dc2626;border-left:1px solid #f1f5f9!important;}
.asset-use-btn:hover{background:#111827;color:#fff;}
.asset-delete-btn:hover{background:#fef2f2;color:#991b1b;}


/* ===== Adapter Runtime Final Fix =====
   原站点末尾曾为了隐藏 Seedance 参数框写了：
   .model-schema-panel{display:none!important}
   这会导致图片模式 Adapter 参数永远看不到。
   Runtime 会给参数面板加 runtime-visible/runtime-hidden，这里只开放被 Runtime 激活的参数框。
*/
.model-schema-panel.runtime-visible {
    display: block !important;
}
.model-schema-panel.runtime-hidden {
    display: none !important;
}
.source-image-mode {
    font-weight: 800;
}
.dynamic-params label textarea,
.dynamic-params label select,
.dynamic-params label input,
#dynamicParams label textarea,
#dynamicParams label select,
#dynamicParams label input {
    width: 100%;
    box-sizing: border-box;
}
.dynamic-params label.check-line,
#dynamicParams label.check-line {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* 后台 Tab 分区 */
.admin-tab-nav{
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 12px 0;
    margin: 0 0 14px;
    background: rgba(248,250,252,.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
}
.admin-tab-nav button{
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.admin-tab-nav button:hover{
    background:#f3f4f6;
}
.admin-tab-nav button.is-active{
    background:#111827;
    color:#fff;
    border-color:#111827;
}
.admin-tab-panel[hidden]{
    display:none!important;
}
.admin-tab-panel.is-active{
    display:block;
}
@media (max-width: 720px){
    .admin-tab-nav{
        margin-left:-2px;
        margin-right:-2px;
        padding-left:2px;
        padding-right:2px;
    }
    .admin-tab-nav button{
        padding:8px 12px;
        font-size:13px;
    }
}

/* ===== AI人像页面：像素蛋糕式交互（仅前端 UI） ===== */
body.portrait-retouch-active .settings-grid{
    display:none!important;
}
body.portrait-retouch-active .model-capability-panel,
body.portrait-retouch-active .prompt-tools-wrap{
    display:none!important;
}
.portrait-retouch-dropzone{
    border-radius:24px;
    background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
    border:1px solid #e5e7eb;
    padding:18px;
}
.portrait-composer-actions{
    border-top:0;
    margin-top:0;
    padding-top:0;
}
.portrait-composer-actions .light-action{
    background:#111827;
    color:#fff;
    border-color:#111827;
    min-width:150px;
}
.portrait-composer-actions .light-action:hover{
    background:#000;
    border-color:#000;
}
#imagePreviewList.portrait-preview-list{
    display:block;
    padding:10px 0 14px;
}
#imagePreviewList.portrait-preview-list .media-chip.portrait-source-preview{
    width:100%;
    min-width:0;
    height:auto;
    aspect-ratio:4/5;
    max-height:620px;
    border-radius:24px;
    overflow:hidden;
    background:#0f172a;
    box-shadow:0 24px 56px rgba(15,23,42,.16);
    border:1px solid rgba(15,23,42,.08);
}
#imagePreviewList.portrait-preview-list .media-chip.portrait-source-preview img{
    width:100%;
    height:100%;
    object-fit:contain;
    background:radial-gradient(circle at center, rgba(255,255,255,.06), rgba(15,23,42,.92));
}
#imagePreviewList.portrait-preview-list .media-chip.portrait-source-preview span{
    left:14px;
    top:14px;
    bottom:auto;
    background:rgba(15,23,42,.72);
    padding:8px 12px;
    font-size:13px;
    z-index:2;
}
#imagePreviewList.portrait-preview-list .media-chip.portrait-source-preview i{
    right:14px;
    top:14px;
    width:32px;
    height:32px;
    font-size:18px;
    background:rgba(15,23,42,.72);
    z-index:2;
}
#imagePreviewList.portrait-preview-list .media-chip.portrait-source-preview .move-left,
#imagePreviewList.portrait-preview-list .media-chip.portrait-source-preview .move-right{
    display:none!important;
}
.portrait-source-meta{
    position:absolute;
    left:16px;
    right:16px;
    bottom:16px;
    padding:14px 16px;
    border-radius:16px;
    background:linear-gradient(180deg,rgba(15,23,42,.20),rgba(15,23,42,.72));
    color:#fff;
    z-index:2;
}
.portrait-source-meta strong{
    display:block;
    font-size:16px;
    margin-bottom:4px;
}
.portrait-source-meta small{
    display:block;
    font-size:13px;
    color:rgba(255,255,255,.88);
    line-height:1.5;
}
.portrait-retouch-params{
    display:flex;
    flex-direction:column;
    gap:16px;
}
.portrait-retouch-params .retouch-empty-tip{
    padding:14px 16px;
    border:1px dashed #cbd5e1;
    border-radius:16px;
    background:#f8fafc;
    color:#475569;
    font-size:14px;
    line-height:1.6;
}
#modelSchemaPanel.has-source-image .retouch-empty-tip{
    display:none;
}
#modelSchemaPanel:not(.has-source-image) .retouch-group{
    display:none;
}
.retouch-group{
    border:1px solid #e5e7eb;
    border-radius:20px;
    background:#fff;
    padding:18px;
    box-shadow:0 12px 30px rgba(15,23,42,.04);
}
.retouch-group-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:12px;
    margin-bottom:14px;
}
.retouch-group-head h4{
    margin:0;
    font-size:16px;
    color:#0f172a;
}
.retouch-group-head span{
    font-size:12px;
    color:#64748b;
}
.retouch-group-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}
.retouch-slider-field,
.retouch-simple-field{
    padding:14px;
    border:1px solid #e5e7eb;
    border-radius:16px;
    background:#fcfcfd;
}
.retouch-slider-field.is-active{
    border-color:#93c5fd;
    box-shadow:0 0 0 3px rgba(59,130,246,.10);
    background:#f8fbff;
}
.retouch-slider-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:10px;
}
.retouch-slider-title,
.retouch-simple-label{
    display:block;
    font-weight:700;
    color:#111827;
    margin:0;
}
.retouch-slider-tools{
    display:flex;
    align-items:center;
    gap:8px;
}
.retouch-slider-value{
    min-width:52px;
    text-align:center;
    padding:4px 10px;
    border-radius:999px;
    background:#e2e8f0;
    color:#0f172a;
    font-size:12px;
    font-weight:700;
}
.retouch-slider-reset{
    width:auto;
    margin:0;
    padding:5px 10px;
    border-radius:999px;
    border:1px solid #cbd5e1;
    background:#fff;
    color:#334155;
    font-size:12px;
    font-weight:700;
}
.retouch-slider-reset:hover{
    background:#111827;
    border-color:#111827;
    color:#fff;
}
.retouch-slider-field input[type="range"]{
    width:100%;
    margin:0;
}
.retouch-slider-legend{
    display:flex;
    justify-content:space-between;
    margin-top:8px;
    font-size:11px;
    color:#94a3b8;
}
.retouch-slider-help{
    margin-top:8px;
    font-size:12px;
    color:#64748b;
}
.retouch-simple-field select,
.retouch-simple-field input,
.retouch-simple-field textarea{
    margin-top:8px;
    background:#fff;
}
.retouch-group-advanced summary{
    list-style:none;
    cursor:pointer;
}
.retouch-group-advanced summary::-webkit-details-marker{
    display:none;
}
@media (max-width:900px){
    .retouch-group-grid{
        grid-template-columns:1fr;
    }
    #imagePreviewList.portrait-preview-list .media-chip.portrait-source-preview{
        aspect-ratio:3/4;
        max-height:520px;
    }
}

/* ===== AI人像 UI 微调：更小滑杆 + 分组折叠 ===== */
.retouch-group{
    padding:12px;
    border-radius:16px;
}
.retouch-group-head{
    margin-bottom:0;
    cursor:pointer;
    list-style:none;
    align-items:center;
}
.retouch-group-head::-webkit-details-marker{
    display:none;
}
.retouch-group-title-wrap{
    display:flex;
    flex-direction:column;
    gap:2px;
}
.retouch-group-head h4{
    font-size:15px;
}
.retouch-group-head span{
    font-size:11px;
}
.retouch-group-arrow{
    font-style:normal;
    font-size:18px;
    line-height:1;
    color:#64748b;
    transition:transform .18s ease;
}
.details .retouch-group-arrow{transform:none;}
.retouch-group[open] .retouch-group-arrow{
    transform:rotate(180deg);
}
.retouch-group-grid{
    margin-top:12px;
    gap:10px;
}
.retouch-slider-field,
.retouch-simple-field{
    padding:10px 12px;
    border-radius:12px;
}
.retouch-slider-head{
    margin-bottom:6px;
}
.retouch-slider-title,
.retouch-simple-label{
    font-size:13px;
}
.retouch-slider-tools{
    gap:6px;
}
.retouch-slider-value{
    min-width:46px;
    padding:2px 8px;
    font-size:11px;
}
.retouch-slider-reset{
    padding:3px 8px;
    font-size:11px;
}
.retouch-slider-field input[type="range"]{
    height:18px;
    margin:0;
    accent-color:#111827;
}
.retouch-slider-field input[type="range"]::-webkit-slider-runnable-track{
    height:4px;
    border-radius:999px;
    background:#dbe3ee;
}
.retouch-slider-field input[type="range"]::-webkit-slider-thumb{
    -webkit-appearance:none;
    appearance:none;
    width:14px;
    height:14px;
    border-radius:50%;
    background:#111827;
    border:0;
    margin-top:-5px;
    box-shadow:0 1px 4px rgba(15,23,42,.22);
}
.retouch-slider-field input[type="range"]::-moz-range-track{
    height:4px;
    border-radius:999px;
    background:#dbe3ee;
}
.retouch-slider-field input[type="range"]::-moz-range-thumb{
    width:14px;
    height:14px;
    border:none;
    border-radius:50%;
    background:#111827;
    box-shadow:0 1px 4px rgba(15,23,42,.22);
}
.retouch-slider-legend{
    margin-top:4px;
    font-size:10px;
}
.retouch-slider-help{
    margin-top:4px;
    font-size:11px;
}
.retouch-simple-field select,
.retouch-simple-field input,
.retouch-simple-field textarea{
    margin-top:6px;
    min-height:38px;
    font-size:13px;
}
.retouch-group-advanced summary{
    list-style:none;
}
@media (max-width:900px){
    .retouch-group{
        padding:10px;
    }
    .retouch-slider-field,
    .retouch-simple-field{
        padding:9px 10px;
    }
}
