:root{
    --bg:#faf9f6; --panel:#ffffff; --ink:#1c1917; --ink2:#57534e; --ink3:#a8a29e;
    --line:#e7e5e0; --line2:#f2f0eb;
    --real:#0f766e; --real-bg:#e9f6f3;
    --human:#6d28d9; --human-bg:#f0ecfd;
    --syn:#b45309; --syn-bg:#fdf2e2;
    --blue:#1d4ed8; --blue-bg:#eaf0fe;
    --slate:#475569; --slate-bg:#eef1f5;
    --r:12px;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  [hidden]{display:none !important;}
  body{background:var(--bg); color:var(--ink); line-height:1.6;
    font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;}
  .wrap{max-width:1240px; margin:0 auto; padding:34px 20px 90px;}

  /* ---------- 头部 ---------- */
  header{padding-bottom:6px;}
  .kicker{color:var(--real); font-weight:700; letter-spacing:.14em; font-size:12px; text-transform:uppercase;}
  h1{font-size:34px; letter-spacing:-.015em; margin:8px 0 10px; font-weight:800;}
  h1 .num{font-size:20px; color:var(--ink3); font-weight:600; letter-spacing:0;}
  .sub{color:var(--ink2); font-size:14.5px; max-width:900px;}
  .sub b{color:var(--ink);}

  /* ---------- 图例 ---------- */
  .legend{display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:24px 0 6px;}
  .lg{background:var(--panel); border:1px solid var(--line); border-radius:var(--r); padding:14px 16px; cursor:pointer;
      border-left:5px solid var(--c); transition:.15s;}
  .lg:hover{box-shadow:0 3px 14px rgba(28,25,23,.07); transform:translateY(-1px);}
  .lg.off{opacity:.45;}
  .lg h3{font-size:14.5px; display:flex; align-items:center; justify-content:space-between; gap:8px;}
  .lg h3 .c{font-size:12px; color:var(--c); font-weight:700; background:var(--cbg); padding:1px 8px; border-radius:999px;}
  .lg p{font-size:12.5px; color:var(--ink2); margin-top:4px;}
  .lg .ex{font-size:11.5px; color:var(--ink3); margin-top:6px; font-family:ui-monospace,Menlo,monospace;}

  /* ---------- 统计 ---------- */
  .stats{display:flex; align-items:center; gap:22px; flex-wrap:wrap; background:var(--panel);
    border:1px solid var(--line); border-radius:var(--r); padding:14px 18px; margin:14px 0 0;}
  .st{display:flex; align-items:baseline; gap:6px;}
  .st b{font-size:22px; font-weight:800; font-variant-numeric:tabular-nums;}
  .st span{font-size:12.5px; color:var(--ink2);}
  .bar{flex:1; min-width:160px; height:8px; background:var(--line2); border-radius:999px; overflow:hidden; display:flex;}
  .bar i{display:block; height:100%;}
  .bar .i-done{background:var(--real);}
  .bar .i-doing{background:var(--syn);}
  .pct{font-size:12.5px; color:var(--ink2); font-variant-numeric:tabular-nums;}

  /* ---------- 过滤条 ---------- */
  .toolbar{position:sticky; top:0; z-index:30; background:rgba(250,249,246,.92); backdrop-filter:blur(10px);
    padding:14px 0 12px; margin-top:6px; border-bottom:1px solid var(--line);}
  .frow{display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:8px;}
  .frow .lbl{font-size:12px; color:var(--ink3); min-width:38px;}
  .chip{border:1px solid var(--line); background:var(--panel); border-radius:999px; padding:4px 12px; font-size:12.5px;
    cursor:pointer; color:var(--ink2); user-select:none; transition:.13s;}
  .chip:hover{border-color:var(--ink3); color:var(--ink);}
  .chip.active{background:var(--ink); border-color:var(--ink); color:#fff; font-weight:600;}
  .chip .n{opacity:.6; font-size:11px; margin-left:3px;}
  #search{flex:1; min-width:200px; padding:8px 13px; border:1px solid var(--line); border-radius:9px; font-size:13.5px;
    outline:none; background:var(--panel); color:var(--ink);}
  #search:focus{border-color:var(--real);}

  /* ---------- 共用说明 ---------- */
  .common{display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 18px; margin-top:14px; padding:10px 14px;
    background:var(--line2); border-radius:9px; font-size:12px; color:var(--ink2); line-height:1.55;}
  .common .ctitle{font-size:11px; font-weight:800; letter-spacing:.08em; color:var(--ink3); flex:0 0 auto;}
  .common .citem b{color:var(--ink); font-weight:700;}
  .common a{color:#1d4ed8; text-decoration:none;}
  .common a:hover{text-decoration:underline;}

  /* ---------- 分区 ---------- */
  section.grp{margin-top:34px;}
  .gHead{display:flex; align-items:center; gap:10px; padding-bottom:9px; margin-bottom:14px; border-bottom:2px solid var(--c);}
  .gHead .dot{width:11px; height:11px; border-radius:3px; background:var(--c);}
  .gHead h2{font-size:19px; font-weight:800;}
  .gHead .cnt{font-size:12.5px; color:var(--c); font-weight:700; background:var(--cbg); padding:1px 9px; border-radius:999px;}
  .gHead .cnt{margin-right:auto;}

  /* ---------- 卡片 ---------- */
  .grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(332px,1fr)); gap:13px; align-items:stretch;}
  .card{background:var(--panel); border:1px solid var(--line); border-left:4px solid var(--c); border-radius:var(--r);
    padding:14px 16px 13px; display:flex; flex-direction:column; transition:.15s; position:relative; height:100%;}
  .card:hover{box-shadow:0 4px 18px rgba(28,25,23,.07);}
  .card.done{background:linear-gradient(180deg,#fff,#fbfdfc);}
  .card.done .body{opacity:.72;}
  .top{display:flex; align-items:flex-start; justify-content:space-between; gap:8px;}
  .top h3{font-size:15.5px; font-weight:800; letter-spacing:-.01em;}
  .yr{font-size:11px; color:var(--ink3); font-variant-numeric:tabular-nums; white-space:nowrap; padding-top:3px;}
  .cn{font-size:12.5px; color:var(--c); font-weight:600; margin-top:1px;}
  .org{font-size:12px; color:var(--ink3); margin-top:3px;}
  .scale{font-size:12px; color:var(--ink2); margin-top:7px; padding:5px 9px; background:var(--line2); border-radius:7px;
    font-family:ui-monospace,Menlo,monospace; line-height:1.5;}
  .tags{display:flex; flex-wrap:wrap; gap:4px; margin-top:8px;}
  .tag{font-size:11px; background:#f5f5f4; color:var(--ink2); border-radius:4px; padding:1px 7px; white-space:nowrap;}
  .tag.acc{background:#eff6ff; color:#1d4ed8; border-radius:4px; padding:1px 7px; font-size:11px; white-space:nowrap;}
  .hint{font-size:12px; color:var(--ink2); margin-top:9px; padding-left:9px; border-left:2px solid var(--cbg);
    line-height:1.55;}

  details{margin-top:9px;}
  details summary{font-size:11.5px; color:var(--ink3); cursor:pointer; list-style:none; user-select:none;}
  details summary::before{content:"▸ ";}
  details[open] summary::before{content:"▾ ";}
  details summary:hover{color:var(--c);}
  .steps{font-size:12px; color:var(--ink2); margin-top:6px; padding:8px 10px; background:#fcfbf8;
    border:1px dashed var(--line); border-radius:8px; line-height:1.65;}
  .lnk{display:inline-block; font-size:11px; color:#1d4ed8; text-decoration:none; margin-top:6px;}
  .lnk:hover{text-decoration:underline;}

  .foot{margin-top:auto; padding-top:11px; display:flex; align-items:center; justify-content:space-between; gap:8px;
    border-top:1px solid var(--line2);}
  .pri{font-size:11px; color:var(--ink2); display:flex; align-items:center; gap:6px;}
  .p0{background:#fee2e2; color:#b91c1c; font-weight:700; border-radius:4px; padding:0 6px;}
  .p1{background:#fef3c7; color:#92400e; font-weight:700; border-radius:4px; padding:0 6px;}
  .p2{background:#f1f5f9; color:#475569; font-weight:700; border-radius:4px; padding:0 6px;}
  .act{display:flex; gap:6px;}
  button{font-family:inherit; font-size:11.5px; border-radius:6px; cursor:pointer; padding:4px 10px; border:1px solid transparent;
    transition:.13s; font-weight:600;}
  .b-claim{background:var(--ink); color:#fff;}
  .b-claim:hover{background:#000;}
  .b-done{background:#fff; border-color:var(--real); color:var(--real);}
  .b-done:hover{background:var(--real-bg);}
  .b-rel{background:#fff; border-color:var(--line); color:var(--ink3); font-weight:500;}
  .b-rel:hover{border-color:var(--ink3); color:var(--ink2);}

  .who{font-size:11.5px; color:var(--ink2); margin-top:8px; display:flex; align-items:center; gap:5px;
    background:var(--cbg); border-radius:6px; padding:4px 9px;}
  .who .nm{font-weight:700; color:var(--c); flex:0 0 auto;}
  .who .note{color:var(--ink3); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1 1 auto; min-width:0;}
  .who .stt{flex:0 0 auto; font-weight:700; font-size:10.5px; border-radius:4px; padding:1px 6px;}
  .who .stt.done{background:#dff2ec; color:var(--real);}
  .who .stt.doing{background:#fbe8cd; color:#92400e;}
  .who .ract{display:flex; gap:5px; flex:0 0 auto; margin-left:auto;}
  .who .ract button{font-size:10.5px; padding:2px 8px; border-radius:6px; border:1px solid var(--line);
    background:#fff; cursor:pointer; font-weight:600; color:var(--ink2);}
  .who .ract .b-claim{background:var(--ink); color:#fff; border-color:var(--ink);}
  .who .ract .b-done{border-color:var(--real); color:var(--real);}
  .who .ract .b-rel{color:var(--ink3); font-weight:500;}
  .occ{font-size:10.5px; color:var(--ink3); margin-top:3px;}

  .empty{grid-column:1/-1; text-align:center; padding:60px 0; color:var(--ink3); font-size:14px;}

  /* ---------- 说明区 ---------- */
  .std{margin-top:10px; background:var(--panel); border:1px solid var(--line); border-radius:var(--r); padding:0 18px;}
  .std[open]{padding-bottom:16px;}
  .std summary{cursor:pointer; list-style:none; font-size:12.5px; font-weight:700; color:var(--ink2); padding:11px 0;}
  .std summary::-webkit-details-marker{display:none;}
  .std summary::before{content:"▸ "; color:var(--real);}
  .std[open] summary::before{content:"▾ ";}
  .std summary:hover{color:var(--ink);}
  .std[open] summary{border-bottom:1px solid var(--line2); margin-bottom:14px;}
  .std h2{font-size:17px; margin-bottom:4px;}
  .std .lead{font-size:13px; color:var(--ink2); margin-bottom:14px;}
  .stdGrid{display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:10px;}
  .step{background:#fcfbf8; border:1px solid var(--line2); border-radius:9px; padding:11px 13px; font-size:12.5px; color:var(--ink2);}
  .step b{display:block; color:var(--ink); font-size:13px; margin-bottom:3px;}
  .step .n{display:inline-block; width:18px; height:18px; line-height:18px; text-align:center; border-radius:50%;
    background:var(--ink); color:#fff; font-size:11px; font-weight:700; margin-right:5px;}
  .stdNote{font-size:12px; color:var(--ink3); margin-top:12px; line-height:1.7;}
  .stdNote b{color:var(--ink2);}
  .dnote{font-size:12.5px; color:var(--ink2); line-height:1.8; margin:0 0 14px;}
  .dnote a{color:#1d4ed8; text-decoration:none;}

  .useHint{font-size:11.5px; color:var(--ink3); margin-top:2px; line-height:1.6;}
  .useHint b{color:var(--ink2);}
  .foot2{margin-top:34px; padding-top:16px; border-top:1px solid var(--line); font-size:11.5px; color:var(--ink3); line-height:1.75;}

  /* ---------- 弹窗 ---------- */
  dialog{border:none; border-radius:14px; padding:0; width:390px; max-width:92vw; margin:auto;
    max-height:90vh; background:var(--panel);
    box-shadow:0 20px 60px rgba(28,25,23,.24);}
  dialog::backdrop{background:rgba(28,25,23,.35); backdrop-filter:blur(2px);}
  .dlgIn{padding:22px 22px 18px;}
  .dlgIn h3{font-size:16px; margin-bottom:3px;}
  .dlgIn .ds{font-size:12px; color:var(--ink3); margin-bottom:14px;}
  .dlgIn label{display:block; font-size:12px; color:var(--ink2); margin-bottom:10px;}
  .dlgIn input{width:100%; margin-top:4px; padding:8px 11px; border:1px solid var(--line); border-radius:8px;
    font-size:13.5px; font-family:inherit; outline:none; color:var(--ink);}
  .dlgIn input:focus{border-color:var(--real);}
  .dlgAct{display:flex; justify-content:flex-end; gap:8px; margin-top:14px;}
  .dlgAct button{padding:7px 16px; font-size:13px;}

  @media (max-width:880px){
    .legend{grid-template-columns:1fr;}
    h1{font-size:26px;}
    .wrap{padding:22px 14px 60px;}
  }
  @media print{
    .toolbar,.act,.b-rel,.b-claim,.b-done{display:none !important;}
    body{background:#fff;}
    .card{break-inside:avoid;}
  }

/* ================= 登录 / 门禁 ================= */
.gate{min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px;}
.gcard{background:var(--panel); border:1px solid var(--line); border-radius:16px; padding:30px 32px 26px;
  width:420px; max-width:100%; box-shadow:0 18px 50px rgba(28,25,23,.10);}
.gcard h2{font-size:23px; font-weight:800; margin:10px 0 8px; letter-spacing:-.01em;}
.glead{font-size:13px; color:var(--ink2); line-height:1.7; margin-bottom:18px;}
.gstep label{display:block; font-size:12px; color:var(--ink3); margin-bottom:12px;}
.gstep input{display:block; width:100%; margin-top:5px; padding:10px 12px; font-size:14px; font-family:inherit;
  border:1px solid var(--line); border-radius:9px; outline:none; background:#fff; color:var(--ink);}
.gstep input:focus{border-color:var(--real);}
.gstep input#gCode{letter-spacing:.3em; font-variant-numeric:tabular-nums; font-size:17px;}
button.big{width:100%; padding:10px 16px; font-size:14px; border-radius:9px;}
.gtip{font-size:11.5px; color:var(--ink3); line-height:1.6; margin:-2px 0 10px;}
.gfoot{display:flex; align-items:center; justify-content:space-between; margin-top:10px; font-size:12px; color:var(--ink3);}
.linky{background:none; border:none; color:#1d4ed8; font-size:12px; cursor:pointer; padding:0;}
.linky:disabled{color:var(--ink3); cursor:default;}
.msg{font-size:12.5px; margin-top:12px; min-height:18px; line-height:1.6;}
.msg.err{color:#b91c1c;}
.msg.ok{color:var(--real);}
.gback{font-size:12px; color:var(--ink3); background:none; border:none; cursor:pointer; padding:0; margin-top:14px;}

/* ================= 顶栏用户区 ================= */
.ubar{display:flex; align-items:center; gap:8px; margin-left:auto; flex-wrap:wrap; justify-content:flex-end;}
.uchip{display:flex; align-items:center; gap:7px; background:var(--panel); border:1px solid var(--line);
  border-radius:999px; padding:4px 12px 4px 8px; font-size:12px; color:var(--ink2);}
.uchip .em{color:var(--ink); font-weight:600; max-width:190px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.role{font-size:10.5px; font-weight:800; border-radius:4px; padding:1px 6px; letter-spacing:.02em;}
.role.owner{background:#fee2e2; color:#b91c1c;}
.role.editor{background:var(--real-bg); color:var(--real);}
.role.viewer{background:#f1f5f9; color:#475569;}
.hdr{display:flex; align-items:flex-start; justify-content:space-between; gap:14px; flex-wrap:wrap;}

/* ================= 管理面板 ================= */
.overlay{position:fixed; inset:0; background:rgba(28,25,23,.42); backdrop-filter:blur(3px); z-index:80;
  display:flex; align-items:center; justify-content:center; padding:20px;}
.admin{background:var(--panel); border-radius:14px; width:820px; max-width:100%; max-height:88vh; overflow:auto;
  box-shadow:0 24px 70px rgba(28,25,23,.28);}
.ahd{display:flex; align-items:center; justify-content:space-between; gap:10px; padding:16px 20px;
  border-bottom:1px solid var(--line); position:sticky; top:0; background:var(--panel); z-index:2;}
.ahd h3{font-size:16px; font-weight:800;}
.abody{padding:16px 20px 22px;}
.asec{margin-bottom:22px;}
.asec h4{font-size:12.5px; font-weight:800; color:var(--ink2); margin-bottom:9px; letter-spacing:.02em;}
.addrow{display:flex; gap:8px; flex-wrap:wrap; align-items:center;}
.addrow input{flex:1; min-width:180px; padding:7px 11px; font-size:13px; font-family:inherit;
  border:1px solid var(--line); border-radius:8px; outline:none;}
.addrow input:focus{border-color:var(--real);}
select{padding:6px 9px; font-size:12.5px; font-family:inherit; border:1px solid var(--line);
  border-radius:7px; background:#fff; color:var(--ink); outline:none;}
.mtbl{width:100%; border-collapse:collapse; font-size:12.5px;}
.mtbl th{text-align:left; font-size:11px; color:var(--ink3); font-weight:600; padding:6px 8px; border-bottom:1px solid var(--line);}
.mtbl td{padding:7px 8px; border-bottom:1px solid var(--line2); vertical-align:middle;}
.mtbl .e{font-family:ui-monospace,Menlo,monospace; font-size:12px;}
.evlist{font-size:12px; color:var(--ink2); max-height:190px; overflow:auto; border:1px solid var(--line2); border-radius:9px;}
.evlist div{padding:6px 10px; border-bottom:1px solid var(--line2); display:flex; gap:8px;}
.evlist div:last-child{border-bottom:none;}
.evlist .t{color:var(--ink3); font-variant-numeric:tabular-nums; flex:0 0 auto;}
.mini{font-size:11.5px; padding:3px 9px; font-weight:600;}
.b-warn{background:#fff; border-color:#f0c6c6; color:#b91c1c;}
.b-warn:hover{background:#fee2e2;}

/* 只读态 */
.roTag{font-size:11px; color:#475569; background:#f1f5f9; border-radius:4px; padding:1px 7px;}
.pulse{animation:pl 1.2s ease-in-out infinite;}
@keyframes pl{0%,100%{opacity:1}50%{opacity:.45}}


/* ================= 分区页签 ================= */
.tabs{display:flex; gap:2px; flex-wrap:wrap; margin-top:18px; border-bottom:1px solid var(--line);}
.tab{background:none; border:none; border-bottom:2px solid transparent; padding:10px 14px 9px;
  font-size:13.5px; font-family:inherit; color:var(--ink2); cursor:pointer; font-weight:600;
  display:flex; align-items:center; gap:6px; margin-bottom:-1px; transition:.15s;}
.tab:hover{color:var(--ink);}
.tab.on{color:var(--ink); border-bottom-color:var(--real);}
.tab .ico{font-size:14px;}
.tab .n{font-size:11px; font-weight:700; background:var(--line2); color:var(--ink3);
  border-radius:999px; padding:1px 7px; font-variant-numeric:tabular-nums;}
.tab.on .n{background:var(--real-bg); color:var(--real);}

/* 长细节折叠区限高，避免个别卡片把整行拉高 */
.steps{max-height:320px; overflow:auto;}
.card .cn{display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden;}

/* ================= 成果链接 / 卡片编辑 ================= */
.topR{display:flex; align-items:center; gap:4px; flex:0 0 auto;}
.b-edit{background:none; border:1px solid transparent; color:var(--ink3); font-size:13px; line-height:1.2;
  padding:1px 5px; border-radius:5px; font-weight:400;}
.b-edit:hover{background:var(--line2); color:var(--ink); border-color:var(--line);}

.repo{margin-top:8px; font-size:11.5px; display:flex; align-items:baseline; gap:5px; flex-wrap:wrap;}
.repo a{display:inline-flex; align-items:baseline; gap:5px; text-decoration:none; color:#1d4ed8;}
.repo a:hover code{text-decoration:underline;}
.repo a code{color:#1d4ed8;}
.repo .rk{font-size:10px; font-weight:800; letter-spacing:.06em; color:var(--ink3);
  background:var(--line2); border-radius:4px; padding:1px 5px; flex:0 0 auto;}
.repo code{font-family:ui-monospace,Menlo,monospace; font-size:11px; color:var(--ink2); word-break:break-all;}
.repo .go{font-size:10px; color:#1d4ed8;}

dialog#edit{width:600px;}
.dlgIn.wide{padding:22px 24px 18px;}
.dlgIn.wide label{display:block; font-size:11.5px; color:var(--ink3); margin-bottom:9px;}
.dlgIn.wide input, .dlgIn.wide textarea, .dlgIn.wide select{width:100%; margin-top:4px; padding:7px 10px;
  border:1px solid var(--line); border-radius:8px; font-size:13px; font-family:inherit; outline:none;
  color:var(--ink); background:#fff; line-height:1.55;}
.dlgIn.wide textarea{resize:vertical;}
.dlgIn.wide input:focus, .dlgIn.wide textarea:focus, .dlgIn.wide select:focus{border-color:var(--real);}
.erow{display:grid; grid-template-columns:repeat(3,1fr); gap:8px;}
.ehint{font-size:11px; color:var(--ink3); margin:-4px 0 10px; line-height:1.55;}
.eadv{margin:8px 0 2px; border-top:1px dashed var(--line); padding-top:8px;}
.eadv textarea{font-family:ui-monospace,Menlo,monospace; font-size:11.5px;}

/* 管理面板 · 仓库地址 2×2 */
.repoGrid{display:grid; grid-template-columns:1fr 1fr; gap:8px 12px;}
.repoGrid label{display:block; font-size:11.5px; color:var(--ink3);}
.repoGrid input{display:block; width:100%; margin-top:4px; padding:7px 10px; font-size:12.5px;
  font-family:ui-monospace,Menlo,monospace; border:1px solid var(--line); border-radius:8px; outline:none; color:var(--ink);}
.repoGrid input:focus{border-color:var(--real);}
@media (max-width:700px){ .repoGrid{grid-template-columns:1fr;} }

/* 页面文字 · 管理人点选编辑 */
.pedit [data-pk]{outline:1px dashed #d6a35a; outline-offset:2px; border-radius:3px; cursor:text;}
.pedit [data-pk]:hover{background:#fff3d6; box-shadow:0 0 0 3px #fff3d6;}
.peditBar{position:fixed; top:14px; left:50%; transform:translateX(-50%); z-index:120;
  display:flex; align-items:center; gap:14px; background:var(--ink); color:#fff;
  padding:8px 10px 8px 16px; border-radius:999px; box-shadow:0 6px 22px rgba(28,25,23,.24);
  font-size:12.5px; white-space:nowrap;}
.peditBar button{background:#fff; color:var(--ink); border:0; border-radius:999px;
  padding:5px 14px; font-size:12.5px; font-weight:700; cursor:pointer;}
.peditBar button:hover{background:var(--real-bg);}
.foot2{white-space:pre-line;}
dialog#ptext{width:560px;}

/* 完成后的审核状态与反馈 */
.who .stt.wait{background:#fdf2e2; color:#b45309;}
.who .stt.ok{background:#dff2ec; color:var(--real);}
.who .stt.back{background:#fee2e2; color:#b91c1c;}
.fb{margin-top:8px; padding:8px 10px; background:#fff7ed; border:1px solid #fed7aa;
  border-radius:8px; font-size:12px; color:var(--ink2); display:flex; gap:9px; line-height:1.6;}
.fb b{flex:0 0 auto; color:#b45309; font-size:11px; padding-top:1px;}
.fb span{white-space:pre-wrap; word-break:break-word;}
dialog#review{width:480px;}

/* ================= 远程实习协议 ================= */
dialog#contractDlg{width:min(780px, 94vw);}
.dlgIn.ct{display:flex; flex-direction:column; max-height:90vh; padding:20px 24px 16px;}
.dlgIn.ct h3{flex:0 0 auto; margin-bottom:10px;}
.ct-note{flex:0 0 auto; background:#fff7e6; border:1px solid #f1dcae; border-radius:9px;
  padding:10px 13px; font-size:12.5px; line-height:1.7; color:#7c5311; margin-bottom:12px;}
.ct-body{flex:1 1 auto; min-height:140px; overflow:auto; background:#fbfaf8;
  border:1px solid var(--line); border-radius:10px; padding:16px 18px;
  font-size:12.8px; line-height:1.9; color:var(--ink); word-break:break-word;}
.ct-body p{margin:0 0 10px;}
.ct-body p.ct-pre{white-space:pre-wrap;}
.ct-body p:last-child{margin-bottom:0;}
.ct-title{text-align:center; font-size:16px; font-weight:700; letter-spacing:.08em; margin-bottom:14px !important;}
.ct-status{flex:0 0 auto; margin-top:12px; padding:11px 13px; border-radius:9px;
  background:#eaf7f1; border:1px solid #bfe6d4; color:#176b4a; font-size:13px; line-height:1.7;}
.ct-status b{font-size:14px;}
.ct-formhint{margin:12px 0 8px; font-size:12px; color:var(--ink3);}
.ct-grid{display:grid; grid-template-columns:1fr 1fr; gap:0 12px;}
.ct .ct-agree{display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--ink2); margin:6px 0 0;}
#ctAgree{width:auto; margin:0; flex:0 0 auto;}
.ct-act{flex:0 0 auto; margin-top:12px;}
.dlgIn.ct.form .ct-body{max-height:150px; flex:0 0 auto;}
@media (max-width:700px){ .ct-grid{grid-template-columns:1fr;} .dlgIn.ct{padding:16px;} }

/* ================= 个人信息 ================= */
dialog#profileDlg{width:min(560px, 94vw);}
.ubar button.need{background:#fff8e8; border-color:#e7bf79; color:#8a5a00;}
.pf-grid{display:grid; grid-template-columns:1fr 1fr; gap:0 12px;}
.pf-state{margin:0 0 12px; padding:10px 12px; border-radius:9px; background:#eaf7f1;
  border:1px solid #bfe6d4; color:#176b4a; font-size:12.5px; line-height:1.7;}
.pf-state a{color:#176b4a; text-decoration:underline;}
.pf-tblwrap{max-height:260px; overflow:auto; border:1px solid var(--line2); border-radius:9px;}
.pf-tblwrap .mtbl th{position:sticky; top:0; background:var(--panel); z-index:1;}
.pf-tblwrap .mtbl td{font-size:12px;}
.pf-tblwrap .gh{font-family:ui-monospace,Menlo,monospace;}
.pf-tblwrap .pending{color:var(--ink3);}
.pf-only{display:flex; align-items:center; gap:6px; font-size:12px; color:var(--ink2); white-space:nowrap;}
.pf-only input{margin:0; flex:0 0 auto;}
@media (max-width:700px){ .pf-grid{grid-template-columns:1fr;} }

/* ================= 服务器状态组件（网页横版） ================= */
.gw-wrap{display:flex; flex-direction:column; gap:14px;}
.gw-top{display:flex; align-items:center; gap:14px; flex-wrap:wrap;}
.gw-brand{font-weight:800; font-size:16px; color:var(--ink); letter-spacing:.3px;}
.gw-legend{display:flex; align-items:center; gap:4px; color:var(--ink3); font-size:11.5px;}
.gw-sw{display:inline-block; width:10px; height:10px; border-radius:2px; margin:0 3px 0 8px;}
.gw-sw-mem{background:#4AD4B5;}
.gw-sw-util{background:#4AD4B5; width:4px; height:10px; border-radius:1px;}
.gw-time{margin-left:auto; color:var(--ink3); font-size:12px;}
.gw-btns{display:flex; gap:8px;}
.gw-grid{display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap:12px; align-items:stretch;}
.gw-card{background:#111519; border-radius:14px; padding:14px 16px; color:#E8F0F2; font-size:13px; line-height:1.5; box-shadow:0 2px 14px rgba(0,0,0,.16);}
.gw-empty{color:#758591; padding:26px 0; text-align:center;}
.gw-head{display:flex; align-items:flex-start; gap:10px; margin-bottom:12px;}
.gw-title{display:flex; flex:1; flex-direction:column; gap:2px; min-width:0;}
.gw-title .gw-name{line-height:1.4;}
.gw-specs{color:#a3b2bc; font-size:11.5px; line-height:1.55; overflow-wrap:anywhere;}
.gw-head .gw-dot{margin-top:6px;}
.gw-head .gw-cpu{padding-top:2px;}
.gw-dot{width:8px; height:8px; border-radius:50%; background:#3a444d; flex:0 0 auto;}
.gw-dot.on{background:#4AD4B5;}
.gw-name{font-size:14.5px; font-weight:700; letter-spacing:.3px;}
.gw-sub{color:#758591; font-size:11.5px;}
.gw-cpu{margin-left:auto; color:#758591; font-size:11.5px; white-space:nowrap;}
.gw-gpus{display:flex; gap:8px; align-items:flex-end;}
.gw-gpu{flex:1 1 0; min-width:0; display:grid; grid-template-columns:1fr 4px; grid-template-rows:56px auto; gap:2px 5px; justify-items:center;}
.gw-gpu .gw-mbar{grid-column:1; grid-row:1; width:100%; height:56px; position:relative; background:#212930; border-radius:4px; overflow:hidden; display:flex; flex-direction:column; justify-content:flex-end;}
.gw-gpu .gw-mbar i{display:block; width:100%; background:#4AD4B5; border-radius:4px 4px 0 0;}
.gw-gpu .gw-mbar b{position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:700; color:#E8F0F2;}
.gw-gpu .gw-ubar{grid-column:2; grid-row:1; width:4px; height:56px; background:#212930; border-radius:2px; overflow:hidden; display:flex; flex-direction:column; justify-content:flex-end;}
.gw-gpu .gw-ubar i{display:block; width:100%; background:#4AD4B5; border-radius:2px;}
.gw-gpu .gw-idx{grid-column:1 / span 2; grid-row:2; font-size:10px; color:#758591;}
.gw-alloc-row{display:flex; align-items:center; gap:10px; margin-top:8px;}
.gw-alloc-row:first-of-type{margin-top:2px;}
.gw-k{width:30px; color:#758591; font-size:11.5px;}
.gw-abar{flex:1; height:12px; background:#212930; border-radius:6px; overflow:hidden; position:relative;}
.gw-abar i{position:absolute; left:0; top:0; bottom:0; display:block;}
.gw-a-ok{background:#4AD4B5;}
.gw-a-bad{background:#616B75;}
.gw-v{color:#E8F0F2; font-size:11.5px; white-space:nowrap; min-width:86px; text-align:right;}
.gw-apps{background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:16px 18px 12px;}
.gw-apps h3{font-size:15px; margin:0 0 4px;}
.gw-apps-empty{color:var(--ink3); font-size:13px; margin:8px 0 10px;}
.gapp{display:flex; align-items:flex-start; gap:12px; padding:12px 0; border-top:1px dashed var(--line); flex-wrap:wrap;}
.gapp-who{flex:0 0 auto; font-weight:700; font-size:13px; color:var(--ink); max-width:140px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.gapp-srv{flex:0 0 auto; font-size:11.5px; font-weight:700; color:#0f766e; background:#ccfbf1; border-radius:5px; padding:2px 8px; margin-top:1px;}
.gapp-main{flex:1 1 220px; min-width:0;}
.gapp-task{font-size:13px; color:var(--ink); white-space:pre-wrap; word-break:break-word;}
.gapp-meta{font-size:11.5px; color:var(--ink3); margin-top:3px;}
.gapp-st{flex:0 0 auto; font-size:11.5px; font-weight:700; border-radius:5px; padding:2px 8px; margin-top:1px;}
.gapp-st.pending{color:#b45309; background:#fef3c7;}
.gapp-st.waiting{color:#9a3412; background:#ffedd5;}
.gapp-st.approved{color:#15803d; background:#dcfce7;}
.gapp-st.rejected{color:#b91c1c; background:#fee2e2;}
.gapp-note{flex:1 1 100%; margin-top:2px; padding:8px 10px; border-radius:8px; background:#fff7ed; color:#9a3412; font-size:12.5px; line-height:1.6;}
.gapp-skill{flex:1 1 100%; margin-top:2px; padding:10px 12px; border-radius:8px; background:#f0fdfa; border:1px solid #ccfbf1;}
.gapp-skill>b{display:block; font-size:12px; color:#0f766e; margin-bottom:4px;}
.gapp-skill-body{font-size:12.5px; color:var(--ink); line-height:1.75; white-space:pre-wrap; word-break:break-word;}
.gapp-skill-body a{color:#1d4ed8;}
.gapp-skill .gapp-link{display:inline-block;}
.gapp-act{flex:0 0 auto;}
.gapp-link{flex:0 0 auto; font-size:12.5px; font-weight:700; color:#1d4ed8; text-decoration:none; border:1px solid #bfdbfe; background:#eff6ff; border-radius:6px; padding:3px 10px; margin-top:1px;}
.gapp-link:hover{background:#dbeafe;}
.ga-desc{white-space:pre-wrap; word-break:break-word;}

/* ---------- 技能包清单（第 7 页） ---------- */
.sk-wrap{display:flex; flex-direction:column; gap:16px;}
.sk-top{display:flex; align-items:center; gap:12px; flex-wrap:wrap;}
.sk-lead{color:var(--ink2); font-size:13px;}
.sk-repo{margin-left:auto; font-size:12.5px; font-weight:700; color:var(--real); text-decoration:none;}
.sk-repo:hover{text-decoration:underline;}
.sk-grid{display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap:14px; align-items:stretch;}
.sk-card{display:block; background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:18px 20px 16px; color:var(--ink); text-decoration:none; transition:border-color .15s, box-shadow .15s, transform .15s;}
.sk-card:hover{border-color:var(--real); box-shadow:0 6px 22px rgba(15,118,110,.10); transform:translateY(-1px);}
.sk-hd{display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:6px;}
.sk-ico{font-size:21px;}
.sk-name{font-size:17px; font-weight:800; letter-spacing:.2px;}
.sk-go{margin-left:auto; font-size:11.5px; font-weight:700; color:var(--real); background:var(--real-bg); border-radius:6px; padding:3px 9px; white-space:nowrap;}
.sk-slug{font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:11.5px; color:var(--ink3); word-break:break-all; margin-bottom:12px;}
.sk-desc{font-size:13.5px; color:var(--ink2); line-height:1.8; margin-bottom:12px;}
.sk-tags{display:flex; gap:6px; flex-wrap:wrap; margin-bottom:14px;}
.sk-tag{font-size:11.5px; font-weight:700; color:var(--slate); background:var(--slate-bg); border-radius:5px; padding:2px 8px;}
.sk-files{border-top:1px dashed var(--line); padding-top:12px; font-size:12px; color:var(--ink3); line-height:2;}
.sk-files b{color:var(--ink2); font-weight:700;}
.sk-files code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:11px; color:var(--ink2); background:var(--line2); border-radius:4px; padding:1px 5px; margin-right:4px; white-space:nowrap;}
.sk-foot{display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-top:12px; font-size:12px; color:var(--ink3);}

.arch-bar{display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:12px 16px; margin-bottom:18px;}
.arch-lead{font-size:13px; font-weight:700; color:var(--ink2); margin-right:4px;}
.arch-lnk{font-size:12.5px; font-weight:700; color:var(--real); background:var(--real-bg); border-radius:7px; padding:5px 11px; text-decoration:none; white-space:nowrap;}
.arch-lnk:hover{text-decoration:underline;}

/* ---------- 计算资源申请（个人访问包） ---------- */
.gu-hint{margin:-4px 0 0; font-size:12px; color:var(--ink3); line-height:1.65;}
.gu-hint.err{color:#b91c1c;}
.workspace-apps h3,.workspace-reviews h3{font-size:15px; margin:0 0 6px;}
.workspace-rule{margin:0 0 10px; font-size:12px; color:var(--ink3); line-height:1.75;}
.workspace-detail{flex:1 1 100%; margin-top:2px; font-size:12px; color:var(--ink3); line-height:1.7;}
.workspace-downloads{flex:1 1 100%; display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:6px; padding:10px 12px; border-radius:8px; background:#f0fdfa; border:1px solid #ccfbf1;}
.workspace-downloads button{flex:0 0 auto;}
.workspace-downloads p{flex:1 1 100%; margin:4px 0 0; font-size:12px; color:var(--ink2); line-height:1.75;}
.workspace-device-note{margin:10px 0 2px; font-size:11.5px; color:var(--ink3); line-height:1.7;}
.workspace-reviews form{display:flex; gap:8px; align-items:flex-end; flex-wrap:wrap; margin:6px 0 8px;}
.workspace-reviews label{font-size:12.5px; color:var(--ink2); font-weight:700;}
.workspace-reviews input{font:inherit; padding:7px 10px; border:1px solid var(--line); border-radius:8px; background:var(--panel); color:var(--ink); min-width:min(200px,100%);}
.workspace-reviews>p{font-size:12px; color:var(--ink3); line-height:1.7; margin:4px 0;}
.workspace-review-actions{flex:1 1 100%; display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:4px;}
.workspace-review-actions input{flex:1 1 220px; font:inherit; padding:6px 10px; border:1px solid var(--line); border-radius:8px; background:var(--panel); color:var(--ink);}
