/* 五套可选皮肤。经典蓝（classic）走页面原样式，本文件不覆盖。 */
html[data-skin="flat"],
html[data-skin="soft"],
html[data-skin="neo"],
html[data-skin="bento"],
html[data-skin="eink"] {
    --skin-radius: 10px;
}

/* ---------- 扁平 ---------- */
html[data-skin="flat"] {
    --skin-bg: #ffffff;
    --skin-surface: #f3f4f6;
    --skin-card: #ffffff;
    --skin-ink: #111827;
    --skin-muted: #6b7280;
    --skin-line: #e5e7eb;
    --skin-brand: #2196f3;
    --skin-brand-ink: #1565c0;
    --skin-radius: 4px;
}
html[data-skin="flat"] body { background: var(--skin-bg); color: var(--skin-ink); }
html[data-skin="flat"] .glass {
    background: var(--skin-card);
    border: 1px solid var(--skin-line);
    box-shadow: none;
    border-radius: var(--skin-radius) !important;
}
html[data-skin="flat"] .rounded-2xl,
html[data-skin="flat"] .rounded-xl,
html[data-skin="flat"] .rounded-lg { border-radius: var(--skin-radius) !important; }
html[data-skin="flat"] #actionBtn {
    background-image: none !important;
    background-color: var(--skin-brand);
    box-shadow: none !important;
}
html[data-skin="flat"] #actionBtn.is-stop { background-color: #e53935 !important; }
html[data-skin="flat"] .text-brand-600,
html[data-skin="flat"] .text-brand-700 { color: var(--skin-brand-ink) !important; }
html[data-skin="flat"] .bg-brand-600,
html[data-skin="flat"] #progressBar { background-color: var(--skin-brand) !important; }
html[data-skin="flat"] .bg-brand-100 { background-color: #e3f2fd !important; }
html[data-skin="flat"].dark body { background: #111827; color: #f9fafb; }
html[data-skin="flat"].dark .glass { background: #1f2937; border-color: #374151; }

/* ---------- 柔性 ---------- */
html[data-skin="soft"] {
    --skin-bg: #edf2f8;
    --skin-card: #ffffff;
    --skin-ink: #26323f;
    --skin-brand: #5aa9d6;
    --skin-brand-ink: #2b6f94;
    --skin-line: #d5e0ea;
    --skin-radius: 10px;
}
html[data-skin="soft"] body { background: var(--skin-bg); color: var(--skin-ink); }
html[data-skin="soft"] .glass {
    background: var(--skin-card);
    border: 1px solid var(--skin-line);
    box-shadow: 0 8px 24px rgba(38, 50, 63, .06);
    border-radius: var(--skin-radius) !important;
}
html[data-skin="soft"] .rounded-2xl,
html[data-skin="soft"] .rounded-xl { border-radius: var(--skin-radius) !important; }
html[data-skin="soft"] #actionBtn {
    background-image: none !important;
    background-color: var(--skin-brand);
    box-shadow: 0 8px 18px rgba(90, 169, 214, .28) !important;
}
html[data-skin="soft"] #actionBtn.is-stop { background-color: #d96b7e !important; }
html[data-skin="soft"] .text-brand-600,
html[data-skin="soft"] .text-brand-700 { color: var(--skin-brand-ink) !important; }
html[data-skin="soft"] .bg-brand-600,
html[data-skin="soft"] #progressBar { background-color: var(--skin-brand) !important; }
html[data-skin="soft"] .bg-brand-100 { background-color: #d7ebf6 !important; }
html[data-skin="soft"].dark body { background: #1b2430; color: #e8eef3; }
html[data-skin="soft"].dark .glass { background: #243140; border-color: #334556; }

/* ---------- 新野兽派 ---------- */
html[data-skin="neo"] {
    --skin-bg: #fffdf5;
    --skin-card: #fffbeb;
    --skin-ink: #000000;
    --skin-brand: #111111;
    --skin-line: #000000;
    --skin-radius: 0px;
}
html[data-skin="neo"] body { background: var(--skin-bg); color: var(--skin-ink); }
html[data-skin="neo"] .glass {
    background: var(--skin-card);
    border: 3px solid #000;
    box-shadow: 4px 4px 0 #000;
    border-radius: 0 !important;
}
html[data-skin="neo"] .rounded-2xl,
html[data-skin="neo"] .rounded-xl,
html[data-skin="neo"] .rounded-lg,
html[data-skin="neo"] .rounded-full { border-radius: 0 !important; }
html[data-skin="neo"] #actionBtn {
    background-image: none !important;
    background-color: #f5c400;
    color: #000 !important;
    border: 3px solid #000;
    box-shadow: 4px 4px 0 #000 !important;
}
html[data-skin="neo"] #actionBtn.is-stop { background-color: #ff5252 !important; color: #fff !important; }
html[data-skin="neo"] .text-brand-600,
html[data-skin="neo"] .text-brand-700 { color: #000 !important; }
html[data-skin="neo"] .bg-brand-600,
html[data-skin="neo"] #progressBar { background-color: #ff5252 !important; }
html[data-skin="neo"] .bg-brand-100 { background-color: #ffeb3b !important; color: #000 !important; }
html[data-skin="neo"] header .w-10.h-10.rounded-xl {
    background-image: none !important;
    background-color: #f5c400;
    border: 3px solid #000;
    box-shadow: 3px 3px 0 #000;
}
html[data-skin="neo"].dark body { background: #111; color: #fffdf5; }
html[data-skin="neo"].dark .glass {
    background: #1a1a1a;
    border-color: #f5c400;
    box-shadow: 4px 4px 0 #f5c400;
}

/* ---------- 便当盒 ---------- */
html[data-skin="bento"] {
    --skin-bg: #f5f5f7;
    --skin-card: #ffffff;
    --skin-ink: #1d1d1f;
    --skin-brand: #0071e3;
    --skin-brand-ink: #0058b0;
    --skin-line: #d2d2d7;
    --skin-radius: 18px;
}
html[data-skin="bento"] body { background: var(--skin-bg); color: var(--skin-ink); }
html[data-skin="bento"] .glass {
    background: var(--skin-card);
    border: 1px solid var(--skin-line);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(29, 29, 31, .05);
    border-radius: var(--skin-radius) !important;
}
html[data-skin="bento"] .rounded-2xl { border-radius: 18px !important; }
html[data-skin="bento"] .rounded-xl { border-radius: 14px !important; }
html[data-skin="bento"] #actionBtn {
    background-image: none !important;
    background-color: var(--skin-brand);
    box-shadow: none !important;
}
html[data-skin="bento"] #actionBtn.is-stop { background-color: #d70015 !important; }
html[data-skin="bento"] .text-brand-600,
html[data-skin="bento"] .text-brand-700 { color: var(--skin-brand-ink) !important; }
html[data-skin="bento"] .bg-brand-600,
html[data-skin="bento"] #progressBar { background-color: var(--skin-brand) !important; }
html[data-skin="bento"] .bg-brand-100 { background-color: #e8f1fc !important; }
html[data-skin="bento"] header .w-10.h-10.rounded-xl {
    background-image: none !important;
    background-color: #1d1d1f;
    box-shadow: none;
}
html[data-skin="bento"].dark body { background: #000; color: #f5f5f7; }
html[data-skin="bento"].dark .glass { background: #1c1c1e; border-color: #2c2c2e; }

/* ---------- 纸感 ---------- */
html[data-skin="eink"] {
    --skin-bg: #fdfbf7;
    --skin-card: #ffffff;
    --skin-ink: #1a1a1a;
    --skin-brand: #1a1a1a;
    --skin-line: #d9d4c8;
    --skin-radius: 2px;
}
html[data-skin="eink"] body { background: var(--skin-bg); color: var(--skin-ink); }
html[data-skin="eink"] .glass {
    background: var(--skin-card);
    border: 1px solid var(--skin-line);
    box-shadow: none;
    border-radius: 2px !important;
}
html[data-skin="eink"] .rounded-2xl,
html[data-skin="eink"] .rounded-xl,
html[data-skin="eink"] .rounded-lg,
html[data-skin="eink"] .rounded-full { border-radius: 2px !important; }
html[data-skin="eink"] #actionBtn {
    background-image: none !important;
    background-color: #1a1a1a;
    color: #fdfbf7 !important;
    box-shadow: none !important;
}
html[data-skin="eink"] #actionBtn.is-stop { background-color: #5c4033 !important; }
html[data-skin="eink"] .text-brand-600,
html[data-skin="eink"] .text-brand-700 { color: #1a1a1a !important; }
html[data-skin="eink"] .bg-brand-600,
html[data-skin="eink"] #progressBar { background-color: #1a1a1a !important; }
html[data-skin="eink"] .bg-brand-100 { background-color: #f3efe4 !important; color: #1a1a1a !important; }
html[data-skin="eink"] header .w-10.h-10.rounded-xl {
    background-image: none !important;
    background-color: #1a1a1a;
    box-shadow: none;
}
html[data-skin="eink"].dark body { background: #1a1a1a; color: #f4f0e6; }
html[data-skin="eink"].dark .glass { background: #242424; border-color: #3a3a3a; }

/* 皮肤下拉：顶栏次要控件，收成芯片尺寸，避免 44×132 的表单块 */
.skin-select {
    height: 32px;
    min-height: 32px;
    min-width: 0;
    width: auto;
    padding: 0 22px 0 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 7px center;
    background-size: 10px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    line-height: 30px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
.dark .skin-select {
    background-color: #1e293b;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    border-color: #334155;
    color: #e2e8f0;
}
html[data-skin="neo"] .skin-select {
    border: 2px solid #000;
    border-radius: 0;
    background-color: #fffbeb;
}
html[data-skin="eink"] .skin-select { border-radius: 2px; }
html[data-skin="flat"] .skin-select { border-radius: 4px; }
html[data-skin="bento"] .skin-select { border-radius: 12px; }

.job-list {
    margin-top: 16px;
    max-height: 168px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.job-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid #e8edf3;
    border-radius: 10px;
    font-size: 12px;
}
.dark .job-item { border-color: #1f2a40; }
.job-item.is-run { border-color: #2563eb; background: rgba(37, 99, 235, .06); }
.job-item.is-done { opacity: .72; }
.job-item code { font-size: 12px; word-break: break-all; }
