/* 太仓二期装卸船计划 · 网页版 UI（2026-10-23 深夜版 v2）
   照孔给的图做：浅蓝灰底 + 白色大圆角卡片 + 黑色主按钮 + iOS 开关 + 描边胶囊
   v2 调整（孔：字有点小、颜色再暗一点但别切成暗色模式）
     · 全局字号 +1~1.5px，行高同步放宽
     · 正文/次要文字/边框全部加深一档，底色也压暗一点 ⇒ 对比更强、更清楚 */

:root {
  --bg: #E4E8F1;
  --bg-deep: #DCE1EC;
  --card: #FFFFFF;
  --line: #D9DFE9;
  --line-soft: #E9EDF3;
  --ink: #14161A;
  --text: #22252B;
  --muted: #5F6673;
  --muted-2: #8B93A1;
  --accent: #3C4C6B;
  --green: #268A5B;
  --green-soft: #EFF9F4;
  --chip: #EFF2F7;
  --danger: #B0473D;
  --r-card: 16px;
  --r-input: 10px;
  --shadow: 0 1px 2px rgba(24, 34, 60, .04), 0 2px 10px rgba(24, 34, 60, .04);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------------- 顶栏 ---------------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 14px;
}

.brand h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.3px;
}

.brand p {
  margin: 3px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
  margin-right: 6px;
  vertical-align: middle;
}

.dot.on { background: var(--green); }
.dot.off { background: var(--danger); }

/* ---------------- 页签 ---------------- */
.tabs {
  display: flex;
  gap: 6px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 16px;
}

.tab {
  border: 1px solid transparent;
  background: transparent;
  padding: 9px 18px;
  font: inherit;
  font-size: 14.5px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
  transition: all .15s;
}

.tab:hover { color: var(--ink); background: rgba(255, 255, 255, .7); }

.tab.active {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow);
}

/* ---------------- 布局 ---------------- */
main { max-width: 1180px; margin: 0 auto; padding: 0 20px 44px; }

.pane { display: none; }
.pane.active { display: block; }

.grid {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

@media (max-width: 1080px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 24px 24px 24px;
  box-shadow: var(--shadow);
}

.head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.head .ico {
  width: 28px;
  height: 28px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  margin-top: 1px;
}

.head .ico svg { width: 24px; height: 24px; display: block; }

.head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.3px;
}

.head p {
  margin: 3px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 400;
}

.head .spacer { flex: 1; }

.head-actions { display: flex; gap: 8px; margin-left: auto; flex: none; }

/* ---------------- 表单 ---------------- */
.field { display: block; margin-bottom: 16px; }

.field > span {
  display: block;
  font-size: 14.5px;
  color: var(--text);
  margin-bottom: 7px;
  font-weight: 600;
}

.field > span em { font-style: normal; color: var(--danger); margin-left: 2px; }
.field > span .tiny { font-weight: 400; }

.field .hintline {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 7px;
  line-height: 1.55;
}

input[type=text], input[type=password], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  padding: 11px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  min-width: 0;
}

textarea { resize: vertical; line-height: 1.75; }

input:focus, select:focus, textarea:focus {
  border-color: #A9B4C8;
  box-shadow: 0 0 0 3px rgba(60, 76, 107, .1);
}

input::placeholder, textarea::placeholder { color: var(--muted-2); }

input.flat, textarea.flat {
  border-color: transparent;
  background: #F7F9FC;
  padding: 11px 13px;
}

input.flat:focus, textarea.flat:focus {
  border-color: var(--line);
  background: #fff;
}

textarea.body {
  min-height: 370px;   /* 正文是分行排版（码头策划/你们好/箱属/付费代码/船名箱量/信风+日期），太矮看不全 */
  font-size: 15px;
  line-height: 1.9;
}

/* ---------------- 按钮 ---------------- */
button {
  font: inherit;
  font-size: 14.5px;
  border-radius: var(--r-input);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 9px 16px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 500;
}

