* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f4f6fa; color: #1a2233; }
#topbar { display: flex; align-items: center; justify-content: space-between; background: #0b6cf2; color: #fff; padding: 12px 16px; position: sticky; top: 0; z-index: 10; }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.back-home { color: #fff; text-decoration: none; font-size: 20px; opacity: .9; }
.brand { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.brand-logo { font-size: 20px; }
.user-chip { font-size: 13px; background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: 14px; }
main { max-width: 720px; margin: 0 auto; padding: 16px; }
.card { background: #fff; border-radius: 12px; padding: 18px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.card h2 { font-size: 18px; margin-bottom: 8px; }
.card h3 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.quota-line { font-size: 13px; color: #667; margin-bottom: 14px; }
label { display: block; font-size: 13px; color: #445; margin: 12px 0 5px; font-weight: 500; }
input, select, textarea { width: 100%; border: 1px solid #d5dbe6; border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit; background: #fff; }
textarea { resize: vertical; }
.btn-primary { width: 100%; margin-top: 16px; background: #0b6cf2; color: #fff; border: none; border-radius: 8px; padding: 12px; font-size: 15px; font-weight: 600; cursor: pointer; }
.btn-primary:disabled { background: #a9c4ee; cursor: not-allowed; }
.btn-mini { font-size: 12px; padding: 3px 10px; border: 1px solid #d5dbe6; background: #fff; border-radius: 6px; cursor: pointer; margin-left: auto; }
.hidden { display: none; }
.hint { font-size: 12px; color: #99a; margin-top: 8px; }
.seg-item { border: 1px solid #e5e9f0; border-radius: 8px; padding: 12px; margin-bottom: 10px; }
.seg-item .seg-head { font-weight: 600; font-size: 14px; margin-bottom: 6px; color: #0b6cf2; }
.seg-item .seg-text { font-size: 13px; color: #667; margin-bottom: 8px; line-height: 1.5; }
.seg-item textarea { font-size: 12px; color: #334; min-height: 56px; }
.tag { font-size: 12px; padding: 2px 9px; border-radius: 10px; background: #eef2f8; color: #667; }
.tag.completed { background: #e3f7ea; color: #1a9e52; }
.tag.processing { background: #fff4e0; color: #d68a00; }
.tag.failed { background: #fde8e8; color: #d23; }
.tag.partial { background: #fff4e0; color: #d68a00; }
.track { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed #eee; flex-wrap: wrap; }
.track .fn { font-size: 12px; color: #445; flex: 1; word-break: break-all; }
.track audio { height: 34px; }
.track a.dl { font-size: 12px; color: #0b6cf2; text-decoration: none; }
.jobs-list .job-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f2f6; font-size: 13px; cursor: pointer; }
.jobs-list .job-row:hover { background: #fafbfe; }
.jobs-list .job-row .jn { flex: 1; }
#toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: #333; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 99; }
#toast.show { opacity: .95; }
