/* HST GENOMICS 客户门户 · 在 /css/v2.css 变量与组件之上的少量样式 */
:root { --ea-brand: #2ea9a0; --ea-brand-d: #1f8d85; --ea-bg: #f5f7fa; --ea-radius: 10px; --ea-font: var(--font); --ea-ink: #15202b; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body.pt-body { background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 15.5px; line-height: 1.6; overflow-x: hidden; }
.pt-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
a { color: var(--teal-ink); }
h1 { font-size: 26px; margin: 0 0 6px; color: var(--navy); line-height: 1.25; overflow-wrap: anywhere; }
h2 { font-size: 17px; margin: 0 0 14px; color: var(--navy); }

/* 顶栏 */
.pt-top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.pt-top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.pt-logo img { display: block; height: 34px; width: auto; }
.pt-nav { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; justify-content: flex-end; font-size: 14px; }
.pt-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.pt-nav a:hover { color: var(--teal-ink); }
.pt-user { display: inline-flex; gap: 12px; }
.pt-lang { border: 1px solid var(--line-2); background: #fff; color: var(--slate); border-radius: 999px; padding: 3px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.pt-lang:hover { border-color: var(--teal); color: var(--teal-ink); }
.pt-link { background: none; border: none; padding: 0; font: inherit; color: var(--teal-ink); cursor: pointer; text-decoration: none; font-size: 14px; }
.pt-link:hover { text-decoration: underline; }
.pt-link.danger { color: #b42318; }

.pt-main { padding-top: 28px; padding-bottom: 48px; min-height: 60vh; }
.pt-foot { border-top: 1px solid var(--line); background: #fff; color: var(--mute); font-size: 13px; padding: 18px 0; }
.pt-muted { color: var(--mute); }
.pt-small { font-size: 13px; }
.pt-lede { color: var(--slate); margin: 0; }
.pt-crumb { font-size: 13.5px; color: var(--mute); margin: 0 0 10px; }
.pt-crumb a { color: var(--slate); }
.pt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.pt-head > div { min-width: 0; flex: 1 1 320px; }
.pt-id { font-family: var(--mono); font-size: 13px; color: var(--slate); background: var(--paper-2); border-radius: 4px; padding: 1px 6px; white-space: nowrap; }

.pt-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; margin-bottom: 18px; min-width: 0; }
.pt-empty { background: #fff; border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 36px 22px; text-align: center; color: var(--slate); }
.pt-notice { background: var(--teal-soft); border: 1px solid #bfe6e1; border-left: 4px solid var(--teal); border-radius: var(--radius-s); padding: 12px 16px; margin: 0 0 18px; font-size: 14.5px; color: var(--teal-ink); }
.pt-notice p { margin: 4px 0 0; }
.pt-notice.warn { background: #fff8e6; border-color: #f3dfa6; border-left-color: #d99a00; color: #6b4e00; }
.pt-err { color: #b42318; background: #fdecea; border-radius: var(--radius-s); padding: 10px 14px; }

/* 状态徽标 */
.pt-badge { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--paper-2); color: var(--slate); white-space: nowrap; }
.pt-badge.st-submitted { background: #eef2ff; color: #3949ab; }
.pt-badge.st-needs_info { background: #fff3d6; color: #8a5a00; }
.pt-badge.st-plan_sent { background: #e8f1fb; color: #1d4f8c; }
.pt-badge.st-in_progress { background: var(--teal-soft); color: var(--teal-ink); }
.pt-badge.st-delivered { background: #e5f6ea; color: #1e6b3a; }
.pt-badge.st-closed { background: #eceff3; color: #5b6573; }

/* 项目列表 */
.pt-list { display: grid; gap: 12px; }
.pt-item { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: inherit; transition: border-color .2s; }
.pt-item:hover { border-color: var(--teal); }
.pt-item-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.pt-item-title { font-weight: 600; color: var(--navy); margin: 6px 0 4px; font-size: 16px; overflow-wrap: anywhere; }
.pt-item-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--mute); }
.pt-item-meta span { overflow-wrap: anywhere; }
.pt-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pt-filters a { border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; font-size: 13.5px; text-decoration: none; color: var(--slate); background: #fff; }
.pt-filters a.on { border-color: var(--teal); color: var(--teal-ink); background: var(--teal-soft); }

/* 表单 */
.pt-form { display: block; }
.pt-field { display: block; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.pt-field > span, .pt-field > legend, .pt-sub > span { display: block; font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 6px; padding: 0; }
.pt-sub { display: block; margin-top: 10px; }
.pt-form input:not([type=radio]):not([type=checkbox]), .pt-form select, .pt-form textarea, .pt-msg textarea, .pt-card input:not([type=radio]):not([type=checkbox]):not([type=file]) {
  width: 100%; max-width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 9px 11px; }
.pt-form textarea, .pt-msg textarea { resize: vertical; min-height: 70px; }
.pt-form input:focus, .pt-form select:focus, .pt-form textarea:focus, .pt-msg textarea:focus { outline: 2px solid rgba(46,169,160,.35); border-color: var(--teal); }
.pt-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.pt-radios { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pt-radio, .pt-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; cursor: pointer; }
.pt-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.v2-btn[disabled] { opacity: .6; cursor: default; }
button.v2-btn { font-family: inherit; }

/* 详情布局 */
.pt-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.pt-col-main, .pt-col-side { min-width: 0; }
.pt-dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 2px; font-size: 14px; }
.pt-dl dt { color: var(--mute); font-size: 12.5px; margin-top: 8px; }
.pt-dl dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }

/* 进度条（时间线） */
.pt-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; counter-reset: s; }
.pt-steps li { position: relative; text-align: center; font-size: 13px; color: var(--mute); padding-top: 22px; }
.pt-steps li::before { content: ""; position: absolute; top: 7px; left: -50%; right: 50%; height: 2px; background: var(--line-2); }
.pt-steps li:first-child::before { display: none; }
.pt-steps .dot { position: absolute; top: 0; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); z-index: 1; }
.pt-steps li.done .dot { background: var(--teal); border-color: var(--teal); }
.pt-steps li.done::before, .pt-steps li.cur::before { background: var(--teal); }
.pt-steps li.cur .dot { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.pt-steps li.cur, .pt-steps li.done { color: var(--navy); }
.pt-steps li.cur { font-weight: 600; }
.pt-steps .lab { display: block; line-height: 1.3; overflow-wrap: anywhere; }
.pt-card .pt-notice { margin-top: 16px; margin-bottom: 0; }
.pt-card .pt-notice + .pt-muted { margin-top: 12px; }

/* 上传 */
.pt-drop { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 12px 0; background: var(--paper); }
.pt-drop.over { border-color: var(--teal); background: var(--teal-soft); }
.pt-file { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; margin: 8px 0; background: #fff; min-width: 0; }
.pt-file.live { border-color: #bfe6e1; }
.pt-file-top, .pt-file-bot { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.pt-fname { font-weight: 600; font-size: 14px; color: var(--navy); overflow-wrap: anywhere; min-width: 0; flex: 1 1 200px; }
.pt-fsize { font-size: 13px; color: var(--mute); white-space: nowrap; }
.pt-fstate { font-size: 13px; color: var(--slate); overflow-wrap: anywhere; }
.pt-fstate.st-done { color: #1e6b3a; }
.pt-fstate.st-failed { color: #b42318; }
.pt-fstate.st-incomplete, .pt-fstate.st-paused { color: #8a5a00; }
.pt-fbtns { display: inline-flex; gap: 14px; }
.pt-bar { height: 6px; background: var(--paper-2); border-radius: 999px; overflow: hidden; margin: 8px 0 6px; }
.pt-bar i { display: block; height: 100%; background: var(--teal); transition: width .3s; }
.pt-sha { font-size: 12px; color: var(--mute); margin-top: 4px; }
.pt-sha code { font-family: var(--mono); word-break: break-all; color: var(--slate); }
.pt-report-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--teal-soft); border-radius: var(--radius-s); padding: 12px 14px; margin-bottom: 12px; }
.pt-report-cta p { margin: 2px 0 0; overflow-wrap: anywhere; }

/* 进展记录 */
.pt-msg { margin-bottom: 14px; }
.pt-msg .pt-field { margin-bottom: 8px; }
.pt-events { list-style: none; padding: 0; margin: 0; }
.pt-events li { border-left: 3px solid var(--line-2); padding: 6px 0 8px 12px; margin: 0 0 6px; }
.pt-events li.ev-staff { border-left-color: var(--teal); }
.pt-events li.internal { background: #fffaf0; border-left-color: #d99a00; }
.ev-h { display: flex; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; font-size: 14px; }
.ev-h strong { color: var(--navy); overflow-wrap: anywhere; }
.ev-b { font-size: 14px; color: var(--slate); margin-top: 4px; overflow-wrap: anywhere; }

.pt-report { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-height: 200px; overflow-x: auto; }

/* 管理端提示条 */
.pt-toasts { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 9999; display: grid; gap: 8px; width: min(92vw, 420px); }
.pt-toast { background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; font-size: 14px; box-shadow: var(--shadow); }
.pt-toast.err { background: #b42318; }
.pt-toast.ok { background: #1f8d85; }

/* 登录门跟主站一致 */
.ea-mask { background: var(--paper); }
.ea-brand img { max-width: 170px; }

@media (max-width: 900px) {
  .pt-cols { grid-template-columns: minmax(0, 1fr); }
  .pt-col-side { order: -1; }
}
@media (max-width: 600px) {
  .pt-wrap { padding: 0 16px; }
  h1 { font-size: 22px; }
  .pt-grid2 { grid-template-columns: minmax(0, 1fr); }
  .pt-card { padding: 16px 14px; }
  .pt-logo img { height: 28px; }
  .pt-nav { font-size: 13px; gap: 4px 12px; }
  .pt-steps li { font-size: 11.5px; }
  .pt-head .v2-btn { width: 100%; }
}

/* 承诺、引导式表单、下一步、成员、格式识别 */
.pt-promise { margin: 6px 0 0; color: var(--teal-ink); font-weight: 500; }
.pt-h2 { margin: 28px 0 12px; }
.pt-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pt-type { text-align: left; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 12px 14px; cursor: pointer; line-height: 1.35; }
.pt-type:hover, .pt-type:focus { border-color: var(--teal); background: var(--teal-soft); outline: none; }
.pt-steprow { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 8px; }
.pt-steprow h2 { margin: 0; }
.pt-chosen { font-size: 14px; color: var(--slate); }
.pt-ans { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.pt-an { align-items: flex-start; font-size: 14px; line-height: 1.45; }
.pt-an input { margin-top: 3px; flex: none; }
.pt-next { margin-top: 16px; background: var(--paper); border-radius: var(--radius-s); padding: 12px 14px; border-left: 4px solid var(--teal); }
.pt-next.warn { background: #fff8e6; border-left-color: #d99a00; }
.pt-next p { margin: 4px 0 0; color: var(--slate); }
.pt-det { font-size: 12.5px; color: var(--slate); margin-top: 3px; }
.pt-warn { font-size: 12.5px; color: #8a5a00; margin-top: 2px; }
.pt-file.blocked { border-color: #f1b8b2; background: #fdf3f2; }
.pt-sheet { margin: 0 0 8px; font-size: 14px; }
.pt-anlist { margin: 2px 0 0; padding-left: 18px; }
.pt-anlist li { margin: 2px 0; }
.pt-members { list-style: none; margin: 0 0 12px; padding: 0; }
.pt-members li { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }
.pt-mem-email { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; flex: 1 1 160px; }
.pt-memform .pt-field { margin-bottom: 10px; }
@media (max-width: 600px) { .pt-ans { grid-template-columns: minmax(0, 1fr); } .pt-types { grid-template-columns: minmax(0, 1fr); } }

.pt-codegate { z-index: 9000; }
.pt-codeback { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 9500; border: 1px solid var(--line-2); background: #fff; color: var(--teal-ink); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.pt-retention { color: var(--slate); }
.pt-human-q { background: var(--paper); border-radius: var(--radius-s); padding: 12px 14px; }
.pt-human-q legend { float: left; width: 100%; margin-bottom: 4px; }
.pt-human-q p { clear: both; margin: 0 0 8px; }
.pt-asgform { display: grid; grid-template-columns: 1fr; gap: 0; }