button:hover { background: #F4F6FA; border-color: #CBD3DF; }
button:active { background: #EDF0F6; }

button svg { width: 16px; height: 16px; }

.btn-ink {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: 600;
  padding: 14px 20px;
  font-size: 15.5px;
}

.btn-ink:hover { background: #000; border-color: #000; }

.btn-ink:disabled {
  background: #98A0AC;
  border-color: #98A0AC;
  cursor: not-allowed;
}

.w-full { width: 100%; }

button.ghost { border-color: transparent; background: transparent; color: var(--accent); padding: 4px 6px; font-size: 13.5px; }
button.ghost:hover { background: var(--chip); }

button.small { padding: 7px 13px; font-size: 13.5px; }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------------- 上传 ---------------- */
.dropzone {
  border: 1.5px dashed #C4CCDA;
  border-radius: 14px;
  background: #F8FAFD;
  padding: 36px 16px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
}

.dropzone:hover, .dropzone.over {
  border-color: #8B9AB5;
  background: #F1F5FB;
  color: var(--accent);
}

.dropzone .dico {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  color: #8892A5;
}

.dropzone .dico svg { width: 36px; height: 36px; }

.dropzone .dtext { font-size: 15.5px; color: var(--ink); font-weight: 500; }
.dropzone .dtiny { font-size: 13px; color: var(--muted); margin-top: 5px; }

.filelist { display: flex; flex-direction: column; gap: 8px; }

.filerow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #F8FAFD;
  font-size: 14px;
}

.filerow .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filerow .kill { border: 0; background: transparent; color: var(--muted-2); padding: 0 2px; font-size: 18px; line-height: 1; }
.filerow .kill:hover { color: var(--danger); background: transparent; }

/* ---------------- 开关 ---------------- */
.switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 18px;
}

.switch-row b { display: block; font-size: 14.5px; font-weight: 600; color: var(--text); }
.switch-row p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }

.toggle { margin-left: auto; flex: none; cursor: pointer; }
.toggle input { display: none; }

.toggle i {
  display: block;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #D2D8E3;
  position: relative;
  transition: background .18s;
}

.toggle i::after {
  content: "";
  position: absolute;
  top: 2.5px;
  left: 2.5px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 30, 50, .2);
  transition: transform .18s;
}

.toggle input:checked + i { background: #2FA36B; }
.toggle input:checked + i::after { transform: translateX(20px); }

/* ---------------- 邮件预览 ---------------- */
.kv {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0 8px;
}

.kv .k { font-size: 14.5px; color: var(--text); font-weight: 600; }
.kv .spacer { flex: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  font-size: 14px;
  padding: 7px 13px;
  border-radius: 8px;
  background: var(--chip);
  color: var(--text);
  word-break: break-all;
}

.chip.empty { color: var(--muted); background: #F7F9FC; box-shadow: inset 0 0 0 1px var(--line-soft); }
.chip .x { margin-left: 7px; color: var(--muted-2); cursor: pointer; font-size: 15px; }

a.link { font-size: 13.5px; color: var(--accent); text-decoration: none; cursor: pointer; font-weight: 500; }
a.link:hover { text-decoration: underline; }

.badge-test {
  font-size: 12.5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #FCEFD8;
  color: #8A5A16;
  margin-left: 8px;
  white-space: nowrap;
  font-weight: 500;
}

/* ---------------- 结果卡 ---------------- */
.result-head {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid #BFE3D1;
  background: var(--green-soft);
  border-radius: 14px;
  padding: 17px 19px;
  margin-bottom: 16px;
}

.result-head .rico {
  width: 32px;
  height: 32px;
  color: var(--green);
  flex: none;
}

.result-head .rico svg { width: 30px; height: 30px; }

.result-head b { font-size: 16.5px; font-weight: 700; }
.result-head p { margin: 2px 0 0; font-size: 13.5px; color: #476B58; }

.stat3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 17px 19px;
  background: #fff;
}

.stat span { display: block; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.stat b {
  display: block;
  margin-top: 9px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.6px;
}

.stat b small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 3px; }

/* ---------------- 明细表 ---------------- */
.tbl-wrap { overflow: auto; max-height: 600px; margin: 0 -8px; }

table.dt {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.dt th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  font-size: 13.5px;
  padding: 9px 13px 11px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  white-space: nowrap;
}

table.dt td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  vertical-align: middle;
}

table.dt tbody tr:last-child td { border-bottom: 0; }
table.dt tbody tr:hover { background: #F7F9FC; }

td.mono { font-family: "Cascadia Mono", Consolas, monospace; font-size: 13.5px; letter-spacing: .2px; }

.pill {
  display: inline-block;
  min-width: 44px;
  text-align: center;
  padding: 2px 11px;
  border: 1px solid #D5DCE7;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
  background: #fff;
}

.tag-ef {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  line-height: 1;
  font-weight: 500;
}

.tag-ef.e { background: #fff; border: 1px solid var(--line); color: var(--text); }
.tag-liq { font-size: 13px; color: var(--accent); font-weight: 500; }
.dash { color: var(--muted-2); }

/* ---------------- 日志 ---------------- */
details.logbox { margin-top: 2px; }

details.logbox summary {
  cursor: pointer;
  font-size: 14px;
  color: var(--accent);
  padding: 4px 0;
  list-style: none;
  user-select: none;
  font-weight: 500;
}

details.logbox summary::-webkit-details-marker { display: none; }
details.logbox summary::before { content: "▸ "; color: var(--muted-2); }
details.logbox[open] summary::before { content: "▾ "; }

.log {
  margin-top: 8px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.8;
  background: #F7F9FC;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 13px 15px;
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
  color: #3A3F47;
}

/* ---------------- 弹窗 ---------------- */
.mask {
  position: fixed;
  inset: 0;
  background: rgba(24, 30, 44, .42);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.mask.hidden { display: none; }

.dialog {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(20, 30, 50, .22);
  width: min(880px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: pop .16s ease-out;
}

.dialog.narrow { width: min(540px, 100%); }

@keyframes pop {
  from { transform: translateY(8px) scale(.99); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.dialog-head {
  padding: 22px 24px 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}

.dialog-head .sub { font-size: 13.5px; color: var(--muted); font-weight: 400; }

.dialog-body { padding: 0 24px 8px; overflow: auto; }

.dialog-foot {
  padding: 16px 24px 22px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.dialog-foot .left { margin-right: auto; }

/* 确认发送弹窗 · 正文预览（孔 2026-10-27：发出去是什么样就显示什么样） */
.mailbody {
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #F7F9FC;
  box-shadow: inset 0 0 0 1px var(--line-soft);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 250px;
  overflow: auto;
}

/* 映射表格 */
.tbl-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
  max-height: 320px;
  margin-bottom: 16px;
}

table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }

table.tbl th, table.tbl td {
  text-align: left;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

table.tbl th {
  background: #F7F9FC;
  color: var(--muted);
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}

table.tbl tbody tr { cursor: pointer; }
table.tbl tbody tr:hover { background: #F7F9FC; }
table.tbl tbody tr.sel { background: #E9F0FA; }
table.tbl td.wrap { word-break: break-all; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 11px;
}

.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }

/* ---------------- toast ---------------- */
.toast-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
}

.toast {
  background: #23262D;
  color: #fff;
  font-size: 14px;
  padding: 12px 17px;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(20, 30, 50, .26);
  animation: pop .16s ease-out;
  max-width: 440px;
}

.toast.ok { background: #1B5540; }
.toast.err { background: #77322B; }
.toast.warn { background: #664314; }

/* ---------------- 视图切换（主网页导航 ↔ 码头工作台） ---------------- */
.view { display: none; }
.view.active { display: block; }

.home-head { margin: 2px 0 16px; }
.home-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.3px;
}
.home-head p { margin: 0; font-size: 14px; color: var(--muted); }

.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 14px;
}

@media (max-width: 900px) {
  .nav-grid { grid-template-columns: minmax(0, 1fr); }
}

.nav-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid transparent;
  border-radius: var(--r-card);
  padding: 24px 24px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}

.nav-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24, 34, 60, .1);
  border-color: #D3DAE6;
}

.nav-card .nc-ico {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #F1F4FA;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  align-self: flex-start;
}

.nav-card .nc-ico svg { width: 28px; height: 28px; }

.nav-card .nc-main { flex: 1; min-width: 0; }
.nav-card .nc-main b { font-size: 18.5px; font-weight: 700; display: block; letter-spacing: -.2px; }
.nav-card .nc-main p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }

.nav-card .nc-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 11px; }
.nav-card .nc-meta .pill { font-size: 12.5px; padding: 3px 11px; color: var(--muted); min-width: 0; }

.nav-card .nc-arrow {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s, color .15s;
}

.nav-card .nc-arrow svg { width: 20px; height: 20px; }
.nav-card:hover .nc-arrow { transform: translateX(3px); color: var(--accent); }

.nav-card.ghost {
  background: rgba(255, 255, 255, .5);
  box-shadow: none;
  border: 1.5px dashed #C9D1DE;
  cursor: default;
}

.nav-card.ghost:hover { transform: none; box-shadow: none; border-color: #C9D1DE; }
.nav-card.ghost .nc-main b { color: var(--muted); }
.nav-card.ghost .nc-ico { background: transparent; color: var(--muted-2); }

/* 首页三步说明 */
.home-tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .home-tips { grid-template-columns: minmax(0, 1fr); }
}

.home-tips .tip {
  background: rgba(255, 255, 255, .62);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 18px 20px;
}

.home-tips .tip .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #E7ECF5;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.home-tips .tip b { display: block; font-size: 14.5px; font-weight: 600; }
.home-tips .tip p { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* 返回条 */
.crumb-bar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 12px;
}

.crumb-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
  transition: all .15s;
}

.crumb-back svg { width: 16px; height: 16px; }
.crumb-back:hover { color: var(--ink); background: rgba(255, 255, 255, .75); }

/* ================================================================
   南通工作台（2026-10-26 孔给的模版版式）
   ================================================================ */
.nt-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

/* ---- 标签行（不带 form 语义的纯标题） ---- */
.nt-labrow { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 8px; }
.nt-lab { font-size: 14.5px; font-weight: 600; color: var(--text); }
.nt-labrow:first-child { margin-top: 0; }

/* ---- 文件选择（点一下弹系统选文件） ---- */
.nt-filepick { display: flex; gap: 8px; align-items: stretch; }

input.nt-filebox {
  flex: 1;
  min-width: 0;
  cursor: pointer;
  background: #F7F9FC;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

input.nt-filebox:hover { background: #F1F5FB; border-color: #C4CCDA; }
input.nt-filebox::placeholder { color: var(--muted-2); }

.nt-filepick button { flex: none; }

/* ---- 已选择文件 ---- */
.nt-chosen { margin-top: 12px; }

.nt-chosen-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.nt-chosen-list { display: flex; flex-direction: column; gap: 8px; }

/* ---- 参数栅格：桌面 4 列 ---- */
.nt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.nt-grid .field { margin-bottom: 0; }
.nt-span2 { grid-column: span 2; }
.nt-span4 { grid-column: span 4; }

@media (max-width: 860px) {
  .nt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nt-span2 { grid-column: span 2; }
  .nt-span4 { grid-column: span 2; }
}

@media (max-width: 560px) {
  .nt-grid { grid-template-columns: minmax(0, 1fr); }
  .nt-span2, .nt-span4 { grid-column: span 1; }
}

/* 标签里的小图标 */
.field > span .lic {
  width: 15px;
  height: 15px;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 6px;
  fill: none;
  stroke: #6B7383;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---- 邮箱行：输入框 + 测试按钮 ---- */
.nt-mailrow { display: flex; gap: 8px; align-items: stretch; }
.nt-mailrow input { flex: 1; min-width: 0; }

.nt-testbtn {
  flex: none;
  padding: 0 15px;
  color: var(--accent);
  border-color: #CBD3DF;
  background: #F7F9FC;
  font-weight: 600;
}

.nt-testbtn:hover { background: #EEF2F9; border-color: #B7C1D1; }

.nt-testbtn.on {
  background: #FCEFD8;
  border-color: #E8CE9C;
  color: #8A5A16;
}

.nt-testbtn.on:hover { background: #FAE8CB; }

/* ---- 蓝色信息框（文件处理信息 / 抵港时间修改结果） ---- */
.info-blue {
  border: 1px solid #CFE0F8;
  background: #EFF5FE;
  border-radius: 14px;
  padding: 16px 19px;
  margin-bottom: 14px;
  font-size: 14.5px;
  color: #1F3A5F;
  line-height: 1.85;
}

.info-blue > b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #16324F;
  margin-bottom: 8px;
}

.info-blue .bl { font-weight: 600; color: #16324F; word-break: break-all; }

.dotlist {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.85;
}

.dotlist li {
  position: relative;
  padding-left: 15px;
  word-break: break-all;
}

.dotlist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7FA0C8;
}

.dotlist li .old { color: #7A6A56; text-decoration: line-through; }
.dotlist li .arrow { color: #6B8CB4; margin: 0 5px; }
.dotlist li .new { color: #16324F; font-weight: 600; }
.dotlist li.warn { color: #8A5A16; }
.dotlist li.warn::before { background: #D9A64A; }

/* ---- 邮件预览 ---- */
.nt-preview {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.nt-preview h3 {
  margin: 0 0 14px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -.2px;
}

.nt-toline {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 14px;
  word-break: break-all;
}

.nt-toline b { color: var(--ink); font-weight: 600; }

/* 附件盒 */
.nt-attbox {
  border: 1px solid var(--line-soft);
  background: #F7F9FC;
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 16px;
}

.nt-att-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 9px;
}

.nt-att-title .lic {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 5px;
  fill: none;
  stroke: #6B7383;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.att-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  border-top: 1px solid #E7ECF3;
}

.att-row:first-child { border-top: 0; padding-top: 0; }

.att-ext {
  min-width: 44px;
  font-size: 12px;
  padding: 1px 8px;
  color: var(--accent);
  background: #fff;
}

.att-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.att-row a.link { flex: none; }

/* 「计划 PDF 生成中」占位行 */
.att-row.att-pending .att-name { color: var(--muted); }
.att-row.att-pending .pill.att-ext { color: var(--muted); border-style: dashed; }

/* 结果卡的绿勾 */
.head .ico.ok { color: var(--green); }

/* ---------------- 杂项 ---------------- */
.hidden { display: none !important; }
.muted { color: var(--muted); }
.tiny { font-size: 13px; }
.spacer { flex: 1; }
.sep { height: 1px; background: var(--line-soft); margin: 16px 0; }

.spin {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(20, 22, 26, .2);
  border-top-color: var(--ink);
  border-radius: 50%;
  display: inline-block;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: #C6CDD9; border-radius: 6px; border: 2px solid #fff; }
::-webkit-scrollbar-thumb:hover { background: #B2BAC8; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 浦海计划 · 邮件卡片 + 附件预览（web-2.2 / 2026-11-13） ----------------
   孔：邮件预览要跟其他码头计划一样，不要一堆 inline style + 裸 input + 一行纯文字附件。 */
#ph-mail-list .ph-mail {
  padding: 18px 20px 20px;
  margin-bottom: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: none;
}
#ph-mail-list .ph-mail:last-child { margin-bottom: 0; }
#ph-mail-list .ph-mail .kv { margin: 14px 0 7px; }
#ph-mail-list .ph-mail .ph-mail-head + .kv { margin-top: 16px; }
#ph-mail-list .ph-mail textarea.ph-body {
  min-height: 118px;
  font-size: 14px;
  line-height: 1.75;
  resize: vertical;
}
.ph-mail-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ph-mail-head label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; cursor: pointer; white-space: nowrap;
}
.ph-mail-head input[type=checkbox] {
  width: 16px; height: 16px; margin: 0; padding: 0;
  accent-color: var(--ink); flex: none;
}
.ph-mail-head .spacer { flex: 1; }

.chip.att { cursor: pointer; transition: background .15s, box-shadow .15s, color .15s; }
.chip.att::after { content: " · 点击查看"; font-size: 12px; color: var(--muted); }
.chip.att:hover {
  background: #EAF1FF;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.chip.att:hover::after { color: var(--accent); }

/* 附件内容弹窗：按原格子平铺，跟其他码头明细表同款 */
.ph-att-sheet + .ph-att-sheet { margin-top: 4px; }
.dialog.wide { width: min(1180px, 96vw); }
.ph-att-wrap {
  max-height: 52vh;
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  margin-bottom: 8px;
}
table.dt.ph-att-table { font-size: 13px; width: auto; min-width: 100%; }
table.dt.ph-att-table th,
table.dt.ph-att-table td {
  padding: 7px 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
  max-width: 420px;
}
table.dt.ph-att-table td:first-child,
table.dt.ph-att-table th:first-child { min-width: 40px; color: var(--muted-2); }
.ph-att-dl { display: inline-block; margin-bottom: 4px; }
