:root {
  --ink: #15232b;
  --ink-2: #35444b;
  --muted: #66747a;
  --line: #d6d4ce;
  --line-soft: #e9e5dd;
  --surface: #fffefa;
  --surface-soft: #f4f1ea;
  --nav: #101f27;
  --nav-deep: #0b171d;
  --teal: #129b99;
  --teal-dark: #087c7b;
  --teal-soft: #e6f4f2;
  --blue: #3b77a5;
  --blue-soft: #edf4f8;
  --amber: #e07b17;
  --amber-soft: #fff3df;
  --red: #f04c2f;
  --red-soft: #fff0eb;
  --green: #369341;
  --green-soft: #edf7ed;
  --coral: #ff5638;
  --coral-dark: #e23c21;
  --coral-soft: #fff0eb;
  --warm: #f7f3eb;
  --shadow: 0 16px 38px rgba(21, 35, 43, 0.07);
  --radius: 11px;
  --sidebar: 214px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--warm);
  font-synthesis: none;
}

/* 企业微信校长服务闭环 */
.wecom-loop-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 20px 0;
  padding: 26px 28px;
  border: 1px solid rgba(36, 177, 93, 0.24);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(236, 252, 242, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 38px rgba(22, 101, 52, 0.08);
}

.wecom-loop-hero span,
.wecom-loop-hero p { color: #527060; }
.wecom-loop-hero h2 { margin: 6px 0 8px; font-size: clamp(22px, 2.5vw, 32px); color: #173d2a; }
.wecom-loop-hero p { max-width: 780px; margin: 0; line-height: 1.75; }
.wecom-loop-actions,
.wecom-card-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wecom-loop-actions { justify-content: flex-end; min-width: 290px; }

.wecom-role-rail {
  display: grid;
  grid-template-columns: repeat(9, auto);
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: #17261e;
  color: #fff;
}
.wecom-role-rail > div { min-width: 145px; display: grid; grid-template-columns: 30px 1fr; gap: 2px 8px; align-items: center; }
.wecom-role-rail b { grid-row: 1 / 3; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #24b15d; }
.wecom-role-rail strong { font-size: 14px; }
.wecom-role-rail span { color: #a9bdaf; font-size: 11px; white-space: nowrap; }
.wecom-role-rail i { color: #5d7b68; font-style: normal; }

.wecom-binding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.wecom-binding-card {
  padding: 20px;
  border: 1px solid #e6e9e7;
  border-radius: 20px;
  background: #fff;
}
.wecom-binding-card.connected { border-color: rgba(36, 177, 93, 0.35); }
.wecom-binding-card.manual { border-color: rgba(48, 111, 212, 0.35); }
.wecom-binding-card.pending { border-color: rgba(239, 164, 43, 0.45); }
.wecom-binding-card header { display: flex; align-items: center; gap: 12px; }
.wecom-binding-card header > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: #eaf9f0; color: #1f9f55; font-size: 22px; }
.wecom-binding-card header > div { flex: 1; min-width: 0; }
.wecom-binding-card header strong,
.wecom-binding-card header small { display: block; }
.wecom-binding-card header small { margin-top: 3px; color: #7f8c84; }
.wecom-binding-card header > b { color: #1f9f55; font-size: 12px; }
.wecom-binding-card.manual header > b { color: #306fd4; }
.wecom-binding-card.pending header > b { color: #b56c05; }
.wecom-binding-card dl { display: grid; gap: 8px; margin: 16px 0; }
.wecom-binding-card dl div { display: flex; justify-content: space-between; gap: 20px; }
.wecom-binding-card dt { color: #8a938d; }
.wecom-binding-card dd { margin: 0; text-align: right; color: #293a30; font-weight: 700; }
.wecom-manual-hint { align-self: center; color: #5f6f82; font-size: 12px; line-height: 1.5; }
.manual-service-case-content { min-height: 360px; resize: vertical; white-space: pre-wrap; line-height: 1.75; }

.wecom-loop-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.wecom-loop-summary > div { padding: 16px 18px; border: 1px solid #eceeea; border-radius: 18px; background: #fff; }
.wecom-loop-summary span,
.wecom-loop-summary strong { display: block; }
.wecom-loop-summary span { color: #79837c; font-size: 12px; }
.wecom-loop-summary strong { margin-top: 6px; font-size: 26px; color: #20382a; }

.service-loop-workbench,
.wecom-report-strip {
  margin-bottom: 20px;
  padding: 22px;
  border: 1px solid #ebece9;
  border-radius: 22px;
  background: #fff;
}
.service-loop-case-list { display: grid; gap: 14px; }
.service-loop-case { padding: 18px; border: 1px solid #e8ebe7; border-radius: 18px; background: #fbfcfb; }
.service-loop-case > header { display: flex; align-items: center; gap: 10px; }
.service-loop-case > header small { flex: 1; color: #7b867e; }
.service-loop-case > header b { color: #b45f06; font-size: 12px; }
.service-loop-case h3 { margin: 13px 0 6px; font-size: 17px; color: #24352a; }
.service-loop-case > p { margin: 0 0 12px; color: #6f7d73; line-height: 1.65; }
.service-loop-deadlines { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.service-loop-deadlines span { padding: 7px 10px; border-radius: 10px; background: #eef3ef; color: #4f6356; font-size: 12px; }
.service-loop-case details { margin: 12px 0; padding: 12px 14px; border-radius: 14px; background: #f2f6f3; }
.service-loop-case summary { cursor: pointer; font-weight: 700; color: #34513e; }
.service-loop-case dl { display: grid; gap: 9px; margin: 12px 0 0; }
.service-loop-case dl div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.service-loop-case dt { color: #819086; }
.service-loop-case dd { margin: 0; white-space: pre-wrap; color: #304438; }
.service-loop-files { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.service-loop-files a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: #eaf4ed; color: #246b3d; text-decoration: none; }
.wecom-report-strip { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.wecom-report-strip h3 { margin: 0 0 6px; }
.wecom-report-strip p { margin: 0; color: #77827a; line-height: 1.6; }
.wecom-report-strip .mini-list { display: grid; gap: 8px; }
.wecom-report-strip .mini-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 12px; border-radius: 12px; background: #f5f7f5; }

.customer-daily-report { margin-top: 18px; }
.customer-daily-report form { margin-top: 18px; }
.customer-daily-report form > small { display: block; margin-top: 10px; color: #7a847d; }
.customer-service-case { border-color: rgba(36, 177, 93, 0.28); }
.customer-case-evidence-form { margin-top: 16px; padding-top: 16px; border-top: 1px dashed #d9e1db; }

/* 客服知识库：一恒维护，客服搜索并从企微聊天工具栏发送。 */
.knowledge-toolbar-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0;
  padding: 18px 20px;
  border: 1px solid #d8e0dc;
  border-radius: 18px;
  background: #fff;
}
.knowledge-toolbar-status > div { display: flex; align-items: center; gap: 14px; min-width: 0; }
.knowledge-toolbar-status > div > i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #eaf8ef; color: #1fa65b; font-size: 25px; }
.knowledge-toolbar-status span { display: grid; gap: 4px; }
.knowledge-toolbar-status strong { color: #21372b; }
.knowledge-toolbar-status small { color: #718078; line-height: 1.5; }
.knowledge-toolbar-status.ready { border-color: rgba(31, 166, 91, .38); background: #f5fcf7; }
.knowledge-toolbar-status.pending { border-color: rgba(224, 123, 23, .32); background: #fffbf3; }
.knowledge-toolbar-status.unconfigured { border-color: rgba(59, 119, 165, .25); background: #f7fafc; }

.knowledge-flow {
  display: grid;
  grid-template-columns: minmax(180px, .65fr) minmax(0, 2fr);
  align-items: center;
  gap: 22px;
  margin: 0 0 14px;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid rgba(18, 155, 153, .18);
  border-radius: 18px;
  background: linear-gradient(115deg, #f3fbf9 0%, #fffdf8 64%, #fff8f1 100%);
}
.knowledge-flow-title { display: grid; gap: 4px; }
.knowledge-flow-title span { color: var(--teal-dark); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.knowledge-flow-title strong { color: var(--ink); font-size: 17px; }
.knowledge-flow ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.knowledge-flow li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border: 1px solid rgba(255,255,255,.85); border-radius: 13px; background: rgba(255,255,255,.72); }
.knowledge-flow li > b { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border-radius: 10px; background: var(--teal); color: #fff; font-size: 12px; box-shadow: 0 7px 16px rgba(18,155,153,.18); }
.knowledge-flow li > span { display: grid; min-width: 0; gap: 2px; }
.knowledge-flow li strong { color: var(--ink); font-size: 12px; }
.knowledge-flow li small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.knowledge-search-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 170px 150px;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(21, 35, 43, .04);
}
.knowledge-search-panel > label { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfaf7; }
.knowledge-search-panel > label i { color: #7c8b82; font-size: 19px; }
.knowledge-search-panel input,
.knowledge-search-panel select { min-width: 0; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fbfaf7; color: var(--ink); font: inherit; }
.knowledge-search-panel > label input { width: 100%; border: 0; outline: 0; background: transparent; }
.knowledge-search-panel select { padding: 0 12px; }
.knowledge-result-head { display: flex; justify-content: space-between; gap: 16px; margin: 18px 2px 10px; color: var(--muted); font-size: 13px; }
.knowledge-result-head b { color: var(--ink); }

.knowledge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.knowledge-grid.single-card { grid-template-columns: minmax(0, 920px); }
.knowledge-card { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; overflow: hidden; padding: 21px; border: 1px solid #e4e3de; border-radius: 20px; background: #fff; box-shadow: 0 12px 28px rgba(21, 35, 43, .045); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.knowledge-card:hover { transform: translateY(-2px); box-shadow: 0 17px 38px rgba(21, 35, 43, .075); }
.knowledge-card.sendable { border-color: rgba(18, 155, 153, .28); background: linear-gradient(150deg, rgba(241, 252, 249, .72), #fff 34%); }
.knowledge-card.sendable::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--teal), #2eaf68); content: ""; }
.knowledge-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.knowledge-category { color: var(--teal-dark); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.knowledge-status { padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.knowledge-status.published { background: var(--green-soft); color: var(--green); }
.knowledge-status.draft { background: var(--amber-soft); color: #a65e08; }
.knowledge-status.history { background: #eef1f2; color: #68777e; }
.knowledge-status.archived { background: var(--red-soft); color: var(--red); }
.knowledge-card h2 { margin: 0; color: var(--ink); font-size: 20px; line-height: 1.35; }
.knowledge-question,
.knowledge-summary { margin: 0; color: var(--ink-2); line-height: 1.7; }
.knowledge-question { padding: 12px 14px; border-radius: 12px; background: var(--teal-soft); }
.knowledge-question b { color: var(--teal-dark); }
.knowledge-summary { color: var(--muted); }
.knowledge-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.knowledge-meta span { padding: 5px 8px; border-radius: 8px; background: var(--surface-soft); color: #6f7776; font-size: 11px; }
.knowledge-external-ok,
.knowledge-internal-only { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; }
.knowledge-external-ok { color: var(--green); }
.knowledge-internal-only { color: var(--red); }
.knowledge-files { display: grid; gap: 7px; }
.knowledge-file-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border: 1px solid #e6e9e6; border-radius: 11px; background: #fbfcfb; }
.knowledge-file-row > span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.knowledge-file-row > span:first-child { flex: 1; }
.knowledge-file-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.knowledge-file-row small { flex: 0 0 auto; color: #89948d; font-size: 10px; }
.knowledge-file-row a,
.knowledge-file-row button { flex: 0 0 auto; }
.knowledge-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 2px; }
.knowledge-card-actions .danger-text { margin-left: auto; }
.knowledge-empty { grid-column: 1 / -1; display: grid; place-items: center; gap: 8px; min-height: 260px; padding: 30px; border: 1px dashed #d6d9d4; border-radius: 20px; background: rgba(255,255,255,.72); text-align: center; }
.knowledge-empty > i { color: var(--teal); font-size: 36px; }
.knowledge-empty strong { font-size: 18px; }
.knowledge-empty p { margin: 0; color: var(--muted); }
.knowledge-external-check { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid rgba(54, 147, 65, .25); border-radius: 13px; background: var(--green-soft); }
.knowledge-external-check input { width: 18px; height: 18px; margin-top: 2px; }
.knowledge-external-check span { display: grid; gap: 3px; }
.knowledge-external-check small { color: #617266; }
.knowledge-detail { display: grid; gap: 16px; }
.knowledge-detail h2 { margin: 0; }
.knowledge-detail-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.knowledge-detail-badges span { padding: 6px 9px; border-radius: 8px; background: var(--surface-soft); font-size: 11px; font-weight: 800; }
.knowledge-detail-badges .ok { background: var(--green-soft); color: var(--green); }
.knowledge-detail-badges .blocked { background: var(--red-soft); color: var(--red); }
.knowledge-detail dl { display: grid; gap: 12px; margin: 0; }
.knowledge-detail dl > div { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.knowledge-detail dt { color: var(--muted); }
.knowledge-detail dd { margin: 0; color: var(--ink); line-height: 1.7; white-space: pre-wrap; }
.knowledge-customer-copy { padding: 13px; border-radius: 12px; background: var(--teal-soft); }
.knowledge-publish-check { display: grid; gap: 12px; }
.knowledge-publish-check strong { font-size: 17px; }
.knowledge-publish-check ol { display: grid; gap: 8px; margin: 0; padding-left: 22px; color: var(--ink-2); line-height: 1.6; }

@media (max-width: 900px) {
  .wecom-loop-hero { align-items: stretch; flex-direction: column; }
  .wecom-loop-actions { justify-content: stretch; min-width: 0; }
  .wecom-loop-actions > * { flex: 1; }
  .wecom-binding-grid,
  .wecom-loop-summary { grid-template-columns: 1fr 1fr; }
  .wecom-report-strip { grid-template-columns: 1fr; }
  .knowledge-grid { grid-template-columns: 1fr; }
  .knowledge-search-panel { grid-template-columns: 1fr 150px 140px; }
  .knowledge-flow { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 620px) {
  .wecom-binding-grid,
  .wecom-loop-summary { grid-template-columns: 1fr; }
  .wecom-binding-card dl div,
  .wecom-report-strip .mini-list > div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .wecom-binding-card dd { text-align: left; }
  .service-loop-case dl div { grid-template-columns: 1fr; gap: 2px; }
  .knowledge-toolbar-status { align-items: stretch; flex-direction: column; }
  .knowledge-flow { padding: 16px; }
  .knowledge-flow ol { grid-template-columns: 1fr; }
  .knowledge-flow li small { white-space: normal; }
  .knowledge-search-panel { grid-template-columns: 1fr; }
  .knowledge-result-head { align-items: flex-start; flex-direction: column; }
  .knowledge-card { padding: 17px; }
  .knowledge-card-actions > button { flex: 1 1 135px; }
  .knowledge-file-row { align-items: flex-start; flex-direction: column; }
  .knowledge-detail dl > div { grid-template-columns: 1fr; gap: 4px; }
}

/* 全账号通用互动羊驼：固定在顶栏专属窗口，不再遮挡正文。 */
.topbar-alpaca-slot {
  position: relative;
  flex: 0 0 clamp(104px, 9vw, 148px);
  align-self: center;
  height: 58px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  border: 1px solid rgba(255, 86, 56, .22);
  border-radius: 10px;
  background: #091b24;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 7px 18px rgba(10, 30, 40, .09);
}

.topbar-alpaca-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 22px rgba(17, 165, 176, .13);
}

.topbar-alpaca-slot video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 38%;
  opacity: .98;
  filter: saturate(.94) contrast(1.06);
}

@media (max-width: 720px) {
  .topbar-alpaca-slot {
    flex-basis: 76px;
    height: 46px;
    border-radius: 8px;
  }
}

/* 员工照片提交与燕子人工形象审核（不调用付费生成 API） */
.member-figure-wrap {
  display: contents;
}

.avatar-pending-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  background: rgba(10, 28, 39, 0.84);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 7px 22px rgba(7, 25, 35, 0.2);
  backdrop-filter: blur(8px);
}

.join-photo-state {
  display: grid !important;
  gap: 3px;
  max-width: 270px;
  color: #fff !important;
  text-align: center;
}

.join-photo-state strong {
  font-size: 15px;
}

.join-photo-state span {
  font-size: 12px;
  line-height: 1.55;
  opacity: 0.78;
}

.join-uploaded-photo {
  width: min(330px, 28vw);
  height: min(430px, 52vh);
  object-fit: contain;
  border-radius: 28px;
  filter: drop-shadow(0 26px 34px rgba(15, 24, 31, 0.24));
}

.join-photo-field {
  margin-top: 3px;
}

.join-photo-uploader {
  position: relative;
  display: grid !important;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 13px 16px;
  border: 1.5px dashed rgba(16, 39, 52, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: 180ms ease;
}

.join-photo-uploader:hover {
  border-color: #ff553f;
  background: #fff;
  transform: translateY(-1px);
}

.join-photo-uploader input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.join-photo-uploader i {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #0b202c;
  color: #fff;
  font-size: 19px;
}

.join-photo-uploader b {
  color: #10232e;
  font-size: 14px;
}

.join-photo-uploader small {
  color: #6d7a82 !important;
  font-size: 11px !important;
}

.avatar-review-topbar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(255, 85, 63, 0.25);
  border-radius: 10px;
  background: #fff3ef;
  color: #d83e2d;
  font-weight: 800;
}

.avatar-review-topbar span,
.risk-level.avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #ff553f;
  color: #fff;
}

.avatar-review-topbar strong {
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  border-radius: 999px;
  background: #d83e2d;
  color: #fff;
  font-size: 11px;
}

.decision-row.avatar-decision-row {
  border-left: 3px solid #ff553f;
  background: linear-gradient(90deg, #fff4ef 0%, #fff 54%);
}

.avatar-decision-row > b {
  color: #e34732;
  font-size: 12px;
}

.drawer.avatar-review-drawer {
  width: min(760px, 100vw);
}

.avatar-review-flow {
  display: grid;
  gap: 22px;
  padding-bottom: 34px;
}

.avatar-review-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid #e8e3da;
  border-radius: 14px;
  background: #f7f4ee;
}

.avatar-review-steps span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 14px;
  color: #7b858b;
  font-size: 12px;
  font-weight: 800;
}

.avatar-review-steps span + span {
  border-left: 1px solid #e8e3da;
}

.avatar-review-steps b {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  background: #e7e3db;
}

.avatar-review-steps .done {
  color: #137d6e;
}

.avatar-review-steps .done b {
  background: #daf2ed;
}

.avatar-review-steps .active {
  color: #d93f2d;
  background: #fff2ed;
}

.avatar-review-steps .active b {
  background: #ff553f;
  color: #fff;
}

.avatar-review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.avatar-review-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
}

.avatar-review-grid article > span {
  color: #172a35;
  font-size: 14px;
  font-weight: 900;
}

.avatar-review-grid article > small {
  color: #7c878d;
  line-height: 1.55;
}

.avatar-review-photo {
  display: grid;
  place-items: center;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid #e4ded5;
  border-radius: 18px;
  background:
    linear-gradient(45deg, #f1eee8 25%, transparent 25%),
    linear-gradient(-45deg, #f1eee8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f1eee8 75%),
    linear-gradient(-45deg, transparent 75%, #f1eee8 75%),
    #faf8f3;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

.avatar-review-photo img {
  width: 100%;
  height: 340px;
  object-fit: contain;
}

.avatar-review-photo > span {
  color: #8b9499;
  font-size: 13px;
}

.avatar-photo-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 260px;
  padding: 24px;
  text-align: center;
  color: #647279;
}

.avatar-photo-state i {
  color: #169f9a;
  font-size: 34px;
}

.avatar-photo-state strong {
  color: #172a35;
  font-size: 15px;
}

.avatar-photo-state small {
  line-height: 1.55;
}

.avatar-photo-state.error i {
  color: #ff583f;
}

.avatar-photo-state .secondary-button {
  min-height: 38px;
  margin-top: 4px;
  padding: 8px 16px;
}

.avatar-review-photo.loading .avatar-photo-state i {
  animation: avatar-source-spin 1s linear infinite;
}

.avatar-review-photo.failed {
  border-color: #ffb2a8;
  background: #fff7f5;
}

@keyframes avatar-source-spin {
  to { transform: rotate(360deg); }
}

.avatar-review-upload {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: center;
  min-height: 74px;
  padding: 12px;
  border: 1.5px dashed #ff8e7f;
  border-radius: 14px;
  background: #fff4ef;
  cursor: pointer;
}

.avatar-review-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.avatar-review-upload i {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ff553f;
  color: #fff;
  font-size: 20px;
}

.avatar-review-upload strong {
  font-size: 13px;
}

.avatar-review-upload small {
  color: #7f726c;
  font-size: 11px;
}

.avatar-auto-generate {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid #d8e7e3;
  border-radius: 15px;
  background: linear-gradient(135deg, #eef9f6, #fff);
}

.avatar-auto-generate > button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
}

.avatar-auto-generate > button i {
  font-size: 18px;
}

.avatar-auto-generate > small {
  color: #60737a;
  font-size: 11px;
  text-align: center;
}

.avatar-generation-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #f4f2ed;
  color: #66747a;
  font-size: 11px;
  line-height: 1.45;
}

.avatar-generation-status i {
  flex: 0 0 auto;
  color: #66747a;
  font-size: 19px;
}

.avatar-generation-status.working {
  background: #fff6e6;
  color: #976312;
}

.avatar-generation-status.working i {
  color: #e89712;
}

.avatar-generation-status.working .ph-spinner-gap {
  animation: avatar-source-spin 1s linear infinite;
}

.avatar-generation-status.completed {
  background: #eaf7f2;
  color: #137d6e;
}

.avatar-generation-status.completed i {
  color: #159a87;
}

.avatar-generation-status.failed {
  background: #fff0ed;
  color: #b73e2f;
}

.avatar-generation-status.failed i {
  color: #ff553f;
}

.avatar-candidates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.avatar-candidate {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 7px;
  border: 1.5px solid #e2ddd4;
  border-radius: 12px;
  background: #fff;
  color: #172a35;
  cursor: pointer;
}

.avatar-candidate:hover {
  border-color: #ff8e7f;
}

.avatar-candidate.selected {
  border-color: #ff553f;
  box-shadow: 0 0 0 2px rgb(255 85 63 / 13%);
  background: #fff6f3;
}

.avatar-candidate-image {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(45deg, #f1eee8 25%, transparent 25%),
    linear-gradient(-45deg, #f1eee8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f1eee8 75%),
    linear-gradient(-45deg, transparent 75%, #f1eee8 75%),
    #faf8f3;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.avatar-candidate-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.avatar-candidate > span {
  overflow: hidden;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-candidate > small {
  color: #7c878d;
  font-size: 10px;
}

.avatar-candidate-loading {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #718087;
  font-size: 10px;
}

.avatar-candidate-loading i {
  font-size: 20px;
  animation: avatar-source-spin 1s linear infinite;
}

.avatar-candidate-loading.failed i {
  color: #ff553f;
  animation: none;
}

.avatar-manual-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8b9499;
  font-size: 10px;
}

.avatar-manual-divider::before,
.avatar-manual-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e6e1d8;
}

.avatar-review-upload.compact {
  min-height: 62px;
  padding: 9px 11px;
  border-color: #d8d2c8;
  background: #faf8f3;
}

.avatar-review-upload.compact i {
  width: 36px;
  height: 36px;
  background: #172a35;
}

.avatar-review-photo.generated.compact {
  min-height: 210px;
}

.avatar-review-photo.generated.compact img {
  height: 210px;
}

.avatar-review-notice {
  display: flex;
  gap: 13px;
  padding: 15px 17px;
  border: 1px solid #d9e8e4;
  border-radius: 14px;
  background: #edf7f4;
}

.avatar-review-notice i {
  color: #098f7b;
  font-size: 25px;
}

.avatar-review-notice strong {
  display: block;
  margin-bottom: 4px;
}

.avatar-review-notice p {
  margin: 0;
  color: #53666c;
  font-size: 12px;
  line-height: 1.6;
}

.avatar-review-submit {
  width: 100%;
  min-height: 50px;
}

@media (max-width: 760px) {
  .avatar-review-grid {
    grid-template-columns: 1fr;
  }

  .avatar-review-photo,
  .avatar-review-photo img {
    min-height: 280px;
    height: 280px;
  }

  .avatar-review-steps span {
    justify-content: center;
    padding: 8px 5px;
    text-align: center;
  }

  .avatar-review-steps b {
    display: none;
  }

  .avatar-candidates {
    gap: 10px;
  }

  .join-uploaded-photo {
    width: 230px;
    height: 300px;
  }
}

/* 今日总览：角色先看行动，再看数字，最后看交付与验收。 */
.dashboard-command {
  margin: 2px 0 18px;
  border-top: 1px solid #dfe3e5;
  border-bottom: 1px solid #dfe3e5;
  background: #fff;
}

.dashboard-command-head {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 4px 17px 22px;
  border-left: 4px solid var(--coral);
}

.dashboard-command-head h1 {
  margin: 0;
  color: #111c22;
  font-size: clamp(28px, 2.45vw, 39px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.045em;
}

.dashboard-command-head p {
  margin: 8px 0 0;
  color: #66747a;
  font-size: 12px;
  line-height: 1.6;
}

.dashboard-command-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.dashboard-quick-action,
.dashboard-primary-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid #d5dadd;
  border-radius: 8px;
  background: #fff;
  color: #233039;
  font-size: 13px;
  font-weight: 800;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.dashboard-primary-action {
  min-width: 154px;
  border-color: var(--coral);
  background: var(--coral);
  color: #fff;
  box-shadow: 0 8px 18px rgba(240, 76, 47, .18);
}

.dashboard-quick-action:hover,
.dashboard-primary-action:hover {
  transform: translateY(-1px);
}

.dashboard-quick-action:hover {
  border-color: #9ba7ad;
  background: #f8fafb;
}

.dashboard-command-list {
  border-top: 1px solid #e4e7e8;
}

.dashboard-priority-row {
  width: 100%;
  min-height: 63px;
  display: grid;
  grid-template-columns: 34px minmax(235px, 1.2fr) 80px minmax(275px, 1fr) 18px;
  align-items: center;
  gap: 14px;
  padding: 9px 20px;
  border: 0;
  border-bottom: 1px solid #e8eaeb;
  background: #fff;
  color: #1a272e;
  text-align: left;
  transition: background .18s ease, transform .18s ease;
}

.dashboard-priority-row:last-child {
  border-bottom: 0;
}

.dashboard-priority-row:hover {
  background: #f8fafb;
}

.dashboard-priority-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0b2a43;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.dashboard-command-list .dashboard-priority-number {
  background: var(--coral-dark);
}

.dashboard-priority-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.dashboard-priority-copy strong {
  overflow: hidden;
  color: #17242b;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-priority-copy small {
  overflow: hidden;
  color: #7a878d;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-priority-state {
  color: #1c7e8d;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.dashboard-priority-state.overdue {
  color: var(--coral-dark);
}

.dashboard-approval-row {
  background: #fffaf8;
}

.dashboard-approval-row:hover {
  background: #fff5f1;
}

.dashboard-approval-detail {
  color: #6f7b81;
  font-size: 10px;
  font-weight: 750;
  text-align: center;
}

.dashboard-priority-row .cycle-rail {
  min-width: 0;
  padding: 0;
}

.dashboard-priority-row .cycle-step {
  gap: 4px;
}

.dashboard-priority-row .cycle-step > span {
  width: 25px;
  height: 25px;
  font-size: 9px;
}

.dashboard-priority-row .cycle-step > strong {
  font-size: 9px;
}

.dashboard-row-arrow {
  color: #8d989e;
  font-size: 17px;
}

.dashboard-command-empty {
  min-height: 84px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 16px 24px;
}

.dashboard-command-empty strong {
  font-size: 15px;
}

.dashboard-command-empty span {
  color: var(--muted);
  font-size: 12px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.summary-item {
  min-height: 108px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 0 14px;
  padding: 15px 15px;
  border: 1px solid #dfe3e5;
  border-radius: 9px;
  background: #fff;
  color: #15232b;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.summary-item + .summary-item::before {
  display: none;
}

.summary-item:hover {
  transform: translateY(-2px);
  border-color: #b8c1c5;
  box-shadow: 0 9px 24px rgba(9, 27, 38, .08);
}

.summary-icon {
  width: 52px;
  height: 52px;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0b2a43;
  color: #fff;
  font-size: 24px;
}

.summary-item.overdue .summary-icon {
  background: var(--coral);
}

.summary-item.verify .summary-icon {
  background: #168ea0;
}

.summary-item.risk .summary-icon {
  background: #e99112;
}

.summary-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 3px 10px;
}

.summary-label {
  color: #2e3a41;
  font-size: 13px;
  font-weight: 800;
}

.summary-value {
  margin: 0;
  color: #0b2a43;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
}

.summary-item.overdue .summary-value {
  color: var(--coral-dark);
}

.summary-item.verify .summary-value {
  color: #117f90;
}

.summary-item.risk .summary-value {
  color: #d67d00;
}

.summary-value small {
  margin-left: 4px;
  color: #66747a;
  font-size: 11px;
  font-weight: 700;
}

.summary-caption {
  grid-column: 1 / -1;
  margin: 0;
  color: #7a878d;
  font-size: 10px;
}

.summary-link {
  grid-column: 2 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: #6c797f;
  font-size: 10px;
  font-weight: 750;
}

.dashboard-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 14px;
  margin-bottom: 14px;
}

.dashboard-focus-panel,
.dashboard-attention-panel {
  min-width: 0;
  border: 1px solid #dfe3e5;
  border-radius: 9px;
  background: #fff;
}

.dashboard-section-head {
  min-height: 61px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  border-bottom: 1px solid #e5e8e9;
}

.dashboard-section-head h2 {
  margin: 0;
  color: #17242b;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.025em;
}

.dashboard-section-head span {
  display: block;
  margin-top: 4px;
  color: #7a878d;
  font-size: 10px;
}

.dashboard-section-head > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--coral-dark);
  font-size: 11px;
  font-weight: 800;
}

.dashboard-focus-list .dashboard-priority-row {
  grid-template-columns: 34px minmax(210px, 1fr) 76px minmax(235px, .9fr) 16px;
}

.dashboard-attention-list button,
.dashboard-risk-link {
  width: 100%;
  min-height: 55px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid #e8eaeb;
  background: #fff;
  color: #26343b;
  text-align: left;
  transition: background .18s ease;
}

.dashboard-attention-list button:hover,
.dashboard-risk-link:hover {
  background: #f7f9fa;
}

.dashboard-attention-list button > span,
.dashboard-risk-link > span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 780;
}

.dashboard-attention-list button > span i,
.dashboard-risk-link > span i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f4f5;
  color: #108796;
  font-size: 16px;
}

.dashboard-attention-list button:nth-child(2) > span i {
  background: var(--coral-soft);
  color: var(--coral-dark);
}

.dashboard-attention-list button:nth-child(4) > span i {
  background: var(--amber-soft);
  color: var(--amber);
}

.dashboard-attention-list strong,
.dashboard-risk-link strong {
  color: #0b2a43;
  font-size: 20px;
  font-weight: 900;
}

.dashboard-attention-list button:nth-child(2) strong,
.dashboard-attention-list button.danger strong {
  color: var(--coral-dark);
}

.dashboard-attention-list button > i,
.dashboard-risk-link > i {
  color: #8d989e;
}

.dashboard-risk-link {
  min-height: 58px;
  border-bottom: 0;
  border-top: 10px solid #f5f7f8;
}

.dashboard-risk-link > span i {
  background: #e9eef2;
  color: #0b2a43;
}

.dashboard-event-strip {
  display: grid;
  grid-template-columns: minmax(240px, .85fr) minmax(430px, 1.65fr) minmax(235px, .8fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
  padding: 17px 18px;
  border: 1px solid #dfe3e5;
  border-radius: 9px;
  background: #fff;
}

.dashboard-event-title,
.dashboard-event-next {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: #1b282f;
  text-align: left;
}

.dashboard-event-title > i {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0b2a43;
  color: #fff;
  font-size: 18px;
}

.dashboard-event-title span {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.dashboard-event-title strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-event-title small {
  color: #205e9a;
  font-size: 10px;
}

.dashboard-event-strip .event-progress {
  min-width: 0;
  padding: 0;
}

.dashboard-event-strip .event-step strong {
  font-size: 10px;
}

.dashboard-event-strip .event-step > span:last-child {
  font-size: 9px;
}

.dashboard-event-next {
  justify-content: flex-end;
}

.dashboard-event-next span {
  color: #7b878d;
  font-size: 9px;
}

.dashboard-event-next strong {
  max-width: 190px;
  color: #38464d;
  font-size: 10px;
  line-height: 1.5;
}

.dashboard-event-next > i {
  color: var(--coral-dark);
  font-size: 17px;
}

.dashboard-foot-actions {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding: 3px 2px 0;
}

.dashboard-foot-actions button {
  border: 0;
  background: transparent;
  color: #6f7c82;
  font-size: 10px;
  font-weight: 750;
}

.dashboard-foot-actions button:hover {
  color: var(--coral-dark);
}

.linked-filter-banner {
  min-height: 72px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  padding: 12px 16px;
  border: 1px solid #9bd5dc;
  border-left: 4px solid #168ea0;
  border-radius: 8px;
  background: #edf8f9;
}

.linked-filter-banner > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #168ea0;
  color: #fff;
  font-size: 18px;
}

.linked-filter-banner strong {
  font-size: 13px;
}

.linked-filter-banner p {
  margin: 4px 0 0;
  color: #61747b;
  font-size: 10px;
}

.linked-filter-banner button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #79bdc6;
  border-radius: 6px;
  background: #fff;
  color: #126f7c;
  font-size: 11px;
  font-weight: 800;
}

.dashboard-linked-target {
  outline: 3px solid rgba(22, 142, 160, .24);
  outline-offset: 3px;
  animation: dashboard-target-pulse 1.1s ease-out 1;
}

@keyframes dashboard-target-pulse {
  0% { outline-color: rgba(22, 142, 160, .78); }
  100% { outline-color: rgba(22, 142, 160, .24); }
}

@media (max-width: 1180px) {
  .dashboard-command-head {
    align-items: flex-start;
  }

  .dashboard-priority-row,
  .dashboard-focus-list .dashboard-priority-row {
    grid-template-columns: 34px minmax(210px, 1fr) 74px minmax(220px, .85fr) 16px;
  }

  .dashboard-focus-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .dashboard-event-strip {
    grid-template-columns: minmax(210px, .7fr) minmax(420px, 1.4fr);
  }

  .dashboard-event-next {
    display: none;
  }
}

@media (max-width: 900px) {
  .dashboard-command-head {
    display: grid;
    gap: 16px;
    padding: 20px;
  }

  .dashboard-command-actions {
    width: 100%;
  }

  .dashboard-primary-action {
    flex: 1;
  }

  .dashboard-priority-row,
  .dashboard-focus-list .dashboard-priority-row {
    grid-template-columns: 34px minmax(0, 1fr) 74px 16px;
  }

  .dashboard-priority-row .cycle-rail {
    display: none;
  }

  .dashboard-approval-detail {
    display: none;
  }

  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-focus-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-event-strip {
    grid-template-columns: 1fr;
  }

  .dashboard-event-strip .event-progress {
    padding-top: 12px;
    border-top: 1px solid #e5e8e9;
  }
}

/* 盈亏平衡驾驶舱：保持原有海军蓝、珊瑚橙与米白品牌风格 */
.break-even-hero {
  margin-bottom: 18px;
  border: 1px solid #ded8cc;
  border-top: 4px solid var(--coral);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 81, 57, .12), transparent 25%),
    linear-gradient(145deg, #fffdf8 0%, #f7f1e7 100%);
  box-shadow: 0 16px 44px rgba(9, 32, 45, .08);
  overflow: hidden;
}

.break-even-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px 18px;
}

.break-even-hero-head > div:first-child > span,
.metric-trend-panel > span,
.metric-campus-panel > header span {
  color: var(--coral);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}

.break-even-hero-head h2,
.metric-campus-panel h2,
.metric-trend-panel h2 {
  margin: 6px 0 4px;
  color: var(--nav);
  font-size: 25px;
  line-height: 1.15;
}

.break-even-hero-head p {
  margin: 0;
  color: #70808a;
  font-size: 13px;
}

.break-even-status {
  min-width: 170px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  column-gap: 10px;
  padding: 13px 16px;
  border: 1px solid #e6dfd2;
  border-radius: 13px;
  background: rgba(255, 255, 255, .72);
}

.break-even-status i {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #fff;
  background: var(--coral);
  font-size: 22px;
  box-shadow: 0 7px 15px rgba(255, 81, 57, .22);
}

.break-even-status.safe i { background: #139f91; }
.break-even-status.warning i { background: #f09a16; }
.break-even-status span { color: #78858d; font-size: 11px; }
.break-even-status strong { color: var(--nav); font-size: 18px; }

.break-even-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #e4ddd2;
  border-bottom: 1px solid #e4ddd2;
  background: rgba(255,255,255,.6);
}

.break-even-kpis > div {
  min-height: 116px;
  padding: 18px 22px;
  border-right: 1px solid #e4ddd2;
}

.break-even-kpis > div:last-child { border-right: 0; }
.break-even-kpis > div.accent { background: var(--nav); }
.break-even-kpis span { display: block; color: #77858d; font-size: 12px; font-weight: 700; }
.break-even-kpis strong { display: block; margin: 8px 0 4px; color: var(--nav); font-size: clamp(24px, 2.4vw, 35px); letter-spacing: -.035em; }
.break-even-kpis small { color: #86939b; font-size: 11px; }
.break-even-kpis .accent span,
.break-even-kpis .accent small { color: rgba(255,255,255,.65); }
.break-even-kpis .accent strong { color: #fff; }

.break-even-rail { padding: 19px 24px 22px; }
.rail-labels { position: relative; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: #849098; font-size: 11px; }
.rail-labels b { color: #f09a16; }
.rail-labels strong { color: #139f91; }
.rail-track { position: relative; height: 14px; border-radius: 999px; background: #e5e0d8; overflow: visible; }
.rail-current { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--coral), #ef9917 55%, #18a293); box-shadow: inset 0 1px rgba(255,255,255,.45); }
.rail-break { position: absolute; z-index: 2; top: -5px; bottom: -5px; width: 3px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 2px #f09a16; }
.break-even-rail p { margin: 12px 0 0; color: #5f6f78; font-size: 12px; }

.metric-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, .7fr);
  gap: 18px;
  margin-bottom: 18px;
}

.metric-campus-panel,
.metric-trend-panel {
  border: 1px solid #ddd7cc;
  border-radius: 14px;
  background: #fffdf8;
  overflow: hidden;
}

.metric-campus-panel > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid #e5dfd5;
}

.metric-campus-panel > header small { color: #87939a; }
.metric-campus-list { display: grid; gap: 12px; padding: 14px; background: #f7f2e9; }
.metric-campus-archive {
  border: 1px solid #dfd8cc;
  border-radius: 13px;
  background: #fffdf9;
  overflow: hidden;
}
.metric-campus-archive > summary {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto 132px;
  align-items: center;
  gap: 20px;
  padding: 17px 19px;
  cursor: pointer;
  list-style: none;
  transition: background .18s ease;
}
.metric-campus-archive > summary::-webkit-details-marker { display: none; }
.metric-campus-archive > summary:hover { background: #fff8ef; }
.metric-campus-archive[open] > summary {
  border-bottom: 1px solid #e8e1d7;
  background: linear-gradient(90deg, rgba(255,81,57,.07), rgba(255,255,255,0));
}
.metric-campus-summary-main { min-width: 0; display: grid; gap: 3px; }
.metric-campus-summary-main > span {
  color: var(--coral);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}
.metric-campus-summary-main > strong {
  overflow: hidden;
  color: var(--nav);
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.metric-campus-summary-main > small { color: #849198; font-size: 10px; }
.metric-campus-summary-kpis { display: flex; align-items: center; gap: 22px; }
.metric-campus-summary-kpis > span { display: grid; gap: 3px; color: #849198; font-size: 9px; }
.metric-campus-summary-kpis strong { color: var(--nav); font-size: 13px; }
.metric-campus-summary-kpis > b,
.metric-row-action b {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  color: #6f7f88;
  background: #ebe8e1;
  font-size: 10px;
}
.metric-campus-summary-kpis > b.safe,
.metric-row-action b.safe { color: #087d71; background: #dff5ef; }
.metric-campus-summary-kpis > b.warning,
.metric-row-action b.warning { color: #bd6207; background: #fff0d9; }
.metric-campus-disclosure {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 7px;
  color: var(--coral-dark);
  font-size: 10px;
  font-weight: 850;
}
.metric-campus-disclosure i { font-size: 15px; transition: transform .18s ease; }
.metric-campus-archive[open] .metric-campus-disclosure i { transform: rotate(180deg); }
.metric-campus-years { display: grid; gap: 12px; padding: 13px; background: #f8f4ed; }
.metric-campus-year {
  border: 1px solid #e2dbd0;
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
}
.metric-campus-year > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 9px 14px;
  border-bottom: 1px solid #ebe5dc;
  background: #fbf8f2;
}
.metric-campus-year > header > div { display: flex; align-items: baseline; gap: 10px; }
.metric-campus-year > header strong { color: var(--nav); font-size: 14px; }
.metric-campus-year > header span,
.metric-campus-year > header small { color: #89949a; font-size: 9px; }
.metric-month-list { display: grid; }
.metric-month-row {
  display: grid;
  grid-template-columns: 76px repeat(4, minmax(92px, 1fr)) 92px;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 10px 14px;
  border-bottom: 1px solid #eee9e1;
}
.metric-month-row:last-child { border-bottom: 0; }
.metric-month-row:hover { background: #fffaf3; }
.metric-month-row.metric-data-warning {
  box-shadow: inset 4px 0 0 #e9412f;
  background: #fff9f7;
}
.metric-month-row > div > span { display: block; color: #87939a; font-size: 9px; }
.metric-month-row > div > strong { display: block; margin-top: 3px; color: var(--nav); font-size: 13px; }
.metric-month-row > div > small { display: block; margin-top: 2px; color: #839097; font-size: 8px; }
.metric-month-label { display: grid; gap: 2px; }
.metric-month-label > strong { margin: 0 !important; color: var(--coral-dark) !important; font-size: 15px !important; }
.metric-month-label > span { color: #849198; font-size: 9px; }
.metric-month-row.missing { min-height: 52px; color: #9aa4a9; background: #fcfaf6; }
.metric-month-row.missing:hover { background: #fff8ef; }
.metric-month-empty { grid-column: 2 / 6; font-size: 10px; }
.metric-month-readonly { justify-self: end; color: #a4adb2; }
.metric-row-action { text-align: right; }
.metric-row-action button { display: block; margin: 8px 0 0 auto; font-size: 11px; }

.metric-trend-panel { padding: 20px; }
.metric-trend-chart { height: 190px; display: flex; align-items: stretch; gap: 12px; margin-top: 24px; padding: 0 5px 0; border-bottom: 1px solid #ddd7cc; }
.trend-column { flex: 1; min-width: 24px; display: grid; grid-template-rows: 1fr 26px; text-align: center; }
.trend-bars { display: flex; align-items: end; justify-content: center; gap: 3px; height: 100%; }
.trend-bars i { width: min(12px, 42%); min-height: 4px; border-radius: 5px 5px 1px 1px; }
.trend-bars i.revenue,
.trend-legend i.revenue { background: var(--coral); }
.trend-bars i.expense,
.trend-legend i.expense { background: var(--nav); }
.trend-column > span { padding-top: 7px; color: #7b8890; font-size: 10px; }
.trend-legend { display: flex; gap: 14px; margin-top: 10px; color: #78868e; font-size: 10px; }
.trend-legend span { display: flex; align-items: center; gap: 5px; }
.trend-legend i { width: 8px; height: 8px; border-radius: 2px; }
.metric-rule { margin-top: 22px; padding: 14px; border-radius: 11px; color: #dce7eb; background: var(--nav); }
.metric-rule strong { color: #fff; font-size: 12px; }
.metric-rule p { margin: 7px 0 0; font-size: 10px; line-height: 1.5; }

.metric-form-shell { display: grid; gap: 16px; }
.metric-form-top { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 15px; border-radius: 13px; background: #f6f1e8; }
.metric-form-tip { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; color: #536771; font-size: 11px; }
.metric-form-tip i { color: var(--coral); font-size: 19px; }
.metric-form-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.metric-form-group { border: 1px solid #e1dbd0; border-radius: 13px; overflow: hidden; background: #fffdf9; }
.metric-form-group header { display: flex; gap: 11px; align-items: center; padding: 13px 15px; border-bottom: 1px solid #e7e1d8; background: #faf6ef; }
.metric-form-group header > span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: #fff; background: var(--nav); font-size: 10px; font-weight: 900; }
.metric-form-group h3 { margin: 0; color: var(--nav); font-size: 15px; }
.metric-form-group p { margin: 3px 0 0; color: #89949a; font-size: 10px; }
.metric-input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.metric-input { display: grid; gap: 5px; }
.metric-input span { color: #62737c; font-size: 10px; font-weight: 700; }
.metric-input input { min-width: 0; }
.metric-input small { color: #87939a; font-size: 9px; line-height: 1.4; }
.metric-input-calculated input {
  color: #0b756f;
  border-color: rgba(18,155,153,.32);
  background: #edf8f6;
  font-weight: 850;
}
.metric-salary-editor {
  margin: 14px 14px 0;
  border: 1px solid #f0c8b9;
  border-radius: 11px;
  background: #fff8f3;
  overflow: hidden;
}
.metric-salary-heading {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #f0d8cd;
}
.metric-salary-heading > div { display: grid; gap: 3px; }
.metric-salary-heading strong { color: var(--nav); font-size: 12px; }
.metric-salary-heading small { color: #866f65; font-size: 9px; line-height: 1.4; }
.metric-salary-heading button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(240,76,47,.35);
  border-radius: 7px;
  background: #fff;
  color: var(--coral-dark);
  font-size: 10px;
  font-weight: 800;
}
.metric-salary-rows { display: grid; }
.metric-salary-row {
  display: grid;
  grid-template-columns: minmax(82px, 1.2fr) 54px minmax(88px, 1fr) 26px;
  align-items: end;
  gap: 7px;
  padding: 10px 11px;
  border-bottom: 1px solid #f1ddd4;
}
.metric-salary-row:last-child { border-bottom: 0; }
.metric-salary-row label { min-width: 0; display: grid; gap: 4px; }
.metric-salary-row label span,
.metric-salary-subtotal span {
  color: #806d65;
  font-size: 8px;
  font-weight: 750;
  white-space: nowrap;
}
.metric-salary-row input {
  min-width: 0;
  height: 34px;
  padding: 0 8px;
  border-radius: 7px;
  background: #fff;
  font-size: 10px;
}
.metric-salary-subtotal {
  grid-column: 1 / -2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 1px;
  padding: 7px 9px;
  border-radius: 7px;
  background: rgba(255,255,255,.72);
}
.metric-salary-subtotal strong { color: var(--coral-dark); font-size: 11px; }
.metric-salary-remove {
  grid-column: 4;
  grid-row: 1 / 2;
  align-self: end;
  width: 26px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #a98779;
  font-size: 17px;
}
.metric-salary-remove:hover { color: #fff; background: var(--coral); }
.metric-salary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  color: #fff;
  background: var(--coral);
}
.metric-salary-total span { font-size: 10px; font-weight: 800; }
.metric-salary-total strong { font-size: 18px; }
.metric-fixed-cost-grid { padding-top: 12px; }
.metric-live-result { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 13px; overflow: hidden; color: #fff; background: var(--nav); }
.metric-live-result > div { padding: 14px 16px; border-right: 1px solid rgba(255,255,255,.12); }
.metric-live-result > div.accent { background: var(--coral); }
.metric-live-result span { display: block; color: rgba(255,255,255,.65); font-size: 10px; }
.metric-live-result strong { display: block; margin-top: 5px; color: #fff; font-size: 20px; }
.metric-live-result p { grid-column: 1 / -1; margin: 0; padding: 10px 16px; color: #dce6ea; background: rgba(0,0,0,.13); font-size: 10px; }

.account-permission-identity {
  grid-template-columns: 46px minmax(160px, 1fr) minmax(160px, 1fr) minmax(130px, .7fr);
}

@media (max-width: 1100px) {
  .metric-command-grid { grid-template-columns: 1fr; }
  .metric-campus-archive > summary { grid-template-columns: minmax(210px, 1fr) auto 120px; }
  .metric-month-row { grid-template-columns: 68px repeat(4, minmax(82px, 1fr)) 86px; gap: 9px; }
}

@media (max-width: 760px) {
  .break-even-hero-head { align-items: stretch; flex-direction: column; padding: 18px; }
  .break-even-status { min-width: 0; }
  .break-even-kpis { grid-template-columns: 1fr 1fr; }
  .break-even-kpis > div { min-height: 104px; padding: 15px; border-bottom: 1px solid #e4ddd2; }
  .break-even-kpis > div:nth-child(2) { border-right: 0; }
  .break-even-kpis > div:nth-last-child(-n+2) { border-bottom: 0; }
  .break-even-kpis strong { font-size: 23px; }
  .break-even-rail { padding-inline: 16px; }
  .metric-campus-panel > header { align-items: start; flex-direction: column; }
  .metric-campus-archive > summary { grid-template-columns: 1fr auto; gap: 12px; }
  .metric-campus-summary-kpis { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
  .metric-campus-disclosure { grid-column: 2; grid-row: 1; }
  .metric-month-row { grid-template-columns: 62px 1fr 1fr; gap: 9px; }
  .metric-month-row > div:nth-child(4),
  .metric-month-row > div:nth-child(5) { display: none; }
  .metric-month-row.missing { grid-template-columns: 62px 1fr auto; }
  .metric-month-empty { grid-column: 2; }
  .metric-row-action { text-align: left; }
  .metric-row-action button { margin: 5px 0 0; }
  .metric-form-groups { grid-template-columns: 1fr; }
  .metric-form-top { grid-template-columns: 1fr; }
  .metric-form-tip { grid-column: auto; }
  .metric-salary-row { grid-template-columns: minmax(105px, 1.3fr) 62px minmax(105px, 1fr) 28px; }
  .metric-live-result { grid-template-columns: 1fr 1fr; }
  .metric-live-result > div:nth-child(2) { border-right: 0; }
  .account-permission-identity { grid-template-columns: 40px 1fr; }
  .account-permission-identity label { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .dashboard-command {
    margin-top: 0;
  }

  .dashboard-command-head {
    padding: 17px 15px;
    border-left-width: 3px;
  }

  .dashboard-command-head h1 {
    font-size: 24px;
    line-height: 1.25;
  }

  .dashboard-command-head p {
    font-size: 11px;
  }

  .dashboard-command-actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
  }

  .dashboard-quick-action,
  .dashboard-primary-action {
    min-width: 0;
    min-height: 43px;
    padding-inline: 11px;
    font-size: 11px;
  }

  .dashboard-priority-row,
  .dashboard-focus-list .dashboard-priority-row {
    min-height: 66px;
    grid-template-columns: 30px minmax(0, 1fr) 62px;
    gap: 10px;
    padding: 10px 13px;
  }

  .dashboard-priority-number {
    width: 27px;
    height: 27px;
    font-size: 11px;
  }

  .dashboard-priority-copy strong {
    font-size: 12px;
    white-space: normal;
  }

  .dashboard-priority-copy small,
  .dashboard-row-arrow {
    display: none;
  }

  .dashboard-priority-state {
    font-size: 10px;
  }

  .summary-strip {
    gap: 8px;
  }

  .summary-item {
    min-height: 104px;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0 9px;
    padding: 12px 10px;
  }

  .summary-icon {
    width: 40px;
    height: 40px;
    font-size: 19px;
  }

  .summary-copy {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .summary-label {
    font-size: 11px;
  }

  .summary-value {
    font-size: 28px;
  }

  .summary-caption {
    display: none;
  }

  .summary-link {
    font-size: 9px;
  }

  .dashboard-section-head {
    min-height: 57px;
    padding: 11px 14px;
  }

  .dashboard-section-head h2 {
    font-size: 17px;
  }

  .dashboard-event-strip {
    padding: 15px 13px;
  }

  .dashboard-event-strip .event-progress {
    overflow-x: auto;
  }

  .dashboard-event-strip .event-step {
    min-width: 64px;
  }

  .linked-filter-banner {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 11px 12px;
  }

  .linked-filter-banner > span {
    width: 34px;
    height: 34px;
  }

  .linked-filter-banner button {
    grid-column: 1 / -1;
  }
}

/* 经营闭环详情：把“当前环节、今天动作、目标与记录”做成一眼可扫的指挥面板。 */
.drawer.cycle-detail-drawer {
  width: min(620px, 100%);
  border-left: 1px solid rgba(8, 31, 50, .18);
  background: #f3f5f7;
  box-shadow: -28px 0 80px rgba(5, 17, 29, .28);
}

.cycle-detail-drawer .drawer-header {
  min-height: 108px;
  align-items: center;
  padding: 24px 26px;
  border-bottom: 0;
  background: #0b1f33;
}

.cycle-detail-drawer .drawer-header h2 {
  color: #fff;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.cycle-detail-drawer .drawer-header p {
  margin-top: 7px;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
}

.cycle-detail-drawer .drawer-header .icon-button {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 20px;
}

.cycle-detail-drawer .drawer-header .icon-button:hover {
  border-color: rgba(255, 255, 255, .52);
  background: rgba(255, 255, 255, .15);
}

.cycle-detail-drawer .drawer-body {
  padding: 0 22px 48px;
  background: #f3f5f7;
  scrollbar-color: #bbc4ca transparent;
}

.cycle-detail-drawer .drawer-section {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid #d9e0e5;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(12, 36, 52, .045);
}

.cycle-detail-drawer .drawer-section > h3,
.cycle-detail-drawer .cycle-action-heading h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 13px;
  color: #122231;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -.015em;
}

.cycle-detail-drawer .drawer-section > h3 > i {
  color: #ef5b34;
  font-size: 20px;
}

.cycle-detail-drawer .cycle-drawer-top {
  margin: 0 -22px;
  padding: 24px 26px 20px;
  border: 0;
  border-bottom: 1px solid #dce2e6;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.cycle-detail-drawer .cycle-rail {
  padding: 0 4px 20px;
}

.cycle-detail-drawer .cycle-step {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #9ba5ad;
}

.cycle-detail-drawer .cycle-step::after {
  top: 17px;
  right: calc(-50% + 21px);
  left: calc(50% + 21px);
  height: 2px;
  background: #dfe3e6;
}

.cycle-detail-drawer .cycle-step > span {
  width: 36px;
  height: 36px;
  border: 2px solid #d7dde1;
  background: #fff;
  color: #7d8891;
  font-size: 11px;
}

.cycle-detail-drawer .cycle-step strong {
  padding: 0;
  background: transparent;
  color: currentColor;
  font-size: 11px;
  font-weight: 750;
}

.cycle-detail-drawer .cycle-step.done {
  color: #087f72;
}

.cycle-detail-drawer .cycle-step.done > span {
  border-color: #148f81;
  background: #148f81;
}

.cycle-detail-drawer .cycle-step.done::after {
  background: #148f81;
}

.cycle-detail-drawer .cycle-step.active {
  color: #ed542d;
}

.cycle-detail-drawer .cycle-step.active > span {
  border: 2px solid #ef5b34;
  background: #fff3ee;
  color: #e94f28;
  box-shadow: 0 0 0 5px rgba(239, 91, 52, .08);
}

.cycle-command-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 17px;
  border: 1px solid #f2bea9;
  border-radius: 13px;
  background: #fff7f2;
}

.cycle-current-number {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ef5b34;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 9px 18px rgba(239, 91, 52, .22);
}

.cycle-command-main {
  min-width: 0;
}

.cycle-detail-drawer .cycle-progress-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1fr);
  gap: 13px;
  margin: 0;
}

.cycle-detail-drawer .cycle-progress-meta span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.cycle-detail-drawer .cycle-progress-meta small {
  color: #7f8b94;
  font-size: 10px;
  font-weight: 700;
}

.cycle-detail-drawer .cycle-progress-meta strong {
  color: #152534;
  font-size: 13px;
  line-height: 1.35;
}

.cycle-detail-drawer .cycle-progress-meta span:first-child strong {
  color: #e84e27;
  font-size: 15px;
}

.cycle-detail-drawer .cycle-jump-button {
  min-height: 44px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 0 13px;
  border-color: #ef5b34;
  border-radius: 9px;
  background: #ef5b34;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  box-shadow: 0 8px 18px rgba(239, 91, 52, .18);
}

.cycle-detail-drawer .cycle-jump-button i {
  font-size: 19px;
}

.cycle-detail-drawer .cycle-jump-button i:last-child {
  justify-self: end;
  font-size: 16px;
}

.cycle-detail-drawer .cycle-jump-button:hover,
.cycle-detail-drawer .cycle-jump-button:focus-visible {
  border-color: #d94722;
  background: #d94722;
}

.cycle-goal-section {
  border-left: 4px solid #138f81 !important;
}

.cycle-detail-drawer .cycle-goal-block {
  gap: 0;
  padding: 0;
  border: 1px solid #d4e1e1;
  border-left: 0;
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
}

.cycle-goal-main {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 16px;
  background: #f1faf8;
}

.cycle-goal-main > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #138f81;
  color: #fff;
  font-size: 21px;
}

.cycle-detail-drawer .cycle-goal-main strong {
  color: #142534;
  font-size: 14px;
  line-height: 1.75;
}

.cycle-goal-meta {
  display: grid;
  gap: 9px;
  padding: 14px 16px;
  border-top: 1px solid #d8e6e4;
}

.cycle-detail-drawer .cycle-goal-meta small {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 10px;
  color: #5d6c75;
  font-size: 11px;
  line-height: 1.65;
}

.cycle-detail-drawer .cycle-goal-meta b {
  color: #147e72;
  font-weight: 800;
}

.cycle-detail-drawer .cycle-responsibility-disclosure {
  padding: 0;
  border-color: #d7dde1;
  background: #fff;
  overflow: hidden;
}

.cycle-detail-drawer .cycle-responsibility-disclosure > summary {
  min-height: 68px;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  padding: 13px 17px;
}

.cycle-detail-drawer .cycle-responsibility-disclosure > summary::after {
  display: none;
}

.cycle-detail-drawer .cycle-responsibility-disclosure > summary > span {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
}

.cycle-detail-drawer .cycle-responsibility-disclosure > summary > span > i {
  grid-row: 1 / 3;
  color: #1b3345;
  font-size: 24px;
}

.cycle-detail-drawer .cycle-responsibility-disclosure > summary b {
  color: #172735;
  font-size: 13px;
}

.cycle-detail-drawer .cycle-responsibility-disclosure > summary small {
  font-size: 10px;
}

.cycle-detail-drawer .cycle-responsibility-disclosure > summary > i {
  color: #344d5f;
  font-size: 17px;
  transition: transform 160ms ease;
}

.cycle-detail-drawer .cycle-responsibility-disclosure[open] > summary > i {
  transform: rotate(180deg);
}

.cycle-detail-drawer .cycle-responsibility-disclosure .task-edit-form {
  padding: 18px;
  background: #f8fafb;
}

.cycle-detail-drawer .cycle-records {
  position: relative;
  gap: 0;
  border-color: #d7dde2;
  border-radius: 11px;
  background: #fff;
}

.cycle-detail-drawer .cycle-records > div {
  position: relative;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  min-height: 82px;
  padding: 15px 16px;
  border-bottom: 1px solid #e1e6e9;
  background: #fff;
}

.cycle-detail-drawer .cycle-records > div:last-child {
  border-bottom: 0;
}

.cycle-detail-drawer .cycle-records > div > span {
  width: 36px;
  height: 36px;
  border: 1px solid #d5dce0;
  border-radius: 50%;
  background: #f4f6f7;
  color: #87929a;
  font-size: 10px;
}

.cycle-detail-drawer .cycle-records section {
  min-width: 0;
}

.cycle-detail-drawer .cycle-records section header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cycle-detail-drawer .cycle-records section header strong {
  color: #172735;
  font-size: 13px;
}

.cycle-detail-drawer .cycle-records section header em {
  padding: 4px 8px;
  border-radius: 12px;
  background: #f0f2f3;
  color: #77838b;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.cycle-detail-drawer .cycle-records p {
  margin-top: 6px;
  color: #53636e;
  font-size: 11px;
  line-height: 1.6;
}

.cycle-detail-drawer .cycle-records small {
  color: #7c8891;
  font-size: 10px;
}

.cycle-detail-drawer .cycle-records > div.is-done > span {
  border-color: #138f81;
  background: #138f81;
  color: #fff;
}

.cycle-detail-drawer .cycle-records > div.is-done section header em {
  background: #def3ef;
  color: #087f72;
}

.cycle-detail-drawer .cycle-records > div.is-current {
  background: #fff7f2;
  box-shadow: inset 4px 0 #ef5b34;
}

.cycle-detail-drawer .cycle-records > div.is-current > span {
  border-color: #ef5b34;
  background: #ef5b34;
  color: #fff;
  box-shadow: 0 6px 14px rgba(239, 91, 52, .18);
}

.cycle-detail-drawer .cycle-records > div.is-current section header strong {
  color: #e84f27;
}

.cycle-detail-drawer .cycle-records > div.is-current section header em {
  background: #ffe1d6;
  color: #d94722;
}

.cycle-detail-drawer .cycle-action-form {
  gap: 17px;
  padding: 20px;
  background: #fff;
}

.cycle-action-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.cycle-action-heading > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #ef5b34;
  color: #fff;
  font-size: 21px;
}

.cycle-detail-drawer .cycle-action-heading h3 {
  margin-bottom: 4px;
}

.cycle-detail-drawer .cycle-action-heading .form-help {
  margin: 0;
  color: #687782;
  font-size: 11px;
  line-height: 1.65;
}

.cycle-detail-drawer .cycle-action-form > .form-grid {
  gap: 0;
  border: 1px solid #d8dee2;
  border-radius: 11px;
  overflow: hidden;
}

.cycle-detail-drawer .cycle-action-form .field {
  position: relative;
  gap: 9px;
  padding: 16px 16px 16px 58px;
  border-bottom: 1px solid #e0e5e8;
  background: #fff;
  counter-increment: cycle-form-field;
}

.cycle-detail-drawer .cycle-action-form > .form-grid {
  counter-reset: cycle-form-field;
}

.cycle-detail-drawer .cycle-action-form .field:last-child {
  border-bottom: 0;
}

.cycle-detail-drawer .cycle-action-form .field::before {
  content: "0" counter(cycle-form-field);
  position: absolute;
  top: 16px;
  left: 16px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf4f5;
  color: #137f75;
  font-size: 9px;
  font-weight: 900;
}

.cycle-detail-drawer .cycle-action-form .field label {
  color: #182936;
  font-size: 12px;
}

.cycle-detail-drawer .cycle-action-form input,
.cycle-detail-drawer .cycle-action-form textarea {
  border-color: #c9d1d6;
  background: #fbfcfd;
  font-size: 13px;
}

.cycle-detail-drawer .cycle-action-form textarea {
  min-height: 88px;
}

.cycle-detail-drawer .cycle-progress-actions {
  position: sticky;
  bottom: -48px;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr);
  gap: 10px;
  margin: 2px -20px -20px;
  padding: 14px 20px;
  border-top: 1px solid #d6dde1;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -12px 26px rgba(10, 30, 44, .08);
  backdrop-filter: blur(10px);
}

.cycle-detail-drawer .cycle-progress-actions button {
  min-height: 48px;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}

.cycle-detail-drawer .cycle-progress-actions .secondary-button {
  border-color: #aab6bd;
  background: #fff;
  color: #192c3b;
}

.cycle-detail-drawer .cycle-progress-actions .primary-button {
  border-color: #ef5b34;
  background: #ef5b34;
  color: #fff;
  box-shadow: 0 9px 19px rgba(239, 91, 52, .2);
}

.cycle-detail-drawer .cycle-progress-actions i {
  font-size: 18px;
}

@media (max-width: 720px) {
  .drawer.cycle-detail-drawer {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
  }

  .cycle-detail-drawer .drawer-header {
    min-height: 90px;
    padding: 18px 16px;
  }

  .cycle-detail-drawer .drawer-header h2 {
    font-size: 22px;
  }

  .cycle-detail-drawer .drawer-body {
    padding: 0 12px 92px;
  }

  .cycle-detail-drawer .cycle-drawer-top {
    margin: 0 -12px;
    padding: 18px 14px 16px;
  }

  .cycle-detail-drawer .cycle-rail {
    padding: 0 0 17px;
  }

  .cycle-detail-drawer .cycle-step > span {
    width: 32px;
    height: 32px;
    font-size: 9px;
  }

  .cycle-detail-drawer .cycle-step::after {
    top: 15px;
    right: calc(-50% + 18px);
    left: calc(50% + 18px);
  }

  .cycle-detail-drawer .cycle-step strong {
    font-size: 10px;
  }

  .cycle-command-card {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 11px;
    padding: 13px;
  }

  .cycle-current-number {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .cycle-detail-drawer .cycle-progress-meta {
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
  }

  .cycle-detail-drawer .cycle-progress-meta span:last-child {
    grid-column: 1 / -1;
  }

  .cycle-detail-drawer .cycle-jump-button {
    min-height: 42px;
    font-size: 12px;
  }

  .cycle-detail-drawer .drawer-section {
    margin-top: 11px;
    padding: 16px;
  }

  .cycle-detail-drawer .cycle-goal-meta small {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .cycle-detail-drawer .cycle-records > div {
    min-height: 76px;
    padding: 13px;
  }

  .cycle-detail-drawer .cycle-action-form .field {
    padding: 14px 13px 14px 52px;
  }

  .cycle-detail-drawer .cycle-action-form .field::before {
    top: 14px;
    left: 13px;
  }

  .cycle-detail-drawer .cycle-progress-actions {
    bottom: -92px;
    grid-template-columns: 1fr;
    margin: 0 -16px -16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }
}

/* Role-based working paths: keep the established orange operations style,
   while making the next action obvious for leaders, managers and employees. */
.leader-route,
.personal-route {
  display: grid;
  grid-template-columns: minmax(230px, 1.15fr) repeat(3, minmax(180px, 1fr));
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--coral);
  background: var(--surface);
  overflow: hidden;
}

.leader-route-title,
.personal-route .route-title {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 17px 20px;
  background: linear-gradient(135deg, rgba(255, 85, 61, .08), rgba(255, 255, 255, 0));
}

.leader-route-title span,
.personal-route .route-title span {
  color: var(--coral-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.leader-route-title strong,
.personal-route .route-title strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.leader-route > button,
.personal-route > button {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 15px 16px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.leader-route > button:hover,
.leader-route > button:focus-visible,
.personal-route > button:hover,
.personal-route > button:focus-visible {
  background: #fff7f3;
  outline: none;
}

.leader-route > button > b,
.personal-route > button > b {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 12px;
  box-shadow: 0 5px 12px rgba(235, 69, 42, .18);
}

.leader-route > button span,
.personal-route > button span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.leader-route > button strong,
.personal-route > button strong {
  font-size: 12px;
}

.leader-route > button small,
.personal-route > button small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-route > button > i {
  color: var(--coral);
}

.personal-route {
  grid-template-columns: minmax(210px, .9fr) repeat(3, minmax(170px, 1fr));
}

.employee-route {
  border-left-color: var(--teal);
}

.employee-route .route-title {
  background: linear-gradient(135deg, rgba(12, 156, 146, .08), rgba(255, 255, 255, 0));
}

.employee-route .route-title span {
  color: var(--teal-dark);
}

.employee-route > button > b {
  background: var(--teal);
  box-shadow: 0 5px 12px rgba(12, 156, 146, .16);
}

.mine-summary > button {
  position: relative;
  min-height: 94px;
  display: block;
  padding: 17px 20px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.mine-summary > button.attention {
  background: #fff9ee;
}

.mine-summary > button.danger {
  background: #fff5f3;
}

.mine-summary > button + button::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 1px;
  background: var(--line);
}

.mine-summary > button span {
  display: block;
  color: var(--ink-2);
  font-size: 12px;
}

.mine-summary > button strong {
  display: inline-block;
  margin-top: 7px;
  color: var(--coral-dark);
  font-size: 34px;
}

.mine-summary > button small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 11px;
}

.mine-summary > button em {
  position: absolute;
  right: 18px;
  bottom: 17px;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.mine-summary > button:hover,
.mine-summary > button:focus-visible {
  background: #fff;
  box-shadow: inset 0 -2px 0 var(--coral);
  outline: none;
}

.mine-summary > button.danger strong {
  color: var(--red);
}

@media (max-width: 1120px) {
  .leader-route,
  .personal-route {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .leader-route-title,
  .personal-route .route-title {
    grid-column: 1 / -1;
    min-height: 68px;
  }

  .leader-route > button:first-of-type,
  .personal-route > button:first-of-type {
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .leader-route,
  .personal-route {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }

  .leader-route-title,
  .personal-route .route-title {
    grid-column: auto;
    padding: 14px 16px;
  }

  .leader-route > button,
  .personal-route > button,
  .leader-route > button:first-of-type,
  .personal-route > button:first-of-type {
    min-height: 64px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .mine-summary > button:nth-child(3)::before {
    display: none;
  }

  .mine-summary > button:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }
}

/* 角色入口最终版：严格沿用 #discover 的四位轮转、650ms 动画和比例 */
.role-lobby[data-role-lobby] {
  --lobby-bg: #f4845f;
  --lobby-panel: #f79b7f;
  --lobby-cream: #fffaf4;
  --lobby-ink: #15202b;
  background: var(--lobby-bg);
  background-color: var(--lobby-bg);
  color: var(--lobby-cream);
  transition: background-color 650ms cubic-bezier(.4, 0, .2, 1);
}

.role-lobby[data-role-lobby]::before,
.role-lobby[data-role-lobby]::after {
  display: none;
}

.role-lobby[data-role-lobby] .role-lobby-header {
  min-height: 72px;
  padding: 20px clamp(24px, 3.4vw, 56px);
  border-bottom: 0;
}

.role-lobby[data-role-lobby] .role-lobby-brand strong,
.role-lobby[data-role-lobby] .role-lobby-brand small {
  color: var(--lobby-cream);
}

.role-lobby[data-role-lobby] .role-lobby-brand strong {
  font-size: 15px;
  letter-spacing: .02em;
}

.role-lobby[data-role-lobby] .role-lobby-brand small {
  opacity: .72;
}

.role-lobby[data-role-lobby] .role-lobby-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.role-lobby[data-role-lobby] .role-lobby-actions button {
  min-height: 35px;
  padding: 0 15px;
  border: 1px solid rgba(255, 250, 244, .58);
  border-radius: 999px;
  background: rgba(255, 250, 244, .08);
  color: var(--lobby-cream);
  backdrop-filter: blur(10px);
}

.role-lobby[data-role-lobby] .role-lobby-actions button:hover,
.role-lobby[data-role-lobby] .role-lobby-actions button:focus-visible {
  border-color: var(--lobby-cream);
  background: var(--lobby-cream);
  color: var(--lobby-ink);
}

.role-lobby[data-role-lobby] .role-lobby-word {
  inset: 10vh 0 auto;
  z-index: 0;
  color: rgba(255, 250, 244, .94);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(138px, 20.5vw, 330px);
  font-weight: 900;
  line-height: .78;
  letter-spacing: -.065em;
  transform: scaleX(1.7);
  -webkit-text-stroke: 0;
}

.role-lobby[data-role-lobby] .role-stage {
  min-height: calc(100svh - 72px);
}

.role-lobby[data-role-lobby] .role-carousel {
  inset: 0;
  overflow: hidden;
}

.role-lobby[data-role-lobby] .role-character {
  bottom: 12%;
  width: auto;
  height: 28%;
  aspect-ratio: 3 / 4;
  transform: translateX(-50%) scale(1);
  transition:
    transform 650ms cubic-bezier(.4, 0, .2, 1),
    filter 650ms cubic-bezier(.4, 0, .2, 1),
    opacity 650ms cubic-bezier(.4, 0, .2, 1),
    left 650ms cubic-bezier(.4, 0, .2, 1),
    bottom 650ms cubic-bezier(.4, 0, .2, 1),
    height 650ms cubic-bezier(.4, 0, .2, 1);
}

.role-lobby[data-role-lobby] .role-character.center {
  z-index: 20;
  left: 50%;
  bottom: 0;
  height: 92%;
  opacity: 1;
  filter: blur(0);
  transform: translateX(-50%) translateY(8%) scale(1.15);
}

.role-lobby[data-role-lobby] .role-character.left {
  z-index: 10;
  left: 30%;
  opacity: .85;
  filter: blur(2px);
  transform: translateX(-50%) scale(1);
}

.role-lobby[data-role-lobby] .role-character.right {
  z-index: 10;
  left: 70%;
  opacity: .85;
  filter: blur(2px);
  transform: translateX(-50%) scale(1);
}

.role-lobby[data-role-lobby] .role-character.back {
  z-index: 5;
  left: 50%;
  bottom: 12%;
  height: 22%;
  opacity: 1;
  filter: blur(4px);
  transform: translateX(-50%) scale(1);
}

.role-lobby[data-role-lobby] .role-character.hidden,
.role-lobby[data-role-lobby] .role-character.far-left,
.role-lobby[data-role-lobby] .role-character.far-right {
  z-index: 1;
  left: 50%;
  height: 18%;
  opacity: 0;
  filter: blur(5px);
  pointer-events: none;
  transform: translateX(-50%) scale(.8);
}

img.member-figure {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  background: none;
  user-select: none;
  -webkit-user-drag: none;
}

.role-lobby[data-role-lobby] .role-character .member-figure {
  filter: drop-shadow(0 20px 18px rgba(65, 30, 22, .16));
}

.role-lobby[data-role-lobby] .role-character-shadow {
  bottom: 1%;
  background: rgba(61, 30, 24, .17);
}

.role-lobby[data-role-lobby] .role-character:hover.center,
.role-lobby[data-role-lobby] .role-character:focus-visible.center {
  transform: translateX(-50%) translateY(7.5%) scale(1.18);
}

.role-lobby[data-role-lobby] .role-stage-copy {
  top: auto;
  bottom: 175px;
  width: min(300px, 26vw);
  color: var(--lobby-cream);
}

.role-lobby[data-role-lobby] .role-stage-copy > span {
  opacity: .72;
}

.role-lobby[data-role-lobby] .role-stage-copy h1 {
  margin: 9px 0 5px;
  font-size: clamp(35px, 4.4vw, 66px);
}

.role-lobby[data-role-lobby] .role-stage-copy strong {
  display: block;
  font-size: 12px;
}

.role-lobby[data-role-lobby] .role-stage-copy p {
  max-width: 280px;
  margin-top: 8px;
  color: rgba(255, 250, 244, .78);
  line-height: 1.65;
}

.role-lobby[data-role-lobby] .role-arrow {
  bottom: 24px;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, .96);
  background: linear-gradient(145deg, #fffefa 0%, #f8f1e8 50%, #eadfd2 100%);
  color: var(--lobby-bg);
  font-size: 24px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .85);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, .96),
    inset 0 -4px 6px rgba(95, 64, 53, .13),
    0 4px 0 rgba(70, 32, 31, .17),
    0 10px 19px rgba(70, 32, 31, .14);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.role-lobby[data-role-lobby] .role-arrow.previous {
  left: clamp(24px, 4.2vw, 96px);
}

.role-lobby[data-role-lobby] .role-arrow.next {
  left: calc(clamp(24px, 4.2vw, 96px) + 80px);
}

.role-lobby[data-role-lobby] .role-arrow:hover,
.role-lobby[data-role-lobby] .role-arrow:focus-visible {
  background: linear-gradient(145deg, #fff 0%, #fffaf3 52%, #eee2d5 100%);
  color: var(--lobby-bg);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 1),
    inset 0 -4px 6px rgba(95, 64, 53, .12),
    0 6px 0 rgba(70, 32, 31, .18),
    0 14px 22px rgba(70, 32, 31, .17);
  transform: translateY(-2px) scale(1.04);
}

.role-lobby[data-role-lobby] .role-arrow:active {
  box-shadow:
    inset 0 3px 7px rgba(95, 64, 53, .17),
    0 1px 0 rgba(70, 32, 31, .18),
    0 5px 10px rgba(70, 32, 31, .12);
  transform: translateY(3px) scale(.98);
}

.role-lobby[data-role-lobby] .role-arrow i {
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .8));
  transition: transform 180ms ease;
}

.role-lobby[data-role-lobby] .role-arrow:active i {
  transform: scale(.88);
}

.role-lobby[data-role-lobby] .role-lobby-hint {
  position: absolute;
  z-index: 30;
  right: clamp(30px, 4vw, 70px);
  bottom: 93px;
  color: rgba(255, 250, 244, .7);
  font-size: 9px;
  letter-spacing: .06em;
}

.role-lobby[data-role-lobby] .role-discover {
  position: absolute;
  z-index: 30;
  right: clamp(30px, 4vw, 70px);
  bottom: 24px;
  width: 330px;
  min-height: 56px;
  margin: 0;
  padding: 0 18px 0 23px;
  border: 1px solid rgba(255, 255, 255, .96);
  background: linear-gradient(145deg, #fffefa 0%, #f8f1e8 55%, #eadfd2 100%);
  color: var(--lobby-bg);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .82);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, .98),
    inset 0 -4px 7px rgba(95, 64, 53, .13),
    0 5px 0 rgba(70, 32, 31, .17),
    0 13px 24px rgba(70, 32, 31, .15);
}

.role-lobby[data-role-lobby] .role-discover span {
  white-space: nowrap;
}

.role-lobby[data-role-lobby] .role-discover i {
  width: 43px;
  height: 43px;
  display: grid;
  flex: 0 0 43px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, .38), transparent 36%),
    linear-gradient(145deg, var(--lobby-panel), var(--lobby-bg));
  color: var(--lobby-cream);
  text-shadow: none;
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, .28),
    inset 0 -4px 6px rgba(70, 32, 31, .13),
    0 3px 0 rgba(70, 32, 31, .17),
    0 7px 12px rgba(70, 32, 31, .14);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.role-lobby[data-role-lobby] .role-discover:hover,
.role-lobby[data-role-lobby] .role-discover:focus-visible {
  background: linear-gradient(145deg, #fff 0%, #fffaf3 55%, #eee2d5 100%);
  color: var(--lobby-bg);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 1),
    inset 0 -4px 7px rgba(95, 64, 53, .12),
    0 7px 0 rgba(70, 32, 31, .18),
    0 17px 28px rgba(70, 32, 31, .18);
  transform: translateY(-2px);
}

.role-lobby[data-role-lobby] .role-discover:hover i,
.role-lobby[data-role-lobby] .role-discover:focus-visible i {
  transform: translateX(3px) translateY(-1px);
}

.role-lobby[data-role-lobby] .role-discover:active {
  box-shadow:
    inset 0 3px 7px rgba(95, 64, 53, .17),
    0 1px 0 rgba(70, 32, 31, .18),
    0 5px 11px rgba(70, 32, 31, .12);
  transform: translateY(3px);
}

.role-lobby[data-role-lobby] .role-discover:active i {
  box-shadow:
    inset 0 3px 6px rgba(70, 32, 31, .17),
    0 1px 0 rgba(70, 32, 31, .15);
  transform: translateX(2px) translateY(2px) scale(.96);
}

body .member-button > img.topbar-member-figure {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--coral-soft);
  object-fit: contain;
  object-position: center bottom;
  filter: none;
}

@media (max-width: 720px) {
  .role-lobby[data-role-lobby] .role-lobby-header {
    min-height: 64px;
    padding: 11px 15px;
  }

  .role-lobby[data-role-lobby] .role-lobby-actions button {
    width: 36px;
    min-height: 36px;
    padding: 0;
    font-size: 0;
  }

  .role-lobby[data-role-lobby] .role-lobby-actions button i {
    font-size: 17px;
  }

  .role-lobby[data-role-lobby] .role-lobby-word {
    inset: 18vh auto auto 50%;
    font-size: 32vw;
    transform: translateX(-50%);
  }

  .role-lobby[data-role-lobby] .role-stage {
    min-height: calc(100svh - 64px);
  }

  .role-lobby[data-role-lobby] .role-character {
    bottom: 32%;
    height: 16%;
  }

  .role-lobby[data-role-lobby] .role-character.center {
    left: 50%;
    bottom: 22%;
    height: 60%;
    transform: translateX(-50%) scale(1.25);
  }

  .role-lobby[data-role-lobby] .role-character.left {
    left: 20%;
  }

  .role-lobby[data-role-lobby] .role-character.right {
    left: 80%;
  }

  .role-lobby[data-role-lobby] .role-character.back {
    left: 50%;
    bottom: 32%;
    height: 13%;
  }

  .role-lobby[data-role-lobby] .role-character:hover.center,
  .role-lobby[data-role-lobby] .role-character:focus-visible.center {
    transform: translateX(-50%) scale(1.27);
  }

  .role-lobby[data-role-lobby] .role-stage-copy {
    top: auto;
    bottom: 88px;
    width: 150px;
  }

  .role-lobby[data-role-lobby] .role-stage-copy h1 {
    margin: 5px 0 3px;
    font-size: 25px;
  }

  .role-lobby[data-role-lobby] .role-stage-copy strong {
    font-size: 9px;
  }

  .role-lobby[data-role-lobby] .role-stage-copy p {
    display: none;
  }

  .role-lobby[data-role-lobby] .role-arrow {
    bottom: 24px;
    width: 48px;
    height: 48px;
  }

  .role-lobby[data-role-lobby] .role-arrow.previous {
    left: 16px;
  }

  .role-lobby[data-role-lobby] .role-arrow.next {
    left: 74px;
  }

  .role-lobby[data-role-lobby] .role-lobby-hint {
    right: 16px;
    bottom: 76px;
    max-width: 180px;
    text-align: right;
  }

  .role-lobby[data-role-lobby] .role-discover {
    right: 12px;
    bottom: 24px;
    width: 190px;
    min-height: 48px;
    gap: 10px;
    padding: 0 10px 0 14px;
    font-size: 20px;
  }
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  background: #fff;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  min-width: 320px;
  min-height: 100vh;
  background: #fff;
  color: var(--ink);
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

.startup {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  background: #fff;
  color: var(--ink);
}

.startup-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--teal);
  color: white;
  font-weight: 800;
  font-size: 20px;
}

.startup span {
  color: var(--muted);
  font-size: 13px;
}

.access-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  background:
    radial-gradient(circle at 12% 18%, rgba(46, 192, 173, 0.16), transparent 30%),
    linear-gradient(135deg, #052a39 0%, #07394a 52%, #062f3f 100%);
}

.access-card {
  width: min(1040px, 100%);
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 17, 25, 0.28);
  overflow: hidden;
}

.access-brand {
  grid-column: 1 / -1;
  height: 74px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line-soft);
  background: white;
}

.access-brand .brand-mark {
  border-color: var(--line);
  background: var(--nav);
}

.access-brand strong,
.access-brand small {
  display: block;
}

.access-brand strong {
  font-size: 15px;
}

.access-brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.access-intro {
  display: grid;
  align-content: center;
  padding: 56px;
  background: linear-gradient(150deg, #f0fbf9, #fff 62%);
}

.access-intro h1 {
  margin: 0;
  color: var(--nav);
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.14;
  letter-spacing: -0.055em;
}

.access-intro > p {
  max-width: 560px;
  margin: 24px 0 38px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.9;
}

.access-loop {
  display: flex;
  align-items: stretch;
  gap: 2px;
}

.access-loop > div {
  flex: 1;
  min-width: 0;
  padding: 13px 10px;
  border-top: 2px solid var(--line);
}

.access-loop > div:first-child {
  border-color: var(--teal);
}

.access-loop span,
.access-loop strong {
  display: block;
}

.access-loop span {
  color: var(--teal);
  font-size: 9px;
  font-weight: 800;
}

.access-loop strong {
  margin-top: 5px;
  font-size: 11px;
}

.access-form {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 50px 46px;
  border-left: 1px solid var(--line-soft);
  background: white;
}

.access-form h2,
.access-form p {
  margin: 0;
}

.access-form h2 {
  font-size: 24px;
}

.access-form p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.access-form label {
  display: grid;
  gap: 7px;
}

.access-form label > span {
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
}

.access-form input,
.access-form select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  outline: none;
}

.access-form input:focus,
.access-form select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.access-submit {
  min-height: 46px;
  margin-top: 3px;
}

.access-safe {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
}

.access-error {
  padding: 10px 12px;
  border: 1px solid #efb6b6;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 11px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  background: var(--nav);
  color: #eef8f8;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 20px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: #7fe4d7;
  font-size: 18px;
  font-weight: 800;
}

.brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: rgba(238, 248, 248, 0.65);
  font-size: 11px;
}

.demo-note {
  width: max-content;
  margin: 0 8px 12px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 190, 87, 0.36);
  border-radius: 6px;
  color: #ffc96f;
  font-size: 11px;
}

.nav {
  display: grid;
  gap: 5px;
}

.nav-group-label {
  margin: 12px 12px 2px;
  color: rgba(238, 248, 248, 0.44);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nav-group-label:first-child {
  margin-top: 2px;
}

.nav-button {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(238, 248, 248, 0.76);
  cursor: pointer;
  text-align: left;
  transition: 160ms ease;
}

.nav-button:hover,
.nav-button:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  outline: none;
}

.nav-button.active {
  background: var(--teal);
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav-button.personal-featured {
  min-height: 58px;
  margin-bottom: 6px;
  background: rgba(24, 173, 154, 0.16);
  color: white;
  box-shadow: inset 0 0 0 1px rgba(126, 228, 215, 0.24);
}

.nav-button.personal-featured:hover,
.nav-button.personal-featured:focus-visible {
  background: rgba(24, 173, 154, 0.24);
}

.nav-button.personal-featured.active {
  background: var(--teal);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.18);
}

.nav-personal-label {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
}

.nav-personal-label strong {
  font-size: 13px;
}

.nav-personal-label small {
  color: rgba(238, 248, 248, 0.62);
  font-size: 9px;
}

.nav-work-count {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 10px;
}

.nav-button.personal-featured.active .nav-work-count {
  background: white;
  color: var(--teal-dark);
}

.nav-icon,
.mobile-nav-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 8px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-footer strong,
.sidebar-footer small {
  display: block;
}

.sidebar-footer strong {
  font-size: 13px;
}

.sidebar-footer small {
  margin-top: 4px;
  color: rgba(238, 248, 248, 0.58);
  font-size: 11px;
}

.main {
  min-width: 0;
  background: #fff;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.member-button {
  min-width: 132px;
  height: 38px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: 18px 14px;
  align-items: center;
  column-gap: 8px;
  padding: 3px 10px 3px 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  text-align: left;
  cursor: pointer;
}

.member-button > span {
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--nav);
  color: white;
  font-size: 11px;
  font-weight: 800;
}

.member-button strong,
.member-button small {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.member-button strong {
  align-self: end;
  font-size: 10px;
}

.member-button small {
  align-self: start;
  color: var(--muted);
  font-size: 8px;
}

.mobile-menu {
  display: none;
}

.role-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 13px;
}

.role-switcher select {
  min-height: 36px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
}

.role-switcher.personal-role strong {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid #9ed9d2;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 12px;
}

.topbar-spacer {
  flex: 1;
}

.sync-state {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.sync-state:hover,
.sync-state:focus-visible {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.sync-state.saving .sync-dot {
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-soft);
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: 160ms ease;
}

.primary-button {
  border: 1px solid var(--teal);
  background: var(--teal);
  color: white;
}

.primary-button:hover {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.secondary-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.secondary-button:hover {
  border-color: #aebec6;
  background: var(--surface-soft);
}

.ghost-button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--teal-dark);
}

.ghost-button:hover {
  background: var(--teal-soft);
}

.danger-button {
  border: 1px solid #efb6b6;
  background: white;
  color: var(--red);
}

.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  cursor: pointer;
}

.content {
  width: min(1530px, 100%);
  margin: 0 auto;
  padding: 26px 28px 90px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(24px, 2vw, 31px);
  line-height: 1.24;
  letter-spacing: -0.035em;
}

.page-head p {
  max-width: 700px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
}

.summary-item {
  position: relative;
  min-height: 92px;
  padding: 19px 20px 16px;
}

.summary-item + .summary-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: var(--line);
}

.summary-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 12px;
}

.summary-signal {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--teal);
}

.summary-signal.blue { background: var(--blue); }
.summary-signal.amber { background: var(--amber); }
.summary-signal.red { background: var(--red); }

.summary-value {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 760;
  line-height: 1;
}

.summary-value small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.summary-caption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.panel-header {
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-header h2,
.panel-header h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.015em;
}

.panel-subtitle {
  color: var(--muted);
  font-size: 11px;
}

.panel-body {
  padding: 18px;
}

.lifecycle {
  display: grid;
  grid-template-columns: repeat(9, minmax(70px, 1fr));
  gap: 0;
  padding: 4px 2px 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.stage-button {
  position: relative;
  min-width: 70px;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 4px 6px 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
}

.stage-button::after {
  content: "";
  position: absolute;
  top: 22px;
  left: calc(50% + 22px);
  width: calc(100% - 44px);
  border-top: 1px dashed #b9c7cd;
}

.stage-button:last-child::after {
  display: none;
}

.stage-node {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd7dc;
  border-radius: 50%;
  background: white;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
  transition: 160ms ease;
}

.stage-button:hover .stage-node,
.stage-button:focus-visible .stage-node {
  border-color: var(--teal);
  color: var(--teal);
}

.stage-button.active {
  color: var(--teal-dark);
}

.stage-button.active .stage-node {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
  box-shadow: 0 0 0 5px var(--teal-soft);
}

.stage-name {
  color: var(--ink-2);
  font-size: 12px;
  white-space: nowrap;
}

.stage-count {
  color: var(--muted);
  font-size: 11px;
}

.stage-button.active .stage-name,
.stage-button.active .stage-count {
  color: var(--teal-dark);
}

.stage-detail {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.stage-detail-item {
  padding: 12px 14px;
  border-left: 2px solid var(--line);
  background: var(--surface-soft);
}

.stage-detail-item:first-child {
  border-left-color: var(--teal);
}

.stage-detail-item label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}

.stage-detail-item strong,
.stage-detail-item span {
  display: block;
  font-size: 12px;
  line-height: 1.6;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.toolbar select,
.toolbar input,
.search-input {
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 12px;
}

.toolbar input,
.search-input {
  min-width: 180px;
}

.toolbar-spacer {
  flex: 1;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  background: white;
}

.data-table th {
  height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  min-height: 54px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.45;
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr {
  cursor: pointer;
  transition: 120ms ease;
}

.data-table tbody tr:hover {
  background: #fbfdfd;
}

.task-title {
  min-width: 190px;
  color: var(--ink);
  font-weight: 650;
}

.task-meta {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.recurring-task-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 20px;
  margin-left: 7px;
  padding: 2px 7px;
  border: 1px solid #96d8ce;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 9px;
  font-weight: 750;
  line-height: 1.3;
  vertical-align: middle;
}

.repeat-task-note {
  display: grid;
  gap: 3px;
  margin-top: 9px;
  padding: 10px 12px;
  border-left: 3px solid var(--teal);
  background: var(--teal-soft);
}

.repeat-task-note strong {
  color: var(--teal-dark);
  font-size: 10px;
}

.repeat-task-note span {
  color: var(--ink-2);
  font-size: 9px;
  line-height: 1.55;
}

.task-result-trigger {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #9ed9d2;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: 120ms ease;
}

.task-result-trigger:hover,
.task-result-trigger:focus-visible {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.task-result-trigger.reviewing {
  border-color: #b7d5f1;
  background: var(--blue-soft);
  color: #27669f;
}

.task-result-trigger.done {
  border-color: #addac5;
  background: var(--green-soft);
  color: var(--green);
}

.status-select {
  min-height: 32px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink-2);
  font-size: 11px;
}

.status-select:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink-2);
  font-size: 10px;
  white-space: nowrap;
}

.tag.teal { border-color: #9ed9d2; background: var(--teal-soft); color: var(--teal-dark); }
.tag.blue { border-color: #b7d5f1; background: var(--blue-soft); color: #27669f; }
.tag.amber { border-color: #f0c98b; background: var(--amber-soft); color: #a85f00; }
.tag.red { border-color: #efb5b5; background: var(--red-soft); color: var(--red); }
.tag.green { border-color: #addac5; background: var(--green-soft); color: var(--green); }

.owner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.avatar {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 10px;
  font-weight: 760;
}

.avatar.amber { background: #b77417; }
.avatar.blue { background: #3b75ad; }
.avatar.slate { background: #607583; }

.due.overdue {
  color: var(--red);
  font-weight: 650;
}

.right-rail {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.risk-list {
  display: grid;
}

.risk-row {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.risk-row:last-child {
  border-bottom: 0;
}

.risk-row-top {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.risk-level {
  min-width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 800;
}

.risk-level.medium {
  background: var(--amber);
}

.risk-level.low {
  background: var(--blue);
}

.risk-content {
  min-width: 0;
  flex: 1;
}

.risk-content strong {
  display: block;
  font-size: 12px;
  line-height: 1.45;
}

.risk-content p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.risk-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 10px;
}

.text-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.event-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 3px 12px;
}

.event-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--muted);
  text-align: center;
}

.event-step::after {
  content: "";
  position: absolute;
  top: 8px;
  left: calc(50% + 8px);
  width: calc(100% - 16px);
  border-top: 2px solid #cfd9dd;
}

.event-step:last-child::after {
  display: none;
}

.event-dot {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 2px solid #aab8bf;
  border-radius: 50%;
  background: white;
}

.event-step.done,
.event-step.active {
  color: var(--teal-dark);
}

.event-step.done .event-dot {
  border-color: var(--teal);
  background: var(--teal);
}

.event-step.done::after {
  border-color: var(--teal);
}

.event-step.active .event-dot {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-soft);
}

.event-step strong {
  font-size: 10px;
}

.event-step span {
  font-size: 9px;
}

.event-current {
  padding: 13px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--surface-soft);
}

.event-current strong {
  font-size: 12px;
}

.event-current ul {
  margin: 8px 0 0;
  padding-left: 17px;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.75;
}

.list-page {
  display: grid;
  gap: 18px;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.project-row {
  min-height: 130px;
  padding: 18px;
  border: 0;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: white;
  text-align: left;
  cursor: pointer;
  transition: 160ms ease;
}

.project-row:nth-child(2n) {
  border-right: 0;
}

.project-row:hover {
  background: #fbfdfd;
}

.project-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.project-row h3 {
  margin: 0;
  font-size: 16px;
}

.project-row p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.progress {
  height: 5px;
  margin-top: 14px;
  border-radius: 999px;
  background: #e7edef;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.project-row-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

.customer-ops-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.customer-ops-summary > div {
  min-width: 0;
  padding: 18px 20px;
  border-right: 1px solid var(--line-soft);
}

.customer-ops-summary > div:last-child { border-right: 0; }
.customer-ops-summary span,
.customer-ops-summary strong,
.customer-ops-summary small { display: block; }
.customer-ops-summary span { color: var(--muted); font-size: 11px; }
.customer-ops-summary strong { margin-top: 7px; font-size: 26px; }
.customer-ops-summary small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.customer-ops-summary .attention { background: var(--red-soft); }
.customer-ops-summary .attention strong { color: var(--red); }
.customer-ops-summary .review { background: var(--blue-soft); }
.customer-ops-summary .review strong { color: var(--blue); }

.customer-loop-guide {
  display: grid;
  grid-template-columns: minmax(250px, .75fr) minmax(520px, 1.5fr);
  align-items: center;
  gap: 24px;
  padding: 23px 25px;
  border: 1px solid #b9ded8;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f2fbf9, #fff);
}

.customer-loop-guide h3,
.customer-loop-guide p { margin: 0; }
.customer-loop-guide h3 { margin-top: 5px; font-size: 17px; line-height: 1.45; }
.customer-loop-guide p { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.eyebrow { color: var(--teal); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.customer-loop-steps { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.customer-loop-steps span { display: grid; place-items: center; gap: 5px; color: var(--ink-2); font-size: 9px; text-align: center; white-space: nowrap; }
.customer-loop-steps b { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; font-size: 10px; }
.customer-loop-steps i { color: #8dbbb5; font-style: normal; }

.customer-ops-list { display: grid; gap: 16px; }
.customer-ops-card {
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 28px rgba(24, 61, 67, .035);
}

.customer-ops-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.customer-ops-card-head h3 { margin: 5px 0 0; font-size: 19px; }
.customer-ops-card-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.customer-project-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 16px; }
.customer-project-kpis > div { padding: 12px 13px; border-radius: 9px; background: var(--surface-soft); }
.customer-project-kpis span,
.customer-project-kpis strong { display: block; }
.customer-project-kpis span { color: var(--muted); font-size: 9px; }
.customer-project-kpis strong { margin-top: 4px; font-size: 18px; }
.customer-progress-note { display: flex; justify-content: space-between; margin-top: 7px; color: var(--muted); font-size: 9px; }
.customer-next-action { display: grid; grid-template-columns: 135px 1fr; align-items: center; gap: 12px; margin-top: 15px; padding: 12px 14px; border-left: 3px solid var(--teal); border-radius: 8px; background: var(--teal-soft); }
.customer-next-action span { color: var(--teal-dark); font-size: 9px; font-weight: 750; }
.customer-next-action strong { font-size: 11px; line-height: 1.6; }
.customer-daily-actions { margin-top: 17px; }
.customer-section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.customer-section-title strong { font-size: 12px; }
.customer-section-title span { color: var(--muted); font-size: 9px; }
.customer-action-task {
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.customer-action-task:hover { background: #fbfdfd; }
.customer-action-task > span:nth-child(2) strong,
.customer-action-task > span:nth-child(2) small { display: block; }
.customer-action-task > span:nth-child(2) strong { font-size: 11px; }
.customer-action-task > span:nth-child(2) small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.customer-action-task b { color: var(--teal); font-size: 9px; }
.customer-action-signal { padding: 5px 6px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); font-size: 8px; font-weight: 750; text-align: center; }
.customer-action-signal.danger { background: var(--red-soft); color: var(--red); }
.customer-action-empty { display: flex; align-items: center; justify-content: space-between; padding: 13px; border-radius: 8px; background: var(--surface-soft); }
.customer-action-empty strong { font-size: 10px; }
.customer-action-empty span { color: var(--muted); font-size: 9px; }
.customer-ops-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line-soft); }
.customer-ops-actions .ghost-button { margin-left: auto; }

.project-command-center { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; background: linear-gradient(135deg, var(--teal-soft), #fff); }
.project-command-center h3,
.project-command-center p { margin: 0; }
.project-command-center h3 { margin-top: 5px; font-size: 16px; }
.project-command-center p { margin-top: 5px; color: var(--muted); font-size: 9px; }
.project-command-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.project-performance-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 13px; }
.project-performance-grid > div { padding: 12px; border-radius: 8px; background: var(--surface-soft); }
.project-performance-grid > div.attention { background: var(--red-soft); color: var(--red); }
.project-performance-grid span,
.project-performance-grid strong { display: block; }
.project-performance-grid span { color: var(--muted); font-size: 8px; }
.project-performance-grid strong { margin-top: 4px; font-size: 17px; }
.mini-list-item.project-task-link { width: 100%; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; text-align: left; cursor: pointer; }
.mini-list-item.project-task-link:hover { background: var(--surface-soft); }

.account-permission-section-head { margin: 20px 0 10px; }
.account-permission-section-head span { color: var(--teal); font-size: 9px; font-weight: 800; }
.account-permission-section-head h3 { margin: 4px 0 0; font-size: 16px; }
.account-permission-section-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.account-record-permissions { padding-bottom: 8px; }
.record-permission-list,
.record-permission-task-list { display: grid; gap: 7px; }
.record-permission-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line-soft); border-radius: 9px; background: #fff; }
.record-permission-row.task { border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; }
.record-permission-row > div:first-child strong,
.record-permission-row > div:first-child small { display: block; }
.record-permission-row > div:first-child strong { font-size: 10px; }
.record-permission-row > div:first-child small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.record-permission-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.record-permission-toggle { display: flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 9px; cursor: pointer; }
.record-permission-toggle input { accent-color: var(--teal); }
.record-permission-task-group { overflow: hidden; border: 1px solid var(--line-soft); border-radius: 10px; background: #fff; }
.record-permission-task-group header { display: flex; justify-content: space-between; padding: 10px 12px; background: var(--surface-soft); }
.record-permission-task-group header strong { font-size: 10px; }
.record-permission-task-group header span { color: var(--muted); font-size: 8px; }

@media (max-width: 900px) {
  .customer-ops-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-ops-summary > div { border-bottom: 1px solid var(--line-soft); }
  .customer-loop-guide { grid-template-columns: 1fr; }
  .customer-loop-steps { justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
}

@media (max-width: 680px) {
  .customer-ops-summary { grid-template-columns: 1fr 1fr; }
  .customer-ops-summary > div { padding: 14px; }
  .customer-ops-summary > div:first-child { grid-column: 1 / -1; }
  .customer-loop-guide { padding: 18px; }
  .customer-loop-steps { gap: 6px; }
  .customer-loop-steps i { display: none; }
  .customer-ops-card { padding: 16px; }
  .customer-project-kpis { grid-template-columns: 1fr 1fr; }
  .customer-next-action { grid-template-columns: 1fr; }
  .customer-action-task { grid-template-columns: 42px minmax(0, 1fr); }
  .customer-action-task b { display: none; }
  .customer-ops-actions .ghost-button { width: 100%; margin-left: 0; }
  .project-command-center { grid-template-columns: 1fr; }
  .project-command-actions { justify-content: flex-start; }
  .project-performance-grid { grid-template-columns: 1fr 1fr; }
  .record-permission-row { grid-template-columns: 1fr; }
  .record-permission-actions { justify-content: flex-start; }
}

.process-page {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 650px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.process-list {
  border-right: 1px solid var(--line);
  background: var(--surface-soft);
}

.process-list-head {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.process-list-head strong {
  font-size: 15px;
}

.process-list-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.process-list-button {
  width: 100%;
  min-height: 61px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  color: var(--ink-2);
  text-align: left;
  cursor: pointer;
}

.process-list-button:hover {
  background: white;
}

.process-list-button.active {
  background: white;
  color: var(--teal-dark);
  box-shadow: inset 3px 0 var(--teal);
}

.process-index {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  font-size: 10px;
  font-weight: 700;
}

.process-list-button.active .process-index {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

.process-name {
  font-size: 12px;
  font-weight: 650;
}

.process-count {
  color: var(--muted);
  font-size: 10px;
}

.process-detail {
  padding: 28px 30px;
}

.process-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}

.process-detail h2 {
  margin: 0;
  font-size: 24px;
}

.process-detail-header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.standard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.standard-block {
  min-height: 122px;
  padding: 17px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--surface-soft);
}

.standard-block label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
}

.standard-block strong,
.standard-block p {
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
}

.checklist {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.checklist-item {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 13px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 12px;
}

.checklist-number {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 750;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.kanban-column {
  min-height: 480px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.kanban-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 3px 3px 9px;
}

.kanban-column-head strong {
  font-size: 13px;
}

.kanban-column-head span {
  color: var(--muted);
  font-size: 11px;
}

.kanban-card {
  display: grid;
  width: 100%;
  gap: 10px;
  margin-bottom: 9px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: inherit;
  font: inherit;
  text-align: left;
  box-shadow: 0 3px 10px rgba(17, 42, 56, 0.035);
  cursor: pointer;
}

.kanban-card:hover {
  border-color: #b7c8cf;
}

.kanban-card > div:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.kanban-card .recurring-task-badge {
  margin-left: 0;
}

.kanban-card strong {
  font-size: 12px;
  line-height: 1.5;
}

.kanban-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.kanban-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.event-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.event-switcher {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.event-switcher button {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.event-switcher button.active {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 700;
}

.event-hero-main {
  padding: 26px;
}

.event-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.event-hero-main h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.event-hero-main p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.event-hero-side {
  padding: 24px;
  border-left: 1px solid var(--line);
  background: var(--surface-soft);
}

.event-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.event-fact {
  padding: 13px 14px;
  border-left: 2px solid var(--teal);
  background: var(--surface-soft);
}

.event-fact label,
.event-fact strong {
  display: block;
}

.event-fact label {
  color: var(--muted);
  font-size: 10px;
}

.event-fact strong {
  margin-top: 5px;
  font-size: 12px;
}

.schedule {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.schedule-day {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.schedule-day-title {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.schedule-day-title strong {
  font-size: 14px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr) 150px 120px;
  align-items: center;
  gap: 14px;
  min-height: 59px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line-soft);
}

button.schedule-row {
  width: 100%;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: white;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.schedule-row:hover {
  background: var(--surface-soft);
}

.schedule-row:last-child {
  border-bottom: 0;
}

.schedule-time {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 700;
}

.schedule-time.overdue {
  color: var(--red);
}

.schedule-title {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

.schedule-owner,
.schedule-output {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.metrics-empty {
  min-height: 280px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 30px;
  border: 1px dashed #c6d3d8;
  border-radius: var(--radius);
  background: var(--surface-soft);
  text-align: center;
}

.metrics-empty .empty-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #a7d5cf;
  border-radius: 13px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 800;
}

.metrics-empty strong {
  margin-top: 14px;
  font-size: 15px;
}

.metrics-empty p {
  max-width: 460px;
  margin: 7px 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.field-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.metric-followup {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: -5px 0 16px;
  padding: 13px 16px;
  border: 1px solid #f0d7a6;
  border-radius: 10px;
  background: #fffaf0;
}

.metric-followup > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 11px;
  font-weight: 800;
}

.metric-followup strong {
  font-size: 11px;
}

.metric-followup p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.field-group {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.field-group strong {
  font-size: 12px;
}

.field-group ul {
  margin: 9px 0 0;
  padding-left: 17px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.sop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.sop-grid > .metrics-empty {
  grid-column: 1 / -1;
  border: 0;
  border-radius: 0;
}

.sop-card {
  min-height: 210px;
  padding: 20px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: white;
}

.sop-card:nth-child(2n) {
  border-right: 0;
}

.sop-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sop-card h3 {
  margin: 0;
  font-size: 16px;
}

.sop-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.sop-points {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.sop-point {
  display: flex;
  gap: 8px;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.55;
}

.sop-point::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.sop-command-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
}

.sop-command-strip > div {
  display: grid;
  gap: 3px;
  padding: 16px 18px;
  border-right: 1px solid var(--line-soft);
}

.sop-command-strip > div:last-child { border-right: 0; }
.sop-command-strip strong { color: var(--ink); font-size: 22px; }
.sop-command-strip span { color: var(--muted); font-size: 11px; }

.sop-operating-rule {
  display: grid;
  grid-template-columns: repeat(7, auto);
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #b9ddd5;
  border-radius: var(--radius);
  background: #f3fbf9;
}

.sop-operating-rule > div { display: grid; gap: 3px; min-width: 0; }
.sop-operating-rule strong { color: #087664; font-size: 12px; }
.sop-operating-rule span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.sop-operating-rule b { color: #68a99d; font-size: 14px; }
.sop-toolbar { grid-template-columns: minmax(220px, 1fr) 150px 120px; }

.sop-library-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
}

.sop-library-list > .metrics-empty { border: 0; border-radius: 0; }

.sop-library-row {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr) 270px auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background 160ms ease;
}

.sop-library-row:last-child { border-bottom: 0; }
.sop-library-row:hover { background: #f8fbfa; }
.sop-library-row:focus-visible { outline: 3px solid rgba(13, 148, 128, .18); outline-offset: -3px; }

.sop-code-block {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 10px;
  background: #0c3945;
  color: white;
  text-align: center;
}

.sop-code-block strong { font-size: 11px; letter-spacing: .03em; }
.sop-code-block span { color: #9de7d9; font-size: 10px; }
.sop-library-main { min-width: 0; }
.sop-library-main > div { display: flex; align-items: center; gap: 8px; }
.sop-department { color: var(--muted); font-size: 10px; }
.sop-library-main h3 { margin: 8px 0 0; font-size: 16px; }
.sop-library-main p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.sop-library-main small { display: block; margin-top: 8px; color: var(--ink-2); font-size: 10px; }

.sop-row-measures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--line-soft);
  overflow: hidden;
}

.sop-row-measures span {
  display: grid;
  gap: 3px;
  padding: 10px 8px;
  background: white;
  color: var(--muted);
  text-align: center;
  font-size: 9px;
}

.sop-row-measures strong { color: var(--ink); font-size: 14px; }

.sop-step-editor-section { background: #f8faf9; }
.sop-step-editor-title,
.sop-section-heading,
.sop-step-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sop-step-editor-title h3,
.sop-section-heading h3 { margin: 0; }
.sop-step-editor-title p,
.sop-section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }

.sop-step-editor {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
}

.sop-step-editor-head { margin-bottom: 14px; }
.sop-step-editor-head > span { display: flex; align-items: center; gap: 9px; }
.sop-step-editor-head b,
.sop-step-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #dff5f0;
  color: #087664;
  font-size: 11px;
}

.drawer-sticky-actions {
  position: sticky;
  bottom: -24px;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 -24px -24px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
}

.sop-definition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sop-definition-grid article {
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #f9fbfb;
}

.sop-definition-grid article.danger { border-color: #f2c9c5; background: #fff8f7; }
.sop-definition-grid label,
.sop-step-grid label { display: block; color: #087664; font-size: 10px; font-weight: 800; }
.sop-definition-grid article.danger label { color: #b54e44; }
.sop-definition-grid p { margin: 7px 0 0; color: var(--ink-2); font-size: 11px; line-height: 1.65; }

.sop-resource-note {
  margin: 12px 0;
  padding: 11px 13px;
  border-left: 3px solid var(--teal);
  background: #f3fbf9;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.6;
}

.sop-execution-list { display: grid; gap: 10px; }
.sop-execution-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
}

.sop-step-body { min-width: 0; }
.sop-step-heading { display: flex; align-items: center; gap: 9px; }
.sop-step-heading strong { font-size: 13px; }
.sop-step-heading small { margin-left: auto; color: var(--muted); font-size: 9px; }
.sop-step-body > p { margin: 8px 0 0; color: var(--ink-2); font-size: 11px; line-height: 1.65; }

.sop-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--line-soft);
  overflow: hidden;
}

.sop-step-grid > div { min-height: 72px; padding: 10px; background: #f9fbfb; }
.sop-step-grid strong,
.sop-step-grid span { display: block; margin-top: 6px; color: var(--ink-2); font-size: 10px; line-height: 1.5; }
.sop-step-grid .sop-exception { background: #fff8f7; }
.sop-step-grid .sop-exception label { color: #b54e44; }

.sop-application-list { display: grid; gap: 8px; }
.sop-application-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  text-align: left;
}

.sop-application-row > span { display: grid; gap: 4px; }
.sop-application-row > span:last-child { text-align: right; }
.sop-application-row strong { font-size: 11px; }
.sop-application-row b { color: var(--teal); font-size: 16px; }
.sop-application-row small { color: var(--muted); font-size: 9px; }
.sop-apply-preview { margin-top: 14px; padding: 13px; border-radius: 9px; background: #f3fbf9; }
.sop-apply-preview strong { color: #087664; font-size: 11px; }
.sop-apply-preview p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.compact-empty { min-height: 160px; }

.risk-page-list {
  display: grid;
  gap: 10px;
}

.risk-governance-note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 14px;
  border: 1px solid #b9ddd5;
  border-radius: 10px;
  background: #b9ddd5;
  overflow: hidden;
}

.risk-governance-note > div {
  display: grid;
  gap: 5px;
  padding: 13px 15px;
  background: var(--teal-soft);
}

.risk-governance-note strong {
  color: var(--teal-dark);
  font-size: 11px;
}

.risk-governance-note span {
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.55;
}

.risk-page-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 120px 110px 120px;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  cursor: pointer;
}

.risk-page-row:focus-visible {
  outline: 3px solid var(--teal-soft);
  border-color: var(--teal);
}

.risk-page-row h3 {
  margin: 0;
  font-size: 13px;
}

.risk-page-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.risk-origin-label {
  display: block;
  margin-top: 6px;
  color: var(--teal-dark);
  font-size: 9px;
  font-weight: 700;
}

.risk-management-form {
  background: var(--surface-soft);
}

.risk-severity-large {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.risk-severity-large.medium {
  background: var(--amber-soft);
  color: var(--amber);
}

.risk-severity-large.low {
  background: var(--blue-soft);
  color: var(--blue);
}

.role-brief {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr) minmax(220px, 0.8fr);
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
}

.mine-command {
  min-height: 150px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 18px;
  padding: 27px 30px;
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(21, 183, 163, 0.18), transparent 52%),
    var(--nav);
  color: white;
  box-shadow: 0 14px 36px rgba(11, 40, 50, 0.14);
}

.mine-command-copy > span {
  color: #82e1d6;
  font-size: 10px;
  font-weight: 800;
}

.mine-command-copy h2 {
  margin: 7px 0 6px;
  font-size: 25px;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.mine-command-copy p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  line-height: 1.7;
}

.mine-command-action {
  min-width: 210px;
  display: grid;
  justify-items: stretch;
  gap: 10px;
}

.mine-command-action small {
  max-width: 230px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  line-height: 1.55;
  text-align: right;
}

.mine-next-button {
  min-height: 44px;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.mine-command .secondary-button {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.role-brief-main,
.role-brief-cell {
  padding: 22px 24px;
}

.role-brief-main {
  background: var(--nav);
  color: white;
}

.role-kicker {
  display: block;
  margin-bottom: 9px;
  color: #79ddd0;
  font-size: 11px;
  font-weight: 700;
}

.role-brief-main h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.role-brief-main p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.7;
}

.role-brief-cell {
  display: grid;
  align-content: center;
  border-left: 1px solid var(--line);
}

.role-brief-cell label,
.detail-cell label {
  color: var(--muted);
  font-size: 11px;
}

.role-brief-cell strong {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
}

.mine-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
}

.mine-summary > div {
  position: relative;
  min-height: 90px;
  padding: 18px 20px;
}

.mine-summary > div.attention {
  background: #fffaf0;
}

.mine-summary > div.danger {
  background: #fff6f6;
}

.mine-summary > div.attention strong {
  color: var(--amber);
}

.mine-summary > div.danger strong {
  color: var(--red);
}

.mine-summary > div + div::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 1px;
  background: var(--line);
}

.mine-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.mine-summary strong {
  display: inline-block;
  margin-top: 8px;
  font-size: 28px;
}

.mine-summary small {
  margin-left: 4px;
  color: var(--muted);
}

.danger-text {
  color: var(--red);
}

.positive-text {
  color: var(--teal-dark);
}

.risk-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 14px;
}

.metric-summary .summary-value {
  font-size: 22px;
}

.mine-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.mine-side {
  display: grid;
  gap: 18px;
}

.mine-primary-panel {
  border-color: #b9deda;
  box-shadow: 0 10px 28px rgba(15, 116, 104, 0.06);
}

.mine-primary-panel .panel-header {
  border-bottom-color: #cae5e2;
  background: linear-gradient(90deg, var(--teal-soft), white 54%);
}

.mine-role-brief {
  margin-top: 18px;
  margin-bottom: 0;
}

.decision-list {
  display: grid;
}

.decision-row {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: white;
  text-align: left;
  cursor: pointer;
}

.decision-row:last-child {
  border-bottom: 0;
}

.decision-row:hover {
  background: var(--surface-soft);
}

.decision-row.finance-decision-row {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  background: linear-gradient(90deg, #eefaf8, white 72%);
}

.risk-level.finance {
  background: var(--teal);
}

.finance-decision-row > b {
  color: var(--teal-dark);
  font-size: 10px;
  white-space: nowrap;
}

.decision-row strong,
.decision-row small {
  display: block;
}

.decision-row strong {
  font-size: 12px;
}

.decision-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.day-rhythm {
  display: grid;
  padding: 5px 16px 12px;
}

.day-rhythm > div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.day-rhythm > div:last-child {
  border-bottom: 0;
}

.day-rhythm strong {
  color: var(--teal);
  font-size: 12px;
}

.day-rhythm span {
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.6;
}

.company-map {
  margin-bottom: 28px;
}

.sample-cleanup-notice {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: -4px 0 18px;
  padding: 14px 16px;
  border: 1px solid #f0d7a6;
  border-radius: var(--radius);
  background: #fffaf0;
}

.sample-cleanup-notice > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--amber-soft);
  color: var(--amber);
  font-weight: 800;
}

.sample-cleanup-notice strong {
  font-size: 12px;
}

.sample-cleanup-notice p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.team-onboarding {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
}

.team-onboarding-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line-soft);
}

.team-onboarding-head > span {
  padding: 6px 9px;
  border-radius: 7px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 750;
}

.team-onboarding-head h2 {
  margin: 0;
  font-size: 17px;
}

.team-onboarding-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.team-onboarding-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-onboarding-steps > div {
  min-height: 108px;
  padding: 17px 19px;
  border-right: 1px solid var(--line-soft);
}

.team-onboarding-steps > div:last-child {
  border-right: 0;
}

.team-onboarding-steps b {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--nav);
  color: white;
  font-size: 10px;
}

.team-onboarding-steps strong,
.team-onboarding-steps small {
  display: block;
}

.team-onboarding-steps strong {
  margin-top: 10px;
  font-size: 12px;
}

.team-onboarding-steps small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.team-onboarding-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface-soft);
  color: var(--ink-2);
  font-size: 10px;
}

.team-onboarding-foot span:nth-child(2) {
  flex: 1;
  color: var(--muted);
}

.team-onboarding-foot small {
  color: var(--amber);
}

.member-roster {
  margin: -8px 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.member-roster summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}

.member-roster summary::-webkit-details-marker {
  display: none;
}

.member-roster summary span {
  display: grid;
  gap: 3px;
}

.member-roster summary strong {
  font-size: 12px;
}

.member-roster summary small,
.member-roster summary b {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.member-roster-list {
  border-top: 1px solid var(--line-soft);
}

.member-roster-row {
  display: grid;
  grid-template-columns: 28px minmax(100px, 0.8fr) minmax(100px, 0.65fr) minmax(190px, 1.4fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.member-roster-row:last-child {
  border-bottom: 0;
}

.member-roster-row strong {
  font-size: 11px;
}

.member-roster-row > span:not(.avatar),
.member-roster-row small {
  color: var(--muted);
  font-size: 10px;
}

.member-roster-row select {
  min-height: 32px;
  padding: 5px 28px 5px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink-2);
  font-size: 10px;
}

.member-permission-button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 9px;
}

.account-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: #e8f7f2;
  color: var(--teal);
  font-size: 8px;
  font-weight: 750;
}

.account-status.disabled {
  background: #fff0eb;
  color: #b4482b;
}

.account-permission-identity {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) minmax(150px, 0.65fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.account-permission-identity > div {
  display: grid;
  gap: 3px;
}

.account-permission-identity > div strong {
  font-size: 12px;
}

.account-permission-identity > div small,
.account-permission-identity label > span {
  color: var(--muted);
  font-size: 9px;
}

.account-permission-identity label {
  display: grid;
  gap: 5px;
}

.account-permission-warning {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #efddb4;
  border-radius: 9px;
  background: #fffaf0;
  color: #77613b;
  font-size: 9px;
  line-height: 1.7;
}

.account-permission-warning strong {
  color: #70551f;
}

.full-width-button {
  width: 100%;
  margin-top: 12px;
}

.account-permission-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.account-permission-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  cursor: pointer;
}

.account-permission-option:has(input:checked) {
  border-color: #8bc9bc;
  background: #f1faf7;
}

.account-permission-option input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.account-permission-option span {
  display: grid;
  gap: 4px;
}

.account-permission-option strong {
  font-size: 10px;
}

.account-permission-option small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.account-permission-option b {
  padding: 3px 6px;
  border-radius: 999px;
  background: #edf2f2;
  color: var(--muted);
  font-size: 7px;
  font-weight: 700;
}

.audit-trail {
  margin-top: -12px;
}

.audit-trail-list {
  max-height: 430px;
  overflow: auto;
  border-top: 1px solid var(--line-soft);
}

.audit-trail-row {
  display: grid;
  grid-template-columns: 28px minmax(130px, 0.7fr) minmax(220px, 1.8fr) 100px;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.audit-trail-row:last-child {
  border-bottom: 0;
}

.audit-trail-row div {
  display: grid;
  gap: 2px;
}

.audit-trail-row strong {
  font-size: 11px;
}

.audit-trail-row small,
.audit-trail-row p,
.audit-trail-row time {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.audit-trail-row time {
  text-align: right;
}

.source-register {
  margin: 18px 0 0;
}

.source-register-list {
  border-top: 1px solid var(--line-soft);
}

.source-register-row {
  display: grid;
  grid-template-columns: 90px minmax(220px, 0.9fr) minmax(260px, 1.4fr);
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.source-register-row:last-child {
  border-bottom: 0;
}

.source-register-row strong {
  font-size: 11px;
}

.source-register-row p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.company-flow {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 22px;
  overflow-x: auto;
}

.company-flow > div {
  min-width: 142px;
  flex: 1 0 142px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
}

.company-flow > div.active {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.company-flow > div > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.company-flow > div.active > span {
  background: var(--teal);
  color: white;
}

.company-flow strong,
.company-flow small {
  display: block;
}

.company-flow strong {
  font-size: 13px;
}

.company-flow small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.company-flow > i {
  align-self: center;
  color: #aab8bf;
  font-size: 16px;
  font-style: normal;
}

.company-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 22px;
}

.company-principles span {
  padding: 7px 10px;
  border: 1px solid #b9ddd8;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 650;
}

.company-section {
  margin-top: 30px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.role-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
}

.role-card {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.role-card:nth-child(4n) {
  border-right: 0;
}

.role-card:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.role-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.role-card-head > span {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--nav);
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.role-card-head h3,
.role-card-head p {
  margin: 0;
}

.role-card-head h3 {
  font-size: 14px;
}

.role-card-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.role-card dl {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
}

.role-card dl > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
}

.role-card dt {
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 700;
}

.role-card dd {
  margin: 0;
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.6;
}

.portfolio-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.portfolio-column {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  overflow: hidden;
}

.portfolio-head {
  min-height: 72px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border-bottom: 1px solid var(--line-soft);
}

.bucket-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.bucket-mark.red { background: var(--red-soft); color: var(--red); }
.bucket-mark.amber { background: var(--amber-soft); color: var(--amber); }
.bucket-mark.green { background: var(--green-soft); color: var(--green); }

.portfolio-head strong,
.portfolio-head small {
  display: block;
}

.portfolio-head strong {
  font-size: 12px;
}

.portfolio-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.portfolio-head b {
  color: var(--muted);
  font-size: 11px;
}

.portfolio-list {
  display: grid;
}

.portfolio-item {
  padding: 14px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: white;
  text-align: left;
  cursor: pointer;
}

.portfolio-item:last-child {
  border-bottom: 0;
}

.portfolio-item:hover {
  background: var(--surface-soft);
}

.portfolio-item strong,
.portfolio-item span,
.portfolio-item small {
  display: block;
}

.portfolio-item strong {
  font-size: 12px;
}

.portfolio-item span {
  margin-top: 5px;
  color: var(--ink-2);
  font-size: 10px;
}

.portfolio-item small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.ninety-plan {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
}

.plan-phase {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid var(--line-soft);
}

.plan-phase:last-child {
  border-right: 0;
}

.plan-phase.active {
  box-shadow: inset 0 3px var(--teal);
  background: linear-gradient(180deg, var(--teal-soft), white 42%);
}

.plan-phase-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-phase-top > span {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--teal);
  font-weight: 800;
}

.plan-phase-top small {
  color: var(--muted);
  font-size: 9px;
}

.plan-phase-top h3 {
  margin: 3px 0 0;
  font-size: 14px;
}

.plan-phase > p {
  min-height: 52px;
  margin: 15px 0 12px;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.65;
}

.plan-phase ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.today-command {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
  padding: 26px 30px;
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(7, 140, 125, 0.12), transparent 48%),
    var(--nav);
  color: white;
  overflow: hidden;
}

.today-command-main > span {
  color: #82e1d6;
  font-size: 10px;
  font-weight: 800;
}

.today-command-main h2 {
  margin: 7px 0 6px;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.today-command-main p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  line-height: 1.7;
}

.today-command-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 9px;
}

.today-command .secondary-button {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.cycle-guide {
  display: grid;
  grid-template-columns: minmax(240px, 1.45fr) repeat(5, minmax(104px, 0.62fr));
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
}

.cycle-guide > div {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line-soft);
}

.cycle-guide > div:last-child {
  border-right: 0;
}

.cycle-guide > div:first-child {
  padding: 21px 24px;
  background: var(--nav);
  color: white;
}

.cycle-guide > div:first-child strong {
  font-size: 15px;
}

.cycle-guide > div:first-child p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  line-height: 1.65;
}

.cycle-guide-step {
  display: grid;
  align-content: center;
}

.cycle-guide-step span,
.cycle-guide-step strong,
.cycle-guide-step small {
  display: block;
}

.cycle-guide-step span {
  color: var(--teal);
  font-size: 9px;
  font-weight: 850;
}

.cycle-guide-step strong {
  margin-top: 5px;
  font-size: 12px;
}

.cycle-guide-step small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
}

.cycle-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
}

.cycle-kpis > div {
  position: relative;
  min-height: 82px;
  padding: 16px 20px;
}

.cycle-kpis > div + div::before {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 0;
  width: 1px;
  background: var(--line-soft);
}

.cycle-kpis span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.cycle-kpis strong {
  display: inline-block;
  margin-top: 6px;
  font-size: 25px;
}

.cycle-kpis small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 10px;
}

.cycle-toolbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.cycle-toolbar > span {
  color: var(--muted);
  font-size: 10px;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
}

.segmented button {
  min-height: 31px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.segmented button.active {
  background: white;
  color: var(--teal-dark);
  box-shadow: 0 2px 8px rgba(17, 42, 56, 0.08);
  font-weight: 750;
}

.cycle-list,
.cycle-dashboard-list {
  display: grid;
  gap: 12px;
}

.cycle-card {
  width: 100%;
  display: grid;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: 160ms ease;
}

.cycle-card:hover {
  border-color: #b8d9d5;
  box-shadow: 0 10px 28px rgba(17, 42, 56, 0.07);
  transform: translateY(-1px);
}

.cycle-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cycle-category {
  color: var(--teal-dark);
  font-size: 9px;
  font-weight: 800;
}

.cycle-card h3 {
  margin: 5px 0 0;
  font-size: 16px;
  line-height: 1.45;
}

.cycle-target {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 13px;
  border-left: 3px solid var(--teal);
  background: var(--teal-soft);
}

.cycle-target label {
  color: var(--teal-dark);
  font-size: 9px;
  font-weight: 800;
}

.cycle-target strong {
  font-size: 11px;
  line-height: 1.65;
}

.cycle-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cycle-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9aa7af;
}

.cycle-step::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 8px;
  left: 36px;
  height: 1px;
  background: var(--line);
}

.cycle-step:last-child::after {
  display: none;
}

.cycle-step > span {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  font-size: 8px;
  font-weight: 800;
}

.cycle-step strong {
  position: relative;
  z-index: 1;
  padding-right: 8px;
  background: white;
  font-size: 9px;
}

.cycle-step.done,
.cycle-step.active {
  color: var(--teal-dark);
}

.cycle-step.done > span {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

.cycle-step.done::after {
  background: var(--teal);
}

.cycle-step.active > span {
  border: 2px solid var(--teal);
  background: var(--teal-soft);
}

.cycle-card-foot {
  display: grid;
  grid-template-columns: minmax(130px, 1.2fr) minmax(120px, 1fr) minmax(90px, 0.7fr);
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 9px;
}

.cycle-dashboard-list .cycle-card {
  padding: 17px 18px;
}

.cycle-dashboard-list .cycle-target {
  display: none;
}

.cycle-dashboard-list .cycle-card-foot {
  display: none;
}

.cycle-drawer-top {
  background: var(--surface-soft);
}

.cycle-progress-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 10px;
}

.cycle-progress-meta strong {
  color: var(--ink);
}

.cycle-goal-block {
  display: grid;
  gap: 8px;
  padding: 15px 16px;
  border-left: 3px solid var(--teal);
  background: var(--teal-soft);
}

.cycle-goal-block strong {
  font-size: 12px;
  line-height: 1.7;
}

.cycle-goal-block small {
  color: var(--teal-dark);
  font-size: 9px;
}

.cycle-records {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
  overflow: hidden;
}

.cycle-records > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  background: white;
}

.cycle-records > div > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}

.cycle-records > div.filled > span {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.cycle-records strong,
.cycle-records p,
.cycle-records small {
  display: block;
}

.cycle-records strong {
  font-size: 11px;
}

.cycle-records p {
  margin: 5px 0 0;
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.65;
}

.cycle-records small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.cycle-action-form {
  display: grid;
  gap: 14px;
  background: #fbfcfc;
}

.cycle-next-button {
  justify-self: end;
  min-width: 190px;
}

.cycle-progress-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cycle-update-section {
  display: grid;
  gap: 14px;
}

.cycle-update-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cycle-update-heading h3,
.cycle-update-heading p {
  margin: 0;
}

.cycle-update-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.cycle-update-list {
  display: grid;
  gap: 10px;
}

.cycle-update-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.cycle-update-item header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.cycle-update-item header strong {
  color: var(--green);
  font-size: 15px;
}

.cycle-update-item header span {
  color: var(--muted);
  font-size: 9px;
}

.cycle-update-item dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 12px 0 0;
}

.cycle-update-item dl > div {
  min-width: 0;
}

.cycle-update-item dt {
  color: var(--muted);
  font-size: 8px;
}

.cycle-update-item dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 9px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.cycle-complete {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--green-soft);
}

.cycle-complete > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-weight: 800;
}

.cycle-complete strong,
.cycle-complete p {
  display: block;
  margin: 0;
}

.cycle-complete p {
  margin-top: 5px;
  color: var(--green);
  font-size: 9px;
  line-height: 1.6;
}

.task-edit-form {
  display: grid;
  gap: 14px;
  background: var(--surface-soft);
}

.task-jump-button {
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  border: 1px solid #9ed9d2;
  border-radius: 9px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.task-jump-button:hover,
.task-jump-button:focus-visible {
  border-color: var(--teal);
  outline: none;
}

.task-edit-disclosure {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
  overflow: hidden;
}

.task-edit-disclosure > summary {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 11px 42px 11px 15px;
  list-style: none;
  cursor: pointer;
  position: relative;
}

.task-edit-disclosure > summary::-webkit-details-marker {
  display: none;
}

.task-edit-disclosure > summary::after {
  content: "＋";
  position: absolute;
  right: 15px;
  top: 50%;
  color: var(--teal-dark);
  font-size: 19px;
  transform: translateY(-50%);
}

.task-edit-disclosure[open] > summary::after {
  content: "－";
}

.task-edit-disclosure > summary span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.task-edit-disclosure > summary small {
  color: var(--muted);
  font-size: 9px;
}

.task-edit-disclosure .task-edit-form {
  padding: 16px;
  border-top: 1px solid var(--line);
}

.task-result-section {
  background: #fbfcfc;
}

.task-result-record {
  display: grid;
  gap: 14px;
}

.task-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.task-result-head small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
  text-align: right;
}

.task-result-record dl {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  overflow: hidden;
}

.task-result-record dl > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.task-result-record dl > div:last-child {
  border-bottom: 0;
}

.task-result-record dt,
.task-result-record dd {
  margin: 0;
  font-size: 10px;
  line-height: 1.65;
}

.task-result-record dt {
  color: var(--muted);
  font-weight: 700;
}

.task-result-record dd {
  color: var(--ink-2);
  white-space: pre-line;
}

.task-verification-note {
  padding: 12px 14px;
  border-left: 3px solid var(--teal);
  background: var(--teal-soft);
}

.task-verification-note strong,
.task-verification-note p,
.task-verification-note small {
  display: block;
  margin: 0;
}

.task-verification-note strong {
  color: var(--teal-dark);
  font-size: 10px;
}

.task-verification-note p {
  margin-top: 5px;
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.6;
}

.task-verification-note small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
}

.task-result-empty,
.task-verified-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: white;
}

.task-result-empty > span,
.task-verified-banner > span {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 800;
}

.task-result-empty strong,
.task-result-empty p,
.task-verified-banner strong,
.task-verified-banner p {
  display: block;
  margin: 0;
}

.task-result-empty strong,
.task-verified-banner strong {
  color: var(--ink);
  font-size: 11px;
}

.task-result-empty p,
.task-verified-banner p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.task-result-action {
  background: white;
}

.task-result-action form {
  display: grid;
  gap: 14px;
}

.task-evidence-upload {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.task-evidence-upload > input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.task-evidence-upload > label {
  min-height: 66px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border: 1px dashed rgba(240, 76, 47, .55);
  border-radius: 10px;
  background: var(--coral-soft);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.task-evidence-upload > label:hover,
.task-evidence-upload > input:focus-visible + label {
  border-color: var(--coral);
  background: #ffe8df;
  transform: translateY(-1px);
}

.task-evidence-upload.is-uploading > label {
  cursor: wait;
  opacity: .68;
  transform: none;
}

.task-evidence-upload > label > i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--coral);
  color: #fff;
  font-size: 19px;
  box-shadow: 0 7px 16px rgba(240, 76, 47, .18);
}

.task-evidence-upload > label span,
.task-evidence-upload > label strong,
.task-evidence-upload > label small {
  display: block;
}

.task-evidence-upload > label strong {
  font-size: 11px;
}

.task-evidence-upload > label small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.task-evidence-upload-state {
  min-height: 15px;
  color: var(--coral-dark);
  font-size: 9px;
  line-height: 1.5;
}

.task-evidence-file-list {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.task-evidence-file {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.task-evidence-file:hover,
.task-evidence-file:focus-visible {
  border-color: rgba(240, 76, 47, .48);
  background: var(--coral-soft);
  outline: none;
}

.task-evidence-file > i:first-child {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 15px;
}

.task-evidence-file > i:last-child {
  color: var(--muted);
  font-size: 13px;
}

.task-evidence-file span,
.task-evidence-file strong,
.task-evidence-file small {
  min-width: 0;
  display: block;
}

.task-evidence-file strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-evidence-file small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.task-evidence-empty {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.form-help {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.task-verify-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.task-verified-banner {
  border-style: solid;
  border-color: #addac5;
  background: var(--green-soft);
}

.task-verified-banner > span {
  border-radius: 50%;
  background: var(--green);
  color: white;
}

.task-awaiting-verifier {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d6e3e0;
  border-radius: 10px;
  background: #f6faf9;
}

.task-awaiting-verifier > span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 800;
}

.task-awaiting-verifier strong,
.task-awaiting-verifier p {
  display: block;
  margin: 0;
}

.task-awaiting-verifier strong {
  color: var(--ink);
  font-size: 11px;
}

.task-awaiting-verifier p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.task-edit-locked {
  border-top: 1px solid var(--line-soft);
  background: #fafbfb;
}

.task-edit-locked strong,
.task-edit-locked p {
  display: block;
  margin: 0;
}

.task-edit-locked strong {
  color: var(--ink);
  font-size: 11px;
}

.task-edit-locked p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.recurring-task-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #9edbd2;
  background: var(--teal-soft);
}

.recurring-task-rule h3,
.recurring-task-rule p,
.recurring-task-rule small {
  display: block;
  margin: 0;
}

.recurring-task-rule h3 {
  margin-top: 8px;
  color: var(--ink);
  font-size: 13px;
}

.recurring-task-rule p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.6;
}

.recurring-task-rule small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.recurring-task-rule .danger-outline {
  flex: 0 0 auto;
  border-color: #e3a2a2;
  color: #a33d3d;
}

.recurring-task-status {
  flex: 0 0 auto;
  color: var(--teal-dark);
  font-size: 10px;
}

.task-delete-zone,
.task-delete-locked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #efc4bc;
  background: #fff8f5;
}

.task-delete-zone strong,
.task-delete-locked strong {
  display: block;
  color: #8f2f20;
  font-size: 12px;
}

.task-delete-zone p,
.task-delete-locked p {
  margin: 5px 0 0;
  color: #77534c;
  font-size: 9px;
  line-height: 1.6;
}

.task-delete-locked {
  border-color: var(--line-soft);
  background: var(--surface-soft);
}

.task-delete-locked strong {
  color: var(--ink-2);
}

.task-delete-locked p {
  color: var(--muted);
}

.danger-button {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 0 16px;
  border: 1px solid #c73b25;
  border-radius: 8px;
  background: #fff;
  color: #b83220;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.danger-button:hover {
  background: #b83220;
  color: #fff;
}

.danger-button:active {
  transform: translateY(1px);
}

.task-save-button {
  justify-self: end;
  min-width: 150px;
}

@media (max-width: 640px) {
  .task-delete-zone,
  .task-delete-locked {
    align-items: stretch;
    flex-direction: column;
  }

  .task-delete-zone .danger-button {
    width: 100%;
  }
}

.activity-list {
  display: grid;
}

.activity-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-item > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--nav);
  color: white;
  font-size: 9px;
  font-weight: 800;
}

.activity-item strong,
.activity-item p,
.activity-item small {
  display: block;
  margin: 0;
}

.activity-item strong {
  font-size: 9px;
}

.activity-item p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.activity-item small {
  color: var(--muted);
  font-size: 8px;
}

.mobile-bottom-nav,
.mobile-fab {
  display: none;
}

.editor-mode-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px 0 8px;
  border: 1px solid #91cfc4;
  border-radius: 9px;
  background: #f3fbf9;
  color: var(--teal);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.editor-mode-button span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--teal);
  color: white;
  font-size: 10px;
}

.editor-mode-button:hover,
.editor-mode-button.active {
  border-color: var(--teal);
  background: #e2f5f0;
}

.editor-preview-bar {
  position: sticky;
  top: 64px;
  z-index: 19;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 28px;
  border-bottom: 1px solid #b9ded5;
  background: rgba(237, 249, 246, 0.97);
  box-shadow: 0 7px 18px rgba(15, 69, 78, 0.06);
  backdrop-filter: blur(12px);
}

.editor-preview-bar > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.editor-preview-bar strong {
  color: var(--ink);
  font-size: 12px;
}

.editor-preview-bar span {
  color: var(--muted);
  font-size: 10px;
}

.editor-preview-bar button {
  min-height: 36px;
  white-space: nowrap;
}

.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 31, 43, 0.38);
  backdrop-filter: blur(2px);
  animation: fade-in 150ms ease both;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 110;
  width: min(520px, 100%);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: white;
  box-shadow: -18px 0 55px rgba(8, 31, 42, 0.16);
  animation: slide-in 200ms ease both;
}

.drawer.editor-drawer {
  width: min(920px, 100%);
}

.editor-drawer .drawer-body {
  padding: 20px 24px 110px;
}

.editor-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 14px;
  border: 1px solid #b8ded6;
  border-radius: 12px;
  background: #f2faf8;
}

.editor-intro > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 9px;
  align-items: center;
}

.editor-intro > div > span {
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 10px;
  font-weight: 800;
}

.editor-intro strong {
  font-size: 11px;
}

.editor-intro small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.editor-intro > i {
  color: #74b8ab;
  font-style: normal;
  text-align: center;
}

.editor-version-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  overflow: hidden;
}

.editor-version-status > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  padding: 13px 15px;
}

.editor-version-status > div + div {
  border-left: 1px solid var(--line-soft);
}

.editor-version-status span {
  grid-row: 1 / 3;
  align-self: center;
  padding: 4px 8px;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 9px;
}

.editor-version-status strong {
  font-size: 11px;
}

.editor-version-status small {
  color: var(--muted);
  font-size: 9px;
}

.yanzi-editor-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.editor-section {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  overflow: hidden;
}

.editor-section > summary,
.editor-role-card > summary {
  list-style: none;
  cursor: pointer;
}

.editor-section > summary::-webkit-details-marker,
.editor-role-card > summary::-webkit-details-marker {
  display: none;
}

.editor-section > summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
}

.editor-section[open] > summary {
  border-bottom: 1px solid var(--line-soft);
  background: #fbfdfd;
}

.editor-section > summary span,
.editor-role-card > summary span {
  display: grid;
  gap: 3px;
}

.editor-section > summary strong {
  color: var(--ink);
  font-size: 13px;
}

.editor-section > summary small,
.editor-role-card > summary small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
}

.editor-section > summary b,
.editor-role-card > summary b {
  color: var(--teal);
  font-size: 9px;
  font-weight: 700;
}

.editor-section > .form-grid,
.editor-section > .editor-stack,
.editor-section > .editor-form-center {
  padding: 16px;
}

.editor-stack {
  display: grid;
  gap: 11px;
}

.editor-form-center {
  display: grid;
  gap: 13px;
}

.editor-form-toolbar {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(280px, 1.2fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid #b8ded6;
  border-radius: 11px;
  background: #f2faf8;
}

.editor-form-toolbar strong,
.editor-form-toolbar small {
  display: block;
}

.editor-form-toolbar strong {
  color: var(--teal);
  font-size: 12px;
}

.editor-form-toolbar small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.editor-form-toolbar input {
  background: white;
}

.editor-form-list,
.editor-form-group,
.editor-form-fields {
  display: grid;
  gap: 11px;
}

.editor-form-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 2px 0;
}

.editor-form-group-title strong {
  color: var(--ink);
  font-size: 11px;
}

.editor-form-group-title small {
  color: var(--muted);
  font-size: 9px;
}

.editor-form-card,
.editor-form-field {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--surface-soft);
  overflow: hidden;
}

.editor-form-card > summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  list-style: none;
  cursor: pointer;
}

.editor-form-card > summary::-webkit-details-marker {
  display: none;
}

.editor-form-card[open] > summary {
  border-bottom: 1px solid var(--line-soft);
  background: #f6fbfa;
}

.editor-form-card > summary span {
  display: grid;
  gap: 3px;
}

.editor-form-card > summary strong {
  color: var(--teal);
  font-size: 11px;
}

.editor-form-card > summary small,
.editor-form-card > summary b {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

.editor-form-card > summary b {
  color: var(--teal);
  font-weight: 750;
}

.editor-form-settings {
  display: grid;
  gap: 13px;
  padding: 14px;
  background: white;
}

.editor-rule-notice {
  padding: 10px 12px;
  border: 1px solid #efddb4;
  border-radius: 9px;
  background: #fffaf0;
  color: #77613b;
  font-size: 9px;
  line-height: 1.7;
}

.editor-rule-notice strong {
  color: #70551f;
}

.editor-form-field {
  background: #fbfdfd;
}

.editor-form-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.editor-form-field-head > span {
  display: grid;
  gap: 2px;
}

.editor-form-field-head strong {
  font-size: 10px;
}

.editor-form-field-head small {
  color: var(--muted);
  font-size: 8px;
}

.editor-form-field-head b {
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef3f3;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.editor-form-field-head b.required {
  background: #fff2dc;
  color: #8a5c14;
}

.editor-form-field > .form-grid {
  padding: 12px;
}

.editor-account-center {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.account-center-list {
  display: grid;
  gap: 8px;
}

.account-center-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--surface-soft);
}

.account-center-row > div {
  display: grid;
  gap: 3px;
}

.account-center-row > div strong {
  font-size: 10px;
}

.account-center-row > div small,
.account-protected {
  color: var(--muted);
  font-size: 8px;
}

.account-center-row .secondary-button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 9px;
}

.editor-page-row,
.editor-category-group,
.editor-nav-row,
.editor-role-card {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--surface-soft);
}

.editor-page-row,
.editor-category-group {
  padding: 14px;
}

.editor-page-row > strong {
  display: block;
  margin-bottom: 11px;
  color: var(--teal);
  font-size: 11px;
}

.editor-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.editor-row-head strong {
  font-size: 11px;
}

.editor-nav-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 90px 82px;
  align-items: end;
  gap: 10px;
  padding: 11px 13px;
}

.editor-visible-toggle {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 650;
}

.editor-visible-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.editor-nav-row > small {
  align-self: center;
  color: var(--muted);
  font-size: 9px;
  text-align: right;
}

.editor-add-group {
  margin: 0 16px 16px;
}

.editor-role-card {
  background: white;
  overflow: hidden;
}

.editor-role-card > summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
}

.editor-role-card[open] > summary {
  border-bottom: 1px solid var(--line-soft);
  background: #f6fbfa;
}

.editor-role-card > summary strong {
  font-size: 11px;
}

.editor-role-card > .form-grid {
  padding: 14px;
}

.editor-actions {
  position: sticky;
  bottom: -90px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 13px 14px;
  border: 1px solid #b9ded5;
  border-radius: 12px;
  background: rgba(247, 252, 251, 0.98);
  box-shadow: 0 -8px 24px rgba(10, 58, 64, 0.07);
  backdrop-filter: blur(12px);
}

.editor-actions > div {
  min-width: 220px;
  margin-right: auto;
}

.editor-actions strong,
.editor-actions small {
  display: block;
}

.editor-actions strong {
  font-size: 10px;
}

.editor-actions small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.editor-publish-confirm {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  padding: 15px;
  border: 1px solid #b9ded5;
  border-radius: 11px;
  background: #f2faf8;
}

.editor-publish-confirm > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.editor-publish-confirm strong {
  display: block;
  font-size: 12px;
}

.editor-publish-confirm p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.drawer-header,
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 21px 22px;
  border-bottom: 1px solid var(--line);
}

.drawer-header h2,
.modal-header h2 {
  margin: 0;
  font-size: 19px;
}

.drawer-header p,
.modal-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.drawer-body {
  flex: 1;
  padding: 20px 22px 40px;
  overflow-y: auto;
}

.drawer-section {
  margin-top: 24px;
}

.drawer-section:first-child {
  margin-top: 0;
}

.drawer-section h3 {
  margin: 0 0 11px;
  font-size: 13px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-cell {
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface-soft);
}

.detail-cell label,
.detail-cell strong,
.detail-cell span {
  display: block;
}

.detail-cell label {
  color: var(--muted);
  font-size: 10px;
}

.detail-cell strong,
.detail-cell span {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.5;
}

.delivery-responsibility-form {
  padding: 14px;
  border: 1px solid #f0c0b4;
  border-left: 4px solid var(--coral);
  border-radius: 10px;
  background: linear-gradient(135deg, #fff 0%, #fff8f5 100%);
}

.delivery-responsibility-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.delivery-responsibility-heading span,
.delivery-responsibility-heading strong {
  display: block;
}

.delivery-responsibility-heading span {
  color: var(--coral-dark);
  font-size: 10px;
  font-weight: 800;
}

.delivery-responsibility-heading strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
}

.delivery-responsibility-form .field select {
  border-color: #e7c7bf;
  background: #fff;
}

.delivery-responsibility-readonly {
  margin-top: -4px;
}

.mini-list {
  display: grid;
  gap: 8px;
}

.mini-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.mini-list-item strong {
  font-size: 11px;
}

.mini-list-item span {
  color: var(--muted);
  font-size: 10px;
}

.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 110;
  width: min(620px, calc(100% - 28px));
  max-height: calc(100vh - 30px);
  display: flex;
  flex-direction: column;
  transform: translate(-50%, -50%);
  border-radius: 16px;
  background: white;
  box-shadow: 0 28px 80px rgba(8, 31, 42, 0.2);
  animation: modal-in 180ms ease both;
  overflow: hidden;
}

.modal:has(#member-permission-form) {
  width: min(1040px, calc(100% - 28px));
}

.modal:has(#member-permission-form) .modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: #fff;
}

.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 650;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 12px;
  outline: none;
}

.field textarea {
  min-height: 86px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.field small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid #a9d6ca;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 12px;
  animation: toast-in 200ms ease both;
}

.toast-message {
  flex: 1;
  min-width: 0;
}

.toast-with-action {
  max-width: 440px;
  padding-right: 9px;
}

.toast-undo-button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.toast-undo-button:hover {
  background: var(--teal);
  color: white;
}

.toast::before {
  content: "✓";
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
}

.toast.error {
  border-color: #efb6b6;
}

.toast.error::before {
  content: "!";
  background: var(--red-soft);
  color: var(--red);
}

.undo-center-button {
  position: relative;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.undo-center-button:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.undo-center-icon {
  color: var(--teal);
  font-size: 19px;
  line-height: 1;
}

.undo-center-button strong {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--teal);
  color: white;
  font-size: 9px;
}

.undo-guide {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #b9ddd5;
  border-radius: 12px;
  background: var(--teal-soft);
}

.undo-guide strong {
  color: var(--teal-dark);
  font-size: 15px;
}

.undo-guide p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.undo-action-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.undo-action-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.undo-action-card span,
.undo-action-card small {
  color: var(--muted);
  font-size: 9px;
}

.undo-action-card h3 {
  margin: 4px 0;
  font-size: 13px;
}

.undo-action-card p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 10px;
}

.undo-empty {
  min-height: 220px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.undo-empty span {
  color: var(--teal);
  font-size: 40px;
}

.undo-empty strong {
  color: var(--ink);
  font-size: 14px;
}

.undo-empty p {
  max-width: 320px;
  margin: 0;
  font-size: 10px;
  line-height: 1.7;
}

.undo-confirm {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.undo-confirm p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.empty-row {
  padding: 30px !important;
  color: var(--muted) !important;
  text-align: center;
}

.loading-panel {
  min-height: 240px;
  display: grid;
  place-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
}

.loading-ring {
  width: 28px;
  height: 28px;
  margin: auto;
  border: 3px solid var(--line);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(24px); opacity: 0; } }
@keyframes modal-in { from { transform: translate(-50%, calc(-50% + 10px)); opacity: 0; } }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }

@media (max-width: 1180px) {
  :root { --sidebar: 204px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .mine-grid { grid-template-columns: minmax(0, 1fr) 290px; }
  .role-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-card:nth-child(4n) { border-right: 1px solid var(--line-soft); }
  .role-card:nth-child(2n) { border-right: 0; }
  .role-card:nth-last-child(-n + 4) { border-bottom: 1px solid var(--line-soft); }
  .role-card:nth-last-child(-n + 2) { border-bottom: 0; }
  .portfolio-board,
  .ninety-plan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-phase:nth-child(2) { border-right: 0; }
  .plan-phase:nth-child(-n + 2) { border-bottom: 1px solid var(--line-soft); }
  .summary-item { padding-inline: 15px; }
  .schedule-row { grid-template-columns: 100px minmax(0, 1fr) 120px; }
  .schedule-output { display: none; }
  .cycle-guide { grid-template-columns: minmax(220px, 1.2fr) repeat(5, minmax(94px, 0.7fr)); }
}

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-100%);
    width: 230px;
    transition: transform 180ms ease;
  }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: inline-grid; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .mine-grid { grid-template-columns: 1fr; }
  .mine-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mine-command { grid-template-columns: 1fr; }
  .mine-command-action {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .mine-command-action small { max-width: none; text-align: left; }
  .role-brief { grid-template-columns: 1fr 1fr; }
  .role-brief-main { grid-column: 1 / -1; }
  .role-brief-cell:first-of-type { border-left: 0; }
  .right-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-strip { grid-template-columns: repeat(5, minmax(140px, 1fr)); overflow-x: auto; }
  .summary-item + .summary-item::before { display: block; }
  .process-page { grid-template-columns: 250px minmax(0, 1fr); }
  .event-hero { grid-template-columns: 1fr; }
  .event-hero-side { border-left: 0; border-top: 1px solid var(--line); }
  .access-card { grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr); }
  .access-intro { padding: 42px; }
  .cycle-guide { grid-template-columns: 220px repeat(5, 105px); overflow-x: auto; }
}

@media (max-width: 720px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .access-page { padding: 0; place-items: stretch; background: white; }
  .access-card {
    min-height: 100vh;
    display: block;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .access-brand { height: 66px; padding: 0 20px; }
  .access-intro { padding: 32px 22px 27px; }
  .access-intro h1 { font-size: 36px; }
  .access-intro > p { margin: 17px 0 25px; font-size: 12px; }
  .access-loop { gap: 0; overflow-x: auto; }
  .access-loop > div { min-width: 76px; padding: 10px 8px; }
  .access-form { padding: 30px 22px 40px; border-left: 0; border-top: 1px solid var(--line-soft); }
  .topbar {
    min-height: 58px;
    padding: 0 14px;
    gap: 9px;
  }
  .topbar .role-switcher { display: none; }
  .topbar .secondary-button { display: none; }
  .editor-mode-button {
    width: 38px;
    min-width: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 9px;
    font-size: 0;
  }
  .editor-mode-button span { font-size: 10px; }
  .editor-preview-bar {
    top: 58px;
    display: grid;
    gap: 9px;
    padding: 10px 14px;
  }
  .editor-preview-bar > div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 9px;
  }
  .editor-preview-bar > div:last-child {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .editor-preview-bar button {
    min-width: 0;
    padding-inline: 8px;
    font-size: 9px;
  }
  .drawer.editor-drawer { width: 100%; }
  .editor-drawer .drawer-body { padding: 16px 15px 102px; }
  .editor-intro {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .editor-intro > i { display: none; }
  .editor-version-status { grid-template-columns: 1fr; }
  .editor-version-status > div + div {
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }
  .editor-section > summary { padding-inline: 13px; }
  .editor-section > .form-grid,
  .editor-section > .editor-stack,
  .editor-section > .editor-form-center { padding: 13px; }
  .editor-form-toolbar {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .editor-form-settings { padding: 11px; }
  .editor-form-field-head {
    align-items: flex-start;
    padding: 9px 10px;
  }
  .editor-form-field > .form-grid { padding: 10px; }
  .editor-nav-row {
    grid-template-columns: 66px minmax(0, 1fr) 66px;
    gap: 8px;
    padding: 10px;
  }
  .editor-nav-row > small {
    grid-column: 2 / -1;
    text-align: left;
  }
  .editor-add-group { width: calc(100% - 26px); margin: 0 13px 13px; }
  .editor-actions {
    bottom: -82px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 11px;
  }
  .editor-actions > div { grid-column: 1 / -1; min-width: 0; }
  .editor-actions .primary-button { grid-column: 1 / -1; }
  .sync-state span:last-child { display: none; }
  .member-button { min-width: 38px; width: 38px; padding: 4px; grid-template-columns: 28px; }
  .member-button strong, .member-button small { display: none; }
  .content { padding: 20px 15px 36px; }
  .page-head { align-items: center; margin-bottom: 16px; }
  .page-head h1 { font-size: 24px; }
  .page-head p { font-size: 12px; }
  .page-actions .secondary-button { display: none; }
  .page-actions .primary-button { display: none; }
  .summary-strip {
    grid-template-columns: repeat(5, 126px);
    margin-inline: 0;
    scroll-snap-type: x mandatory;
  }
  .summary-item {
    min-height: 88px;
    padding: 16px;
    scroll-snap-align: start;
  }
  .summary-value { font-size: 23px; }
  .dashboard-grid { gap: 14px; }
  .right-rail { grid-template-columns: 1fr; }
  .mine-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mine-summary > div:nth-child(3)::before { display: none; }
  .mine-summary > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line-soft); }
  .mine-side { grid-template-columns: 1fr; }
  .mine-command {
    min-height: 0;
    gap: 18px;
    padding: 22px 20px;
  }
  .mine-command-copy h2 { font-size: 21px; line-height: 1.45; }
  .mine-command-action { grid-template-columns: 1fr; }
  .mine-next-button { width: 100%; }
  .mobile-nav-button.personal-featured {
    color: var(--teal-dark);
    font-weight: 800;
  }
  .mobile-nav-button.personal-featured .mobile-nav-icon {
    border-color: var(--teal);
    background: var(--teal-soft);
  }
  .role-brief { grid-template-columns: 1fr; }
  .role-brief-main { grid-column: auto; }
  .role-brief-cell { border-left: 0; border-top: 1px solid var(--line); }
  .role-matrix,
  .portfolio-board,
  .ninety-plan { grid-template-columns: 1fr; }
  .role-card,
  .role-card:nth-child(2n),
  .role-card:nth-child(4n),
  .role-card:nth-last-child(-n + 2),
  .role-card:nth-last-child(-n + 4) {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .role-card:last-child { border-bottom: 0; }
  .plan-phase,
  .plan-phase:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .plan-phase:last-child { border-bottom: 0; }
  .company-flow { padding: 16px; }
  .company-principles { padding: 0 16px 16px; }
  .sample-cleanup-notice {
    grid-template-columns: 38px minmax(0, 1fr);
  }
  .sample-cleanup-notice .secondary-button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .team-onboarding-head { grid-template-columns: 1fr; padding: 18px; }
  .team-onboarding-head > span { width: fit-content; }
  .team-onboarding-head .primary-button { width: 100%; }
  .team-onboarding-steps { grid-template-columns: 1fr 1fr; }
  .team-onboarding-steps > div { border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
  .team-onboarding-steps > div:nth-child(2n) { border-right: 0; }
  .team-onboarding-steps > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .team-onboarding-foot { align-items: flex-start; flex-direction: column; }
  .member-roster summary { align-items: flex-start; }
  .member-roster-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    padding-inline: 14px;
  }
  .member-roster-row small { grid-column: 2 / -1; }
  .member-roster-row .member-permission-button { grid-column: 2 / -1; width: 100%; }
  .account-permission-identity { grid-template-columns: 36px minmax(0, 1fr); }
  .account-permission-identity label { grid-column: 1 / -1; }
  .account-permission-list { grid-template-columns: 1fr; }
  .editor-account-center { padding: 13px; }
  .account-center-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }
  .account-center-row .secondary-button,
  .account-center-row .account-protected {
    grid-column: 2 / -1;
  }
  .account-center-row .secondary-button { width: 100%; }
  .audit-trail-row {
    grid-template-columns: 28px minmax(0, 1fr);
    padding-inline: 14px;
  }
  .audit-trail-row p,
  .audit-trail-row time {
    grid-column: 2 / -1;
    text-align: left;
  }
  .source-register-row {
    grid-template-columns: 1fr;
    padding-inline: 14px;
  }
  .source-register-row .tag {
    width: fit-content;
  }
  .metric-followup { grid-template-columns: 32px minmax(0, 1fr); }
  .metric-followup .secondary-button { grid-column: 1 / -1; width: 100%; }
  .section-heading { align-items: flex-start; }
  .today-command {
    min-height: 0;
    display: grid;
    gap: 20px;
    padding: 22px 20px;
  }
  .today-command-main h2 { font-size: 21px; line-height: 1.45; }
  .today-command-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cycle-guide {
    grid-template-columns: 210px repeat(5, 104px);
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }
  .cycle-guide > div { scroll-snap-align: start; }
  .cycle-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cycle-kpis > div:nth-child(3)::before { display: none; }
  .cycle-kpis > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line-soft); }
  .cycle-toolbar { align-items: flex-start; flex-direction: column; }
  .cycle-toolbar > span { display: none; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; padding-inline: 8px; }
  .cycle-card { padding: 17px 16px; gap: 13px; }
  .cycle-card-head h3 { font-size: 14px; }
  .cycle-target { grid-template-columns: 1fr; gap: 5px; }
  .cycle-step { display: grid; justify-items: center; gap: 4px; }
  .cycle-step::after { top: 14px; left: calc(50% + 15px); right: calc(-50% + 15px); }
  .cycle-step strong { padding-right: 0; font-size: 8px; }
  .cycle-card-foot { grid-template-columns: 1fr 1fr; }
  .cycle-card-foot > span:nth-child(2) { text-align: right; }
  .cycle-card-foot > span:nth-child(3) { grid-column: 1 / 2; }
  .cycle-dashboard-list .cycle-card-foot { display: none; }
  .cycle-progress-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cycle-next-button { width: 100%; justify-self: stretch; }
  .cycle-progress-actions { display: grid; grid-template-columns: 1fr; }
  .cycle-progress-actions button { width: 100%; }
  .cycle-update-item dl { grid-template-columns: 1fr; }
  .task-save-button { width: 100%; justify-self: stretch; }
  .task-verify-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .task-result-record dl > div { grid-template-columns: 1fr; gap: 4px; }
  .panel-header { min-height: 52px; padding: 0 15px; }
  .panel-body { padding: 14px; }
  .lifecycle { grid-template-columns: repeat(9, 96px); }
  .stage-button { min-width: 96px; }
  .stage-detail { grid-template-columns: 1fr; }
  .stage-detail-item:not(:first-child) { display: none; }
  .toolbar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; }
  .toolbar select, .toolbar input { flex: 0 0 auto; }
  .table-wrap { border: 0; overflow: visible; }
  .data-table, .data-table thead, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table thead { display: none; }
  .data-table tbody { display: grid; gap: 9px; }
  .data-table tbody tr {
    position: relative;
    padding: 13px 104px 13px 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
  }
  .data-table td {
    min-height: 0;
    padding: 0;
    border: 0;
  }
  .data-table td:nth-child(1) { position: absolute; left: 13px; top: 16px; }
  .data-table td:nth-child(2) { min-height: 40px; }
  .data-table td:nth-child(3),
  .data-table td:nth-child(4),
  .data-table td:nth-child(6) { display: inline-block; margin: 6px 8px 0 0; }
  .data-table td:nth-child(5) { position: absolute; right: 13px; top: 14px; width: 85px; text-align: right; }
  .data-table td:nth-child(7) { position: absolute; right: 13px; bottom: 13px; }
  .data-table td:nth-child(8) { display: none; }
  .metrics-table-wrap { overflow: visible; }
  .data-table.metrics-table tbody { gap: 12px; }
  .data-table.metrics-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
    overflow: hidden;
  }
  .data-table.metrics-table td,
  .data-table.metrics-table td:nth-child(n) {
    position: static;
    display: block;
    width: auto;
    min-height: 58px;
    margin: 0;
    padding: 10px 13px;
    border-top: 1px solid var(--line-soft);
    text-align: left;
  }
  .data-table.metrics-table td:nth-child(odd):not(:first-child) {
    border-right: 1px solid var(--line-soft);
  }
  .data-table.metrics-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 650;
  }
  .data-table.metrics-table td:first-child {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 13px;
    border-top: 0;
    background: var(--surface-soft);
    color: var(--ink);
    font-weight: 700;
  }
  .data-table.metrics-table td:first-child::before { display: none; }
  .task-title { min-width: 0; }
  .project-list { grid-template-columns: 1fr; }
  .project-row { border-right: 0; }
  .process-page { display: block; min-height: 0; }
  .process-list {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .process-list-head { display: none; }
  .process-list-button {
    min-width: 145px;
    grid-template-columns: 28px 1fr;
    border-right: 1px solid var(--line-soft);
    border-bottom: 0;
  }
  .process-list-button.active { box-shadow: inset 0 -3px var(--teal); }
  .process-count { display: none; }
  .process-detail { padding: 21px 17px; }
  .process-detail h2 { font-size: 21px; }
  .standard-grid { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: repeat(4, 82vw); scroll-snap-type: x mandatory; }
  .kanban-column { scroll-snap-align: start; }
  .event-hero-main, .event-hero-side { padding: 19px; }
  .event-hero-main h2 { font-size: 22px; }
  .event-facts { grid-template-columns: 1fr; }
  .schedule-row { grid-template-columns: 90px minmax(0, 1fr); gap: 9px; }
  .schedule-owner, .schedule-output { display: none; }
  .field-map { grid-template-columns: 1fr; }
  .sop-grid { grid-template-columns: 1fr; }
  .sop-card { border-right: 0; }
  .sop-command-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sop-command-strip > div:nth-child(2) { border-right: 0; }
  .sop-command-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .sop-operating-rule {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .sop-operating-rule b { transform: rotate(90deg); justify-self: start; }
  .sop-toolbar { grid-template-columns: 1fr; }
  .sop-library-row {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
  }
  .sop-library-row > .sop-row-measures,
  .sop-library-row > .secondary-button { grid-column: 1 / -1; }
  .sop-row-measures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sop-definition-grid,
  .sop-step-grid { grid-template-columns: 1fr; }
  .sop-step-heading { flex-wrap: wrap; }
  .sop-step-heading small { width: 100%; margin-left: 0; }
  .sop-step-editor-title,
  .sop-section-heading { align-items: flex-start; flex-direction: column; }
  .drawer-sticky-actions {
    bottom: -17px;
    margin: 0 -17px -17px;
    padding: 12px 17px;
  }
  .drawer-sticky-actions > button { flex: 1; }
  .risk-page-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
  }
  .risk-page-row > :nth-child(4),
  .risk-page-row > :nth-child(5) { display: none; }
  .risk-severity-large { width: 38px; height: 38px; }
  .risk-governance-note { grid-template-columns: 1fr; }
  .risk-action-row { display: grid; grid-template-columns: 1fr; }
  .detail-grid, .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    min-height: 66px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
  }
  .mobile-nav-button {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 9px;
  }
  .mobile-nav-button .mobile-nav-icon {
    width: 25px;
    height: 25px;
    border-color: transparent;
  }
  .mobile-nav-button.active { color: var(--teal); font-weight: 700; }
  .mobile-nav-button.active .mobile-nav-icon {
    border-color: var(--teal);
    background: var(--teal-soft);
  }
  .mobile-fab {
    position: fixed;
    right: 18px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    z-index: 55;
    min-width: 50px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 15px;
    border: 0;
    border-radius: 24px;
    background: var(--teal);
    color: white;
    box-shadow: 0 10px 26px rgba(7, 140, 125, 0.32);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }
  .mobile-fab span { font-size: 21px; font-weight: 400; line-height: 1; }
  .undo-center-button {
    width: 38px;
    min-width: 38px;
    padding: 0;
    justify-content: center;
  }
  .undo-center-label { display: none; }
  .undo-center-button strong {
    position: absolute;
    top: -5px;
    right: -5px;
  }
  .toast {
    left: 14px;
    right: 14px;
    max-width: none;
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
  .undo-action-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .undo-action-card button { width: 100%; }
}

/* 人物首页触感升级：更圆润的 3D 标题、方向键和进入工作台按钮。 */
.role-lobby[data-role-lobby] .role-lobby-word {
  color: #fffaf3;
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-stretch: normal;
  font-weight: 1000;
  letter-spacing: -.085em;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .5);
  text-shadow:
    0 2px 0 #f7eadf,
    0 4px 0 #eedacf,
    0 7px 0 rgba(105, 48, 39, .15),
    0 15px 30px rgba(92, 38, 31, .18);
  transform: scaleX(1.08);
}

.role-lobby[data-role-lobby] .role-arrow {
  position: relative;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .98);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 1) 0 13%, transparent 36%),
    linear-gradient(145deg, #fffefb 0%, #fff7ed 45%, #ead9ca 100%);
  color: var(--lobby-bg);
  box-shadow:
    inset 0 3px 2px rgba(255, 255, 255, 1),
    inset 0 -7px 10px rgba(94, 55, 44, .16),
    0 7px 0 rgba(84, 37, 34, .22),
    0 14px 25px rgba(76, 29, 27, .2);
}

.role-lobby[data-role-lobby] .role-arrow.previous,
.role-lobby[data-role-lobby] .role-arrow.next {
  left: auto;
}

.role-lobby[data-role-lobby] .role-arrow::before {
  position: absolute;
  inset: 5px 7px auto;
  height: 38%;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px 999px 50% 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, 0));
  content: "";
  pointer-events: none;
}

.role-lobby[data-role-lobby] .role-arrow i {
  position: relative;
  z-index: 1;
  font-size: 27px;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 1))
    drop-shadow(0 2px 0 rgba(92, 42, 36, .13));
}

.role-lobby[data-role-lobby] .role-arrow:hover,
.role-lobby[data-role-lobby] .role-arrow:focus-visible {
  box-shadow:
    inset 0 3px 2px rgba(255, 255, 255, 1),
    inset 0 -7px 10px rgba(94, 55, 44, .14),
    0 9px 0 rgba(84, 37, 34, .23),
    0 19px 31px rgba(76, 29, 27, .22);
  transform: translateY(-3px) scale(1.035);
}

.role-lobby[data-role-lobby] .role-arrow:active {
  box-shadow:
    inset 0 5px 10px rgba(94, 55, 44, .18),
    inset 0 -2px 2px rgba(255, 255, 255, .7),
    0 2px 0 rgba(84, 37, 34, .22),
    0 7px 13px rgba(76, 29, 27, .16);
  transform: translateY(5px) scale(.97);
}

.role-lobby[data-role-lobby] .role-discover {
  min-height: 72px;
  padding: 7px 9px 7px 28px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .98);
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 0%, rgba(255, 255, 255, 1), transparent 37%),
    linear-gradient(145deg, #fffefb 0%, #fff6e9 55%, #e9d6c7 100%);
  color: var(--lobby-bg);
  box-shadow:
    inset 0 3px 2px rgba(255, 255, 255, 1),
    inset 0 -8px 11px rgba(94, 55, 44, .16),
    0 8px 0 rgba(84, 37, 34, .23),
    0 18px 32px rgba(76, 29, 27, .2);
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(28px, 2.6vw, 39px);
  font-weight: 1000;
  letter-spacing: -.035em;
  text-transform: none;
}

.role-lobby[data-role-lobby] .role-discover::before {
  position: absolute;
  inset: 5px 18px auto;
  height: 40%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, 0));
  content: "";
  pointer-events: none;
}

.role-lobby[data-role-lobby] .role-discover span,
.role-lobby[data-role-lobby] .role-discover i {
  position: relative;
  z-index: 1;
}

.role-lobby[data-role-lobby] .role-discover span {
  color: var(--lobby-bg);
  -webkit-text-stroke: .35px rgba(116, 42, 33, .2);
  text-shadow:
    0 1px 0 #fff,
    0 3px 0 rgba(117, 54, 43, .13),
    0 6px 12px rgba(91, 39, 33, .12);
}

.role-lobby[data-role-lobby] .role-discover i {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border: 2px solid rgba(255, 255, 255, .42);
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, .55), transparent 32%),
    linear-gradient(145deg, var(--lobby-panel), var(--lobby-bg));
  font-size: 25px;
  box-shadow:
    inset 0 3px 2px rgba(255, 255, 255, .34),
    inset 0 -7px 9px rgba(75, 28, 25, .19),
    0 5px 0 rgba(75, 28, 25, .22),
    0 10px 17px rgba(75, 28, 25, .2);
}

.role-lobby[data-role-lobby] .role-discover:hover,
.role-lobby[data-role-lobby] .role-discover:focus-visible {
  background:
    radial-gradient(circle at 28% 0%, rgba(255, 255, 255, 1), transparent 37%),
    linear-gradient(145deg, #fff 0%, #fff8ee 55%, #ead8ca 100%);
  box-shadow:
    inset 0 3px 2px rgba(255, 255, 255, 1),
    inset 0 -8px 11px rgba(94, 55, 44, .14),
    0 10px 0 rgba(84, 37, 34, .24),
    0 23px 38px rgba(76, 29, 27, .23);
  transform: translateY(-3px);
}

.role-lobby[data-role-lobby] .role-discover:hover i,
.role-lobby[data-role-lobby] .role-discover:focus-visible i {
  transform: translateX(4px) translateY(-2px) rotate(-3deg);
}

.role-lobby[data-role-lobby] .role-discover:active {
  box-shadow:
    inset 0 6px 12px rgba(94, 55, 44, .2),
    inset 0 -2px 2px rgba(255, 255, 255, .65),
    0 2px 0 rgba(84, 37, 34, .23),
    0 8px 15px rgba(76, 29, 27, .16);
  transform: translateY(6px);
}

.role-lobby[data-role-lobby] .role-discover:active i {
  box-shadow:
    inset 0 5px 8px rgba(75, 28, 25, .2),
    0 1px 0 rgba(75, 28, 25, .2);
  transform: translateX(2px) translateY(3px) scale(.95);
}

@media (max-width: 720px) {
  .role-lobby[data-role-lobby] .role-lobby-word {
    font-size: 27vw;
    letter-spacing: -.09em;
    text-shadow:
      0 2px 0 #f7eadf,
      0 4px 0 #ead6c8,
      0 7px 0 rgba(105, 48, 39, .15),
      0 12px 24px rgba(92, 38, 31, .18);
    transform: translateX(-50%) scaleX(1.05);
  }

  .role-lobby[data-role-lobby] .role-arrow {
    width: 52px;
    height: 52px;
    border-width: 2px;
    box-shadow:
      inset 0 3px 2px rgba(255, 255, 255, 1),
      inset 0 -6px 8px rgba(94, 55, 44, .16),
      0 6px 0 rgba(84, 37, 34, .23),
      0 12px 20px rgba(76, 29, 27, .19);
  }

  .role-lobby[data-role-lobby] .role-arrow i {
    font-size: 22px;
  }

  .role-lobby[data-role-lobby] .role-lobby-controls {
    left: 14px;
    bottom: 19px;
    gap: 10px;
  }

  .role-lobby[data-role-lobby] .role-discover {
    right: 12px;
    bottom: 19px;
    width: clamp(172px, 52vw, 210px);
    min-height: 56px;
    gap: 8px;
    padding: 5px 6px 5px 18px;
    font-size: clamp(18px, 5vw, 22px);
    box-shadow:
      inset 0 3px 2px rgba(255, 255, 255, 1),
      inset 0 -6px 9px rgba(94, 55, 44, .16),
      0 6px 0 rgba(84, 37, 34, .23),
      0 13px 22px rgba(76, 29, 27, .19);
  }

  .role-lobby[data-role-lobby] .role-discover i {
    width: 43px;
    height: 43px;
    flex-basis: 43px;
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.role-lobby {
  background: #ef6a54;
  color: #14262e;
}

.role-lobby-header {
  border-bottom-color: rgba(20,38,46,.18);
}

.role-lobby-brand strong {
  font-size: 14px;
  font-weight: 850;
}

.role-lobby-brand small {
  margin-top: 3px;
  color: rgba(20,38,46,.68);
  font-size: 10px;
}

.role-lobby-culture span {
  font-size: 10px;
  font-weight: 800;
}

.role-lobby-word {
  color: rgba(255,246,233,.18);
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.role-stage-copy > span,
.team-key-card > span,
.join-member-card > span {
  font-size: 10px;
  letter-spacing: .16em;
}

.role-stage-copy h1 {
  font-size: clamp(38px, 4.5vw, 68px);
}

.role-stage-copy p {
  color: rgba(20,38,46,.8);
  font-size: 13px;
  line-height: 1.7;
}

.role-count,
.role-identity-card small {
  font-size: 10px;
}

.role-identity-card p {
  color: rgba(20,38,46,.82);
  font-size: 12px;
  line-height: 1.65;
}

.role-enter-button {
  font-size: 13px;
}

.role-lobby-footer button,
.lobby-back-button {
  font-size: 11px;
}

.role-lobby-footer > span {
  color: rgba(20,38,46,.7);
  font-size: 10px;
}

.team-key-card > p,
.join-member-card > p {
  color: rgba(20,38,46,.76);
  font-size: 13px;
}

.team-key-card label > span,
.join-member-card label > span,
.join-member-card .field > span {
  font-size: 12px;
}

.team-key-card input,
.join-member-card input,
.join-member-card select,
.join-member-card textarea {
  color: #14262e;
  font-size: 15px;
}

.team-key-card > small,
.join-member-card small {
  color: rgba(20,38,46,.62);
  font-size: 10px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .role-lobby-brand strong {
    font-size: 12px;
  }

  .role-lobby-brand small {
    font-size: 9px;
  }

  .role-stage-copy h1 {
    font-size: 38px;
  }

  .role-stage-copy p,
  .role-identity-card p {
    font-size: 11px;
  }

  .role-identity-card small,
  .role-count {
    font-size: 9px;
  }

  .role-lobby-footer button {
    font-size: 10px;
  }
}

/* ─────────────────────────────────────────────────────────────
   YANZI OPS · TOONHUB-inspired unified operations interface
   ───────────────────────────────────────────────────────────── */

html,
body {
  background: var(--warm);
  color: var(--ink);
  font-size: 14px;
}

body {
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.app-shell {
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  background: var(--warm);
}

.sidebar {
  padding: 20px 12px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 22%),
    var(--nav);
  color: #fff;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}

.toon-brand {
  min-height: 62px;
  align-items: flex-start;
  padding: 4px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.toon-brand strong {
  color: var(--coral);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "PingFang SC", sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .035em;
}

.toon-brand small {
  max-width: 176px;
  margin-top: 7px;
  color: rgba(255,255,255,.62);
  font-size: 10px;
  line-height: 1.45;
}

.sidebar-member-art {
  min-height: 88px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 12px 6px 8px;
  padding: 8px 9px 7px 4px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  overflow: hidden;
}

.sidebar-member-figure {
  width: 54px;
  height: 72px;
  aspect-ratio: 3 / 4;
  filter: drop-shadow(0 8px 9px rgba(0,0,0,.28));
}

.sidebar-member-art > div:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.sidebar-member-art span,
.sidebar-member-art small {
  color: rgba(255,255,255,.52);
  font-size: 9px;
}

.sidebar-member-art strong {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-culture {
  margin: 0 9px 8px;
  color: rgba(255,255,255,.46);
  font-size: 9px;
  letter-spacing: .06em;
  line-height: 1.5;
}

.nav {
  gap: 2px;
}

.nav-group-label {
  margin: 16px 11px 6px;
  color: rgba(255,255,255,.34);
  font-size: 9px;
  letter-spacing: .16em;
}

.nav-button {
  min-height: 45px;
  gap: 0;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  font-weight: 650;
}

.nav-button:hover,
.nav-button:focus-visible {
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.055);
}

.nav-button.active,
.nav-button.personal-featured.active {
  border-color: var(--coral);
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 24px rgba(242,90,61,.19);
}

.nav-button.personal-featured {
  min-height: 49px;
  margin-bottom: 0;
  border-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.025);
}

.nav-icon {
  display: none;
}

.nav-personal-label {
  gap: 2px;
}

.nav-personal-label strong {
  font-size: 14px;
}

.nav-personal-label small {
  color: rgba(255,255,255,.46);
  font-size: 9px;
}

.nav-button.active .nav-personal-label small {
  color: rgba(255,255,255,.76);
}

.nav-work-count {
  margin-left: auto;
  background: rgba(255,255,255,.14);
}

.sidebar-footer {
  padding: 14px 9px 4px;
  border-top-color: rgba(255,255,255,.11);
}

.sidebar-footer strong {
  font-size: 12px;
}

.sidebar-footer small {
  color: rgba(255,255,255,.43);
  font-size: 9px;
  line-height: 1.55;
}

.main {
  background: var(--warm);
}

.topbar {
  min-height: 72px;
  gap: 12px;
  padding: 0 26px;
  border-bottom-color: var(--line);
  background: rgba(255,254,250,.96);
  backdrop-filter: blur(16px);
}

.topbar-product {
  min-width: 222px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  white-space: nowrap;
}

.topbar-product strong {
  font-size: 14px;
  font-weight: 800;
}

.topbar-product span {
  padding-left: 8px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.topbar-date {
  padding-right: 12px;
  border-right: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.role-switcher {
  gap: 7px;
  font-size: 11px;
}

.role-switcher select,
.role-switcher.personal-role strong {
  min-height: 36px;
  border-color: var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
}

.member-button {
  min-width: 118px;
  height: 44px;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: 21px 16px;
  gap: 0 9px;
  padding: 2px 10px 2px 3px;
  border-color: transparent;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.member-button:hover,
.member-button:focus-visible {
  outline: none;
  background: var(--surface-soft);
}

.member-button > .topbar-member-figure {
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background-color: var(--coral-soft);
  background-image: url("/assets/team-figures.png");
  background-repeat: no-repeat;
  background-size: 400% 300%;
  background-position: var(--figure-x) var(--figure-y);
  filter: none;
}

.member-button strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.member-button small {
  color: var(--muted);
  font-size: 9px;
}

.sync-state,
.undo-center-button,
.editor-mode-button {
  min-height: 36px;
  border-color: transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
}

.content {
  width: 100%;
  max-width: 1580px;
  margin: 0 auto;
  padding: 34px clamp(24px, 3vw, 48px) 96px;
}

.page-head {
  min-height: 86px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  color: #0e1519;
  font-family: "Arial Narrow", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: -.07em;
}

.page-head p {
  max-width: 760px;
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
}

.page-actions {
  align-items: center;
  gap: 8px;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 760;
}

.primary-button {
  border-color: var(--coral);
  background: var(--coral);
  color: #fff;
}

.primary-button:hover,
.primary-button:focus-visible {
  border-color: var(--coral-dark);
  background: var(--coral-dark);
  outline: none;
  box-shadow: 0 0 0 3px rgba(242,90,61,.16);
}

.secondary-button {
  border-color: #bdbab3;
  background: var(--surface);
  color: var(--ink);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: var(--ink);
  background: var(--surface);
  outline: none;
}

.text-action {
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 750;
}

.dashboard-method {
  min-height: 47px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: -1px 0 18px;
  padding: 0 14px;
  border-left: 4px solid var(--coral);
  background: var(--surface-soft);
}

.dashboard-method strong {
  color: var(--coral-dark);
  font-family: "Arial Narrow", sans-serif;
  font-size: 11px;
  letter-spacing: .12em;
}

.dashboard-method span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.dashboard-method .text-action {
  margin-left: auto;
}

.summary-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.summary-item {
  min-height: 126px;
  padding: 20px 24px 18px;
}

.summary-item + .summary-item::before {
  top: 20px;
  bottom: 20px;
  background: var(--line);
}

.summary-label {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
}

.summary-signal {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
}

.summary-value {
  margin-top: 11px;
  color: var(--coral-dark);
  font-family: "Arial Narrow", "PingFang SC", sans-serif;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.summary-value small {
  color: var(--muted);
  font-size: 12px;
}

.summary-caption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.dashboard-grid,
.mine-grid,
.formal-grid {
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 18px;
}

.stack,
.right-rail,
.mine-side {
  gap: 18px;
}

.panel {
  border-color: var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}

.panel-header {
  min-height: 62px;
  padding: 0 18px;
  border-bottom-color: var(--line);
}

.panel-header h2,
.panel-header h3 {
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -.02em;
}

.panel-subtitle {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.panel-body {
  padding: 18px;
}

.attention-list {
  display: grid;
}

.attention-list button {
  min-height: 51px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}

.attention-list button:last-child {
  border-bottom: 0;
}

.attention-list button:hover,
.attention-list button:focus-visible {
  outline: none;
  background: var(--surface-soft);
}

.attention-list strong {
  color: var(--coral-dark);
  font-size: 22px;
}

.attention-list .danger strong {
  color: var(--red);
}

.toolbar {
  gap: 8px;
  margin-bottom: 14px;
}

.toolbar select,
.toolbar input,
.search-input,
.status-select {
  min-height: 39px;
  border-color: #c9c5bd;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
}

.table-wrap {
  border-color: var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.data-table {
  background: var(--surface);
}

.data-table th {
  height: 44px;
  padding: 0 13px;
  border-bottom-color: var(--line);
  background: var(--surface-soft);
  color: #56646a;
  font-size: 12px;
  font-weight: 760;
}

.data-table td {
  min-height: 58px;
  padding: 12px 13px;
  border-bottom-color: var(--line-soft);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
}

.data-table tbody tr:hover {
  background: #fff7f2;
}

.task-title {
  min-width: 210px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
}

.task-meta,
.recurring-task-badge {
  font-size: 10px;
}

.task-result-trigger {
  width: 31px;
  height: 31px;
  border-color: #f2a18f;
  border-radius: 6px;
  background: var(--coral-soft);
  color: var(--coral-dark);
  font-size: 11px;
}

.task-result-trigger:hover,
.task-result-trigger:focus-visible {
  border-color: var(--coral);
  outline: none;
}

.tag {
  min-height: 25px;
  border-radius: 5px;
  font-size: 11px;
}

.risk-row {
  padding: 15px 17px;
  border-bottom-color: var(--line);
}

.risk-content strong {
  color: var(--ink);
  font-size: 13px;
}

.risk-content p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.risk-footer {
  font-size: 10px;
}

.mine-command,
.today-command,
.culture-banner,
.event-hero,
.getting-next,
.formal-summary,
.cycle-guide,
.cycle-kpis,
.sop-command-strip,
.sop-operating-rule,
.role-brief {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

.mine-command {
  min-height: 125px;
  margin-bottom: 16px;
  padding: 22px 24px;
  background: var(--surface);
  color: var(--ink);
}

.mine-command-copy > span,
.role-kicker {
  color: var(--coral-dark);
  font-size: 10px;
  letter-spacing: .1em;
}

.mine-command-copy h2 {
  margin-top: 7px;
  color: var(--ink);
  font-size: clamp(24px, 2.5vw, 36px);
  letter-spacing: -.04em;
}

.mine-command-copy p {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.7;
}

.mine-command-action small {
  color: var(--muted);
  font-size: 10px;
}

.mine-command .secondary-button {
  border-color: #bdbab3;
  background: var(--surface);
  color: var(--ink);
}

.mine-command .secondary-button:hover,
.mine-command .secondary-button:focus-visible {
  border-color: var(--coral);
  background: #fff;
  color: var(--coral-dark);
}

.mine-summary {
  margin-bottom: 18px;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.mine-summary > div {
  min-height: 94px;
  padding: 17px 20px;
  background: transparent;
}

.mine-summary span {
  color: var(--ink-2);
  font-size: 12px;
}

.mine-summary strong {
  color: var(--coral-dark);
  font-size: 34px;
}

.mine-summary small {
  color: var(--muted);
  font-size: 11px;
}

.decision-row,
.mini-list-item,
.account-center-row,
.record-permission-row,
.sop-library-row,
.formal-row,
.customer-row {
  border-color: var(--line-soft);
  color: var(--ink);
}

.decision-row strong,
.mini-list-item strong,
.account-center-row strong,
.record-permission-row strong,
.sop-library-row h3 {
  font-size: 13px;
}

.decision-row small,
.mini-list-item small,
.account-center-row small,
.record-permission-row small,
.sop-library-row p,
.sop-library-row small {
  font-size: 11px;
  line-height: 1.55;
}

.cycle-card,
.sop-card,
.role-card,
.product-card,
.project-card,
.delivery-project-card,
.portfolio-card,
.plan-phase {
  border-color: var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}

.cycle-card:hover,
.sop-card:hover,
.project-card:hover {
  border-color: #aaa69f;
  box-shadow: 0 10px 24px rgba(21,35,43,.06);
}

.cycle-card h3,
.sop-card h3,
.role-card h3,
.product-card h3,
.project-card h3 {
  color: var(--ink);
  font-size: 16px;
}

.cycle-card p,
.sop-card p,
.role-card p,
.product-card p,
.project-card p {
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.65;
}

.segmented {
  border-color: var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.segmented button {
  min-height: 38px;
  color: var(--ink-2);
  font-size: 12px;
}

.segmented button.active {
  background: var(--coral);
  color: #fff;
}

.drawer-backdrop,
.modal-backdrop {
  background: rgba(10,20,25,.62);
  backdrop-filter: blur(5px);
}

.drawer,
.modal {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(10,20,25,.22);
}

.drawer-header,
.modal-header {
  min-height: 90px;
  padding: 20px 24px;
  border-bottom-color: var(--line);
  background: var(--surface);
}

.drawer-header h2,
.modal-header h2 {
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.035em;
}

.drawer-header p,
.modal-header p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.drawer-body,
.modal-body {
  background: var(--surface);
}

.form-grid {
  gap: 17px;
}

.field {
  gap: 8px;
}

.field label,
.field > span,
.form-grid label,
.form-grid label > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

.field input,
.field select,
.field textarea,
.form-grid input,
.form-grid select,
.form-grid textarea {
  min-height: 46px;
  padding: 0 13px;
  border-color: #bbb8b0;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

.field textarea,
.form-grid textarea {
  min-height: 118px;
  padding-block: 12px;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: var(--coral);
  outline: none;
  box-shadow: 0 0 0 3px rgba(242,90,61,.14);
}

.field small,
.form-grid small,
.form-help {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.modal-footer,
.drawer-sticky-actions {
  min-height: 72px;
  border-top-color: var(--line);
  background: var(--surface);
}

.metrics-empty {
  border-color: var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.metrics-empty strong {
  color: var(--ink);
  font-size: 17px;
}

.metrics-empty p,
.empty-row {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.editor-section,
.editor-form-card,
.editor-form-field,
.account-permission-option,
.record-permission-row {
  border-color: var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.editor-section > summary,
.editor-form-card > summary,
.editor-form-field-head {
  color: var(--ink);
}

.editor-mode-button.active {
  border-color: var(--coral);
  background: var(--coral-soft);
  color: var(--coral-dark);
}

.toast {
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 18px 40px rgba(10,20,25,.22);
}

:where(button, select, input, textarea, summary):focus-visible {
  outline: 3px solid rgba(242,90,61,.22);
  outline-offset: 2px;
}

@media (max-width: 1280px) {
  :root {
    --sidebar: 196px;
  }

  .topbar-product {
    min-width: 0;
  }

  .topbar-product span,
  .topbar-date,
  .sync-state span,
  .undo-center-label {
    display: none;
  }

  .dashboard-grid,
  .mine-grid,
  .formal-grid {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .content {
    padding-inline: 24px;
  }
}

@media (max-width: 900px) {
  html,
  body {
    font-size: 15px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    width: min(86vw, 300px);
  }

  .topbar {
    min-height: 62px;
    padding: 0 14px;
  }

  .topbar-product,
  .role-switcher,
  .editor-mode-button,
  .undo-center-button,
  .sync-state,
  .topbar > .secondary-button,
  .topbar > .primary-button {
    display: none;
  }

  .member-button {
    margin-left: auto;
  }

  .content {
    padding: 23px 15px 112px;
  }

  .page-head {
    min-height: 0;
    display: grid;
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  .page-head h1 {
    font-size: 36px;
  }

  .page-head p {
    font-size: 13px;
  }

  .page-actions {
    width: 100%;
  }

  .page-actions > button {
    flex: 1;
  }

  .dashboard-method {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 12px 13px;
  }

  .dashboard-method .text-action {
    margin-left: 0;
  }

  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-item {
    min-height: 106px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }

  .summary-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .summary-item:nth-child(3)::before {
    display: none;
  }

  .summary-value {
    font-size: 36px;
  }

  .dashboard-grid,
  .mine-grid,
  .formal-grid {
    grid-template-columns: 1fr;
  }

  .right-rail,
  .mine-side {
    grid-template-columns: 1fr;
  }

  .mine-command {
    display: grid;
    padding: 18px;
  }

  .mine-command-copy h2 {
    font-size: 25px;
  }

  .mine-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .mine-summary > div {
    min-height: 84px;
  }

  .panel-header {
    min-height: 58px;
    padding: 0 14px;
  }

  .panel-body {
    padding: 13px;
  }

  .data-table th,
  .data-table td {
    font-size: 12px;
  }

  .drawer,
  .modal {
    border-radius: 16px 16px 0 0;
  }

  .drawer-header,
  .modal-header {
    min-height: 82px;
    padding: 16px 18px;
  }

  .field input,
  .field select,
  .form-grid input,
  .form-grid select {
    min-height: 48px;
    font-size: 16px;
  }

  .field textarea,
  .form-grid textarea {
    font-size: 16px;
  }

  .mobile-bottom-nav {
    border-top-color: var(--line);
    background: rgba(255,254,250,.97);
  }

  .mobile-nav-button {
    color: var(--muted);
    font-size: 10px;
  }

  .mobile-nav-button.active {
    color: var(--coral-dark);
  }

  .mobile-nav-icon {
    display: none;
  }

  .mobile-fab {
    border-radius: 7px;
    background: var(--coral);
    color: #fff;
    box-shadow: 0 12px 26px rgba(242,90,61,.24);
  }
}

/* 全站可读性与页面一致性：所有业务页沿用同一套深色 / 暖白 / 珊瑚色语言。 */
.content :where(
  .getting-next,
  .culture-banner,
  .product-rule
) {
  border: 0;
  border-radius: var(--radius);
  background: var(--nav);
  color: #fff;
  box-shadow: none;
}

.content :where(
  .getting-next,
  .culture-banner,
  .product-rule
) :where(span, p) {
  color: rgba(255,255,255,.7);
  font-size: 12px;
  line-height: 1.65;
}

.content :where(
  .getting-next,
  .culture-banner,
  .product-rule
) :where(h2, strong) {
  color: #fff;
}

.content :where(
  .formal-summary,
  .file-principles,
  .customer-summary
) {
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.content :where(
  .getting-steps article,
  .culture-section,
  .delivery-project-card,
  .product-card,
  .file-group,
  .file-card,
  .customer-contract,
  .customer-delivery-card,
  .handoff-boundary article,
  .delivery-file-row
) {
  border-color: var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}

.content :where(
  .first-use-callout,
  .getting-finish,
  .missing-alert,
  .customer-pause,
  .customer-confirm-box
) {
  border-radius: 8px;
  box-shadow: none;
}

.content :where(
  .getting-steps article,
  .field-translation article,
  .culture-value-grid article,
  .handoff-example > div,
  .handoff-boundary article,
  .customer-contract-grid article
) {
  border-color: var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.content :where(
  .getting-next h2,
  .culture-banner h2,
  .culture-section h2,
  .product-rule h2,
  .customer-section-head h2
) {
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -.025em;
}

.content :where(
  .getting-steps h3,
  .delivery-project-head h3,
  .product-card-head h2,
  .file-group-head h2,
  .customer-delivery-card > h3,
  .handoff-action-card > strong
) {
  color: var(--ink);
  font-size: 16px;
  font-weight: 820;
  line-height: 1.45;
}

.content :where(
  .first-run-rule strong,
  .getting-steps p,
  .field-translation p,
  .culture-value-grid p,
  .getting-finish p,
  .handoff-example strong,
  .formal-summary span,
  .formal-summary small,
  .formal-row small,
  .missing-alert p,
  .delivery-project-head span,
  .delivery-project-meta span,
  .delivery-mini-list strong,
  .delivery-mini-list small,
  .product-card > p,
  .product-item-list summary strong,
  .product-item-list p,
  .file-principles span,
  .file-principles strong,
  .file-group-head span,
  .file-card h3,
  .file-card p,
  .file-card small,
  .handoff-boundary p,
  .delivery-file-row strong,
  .delivery-file-row small,
  .customer-contract > div > p,
  .customer-contract-grid p,
  .customer-section-head p,
  .customer-delivery-card > p,
  .customer-delivery-card dt,
  .customer-delivery-card dd,
  .customer-files-inline > strong,
  .customer-file-link strong,
  .customer-file-link small,
  .customer-confirm-box summary,
  .customer-confirm-box form > small,
  .customer-decision strong,
  .customer-decision span,
  .customer-decision p
) {
  font-size: 12px;
  line-height: 1.65;
}

.content :where(
  .getting-steps small,
  .field-translation small,
  .culture-value-grid strong,
  .handoff-example span,
  .formal-status,
  .missing-pills button,
  .product-meta span,
  .product-item-list summary span,
  .product-item-list summary small,
  .file-type,
  .delivery-file-row > span,
  .delivery-file-row b,
  .customer-contract-grid span,
  .customer-delivery-head small,
  .customer-delivery-head > strong
) {
  font-size: 11px;
  line-height: 1.45;
}

.content .getting-steps article > span {
  background: var(--coral);
}

.content :where(
  .field-translation strong,
  .culture-section > div:first-child > span,
  .product-card-head span,
  .file-principles span,
  .file-group-head > strong,
  .handoff-boundary span,
  .delivery-file-row b,
  .customer-contract-grid span
) {
  color: var(--coral-dark);
}

.content .progress-number strong,
.content .formal-row > span:last-child {
  color: var(--coral-dark);
}

.content .product-meta span {
  background: var(--coral-soft);
  color: var(--coral-dark);
}

.content .delivery-project-actions .secondary-button,
.content .file-card .secondary-button {
  min-height: 36px;
  padding-inline: 11px;
  font-size: 12px;
}

.customer-portal {
  background: var(--warm);
  color: var(--ink);
}

.customer-header {
  background: var(--nav);
}

.customer-hero {
  background: var(--nav);
  box-shadow: none;
}

.customer-hero > div:first-child > span,
.customer-progress-ring {
  color: var(--coral);
}

.customer-progress-ring {
  border-top-color: var(--coral);
}

.customer-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 920;
  letter-spacing: -.05em;
}

.customer-hero p,
.customer-loading span {
  font-size: 13px;
  line-height: 1.65;
}

.customer-summary span,
.customer-summary strong {
  font-size: 12px;
}

.customer-summary strong {
  margin-top: 7px;
  color: var(--coral-dark);
  font-size: 27px;
}

.team-key-card,
.join-member-card {
  border-color: rgba(20,38,46,.22);
  border-radius: 18px;
  background: rgba(255,250,242,.96);
  box-shadow: 0 22px 52px rgba(51,28,22,.14);
}

.role-identity-card {
  border-color: rgba(20,38,46,.24);
  background: rgba(255,250,242,.96);
}

/* ─────────────────────────────────────────────────────────────
   TOONHUB 1:1 visual reconstruction
   ───────────────────────────────────────────────────────────── */

.role-lobby {
  --lobby-coral: #ff5638;
  --lobby-cream: #fffaf2;
  --lobby-ink: #101d24;
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background-color: var(--lobby-coral);
  background-image: url("/assets/toonhub-coral-grain.jpg");
  background-position: center;
  background-repeat: repeat;
  background-size: 620px 620px;
  color: var(--lobby-cream);
  isolation: isolate;
}

.role-lobby::before,
.role-lobby::after {
  display: none;
}

.role-lobby-header {
  position: absolute;
  z-index: 40;
  inset: 0 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px 38px;
  border: 0;
  color: #fff;
}

.role-lobby-brand {
  display: grid;
  gap: 5px;
  align-items: start;
}

.role-lobby-brand > span {
  display: none;
}

.role-lobby-brand strong {
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .38em;
}

.role-lobby-brand small {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .02em;
}

.role-lobby-actions,
.role-lobby-values {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.role-lobby-actions button,
.role-lobby-values span,
.lobby-back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.68);
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .03em;
}

.role-lobby-actions button:hover,
.role-lobby-actions button:focus-visible,
.lobby-back-button:hover,
.lobby-back-button:focus-visible {
  border-bottom-color: #fff;
  outline: none;
}

.role-lobby-values span {
  border-bottom: 0;
  color: rgba(255,255,255,.72);
}

.role-lobby-word {
  position: absolute;
  z-index: 1;
  inset: 68px 0 auto;
  color: rgba(255,255,255,.96);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(210px, 26vw, 440px);
  font-stretch: condensed;
  font-weight: 950;
  line-height: .82;
  letter-spacing: -.035em;
  text-align: center;
  white-space: nowrap;
  -webkit-text-stroke: 0;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(66,22,13,.04);
  transform: scaleX(.78);
  transform-origin: 50% 0;
  user-select: none;
}

.role-stage {
  position: relative;
  z-index: 2;
  min-height: 100svh;
}

.role-carousel {
  position: absolute;
  z-index: 4;
  inset: 88px 0 10px;
  overflow: hidden;
  pointer-events: none;
}

.role-character {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: clamp(430px, 39vw, 660px);
  height: auto;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform-origin: 50% 100%;
  transition:
    transform 520ms cubic-bezier(.2,.82,.2,1),
    opacity 360ms ease,
    filter 360ms ease;
}

.role-character.center {
  z-index: 9;
  bottom: -60px;
  width: clamp(470px, 42vw, 710px);
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.role-character.left {
  z-index: 7;
  bottom: 45px;
  opacity: 1;
  transform: translateX(calc(-50% - min(25vw, 405px))) scale(.56);
  filter: saturate(.9);
}

.role-character.right {
  z-index: 7;
  bottom: 45px;
  opacity: 1;
  transform: translateX(calc(-50% + min(25vw, 405px))) scale(.56);
  filter: saturate(.9);
}

.role-character.far-left {
  z-index: 6;
  bottom: 82px;
  opacity: .82;
  transform: translateX(calc(-50% - min(13vw, 215px))) scale(.35);
  filter: saturate(.72);
}

.role-character.far-right {
  z-index: 1;
  opacity: 0;
  transform: translateX(-50%) scale(.25);
  pointer-events: none;
}

.role-character.hidden {
  z-index: 1;
  opacity: 0;
  transform: translateX(-50%) scale(.25);
  pointer-events: none;
}

.role-character .member-figure {
  filter: drop-shadow(0 26px 18px rgba(61,22,13,.18));
}

.role-character-shadow {
  z-index: 1;
  bottom: 2.5%;
  width: 43%;
  height: 4.5%;
  background: rgba(69,26,16,.22);
  filter: blur(14px);
}

.role-character:hover.center,
.role-character:focus-visible.center {
  outline: none;
  transform: translateX(-50%) translateY(-7px) scale(1.018);
}

.role-stage-copy {
  position: absolute;
  z-index: 20;
  left: 40px;
  top: auto;
  bottom: 146px;
  width: min(390px, 27vw);
  color: #fff;
}

.role-stage-copy > span {
  color: rgba(255,255,255,.82);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .16em;
}

.role-stage-copy h1 {
  margin: 8px 0 4px;
  color: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(31px, 3.2vw, 48px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.05em;
}

.role-stage-copy > strong {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.role-stage-copy p {
  max-width: 360px;
  margin: 9px 0 0;
  color: rgba(255,255,255,.84);
  font-size: 12px;
  font-weight: 520;
  line-height: 1.6;
}

.role-lobby-controls {
  position: absolute;
  z-index: 25;
  left: 40px;
  bottom: 70px;
  display: flex;
  gap: 18px;
}

.role-arrow {
  position: static;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  transition: 160ms ease;
}

.role-arrow:hover,
.role-arrow:focus-visible {
  border-color: #fff;
  outline: none;
  background: #fff;
  color: var(--lobby-coral);
  transform: translateY(-3px);
}

.role-lobby-hint {
  display: none;
}

.role-enter-button.role-discover {
  position: absolute;
  z-index: 25;
  right: 42px;
  bottom: 42px;
  width: auto;
  min-height: 64px;
  display: inline-flex;
  grid-column: auto;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "PingFang SC", sans-serif;
  font-size: clamp(26px, 2.8vw, 44px);
  font-weight: 900;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.role-enter-button.role-discover i {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 27px;
  transition: 160ms ease;
}

.role-enter-button.role-discover:hover,
.role-enter-button.role-discover:focus-visible {
  outline: none;
  box-shadow: none;
  transform: none;
}

.role-enter-button.role-discover:hover i,
.role-enter-button.role-discover:focus-visible i {
  background: #fff;
  color: var(--lobby-coral);
  transform: translateX(5px);
}

.role-lobby-footer,
.role-identity-card {
  display: none;
}

.key-stage {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  display: block;
  padding: 0;
}

.key-figures {
  position: absolute;
  inset: 92px 0 12px;
  height: auto;
}

.key-figure {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: clamp(380px, 37vw, 620px);
  height: auto;
  aspect-ratio: 3 / 4;
}

.key-figure.f0 {
  z-index: 4;
  left: 31%;
  transform: translateX(-50%) scale(.56);
  filter: saturate(.82);
}

.key-figure.f1 {
  z-index: 7;
  left: 50%;
  transform: translateX(-50%);
}

.key-figure.f2 {
  z-index: 5;
  right: auto;
  left: 70%;
  transform: translateX(-50%) scale(.6);
  filter: saturate(.86);
}

.team-key-card {
  position: absolute;
  z-index: 20;
  left: 40px;
  bottom: 38px;
  width: min(390px, 28vw);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

.team-key-card > span {
  color: rgba(255,255,255,.84);
  font-size: 10px;
}

.team-key-card h1 {
  margin: 8px 0 8px;
  color: #fff;
  font-size: clamp(31px, 3vw, 46px);
}

.team-key-card > p {
  margin: 0 0 14px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
}

.team-key-card label {
  gap: 6px;
}

.team-key-card label > span {
  color: #fff;
  font-size: 11px;
}

.team-key-card input {
  height: 48px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 0;
  background: rgba(66,21,13,.12);
  color: #fff;
  font-size: 15px;
}

.team-key-card input::placeholder {
  color: rgba(255,255,255,.62);
}

.team-key-card .role-enter-button,
.join-member-card .role-enter-button {
  width: 100%;
  min-height: 50px;
  margin-top: 10px;
  padding: 0 16px;
  border: 2px solid #fff;
  border-radius: 0;
  background: #fff;
  color: var(--lobby-coral);
  font-size: 14px;
}

.team-key-card .role-enter-button i,
.join-member-card .role-enter-button i {
  font-size: 20px;
}

.team-key-card > small {
  color: rgba(255,255,255,.65);
  font-size: 10px;
  text-align: left;
}

.join-stage {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(440px, .7fr);
  align-items: end;
  gap: 30px;
  padding: 112px 6vw 42px;
}

.join-figure-preview {
  height: min(76vh, 760px);
  color: #fff;
}

.join-figure-preview .member-figure {
  width: min(620px, 100%);
}

.join-figure-preview > span {
  border-color: rgba(255,255,255,.7);
  color: #fff;
  font-size: 10px;
}

.join-member-card {
  max-height: calc(100svh - 150px);
  padding: 28px;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 0;
  background: rgba(255,250,242,.97);
  color: var(--lobby-ink);
  box-shadow: 0 22px 58px rgba(67,21,13,.17);
  overflow: auto;
}

.join-member-card h1 {
  color: var(--lobby-ink);
}

.join-member-card .role-enter-button {
  border-color: var(--lobby-ink);
  background: var(--lobby-ink);
  color: #fff;
}

.member-login-gate {
  background: var(--lobby-bg);
  transition: background-color 650ms cubic-bezier(.4,0,.2,1);
}

.member-login-stage {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .55fr);
  align-items: end;
  gap: 36px;
  padding: 112px 7vw 42px;
}

.member-login-figure {
  height: min(78vh, 780px);
  display: grid;
  align-items: end;
  justify-items: center;
  overflow: hidden;
}

.member-login-figure .member-figure {
  width: min(660px, 100%);
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 28px 26px rgba(65, 20, 16, .24));
}

.member-login-card {
  align-self: center;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.58);
  background: rgba(255,250,242,.97);
  box-shadow: 0 24px 70px rgba(65,20,16,.18);
  color: var(--lobby-ink);
}

.member-login-card > span {
  color: var(--lobby-coral);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.member-login-card h1 {
  margin: 8px 0 2px;
  color: var(--lobby-ink);
  font-size: clamp(34px, 4vw, 58px);
  line-height: .96;
}

.password-change-gate .member-login-card h1 {
  font-size: clamp(34px, 3.2vw, 46px);
}

.member-login-card > strong {
  display: block;
  color: var(--lobby-coral);
  font-size: 16px;
}

.member-login-card > p {
  margin: 14px 0 20px;
  color: #6d5a54;
  line-height: 1.7;
}

.member-login-card label {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.member-login-card label > span {
  color: var(--lobby-ink);
  font-size: 12px;
  font-weight: 800;
}

.member-login-card input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid #d9cfc8;
  background: #fff;
  color: var(--lobby-ink);
  font-size: 16px;
}

.member-login-card .role-enter-button {
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  border: 2px solid var(--lobby-ink);
  background: var(--lobby-ink);
  color: #fff;
}

.member-login-card > small {
  display: block;
  margin-top: 12px;
  color: #8b7770;
  text-align: center;
}

.member-login-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px;
  border-left: 3px solid var(--lobby-coral);
  background: #fff0e8;
  color: #744333;
  font-size: 12px;
  line-height: 1.55;
}

.member-login-notice i {
  margin-top: 2px;
  color: var(--lobby-coral);
  font-size: 19px;
}

.account-action-stack {
  display: grid;
  gap: 10px;
}

/* ─────────────────────────────────────────────────────────────
   账号专属工作区皮肤：只改变主工作区，不动橙黑框架和顶部羊驼。
   ───────────────────────────────────────────────────────────── */
html[data-workspace-skin] {
  --workspace-skin-color: #fff;
  --workspace-skin-image: none;
  --workspace-skin-size: auto;
  --workspace-skin-position: center;
}

html[data-workspace-skin="brand-orange"] {
  --workspace-skin-color: #fff8f3;
  --workspace-skin-image:
    radial-gradient(circle at 82% 8%, rgba(255, 118, 76, .18), transparent 30%),
    repeating-linear-gradient(135deg, rgba(255, 86, 56, .038) 0 1px, transparent 1px 18px);
}

html[data-workspace-skin="clear-sky"] {
  --workspace-skin-color: #f4faff;
  --workspace-skin-image:
    radial-gradient(circle at 18% 8%, rgba(73, 164, 219, .17), transparent 31%),
    radial-gradient(circle at 90% 72%, rgba(123, 207, 231, .13), transparent 34%);
}

html[data-workspace-skin="mint-mist"] {
  --workspace-skin-color: #f3fbf7;
  --workspace-skin-image:
    radial-gradient(circle at 12% 12%, rgba(49, 174, 137, .16), transparent 29%),
    linear-gradient(145deg, transparent 58%, rgba(126, 211, 180, .12));
}

html[data-workspace-skin="soft-lilac"] {
  --workspace-skin-color: #faf7ff;
  --workspace-skin-image:
    radial-gradient(circle at 75% 9%, rgba(154, 121, 204, .16), transparent 31%),
    radial-gradient(circle at 12% 78%, rgba(255, 158, 137, .10), transparent 28%);
}

html[data-workspace-skin="tech-grid"] {
  --workspace-skin-color: #f3f8fa;
  --workspace-skin-image:
    linear-gradient(rgba(31, 126, 143, .065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 126, 143, .065) 1px, transparent 1px),
    radial-gradient(circle at 70% 12%, rgba(13, 152, 171, .16), transparent 28%);
  --workspace-skin-size: 28px 28px, 28px 28px, auto;
}

html[data-workspace-skin="custom"] {
  --workspace-skin-color: #f6f4ef;
  --workspace-skin-image:
    linear-gradient(rgba(255, 255, 255, .78), rgba(247, 243, 235, .82)),
    var(--workspace-custom-image);
  --workspace-skin-size: auto, cover;
  --workspace-skin-position: center, center;
}

html[data-workspace-skin] .app-shell,
html[data-workspace-skin] .main {
  background-color: var(--workspace-skin-color);
}

html[data-workspace-skin] .main {
  background-image: var(--workspace-skin-image);
  background-position: var(--workspace-skin-position);
  background-size: var(--workspace-skin-size);
  background-attachment: fixed;
}

html[data-workspace-skin] .content {
  background: transparent;
}

.skin-account-button {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid #f0b7a9;
  border-radius: 9px;
  background: linear-gradient(135deg, #fff 0%, #fff5f1 100%);
  color: var(--ink);
  text-align: left;
}

.skin-account-button:hover,
.skin-account-button:focus-visible {
  border-color: var(--coral);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 86, 56, .12);
}

.skin-account-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--coral);
  color: #fff;
  font-size: 20px;
}

.skin-account-button > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.skin-account-button strong {
  font-size: 12px;
}

.skin-account-button small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.skin-account-button > i {
  color: var(--coral);
  font-size: 16px;
}

.modal:has(.workspace-skin-grid) {
  width: min(880px, calc(100% - 28px));
}

.workspace-skin-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.workspace-skin-heading > div {
  display: grid;
  gap: 4px;
}

.workspace-skin-heading span {
  color: var(--coral-dark);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
}

.workspace-skin-heading strong {
  font-size: 13px;
}

.workspace-skin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.workspace-skin-option {
  min-width: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.workspace-skin-option:hover,
.workspace-skin-option:focus-visible,
.workspace-skin-option.selected {
  border-color: var(--coral);
  outline: none;
}

.workspace-skin-option.selected {
  box-shadow: 0 0 0 3px rgba(255, 86, 56, .11);
}

.workspace-skin-swatch {
  position: relative;
  height: 54px;
  overflow: hidden;
  border: 1px solid rgba(21, 35, 43, .1);
  border-radius: 7px;
  background-color: #fff;
}

.workspace-skin-swatch::before,
.workspace-skin-swatch::after {
  content: "";
  position: absolute;
  background: #fff;
  box-shadow: 0 3px 9px rgba(21, 35, 43, .09);
}

.workspace-skin-swatch::before {
  inset: 8px 8px auto;
  height: 15px;
  border-radius: 3px;
}

.workspace-skin-swatch::after {
  inset: 29px 8px 8px;
  border-radius: 3px;
}

.skin-swatch-brand-orange {
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 118, 76, .35), transparent 34%),
    repeating-linear-gradient(135deg, rgba(255, 86, 56, .10) 0 1px, transparent 1px 9px),
    #fff8f3;
}

.skin-swatch-clear-sky {
  background:
    radial-gradient(circle at 18% 8%, rgba(73, 164, 219, .32), transparent 38%),
    #f4faff;
}

.skin-swatch-mint-mist {
  background:
    radial-gradient(circle at 12% 12%, rgba(49, 174, 137, .30), transparent 36%),
    #f3fbf7;
}

.skin-swatch-soft-lilac {
  background:
    radial-gradient(circle at 75% 9%, rgba(154, 121, 204, .30), transparent 38%),
    #faf7ff;
}

.skin-swatch-tech-grid {
  background:
    linear-gradient(rgba(31, 126, 143, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 126, 143, .13) 1px, transparent 1px),
    #f3f8fa;
  background-size: 10px 10px;
}

.workspace-skin-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.workspace-skin-copy strong {
  font-size: 11px;
}

.workspace-skin-copy small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.workspace-skin-check {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: transparent;
  font-size: 12px;
}

.workspace-skin-option.selected .workspace-skin-check {
  border-color: var(--coral);
  background: var(--coral);
  color: #fff;
}

.workspace-custom-skin {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(230px, .8fr);
  gap: 12px 16px;
  margin-top: 16px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.workspace-custom-preview {
  grid-row: 1 / 3;
  min-height: 112px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px dashed #c9c5bd;
  border-radius: 9px;
  background-color: #fff;
  background-position: center;
  background-size: cover;
}

.workspace-custom-preview.has-image {
  border-style: solid;
}

.workspace-custom-preview.selected {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 86, 56, .10);
}

.workspace-custom-preview > span {
  max-width: 230px;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .90);
  text-align: center;
  backdrop-filter: blur(8px);
}

.workspace-custom-preview i {
  color: var(--coral);
  font-size: 20px;
}

.workspace-custom-preview strong {
  font-size: 10px;
}

.workspace-custom-preview small,
.workspace-skin-status {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.workspace-custom-actions {
  align-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.workspace-custom-actions .secondary-button {
  flex: 1;
}

.workspace-skin-status {
  align-self: start;
  margin: 0;
  padding: 9px 11px;
  border-left: 3px solid var(--coral);
  background: #fff;
}

@media (max-width: 760px) {
  .workspace-skin-grid {
    grid-template-columns: 1fr;
  }

  .workspace-custom-skin {
    grid-template-columns: 1fr;
  }

  .workspace-custom-preview {
    grid-row: auto;
    min-height: 140px;
  }

  .workspace-custom-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .member-login-stage {
    grid-template-columns: 1fr;
    align-content: end;
    gap: 0;
    padding: 86px 18px 20px;
  }

  .member-login-figure {
    position: absolute;
    inset: 70px 0 auto;
    height: 43vh;
    opacity: .94;
  }

  .member-login-figure .member-figure {
    width: min(390px, 88vw);
  }

  .member-login-card {
    position: relative;
    z-index: 2;
    max-height: 57svh;
    padding: 22px;
    overflow: auto;
  }

  .member-login-card h1 {
    font-size: 38px;
  }
}

/* Workbench uses the same TOONHUB poster language instead of a second theme. */
.sidebar {
  position: relative;
  padding: 24px 12px 18px;
  background-color: var(--nav);
  background-image: url("/assets/toonhub-sidebar-splatter.jpg");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
}

.toon-brand {
  min-height: 64px;
  padding: 0 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.toon-brand strong {
  color: var(--coral);
  font-size: 26px;
  letter-spacing: .04em;
}

.toon-brand small {
  color: rgba(255,255,255,.6);
  font-size: 9px;
}

.nav {
  gap: 4px;
  padding: 10px 0 210px;
}

.nav-group-label {
  display: none;
}

.nav-button {
  min-height: 50px;
  display: flex;
  gap: 12px;
  padding: 0 13px;
  border-radius: 6px;
  color: rgba(255,255,255,.9);
  font-size: 14px;
}

.nav-icon {
  width: 23px;
  height: 23px;
  display: inline-grid;
  flex: 0 0 23px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 21px;
  font-weight: 400;
}

.nav-button.active,
.nav-button.personal-featured.active {
  border-color: var(--coral);
  background: var(--coral);
  color: #fff;
  box-shadow: none;
}

.nav-button:hover,
.nav-button:focus-visible {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
}

.nav-button.active:hover,
.nav-button.active:focus-visible {
  background: var(--coral);
}

.sidebar-footer {
  position: absolute;
  z-index: 12;
  inset: auto 18px 20px;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  pointer-events: none;
}

.sidebar-footer strong {
  display: block;
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 29px;
  line-height: .96;
  text-shadow: 0 2px 16px rgba(7,16,21,.7);
}

.sidebar-footer span {
  display: block;
  margin-top: 7px;
  color: rgba(255,255,255,.92);
  font-size: 10px;
  font-weight: 850;
  text-shadow: 0 1px 10px rgba(7,16,21,.72);
}

.sidebar-footer small {
  display: block;
  margin-top: 10px;
  color: rgba(255,255,255,.72);
  font-size: 9px;
  text-shadow: 0 1px 10px rgba(7,16,21,.72);
}

.topbar {
  min-height: 78px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,254,250,.98);
}

.topbar-product strong {
  font-size: 15px;
}

.content {
  max-width: none;
  padding: 28px 24px 88px;
}

.page-head {
  min-height: 102px;
  margin-bottom: 14px;
  padding: 10px 4px 20px;
}

.page-head h1 {
  font-size: clamp(45px, 4.6vw, 66px);
  line-height: .95;
}

.page-head p {
  margin-top: 12px;
  font-size: 13px;
}

.dashboard-method {
  min-height: 44px;
  margin-bottom: 0;
  border-left-width: 3px;
}

.summary-strip {
  margin-bottom: 0;
}

.summary-item {
  min-height: 132px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.dashboard-grid > .stack {
  gap: 14px;
  padding: 18px 20px 22px 0;
  border-right: 1px solid var(--line);
}

.dashboard-grid > .right-rail {
  gap: 0;
  padding: 18px 0 22px 20px;
}

.dashboard-grid > .right-rail > .panel {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.dashboard-grid > .right-rail > .panel:last-child {
  border-bottom: 0;
}

.dashboard-grid > .right-rail > .panel .panel-header {
  padding-inline: 0;
}

.dashboard-grid > .right-rail .attention-list button,
.dashboard-grid > .right-rail .risk-row {
  padding-inline: 0;
}

.panel {
  border-radius: 5px;
}

.cycle-card,
.sop-card,
.product-card,
.project-card,
.delivery-project-card {
  border-radius: 5px;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  border-radius: 4px;
}

.mobile-nav-icon {
  width: auto;
  height: auto;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 21px;
  font-weight: 400;
}

@media (max-width: 1180px) {
  .role-character {
    width: clamp(390px, 45vw, 560px);
  }

  .role-character.left {
    transform: translateX(calc(-50% - 28vw)) scale(.53);
  }

  .role-character.right {
    transform: translateX(calc(-50% + 28vw)) scale(.53);
  }

  .role-character.far-left,
  .role-character.far-right {
    opacity: 0;
    pointer-events: none;
  }

  .role-stage-copy {
    width: 300px;
  }

  .role-lobby-hint {
    display: none;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    width: min(86vw, 300px);
    height: 100svh;
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main {
    width: 100%;
  }

  .role-lobby-header {
    min-height: 64px;
    padding: 18px;
  }

  .role-lobby-brand strong {
    font-size: 14px;
  }

  .role-lobby-brand small {
    display: none;
  }

  .role-lobby-actions {
    gap: 15px;
  }

  .role-lobby-actions button {
    font-size: 0;
  }

  .role-lobby-actions button i {
    font-size: 19px;
  }

  .role-lobby-values {
    display: none;
  }

  .role-lobby-word {
    top: 72px;
    font-size: 30vw;
  }

  .role-carousel {
    inset: 118px -10vw 82px;
  }

  .role-character {
    width: min(118vw, 560px);
    bottom: 28px;
  }

  .role-character.center {
    width: min(118vw, 560px);
    bottom: 22px;
  }

  .role-character.left {
    bottom: 46px;
    opacity: .78;
    transform: translateX(calc(-50% - 62vw)) scale(.55);
  }

  .role-character.right {
    bottom: 46px;
    opacity: .78;
    transform: translateX(calc(-50% + 62vw)) scale(.55);
  }

  .role-character.far-left,
  .role-character.far-right {
    opacity: 0;
    pointer-events: none;
  }

  .role-stage-copy {
    left: 18px;
    bottom: 92px;
    width: min(220px, 57vw);
  }

  .role-stage-copy > span {
    font-size: 8px;
  }

  .role-stage-copy h1 {
    font-size: 32px;
  }

  .role-stage-copy > strong {
    font-size: 11px;
  }

  .role-stage-copy p {
    display: none;
  }

  .role-lobby-controls {
    left: 17px;
    bottom: 20px;
    gap: 11px;
  }

  .role-arrow {
    width: 45px;
    height: 45px;
    font-size: 19px;
  }

  .role-enter-button.role-discover {
    left: auto;
    right: 17px;
    bottom: 18px;
    width: max-content !important;
    max-width: none;
    min-height: 48px;
    justify-content: flex-end;
    gap: 10px;
    font-size: 20px;
    white-space: nowrap;
  }

  .role-enter-button.role-discover i {
    width: 45px;
    height: 45px;
    font-size: 19px;
  }

  .key-figures {
    inset: 100px -30vw 205px;
  }

  .key-figure {
    width: min(116vw, 540px);
  }

  .key-figure.f0 {
    left: 7%;
    transform: translateX(-50%) scale(.52);
  }

  .key-figure.f2 {
    left: 93%;
    transform: translateX(-50%) scale(.52);
  }

  .team-key-card {
    left: 17px;
    right: 17px;
    bottom: 18px;
    width: auto;
    padding: 14px;
    background: rgba(82,24,14,.18);
    backdrop-filter: blur(12px);
  }

  .team-key-card h1 {
    font-size: 31px;
  }

  .team-key-card > p,
  .team-key-card > small {
    display: none;
  }

  .join-stage {
    display: block;
    padding: 75px 14px 20px;
  }

  .join-figure-preview {
    height: 31vh;
  }

  .join-figure-preview .member-figure {
    width: 230px;
  }

  .join-member-card {
    max-height: 62vh;
    padding: 20px;
  }

  .content {
    padding: 22px 15px 112px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid > .stack {
    padding: 14px 0;
    border-right: 0;
  }

  .dashboard-grid > .right-rail {
    padding: 0;
  }
}

/*
 * The sections below preserve the original component rules that still provide
 * layout details. Keeping them in a lower-priority cascade layer lets the
 * unified YANZI OPS theme above remain visually consistent across every page.
 */
@layer legacy {

/* 正式交付系统 */
.sidebar-culture {
  margin: 0 18px 10px;
  padding: 9px 11px;
  border: 1px solid rgba(125, 224, 210, 0.2);
  border-radius: 8px;
  color: #8ce5d7;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.08em;
}

.culture-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 14px;
  padding: 23px 25px;
  border-radius: var(--radius);
  background: linear-gradient(130deg, #073244 0%, #075a64 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.culture-banner span,
.culture-banner h2,
.culture-banner p { display: block; margin: 0; }
.culture-banner > div:first-child > span { color: #7de0d2; font-size: 9px; font-weight: 800; }
.culture-banner h2 { margin-top: 5px; font-size: 23px; }
.culture-banner p { margin-top: 7px; color: rgba(255,255,255,.72); font-size: 10px; line-height: 1.7; }
.culture-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.culture-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.first-use-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 14px;
  padding: 17px 20px;
  border: 1px solid #9ddbd3;
  border-radius: var(--radius);
  background: var(--teal-soft);
}
.first-use-callout span,
.first-use-callout strong,
.first-use-callout p { display: block; margin: 0; }
.first-use-callout span { color: var(--teal); font-size: 9px; font-weight: 800; }
.first-use-callout strong { margin-top: 4px; font-size: 14px; }
.first-use-callout p { margin-top: 4px; color: var(--ink-2); font-size: 9px; }

.getting-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #073244, #087b77);
  color: #fff;
}
.getting-next span,
.getting-next h2,
.getting-next p { display: block; margin: 0; }
.getting-next > div:first-child > span { color: #7de0d2; font-size: 9px; font-weight: 800; }
.getting-next h2 { margin-top: 6px; font-size: 24px; }
.getting-next p { margin-top: 8px; color: rgba(255,255,255,.75); font-size: 10px; line-height: 1.7; }
.getting-next-number { text-align: center; }
.getting-next-number strong { display: block; font-size: 42px; }
.getting-next-number span { color: rgba(255,255,255,.7); font-size: 9px; }

.first-run-rule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.first-run-rule strong { margin-right: 5px; font-size: 10px; }
.first-run-rule span { padding: 6px 8px; border-radius: 5px; background: var(--surface-soft); color: var(--ink-2); font-size: 9px; }

.getting-panel { margin-bottom: 16px; }
.getting-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; padding: 16px; }
.getting-steps article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fff;
}
.getting-steps article > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.getting-steps h3,
.getting-steps p,
.getting-steps small { display: block; margin: 0; }
.getting-steps h3 { font-size: 12px; }
.getting-steps small { margin-top: 3px; color: var(--teal); font-size: 8px; font-weight: 700; }
.getting-steps p { margin-top: 7px; color: var(--ink-2); font-size: 9px; line-height: 1.6; }

.field-translation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; padding: 16px; }
.field-translation article { padding: 14px; border-radius: 10px; background: var(--surface-soft); }
.field-translation strong,
.field-translation p,
.field-translation small { display: block; margin: 0; }
.field-translation strong { color: var(--teal); font-size: 11px; }
.field-translation p { margin-top: 6px; font-size: 9px; line-height: 1.6; }
.field-translation small { margin-top: 7px; color: var(--muted); font-size: 8px; }

.culture-section {
  margin-bottom: 16px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.culture-section > div:first-child > span { color: var(--teal); font-size: 9px; font-weight: 800; }
.culture-section h2 { margin: 5px 0 0; font-size: 19px; }
.culture-value-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-top: 15px; }
.culture-value-grid article { padding: 13px; border: 1px solid var(--line-soft); border-radius: 9px; }
.culture-value-grid strong { display: block; font-size: 10px; }
.culture-value-grid p { margin: 6px 0 0; color: var(--muted); font-size: 8px; line-height: 1.6; }

.getting-finish {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding: 19px 21px;
  border: 1px solid #e9c990;
  border-radius: var(--radius);
  background: var(--amber-soft);
}
.getting-finish strong,
.getting-finish p { display: block; margin: 0; }
.getting-finish strong { font-size: 13px; }
.getting-finish p { margin-top: 5px; color: var(--ink-2); font-size: 9px; }

.handoff-example { display: grid; gap: 9px; }
.handoff-example > div { padding: 11px 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-soft); }
.handoff-example span,
.handoff-example strong,
.handoff-example small { display: block; }
.handoff-example span { color: var(--teal); font-size: 8px; font-weight: 800; }
.handoff-example strong { margin-top: 4px; font-size: 10px; }
.handoff-example small { margin-top: 3px; color: var(--muted); font-size: 8px; }

.formal-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.formal-summary > div {
  min-width: 0;
  padding: 19px 21px;
  border-right: 1px solid var(--line-soft);
}

.formal-summary > div:last-child { border-right: 0; }
.formal-summary span,
.formal-summary small { color: var(--muted); font-size: 10px; }
.formal-summary strong { margin: 0 5px; font-size: 27px; }

.formal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.7fr);
  gap: 16px;
  margin-bottom: 16px;
}

.formal-side { display: grid; align-content: start; gap: 16px; }
.formal-list { display: grid; }

.formal-row {
  width: 100%;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 130px 90px;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.formal-row:hover { background: var(--surface-soft); }
.formal-row span { min-width: 0; }
.formal-row strong,
.formal-row small { display: block; }
.formal-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.formal-row > span:last-child { color: var(--teal); font-size: 11px; font-weight: 700; text-align: right; }

.formal-status {
  display: inline-flex;
  justify-content: center;
  padding: 7px 8px;
  border-radius: 7px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 10px;
  font-weight: 700;
}
.formal-status.green { background: var(--green-soft); color: var(--green); }
.formal-status.blue { background: var(--blue-soft); color: var(--blue); }
.formal-status.red { background: var(--red-soft); color: var(--red); }
.formal-status.teal { background: var(--teal-soft); color: var(--teal); }

.missing-alert {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #f0c1c1;
  border-radius: var(--radius);
  background: var(--red-soft);
}

.missing-alert > div:first-child {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.missing-alert > div:first-child > span {
  width: 30px;
  height: 30px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
}

.missing-alert strong,
.missing-alert p { display: block; margin: 0; }
.missing-alert p { margin-top: 5px; color: #8f3d3d; font-size: 11px; line-height: 1.7; }
.missing-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.missing-pills button {
  padding: 7px 10px;
  border: 1px solid #eebbbb;
  border-radius: 18px;
  background: #fff;
  color: #a33d3d;
  font-size: 9px;
  cursor: pointer;
}

.delivery-project-panel { margin-bottom: 28px; }
.delivery-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.delivery-project-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.delivery-project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.delivery-project-head span,
.delivery-project-head h3 { display: block; margin: 0; }
.delivery-project-head span { color: var(--muted); font-size: 9px; }
.delivery-project-head h3 { margin-top: 5px; font-size: 16px; }
.progress-number { text-align: right; }
.progress-number strong,
.progress-number span { display: block; }
.progress-number strong { color: var(--teal); font-size: 22px; }
.progress-number span { font-size: 8px; }
.delivery-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}
.delivery-project-meta span {
  padding: 5px 7px;
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 9px;
}
.delivery-mini-list { display: grid; gap: 6px; }
.delivery-mini-list > button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-soft);
  text-align: left;
  cursor: pointer;
}
.delivery-mini-list strong,
.delivery-mini-list small { display: block; }
.delivery-mini-list strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.delivery-mini-list small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.delivery-project-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.delivery-project-actions .secondary-button { flex: 1; min-width: 90px; padding-inline: 9px; font-size: 9px; }

.product-rule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 180px;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--nav);
  color: #fff;
}
.product-rule span,
.product-rule h2,
.product-rule p,
.product-rule strong { display: block; margin: 0; }
.product-rule span { color: rgba(255,255,255,.66); font-size: 10px; }
.product-rule h2 { margin-top: 5px; font-size: 21px; }
.product-rule p { margin-top: 7px; color: rgba(255,255,255,.75); font-size: 10px; }
.product-rule > div:not(:first-child) { text-align: center; }
.product-rule > div:not(:first-child) strong { font-size: 30px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.product-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.product-card-head span,
.product-card-head h2 { display: block; margin: 0; }
.product-card-head span { color: var(--teal); font-size: 9px; font-weight: 700; }
.product-card-head h2 { margin-top: 5px; font-size: 18px; }
.product-card-head > strong { color: var(--amber); font-size: 18px; white-space: nowrap; }
.product-card > p { min-height: 50px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.product-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.product-meta span { padding: 5px 7px; border-radius: 5px; background: var(--teal-soft); color: var(--teal-dark); font-size: 8px; }
.product-item-list { display: grid; gap: 6px; }
.product-item-list details { border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden; }
.product-item-list summary {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 10px;
  cursor: pointer;
}
.product-item-list summary span { color: var(--teal); font-size: 8px; }
.product-item-list summary strong { font-size: 10px; }
.product-item-list summary small { color: var(--muted); font-size: 8px; }
.product-item-list details > div { padding: 0 11px 10px; border-top: 1px solid var(--line-soft); }
.product-item-list p { margin: 8px 0 0; color: var(--ink-2); font-size: 9px; line-height: 1.65; }

.file-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.file-principles > div { padding: 17px 19px; border-right: 1px solid var(--line-soft); }
.file-principles > div:last-child { border-right: 0; }
.file-principles span,
.file-principles strong { display: block; }
.file-principles span { color: var(--teal); font-size: 9px; font-weight: 700; }
.file-principles strong { margin-top: 5px; font-size: 12px; }
.file-group { margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.file-group-head { display: flex; justify-content: space-between; align-items: center; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.file-group-head span,
.file-group-head h2 { display: block; margin: 0; }
.file-group-head span { color: var(--muted); font-size: 9px; }
.file-group-head h2 { margin-top: 4px; font-size: 17px; }
.file-group-head > strong { color: var(--teal); font-size: 18px; }
.file-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 15px; }
.file-card { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--line-soft); border-radius: 10px; }
.file-type { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 9px; background: var(--blue-soft); color: var(--blue); font-size: 9px; font-weight: 800; }
.file-card h3,
.file-card p,
.file-card small { display: block; margin: 0; }
.file-card h3 { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.file-card p { margin-top: 4px; color: var(--muted); font-size: 8px; }
.file-card small { margin-top: 4px; color: #9ba5ad; font-size: 7px; }
.file-card .secondary-button { padding-inline: 9px; font-size: 8px; }

.handoff-action-card { display: grid; gap: 12px; }
.handoff-action-card > strong { font-size: 16px; }
.handoff-action-card > p { margin: 0; color: var(--ink-2); font-size: 11px; line-height: 1.7; }
.handoff-boundary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.handoff-boundary article { padding: 12px; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--surface-soft); }
.handoff-boundary span { display: block; color: var(--teal); font-size: 9px; font-weight: 700; }
.handoff-boundary p { margin: 6px 0 0; color: var(--ink-2); font-size: 10px; line-height: 1.65; }
.delivery-file-list { display: grid; gap: 7px; }
.delivery-file-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; padding: 10px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fff; text-align: left; cursor: pointer; }
.delivery-file-row > span { color: var(--blue); font-size: 9px; font-weight: 700; }
.delivery-file-row strong,
.delivery-file-row small { display: block; }
.delivery-file-row strong { font-size: 10px; }
.delivery-file-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.delivery-file-row b { color: var(--teal); font-size: 9px; }

/* 客户项目入口 */
.customer-portal {
  min-height: 100vh;
  padding-bottom: 50px;
  background: #f4f7f8;
}
.customer-loading {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 30px;
}
.customer-loading span { max-width: 440px; color: var(--muted); font-size: 12px; text-align: center; }
.customer-header {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  background: var(--nav);
  color: #fff;
}
.customer-header .brand { padding: 0; }
.customer-header .brand-mark { background: var(--teal); }
.customer-header .secondary-button { margin-left: auto; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; }
.customer-hero {
  width: min(1120px, calc(100% - 36px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 24px auto 0;
  padding: 30px;
  border-radius: 18px;
  background: linear-gradient(135deg, #073244, #0a5a66);
  color: #fff;
}
.customer-hero span,
.customer-hero h1,
.customer-hero p { display: block; margin: 0; }
.customer-hero > div:first-child > span { color: #7de0d2; font-size: 10px; font-weight: 700; }
.customer-hero h1 { margin-top: 6px; font-size: clamp(25px, 4vw, 38px); }
.customer-hero p { margin-top: 8px; color: rgba(255,255,255,.72); font-size: 12px; }
.customer-progress-ring { width: 108px; height: 108px; display: grid; flex: 0 0 auto; place-content: center; border: 9px solid rgba(255,255,255,.18); border-top-color: #6fe0cf; border-radius: 50%; text-align: center; }
.customer-progress-ring strong { font-size: 24px; }
.customer-progress-ring span { margin-top: 2px; color: rgba(255,255,255,.7); font-size: 8px; }
.customer-pause {
  width: min(1120px, calc(100% - 36px));
  margin: 14px auto 0;
  padding: 15px 18px;
  border: 1px solid #efc0c0;
  border-radius: 12px;
  background: var(--red-soft);
}
.customer-pause strong,
.customer-pause p,
.customer-pause span { display: block; }
.customer-pause p { margin: 5px 0; color: #8f3d3d; font-size: 11px; }
.customer-pause span { color: var(--muted); font-size: 9px; }
.customer-summary {
  width: min(1120px, calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 14px auto 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
}
.customer-summary > div { padding: 17px; border-right: 1px solid var(--line-soft); text-align: center; }
.customer-summary > div:last-child { border-right: 0; }
.customer-summary span,
.customer-summary strong { display: block; }
.customer-summary span { color: var(--muted); font-size: 9px; }
.customer-summary strong { margin-top: 5px; font-size: 20px; }
.customer-contract,
.customer-section-head,
.customer-delivery-list {
  width: min(1120px, calc(100% - 36px));
  margin: 18px auto 0;
}
.customer-contract { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.customer-contract h2,
.customer-contract > div > p { margin: 0; }
.customer-contract h2 { font-size: 18px; }
.customer-contract > div > p { margin-top: 5px; color: var(--muted); font-size: 10px; }
.customer-contract-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 15px; }
.customer-contract-grid article { padding: 13px; border-radius: 9px; background: var(--surface-soft); }
.customer-contract-grid span { display: block; color: var(--teal); font-size: 9px; font-weight: 700; }
.customer-contract-grid p { margin: 6px 0 0; color: var(--ink-2); font-size: 10px; line-height: 1.65; }
.customer-section-head { display: flex; align-items: flex-end; justify-content: space-between; }
.customer-section-head h2,
.customer-section-head p { margin: 0; }
.customer-section-head h2 { font-size: 20px; }
.customer-section-head p { margin-top: 4px; color: var(--muted); font-size: 10px; }
.customer-delivery-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.customer-delivery-card { min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.customer-delivery-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.customer-delivery-head > div { display: flex; align-items: center; gap: 7px; }
.customer-delivery-head small { color: var(--muted); font-size: 8px; }
.customer-delivery-head > strong { color: var(--muted); font-size: 9px; }
.customer-delivery-card > h3 { margin: 15px 0 7px; font-size: 17px; }
.customer-delivery-card > p { margin: 0; color: var(--ink-2); font-size: 10px; line-height: 1.7; }
.customer-delivery-card dl { display: grid; gap: 8px; margin: 15px 0 0; }
.customer-delivery-card dl > div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; }
.customer-delivery-card dt { color: var(--muted); font-size: 9px; }
.customer-delivery-card dd { margin: 0; font-size: 10px; line-height: 1.6; }
.customer-files-inline,
.customer-public-files { display: grid; gap: 8px; margin-top: 14px; }
.customer-files-inline > strong { font-size: 10px; }
.customer-file-link { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 9px; padding: 9px; border: 1px solid var(--line-soft); border-radius: 8px; text-decoration: none; }
.customer-file-link > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 7px; background: var(--blue-soft); color: var(--blue); font-size: 9px; font-weight: 800; }
.customer-file-link strong,
.customer-file-link small { display: block; }
.customer-file-link strong { font-size: 9px; }
.customer-file-link small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.customer-media { width: 100%; max-height: 320px; border-radius: 9px; background: #071820; object-fit: contain; }
.customer-confirm-box { margin-top: 15px; border: 1px solid #9ddbd3; border-radius: 10px; background: var(--teal-soft); overflow: hidden; }
.customer-confirm-box summary { padding: 12px 14px; color: var(--teal-dark); font-size: 11px; font-weight: 800; cursor: pointer; }
.customer-confirm-box form { padding: 0 14px 14px; }
.customer-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.customer-confirm-box form > small { display: block; margin-top: 8px; color: var(--muted); font-size: 8px; }
.customer-decision { display: grid; gap: 3px; margin-top: 15px; padding: 11px; border-radius: 9px; background: var(--surface-soft); }
.customer-decision.accepted { background: var(--green-soft); }
.customer-decision.rejected { background: var(--red-soft); }
.customer-decision strong { font-size: 10px; }
.customer-decision span,
.customer-decision p { margin: 0; color: var(--muted); font-size: 8px; }
.customer-footer { width: min(1120px, calc(100% - 36px)); margin: 25px auto 0; color: var(--muted); font-size: 9px; text-align: center; }

@media (max-width: 1000px) {
  .culture-banner { grid-template-columns: 1fr; }
  .culture-tags { justify-content: flex-start; }
  .getting-steps,
  .field-translation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .culture-value-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .formal-summary { grid-template-columns: repeat(3, 1fr); }
  .formal-summary > div:nth-child(3) { border-right: 0; }
  .formal-grid { grid-template-columns: 1fr; }
  .delivery-project-grid,
  .product-grid,
  .file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .recurring-task-rule {
    display: grid;
  }
  .recurring-task-rule .secondary-button,
  .recurring-task-status {
    width: 100%;
  }
  .culture-banner { padding: 19px; }
  .first-use-callout,
  .getting-finish { display: grid; }
  .getting-next { grid-template-columns: 1fr; }
  .getting-next-number { display: none; }
  .getting-steps,
  .field-translation,
  .culture-value-grid { grid-template-columns: 1fr; }
  .getting-steps { padding: 12px; }
  .formal-summary { grid-template-columns: repeat(2, 1fr); }
  .formal-summary > div { padding: 14px; }
  .formal-summary > div:nth-child(3) { border-right: 1px solid var(--line-soft); }
  .formal-summary > div:nth-child(2n) { border-right: 0; }
  .formal-row { grid-template-columns: 80px minmax(0, 1fr); }
  .formal-row > span:nth-child(3),
  .formal-row > span:nth-child(4) { display: none; }
  .delivery-project-grid,
  .product-grid,
  .file-grid,
  .customer-delivery-list { grid-template-columns: 1fr; }
  .product-rule { grid-template-columns: 1fr 1fr; }
  .product-rule > div:first-child { grid-column: 1 / -1; }
  .file-principles { grid-template-columns: 1fr; }
  .file-principles > div { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .file-card { grid-template-columns: 44px minmax(0, 1fr); }
  .file-card .secondary-button { grid-column: 1 / -1; }
  .handoff-boundary { grid-template-columns: 1fr; }
  .customer-header { padding: 0 18px; }
  .customer-header .secondary-button { padding-inline: 10px; font-size: 9px; }
  .customer-hero { align-items: flex-start; padding: 22px; }
  .customer-progress-ring { width: 82px; height: 82px; border-width: 7px; }
  .customer-progress-ring strong { font-size: 18px; }
  .customer-summary { grid-template-columns: repeat(2, 1fr); }
  .customer-summary > div:nth-child(2) { border-right: 0; }
  .customer-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .customer-contract-grid { grid-template-columns: 1fr; }
  .customer-delivery-card { padding: 16px; }
  .customer-delivery-card dl > div { grid-template-columns: 1fr; gap: 3px; }
  .customer-confirm-actions { display: grid; grid-template-columns: 1fr; }
}

/* 公司成员角色首页：TOONHUB式全屏角色舞台 */
.role-lobby {
  --lobby-coral: #ef705f;
  --lobby-cream: #fff6e9;
  --lobby-ink: #112c35;
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 58%, rgba(255, 246, 233, 0.32), transparent 28%),
    var(--lobby-coral);
  color: var(--lobby-ink);
  isolation: isolate;
}

.role-lobby::before,
.role-lobby::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(17, 44, 53, 0.17);
  border-radius: 50%;
  content: "";
}

.role-lobby::before {
  width: 47vw;
  height: 47vw;
  left: -21vw;
  top: 16vh;
}

.role-lobby::after {
  width: 34vw;
  height: 34vw;
  right: -17vw;
  bottom: -16vw;
}

.role-lobby-header {
  position: relative;
  z-index: 20;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(22px, 3.4vw, 60px);
  border-bottom: 1px solid rgba(17, 44, 53, 0.14);
}

.role-lobby-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.role-lobby-brand > span {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 900;
}

.role-lobby-brand strong,
.role-lobby-brand small {
  display: block;
}

.role-lobby-brand strong {
  font-size: 14px;
  letter-spacing: 0.01em;
}

.role-lobby-brand small {
  margin-top: 4px;
  color: rgba(17, 44, 53, 0.7);
  font-size: 9px;
}

.role-lobby-culture {
  display: flex;
  gap: 7px;
  margin-left: auto;
}

.role-lobby-culture span {
  padding: 6px 10px;
  border: 1px solid rgba(17, 44, 53, 0.32);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.role-lobby-word {
  position: absolute;
  inset: 12vh 0 auto;
  z-index: -1;
  color: transparent;
  font-family: Impact, "Arial Black", "PingFang SC", sans-serif;
  font-size: clamp(104px, 18vw, 310px);
  font-stretch: condensed;
  font-weight: 950;
  line-height: 0.82;
  letter-spacing: -0.065em;
  text-align: center;
  white-space: nowrap;
  -webkit-text-stroke: 2px rgba(255, 246, 233, 0.68);
  text-transform: uppercase;
  user-select: none;
}

.role-stage {
  position: relative;
  min-height: calc(100svh - 142px);
}

.role-stage-copy {
  position: absolute;
  z-index: 14;
  left: clamp(22px, 4.2vw, 74px);
  top: clamp(32px, 7vh, 72px);
  width: min(320px, 28vw);
}

.role-stage-copy > span,
.team-key-card > span,
.join-member-card > span {
  display: block;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.role-stage-copy h1 {
  margin: 10px 0 12px;
  font-size: clamp(30px, 4.2vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.role-stage-copy p {
  margin: 0;
  color: rgba(17, 44, 53, 0.72);
  font-size: 11px;
  line-height: 1.8;
}

.role-carousel {
  position: absolute;
  inset: 6vh 0 70px;
  overflow: hidden;
  pointer-events: none;
}

.role-character {
  position: absolute;
  left: 50%;
  bottom: 1.5vh;
  width: clamp(180px, 21vw, 330px);
  height: auto;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform-origin: 50% 100%;
  transition:
    transform 650ms cubic-bezier(.2,.8,.2,1),
    opacity 450ms ease,
    filter 450ms ease;
}

.role-character.center {
  z-index: 8;
  transform: translateX(-50%) scale(1);
}

.role-character.left {
  z-index: 6;
  transform: translateX(calc(-50% - min(24vw, 380px))) scale(.75) rotate(-2deg);
  filter: saturate(.86);
}

.role-character.right {
  z-index: 6;
  transform: translateX(calc(-50% + min(24vw, 380px))) scale(.75) rotate(2deg);
  filter: saturate(.86);
}

.role-character.far-left {
  z-index: 4;
  opacity: .68;
  transform: translateX(calc(-50% - min(41vw, 660px))) scale(.51) rotate(-4deg);
  filter: saturate(.65) blur(.25px);
}

.role-character.far-right {
  z-index: 4;
  opacity: .68;
  transform: translateX(calc(-50% + min(41vw, 660px))) scale(.51) rotate(4deg);
  filter: saturate(.65) blur(.25px);
}

.role-character.hidden {
  z-index: 1;
  opacity: 0;
  transform: translateX(-50%) scale(.35);
  pointer-events: none;
}

.member-figure {
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("/assets/team-figures.png");
  background-position: var(--figure-x) var(--figure-y);
  background-repeat: no-repeat;
  background-size: 400% 300%;
  filter: drop-shadow(0 18px 18px rgba(53, 34, 26, 0.1));
}

.role-character-figure {
  position: relative;
  z-index: 2;
}

.role-character-shadow {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 4%;
  width: 42%;
  height: 5%;
  border-radius: 50%;
  background: rgba(53, 34, 26, 0.18);
  filter: blur(12px);
  transform: translateX(-50%);
}

.role-character:hover.center,
.role-character:focus-visible.center {
  outline: none;
  transform: translateX(-50%) scale(1.035) translateY(-6px);
}

.role-arrow {
  position: absolute;
  z-index: 15;
  bottom: 114px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--lobby-ink);
  border-radius: 50%;
  background: transparent;
  color: var(--lobby-ink);
  font-size: 22px;
  cursor: pointer;
  transition: 160ms ease;
}

.role-arrow:hover,
.role-arrow:focus-visible {
  outline: none;
  background: var(--lobby-ink);
  color: var(--lobby-cream);
  transform: translateY(-3px);
}

.role-arrow.previous {
  left: clamp(22px, 4.2vw, 74px);
}

.role-arrow.next {
  left: calc(clamp(22px, 4.2vw, 74px) + 62px);
}

.role-identity-card {
  position: absolute;
  z-index: 16;
  right: clamp(22px, 4.2vw, 74px);
  bottom: 85px;
  width: min(350px, 31vw);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.role-count {
  padding-top: 6px;
  border-top: 2px solid currentColor;
  font-size: 9px;
  font-weight: 900;
}

.role-identity-card small {
  color: rgba(17, 44, 53, 0.68);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.role-identity-card h2 {
  margin: 5px 0 6px;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.role-identity-card p {
  min-height: 38px;
  margin: 0;
  color: rgba(17, 44, 53, 0.72);
  font-size: 10px;
  line-height: 1.7;
}

.role-enter-button {
  min-height: 49px;
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding: 5px 6px 5px 17px;
  border: 1px solid var(--lobby-ink);
  border-radius: 999px;
  background: var(--lobby-ink);
  color: var(--lobby-cream);
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  transition: 160ms ease;
}

.role-enter-button b {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lobby-cream);
  color: var(--lobby-ink);
  font-size: 16px;
}

.role-enter-button:hover,
.role-enter-button:focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(17, 44, 53, .2);
}

.role-lobby-footer {
  position: absolute;
  z-index: 20;
  inset: auto 0 0;
  min-height: 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 0 clamp(22px, 3.4vw, 60px);
  border-top: 1px solid rgba(17, 44, 53, 0.14);
  background: rgba(239, 112, 95, .78);
  backdrop-filter: blur(12px);
}

.role-lobby-footer button,
.lobby-back-button {
  width: max-content;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.role-lobby-footer button:last-child {
  justify-self: end;
}

.role-lobby-footer > span {
  color: rgba(17, 44, 53, .64);
  font-size: 9px;
  text-align: center;
}

.role-lobby.loading {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 11px;
}

.role-lobby.loading strong {
  font-size: 21px;
}

.role-lobby.loading > span {
  color: rgba(17, 44, 53, .66);
  font-size: 10px;
}

.lobby-orbit {
  width: 66px;
  height: 66px;
  border: 2px solid rgba(17, 44, 53, .18);
  border-top-color: var(--lobby-ink);
  border-radius: 50%;
  animation: lobby-spin 900ms linear infinite;
}

@keyframes lobby-spin {
  to { transform: rotate(360deg); }
}

.key-stage,
.join-stage {
  position: relative;
  min-height: calc(100svh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, .72fr);
  align-items: center;
  gap: clamp(25px, 5vw, 80px);
  padding: clamp(28px, 5vw, 78px);
}

.key-figures {
  position: relative;
  height: min(68vh, 680px);
}

.key-figure {
  position: absolute;
  bottom: 0;
  width: min(31vw, 390px);
  height: auto;
  aspect-ratio: 3 / 4;
}

.key-figure.f0 {
  left: -2%;
  z-index: 1;
  transform: scale(.76) translateY(5%);
  filter: saturate(.78);
}

.key-figure.f1 {
  left: 26%;
  z-index: 3;
}

.key-figure.f2 {
  right: -4%;
  z-index: 2;
  transform: scale(.82) translateY(3%);
  filter: saturate(.82);
}

.team-key-card,
.join-member-card {
  position: relative;
  z-index: 5;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(17, 44, 53, .18);
  border-radius: 26px;
  background: rgba(255, 246, 233, .94);
  box-shadow: 0 28px 65px rgba(85, 39, 32, .17);
  backdrop-filter: blur(18px);
}

.team-key-card h1,
.join-member-card h1 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: .98;
  letter-spacing: -.065em;
}

.team-key-card > p,
.join-member-card > p {
  margin: 0 0 25px;
  color: rgba(17, 44, 53, .68);
  font-size: 11px;
  line-height: 1.75;
}

.team-key-card label,
.join-member-card label {
  display: grid;
  gap: 7px;
}

.team-key-card label > span,
.join-member-card label > span {
  font-size: 10px;
  font-weight: 850;
}

.team-key-card input,
.join-member-card input,
.join-member-card select,
.join-member-card textarea {
  width: 100%;
  border: 1px solid rgba(17, 44, 53, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .68);
}

.team-key-card input {
  height: 48px;
  padding: 0 14px;
}

.team-key-card .role-enter-button,
.join-member-card .role-enter-button {
  width: 100%;
  margin-top: 18px;
}

.team-key-card > small {
  display: block;
  margin-top: 12px;
  color: rgba(17, 44, 53, .55);
  font-size: 8px;
  text-align: center;
}

.lobby-back-button {
  margin-left: auto;
  font-size: 11px;
}

.join-stage {
  grid-template-columns: minmax(280px, .78fr) minmax(420px, 1.22fr);
  width: min(1160px, 100%);
  margin: 0 auto;
}

.join-figure-preview {
  height: min(68vh, 650px);
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
}

.join-figure-preview .member-figure {
  width: min(380px, 100%);
  height: auto;
  aspect-ratio: 3 / 4;
}

.join-figure-preview > span {
  padding: 7px 11px;
  border: 1px solid rgba(17, 44, 53, .25);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
}

.join-member-card .form-grid {
  margin: 0;
}

.join-member-card .field > span {
  font-size: 10px;
}

@media (max-width: 980px) {
  .role-stage-copy {
    width: 230px;
  }

  .role-character.left {
    transform: translateX(calc(-50% - 25vw)) scale(.68);
  }

  .role-character.right {
    transform: translateX(calc(-50% + 25vw)) scale(.68);
  }

  .role-character.far-left,
  .role-character.far-right {
    opacity: 0;
    pointer-events: none;
  }

  .role-identity-card {
    width: 270px;
  }

  .key-stage {
    grid-template-columns: 1fr 370px;
    gap: 20px;
    padding-inline: 28px;
  }

  .join-stage {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .role-lobby {
    min-height: 100svh;
  }

  .role-lobby-header {
    min-height: 64px;
    padding: 11px 15px;
  }

  .role-lobby-brand > span {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .role-lobby-brand strong {
    font-size: 11px;
  }

  .role-lobby-brand small {
    max-width: 210px;
    overflow: hidden;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .role-lobby-culture {
    display: none;
  }

  .role-lobby-word {
    inset: 16vh auto auto 50%;
    font-size: 31vw;
    transform: translateX(-50%);
    -webkit-text-stroke-width: 1px;
  }

  .role-stage {
    min-height: calc(100svh - 64px);
  }

  .role-stage-copy {
    left: 18px;
    top: 22px;
    width: calc(100% - 36px);
  }

  .role-stage-copy h1 {
    margin: 7px 0 5px;
    font-size: 34px;
  }

  .role-stage-copy p {
    max-width: 310px;
    font-size: 9px;
    line-height: 1.55;
  }

  .role-carousel {
    inset: 15vh -32vw 175px;
  }

  .role-character {
    width: min(74vw, 320px);
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .role-character.left {
    opacity: .7;
    transform: translateX(calc(-50% - 54vw)) scale(.61);
  }

  .role-character.right {
    opacity: .7;
    transform: translateX(calc(-50% + 54vw)) scale(.61);
  }

  .role-arrow {
    bottom: 148px;
    width: 42px;
    height: 42px;
  }

  .role-arrow.previous {
    left: 17px;
  }

  .role-arrow.next {
    left: 68px;
  }

  .role-identity-card {
    right: 16px;
    bottom: 86px;
    width: calc(100% - 32px);
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 13px;
    border: 1px solid rgba(17, 44, 53, .2);
    border-radius: 17px;
    background: rgba(255, 246, 233, .86);
    backdrop-filter: blur(12px);
  }

  .role-identity-card h2 {
    font-size: 25px;
  }

  .role-identity-card p {
    min-height: 0;
    font-size: 8px;
  }

  .role-enter-button {
    min-height: 43px;
  }

  .role-enter-button b {
    width: 32px;
    height: 32px;
  }

  .role-lobby-footer {
    min-height: 65px;
    grid-template-columns: 1fr 1fr;
    padding: 0 17px;
  }

  .role-lobby-footer > span {
    display: none;
  }

  .key-stage,
  .join-stage {
    min-height: calc(100svh - 64px);
    display: block;
    padding: 24px 16px;
  }

  .key-figures {
    position: absolute;
    inset: 3vh -30vw auto;
    height: 43vh;
    opacity: .72;
  }

  .key-figure {
    width: 56vw;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .team-key-card {
    width: 100%;
    margin-top: min(39vh, 350px);
    padding: 25px 20px;
  }

  .team-key-card h1,
  .join-member-card h1 {
    font-size: 38px;
  }

  .join-figure-preview {
    height: 35vh;
  }

  .join-figure-preview .member-figure {
    width: 240px;
  }

  .join-member-card {
    padding: 23px 18px;
  }

  .lobby-back-button {
    border-bottom: 0;
    font-size: 0;
  }

  .lobby-back-button::after {
    font-size: 20px;
    content: "←";
  }
}

@media (prefers-reduced-motion: reduce) {
  .role-character,
  .role-arrow,
  .role-enter-button {
    transition: none;
  }

  .lobby-orbit {
    animation: none;
  }
}

}

/* 登录人物搜索：保留 3D 轮播，只把找人的路径缩短。 */
.role-lobby[data-role-lobby] .role-lobby-actions {
  gap: 18px;
}

.member-search {
  position: relative;
  width: min(430px, 39vw);
  color: var(--lobby-ink);
}

.member-search-entry {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.member-search-field {
  min-height: 40px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 28px;
  gap: 7px;
  align-items: center;
  padding: 0 7px 0 12px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  box-shadow: 0 10px 30px rgba(25,44,36,.08);
  backdrop-filter: blur(15px);
  transition: 160ms ease;
}

.role-lobby[data-role-lobby] .role-lobby-actions .member-search-submit {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  border-color: rgba(255,250,244,.92);
  background: var(--lobby-cream);
  color: var(--lobby-ink);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(20,43,35,.13);
}

.role-lobby[data-role-lobby] .role-lobby-actions .member-search-submit:hover,
.role-lobby[data-role-lobby] .role-lobby-actions .member-search-submit:focus-visible {
  border-color: var(--lobby-cream);
  background: var(--lobby-ink);
  color: var(--lobby-cream);
}

.member-search-field:focus-within {
  border-color: #fff;
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 36px rgba(20,43,35,.16);
}

.member-search-field > i {
  color: rgba(255,255,255,.9);
  font-size: 17px;
}

.member-search-field:focus-within > i {
  color: var(--lobby-ink);
}

.member-search-field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
}

.member-search-field input::placeholder {
  color: rgba(255,255,255,.82);
}

.member-search-field:focus-within input {
  color: var(--lobby-ink);
}

.member-search-field:focus-within input::placeholder {
  color: rgba(16,29,36,.48);
}

.member-search-field button[data-member-search-clear] {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255,255,255,.86);
  font-size: 15px;
}

.member-search-field:focus-within button[data-member-search-clear] {
  color: rgba(16,29,36,.68);
}

.member-search-results {
  position: absolute;
  z-index: 80;
  top: calc(100% + 10px);
  right: 0;
  width: min(370px, calc(100vw - 34px));
  max-height: min(430px, calc(100svh - 106px));
  overflow: hidden;
  border: 1px solid rgba(16,29,36,.1);
  border-radius: 19px;
  background: rgba(255,250,242,.98);
  box-shadow: 0 24px 70px rgba(17,35,42,.24);
  backdrop-filter: blur(22px);
}

.member-search-results[hidden] {
  display: none;
}

.member-search-summary {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(16,29,36,.09);
  color: rgba(16,29,36,.68);
  font-size: 10px;
  font-weight: 800;
}

.member-search-summary small {
  color: rgba(16,29,36,.45);
  font-size: 9px;
  font-weight: 650;
}

.member-search-options {
  max-height: min(375px, calc(100svh - 151px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 7px;
}

.member-search-option {
  width: 100%;
  min-height: 58px;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  gap: 11px !important;
  align-items: center;
  margin: 0;
  padding: 6px 9px !important;
  border: 0 !important;
  border-bottom: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: var(--lobby-ink) !important;
  text-align: left;
}

.member-search-option[hidden] {
  display: none !important;
}

.member-search-option:hover,
.member-search-option:focus-visible,
.member-search-option.active {
  outline: none;
  background: rgba(255,86,56,.11) !important;
}

.member-search-option > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.member-search-option strong,
.member-search-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-search-option strong {
  font-size: 13px;
  font-weight: 900;
}

.member-search-option small {
  color: rgba(16,29,36,.58);
  font-size: 10px;
  font-weight: 650;
}

.member-search-option > i {
  color: rgba(16,29,36,.36);
  font-size: 16px;
}

.member-search-avatar {
  width: 42px;
  height: 42px;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: color-mix(in srgb, var(--lobby-bg) 18%, #fff);
}

.member-search-avatar .member-figure {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  transform: scale(1.38) translateY(10%);
  transform-origin: 50% 50%;
}

.member-search-avatar .avatar-pending-badge {
  display: none;
}

.member-search-empty {
  min-height: 145px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 18px;
  color: rgba(16,29,36,.56);
  text-align: center;
}

.member-search-empty[hidden] {
  display: none;
}

.member-search-empty i {
  font-size: 27px;
}

.member-search-empty strong {
  color: var(--lobby-ink);
  font-size: 13px;
}

.member-search-empty span {
  font-size: 10px;
}

@media (max-width: 900px) {
  .role-lobby[data-role-lobby] .role-lobby-header {
    min-height: 112px;
    flex-wrap: wrap;
    align-content: center;
    gap: 10px;
    padding-bottom: 12px;
  }

  .role-lobby[data-role-lobby] .role-lobby-actions {
    width: auto;
    gap: 12px;
  }

  .role-lobby[data-role-lobby] .member-search {
    position: absolute;
    top: 62px;
    left: 16px;
    width: calc(100% - 32px);
  }

  .role-lobby[data-role-lobby] .member-search-entry {
    grid-template-columns: minmax(0, 1fr) 104px;
  }

  .role-lobby[data-role-lobby] .role-lobby-actions .member-search-submit {
    width: 104px;
    min-height: 39px;
    padding: 0 12px;
    font-size: 11px;
  }

  .role-lobby[data-role-lobby] .member-search-field {
    min-height: 39px;
    background: rgba(255,255,255,.2);
  }

  .role-lobby[data-role-lobby] .member-search-field input {
    font-size: 12px;
  }

  .role-lobby[data-role-lobby] .member-search-field button[data-member-search-clear] {
    display: grid;
    font-size: 15px;
  }

  .role-lobby[data-role-lobby] .role-lobby-word {
    top: 114px;
  }

  .role-lobby[data-role-lobby] .role-carousel {
    top: 156px;
  }

  .role-lobby[data-role-lobby] .member-search-results {
    width: 100%;
    max-height: min(360px, calc(100svh - 118px));
  }

  .role-lobby[data-role-lobby] .member-search-options {
    max-height: min(305px, calc(100svh - 165px));
  }
}

@media (max-width: 720px) {
  .role-lobby[data-role-lobby] .role-lobby-actions .member-search-option {
    width: 100% !important;
    min-height: 58px;
    padding: 6px 9px !important;
    font-size: 12px;
  }

  .role-lobby[data-role-lobby] .member-search-field button[data-member-search-clear] {
    width: 28px !important;
    min-height: 28px;
    padding: 0 !important;
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  .role-lobby[data-role-lobby] .role-lobby-actions {
    gap: 9px;
  }

  .role-lobby[data-role-lobby] .member-search-entry {
    grid-template-columns: minmax(0, 1fr) 94px;
  }

  .role-lobby[data-role-lobby] .role-lobby-actions .member-search-submit {
    width: 94px;
    min-height: 39px;
    padding: 0 10px;
    font-size: 11px;
  }

  .role-lobby[data-role-lobby] .role-stage-copy {
    bottom: 102px;
  }

  .role-lobby[data-role-lobby] .role-carousel {
    inset: 150px -10vw 82px;
  }
}

/* 客户建档与销售交接：高辨识度的连续业务体验 */
.modal:has(#entity-form[data-type="project"]) {
  width: min(820px, calc(100% - 30px));
}

.modal:has(#handoff-form) {
  width: min(930px, calc(100% - 30px));
}

.modal:has(#entity-form[data-type="project"]),
.modal:has(#handoff-form) {
  border: 1px solid rgba(12, 39, 52, .12);
  border-radius: 22px;
  background: #f7f2e9;
  box-shadow: 0 34px 100px rgba(3, 25, 38, .3);
}

.modal:has(#entity-form[data-type="project"])::before,
.modal:has(#handoff-form)::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  height: 5px;
  background: linear-gradient(90deg, #ff553d 0 42%, #0d9488 42% 72%, #071b28 72%);
  content: "";
}

.modal:has(#entity-form[data-type="project"]) .modal-header,
.modal:has(#handoff-form) .modal-header {
  min-height: 96px;
  padding: 24px 28px 20px;
  background: #fff;
}

.modal:has(#entity-form[data-type="project"]) .modal-header h2,
.modal:has(#handoff-form) .modal-header h2 {
  font-size: 27px;
  font-weight: 950;
  letter-spacing: -.045em;
}

.modal:has(#entity-form[data-type="project"]) .modal-body,
.modal:has(#handoff-form) .modal-body {
  padding: 20px 24px 28px;
  background: #f7f2e9;
}

.modal:has(#entity-form[data-type="project"]) .modal-footer,
.modal:has(#handoff-form) .modal-footer {
  min-height: 78px;
  padding: 14px 24px;
  background: #fff;
  box-shadow: 0 -10px 30px rgba(7, 27, 40, .05);
}

.modal:has(#entity-form[data-type="project"]) .modal-footer .primary-button,
.modal:has(#handoff-form) .modal-footer .primary-button {
  min-width: 160px;
  min-height: 48px;
  border-radius: 11px;
  box-shadow: 0 9px 22px rgba(255, 85, 61, .24);
}

.sales-journey {
  display: flex;
  align-items: center;
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(7, 27, 40, .1);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(7, 27, 40, .045);
}

.sales-journey-step {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sales-journey-step > span {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #d8d6cf;
  border-radius: 50%;
  background: #fff;
  color: #71808a;
}

.sales-journey-step > span i {
  font-size: 17px;
}

.sales-journey-step > span b {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #d7d9d8;
  color: #60717b;
  font-size: 8px;
}

.sales-journey-step > div {
  min-width: 0;
}

.sales-journey-step strong,
.sales-journey-step small {
  display: block;
  white-space: nowrap;
}

.sales-journey-step strong {
  color: #53636d;
  font-size: 12px;
  font-weight: 850;
}

.sales-journey-step small {
  margin-top: 2px;
  color: #98a1a5;
  font-size: 9px;
}

.sales-journey-step.active > span {
  border-color: #ff553d;
  background: #ff553d;
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 85, 61, .23);
}

.sales-journey-step.active > span b {
  background: #071b28;
  color: #fff;
}

.sales-journey-step.active strong {
  color: #071b28;
}

.sales-journey-step.done > span {
  border-color: #0d9488;
  background: #e7f7f4;
  color: #0d9488;
}

.sales-journey-step.done > span b {
  background: #0d9488;
  color: #fff;
}

.sales-journey-line {
  min-width: 18px;
  height: 1px;
  flex: 1 1 54px;
  margin: 0 11px;
  background: #d5d7d5;
}

.ops-form-section {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid rgba(7, 27, 40, .1);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(7, 27, 40, .04);
}

.ops-form-section > header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  padding-bottom: 13px;
  border-bottom: 1px solid #ece9e2;
}

.ops-form-section > header > span,
.handoff-section-title > span,
.handoff-overview-grid article > header > span {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e8f6f3;
  color: #0d9488;
}

.ops-form-section > header i,
.handoff-section-title i,
.handoff-overview-grid article > header i {
  font-size: 18px;
}

.ops-form-section > header h3,
.ops-form-section > header p {
  margin: 0;
}

.ops-form-section > header h3 {
  color: #071b28;
  font-size: 16px;
  font-weight: 900;
}

.ops-form-section > header p {
  margin-top: 3px;
  color: #7b878d;
  font-size: 10px;
}

.ops-form-section.money-section > header > span {
  background: #fff0ed;
  color: #ff553d;
}

.ops-form-section.money-section input {
  font-size: 17px;
  font-weight: 850;
}

.ops-form-section.boundary-section > header > span {
  background: #eef1f3;
  color: #071b28;
}

.ops-form-section .field label {
  font-size: 12px;
  font-weight: 820;
}

.ops-form-section .field input,
.ops-form-section .field select,
.ops-form-section .field textarea {
  border-color: #c9c7c0;
  border-radius: 10px;
}

.ops-form-section .field input:hover,
.ops-form-section .field select:hover,
.ops-form-section .field textarea:hover {
  border-color: #8b969b;
}

.handoff-detail-drawer {
  width: min(790px, 100%);
  border-left: 1px solid rgba(7, 27, 40, .12);
  background: #f7f2e9;
}

.handoff-detail-drawer .drawer-header {
  min-height: 104px;
  padding: 25px 28px;
  background: #fff;
}

.handoff-detail-drawer .drawer-header h2 {
  font-size: 27px;
}

.handoff-detail-drawer .drawer-header p {
  display: inline-flex;
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 6px;
  background: #fff1d7;
  color: #87610d;
  font-weight: 750;
}

.handoff-detail-drawer .drawer-body {
  padding: 22px 26px 38px;
  background: #f7f2e9;
}

.handoff-detail-drawer .sales-journey {
  margin-bottom: 16px;
}

.handoff-money-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #061b2a, #08283a);
  color: #fff;
  box-shadow: 0 18px 34px rgba(7, 27, 40, .2);
}

.handoff-money-band > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.handoff-money-band > i {
  width: 1px;
  height: 58px;
  background: rgba(255, 255, 255, .16);
}

.handoff-money-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.handoff-money-icon i {
  font-size: 25px;
}

.handoff-money-icon.coral {
  background: #ff553d;
}

.handoff-money-icon.teal {
  background: #0d9488;
}

.handoff-money-icon.amber {
  background: #f0a000;
}

.handoff-money-band p,
.handoff-money-band strong,
.handoff-money-band small {
  display: block;
  margin: 0;
}

.handoff-money-band p {
  color: rgba(255, 255, 255, .68);
  font-size: 10px;
}

.handoff-money-band strong {
  margin-top: 4px;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -.02em;
}

.handoff-money-band small {
  margin-top: 4px;
  color: #74dacc;
  font-size: 9px;
}

.handoff-money-band small.payment-state.partial {
  color: #ffd276;
}

.handoff-money-band small.payment-state.unpaid {
  color: #ff9f91;
}

.handoff-money-band small.payment-state.paid {
  color: #73e7a6;
}

.handoff-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.handoff-overview-grid article,
.handoff-boundary-section,
.handoff-risk-section,
.handoff-action-section {
  padding: 20px;
  border: 1px solid rgba(7, 27, 40, .1);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(7, 27, 40, .035);
}

.handoff-overview-grid article > header,
.handoff-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.handoff-overview-grid article > header h3,
.handoff-section-title h3,
.handoff-section-title p {
  margin: 0;
}

.handoff-overview-grid article > header h3,
.handoff-section-title h3 {
  color: #071b28;
  font-size: 15px;
  font-weight: 900;
}

.handoff-section-title p {
  margin-top: 3px;
  color: #7b878d;
  font-size: 10px;
}

.handoff-overview-grid dl {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.handoff-overview-grid dl > div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
}

.handoff-overview-grid dt {
  color: #899499;
  font-size: 10px;
}

.handoff-overview-grid dd {
  margin: 0;
  color: #152d39;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.6;
}

.handoff-status {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 9px;
}

.handoff-status.pending {
  background: #fff1d7;
  color: #87610d;
}

.handoff-status.success {
  background: #e5f7ed;
  color: #14713c;
}

.handoff-status.danger {
  background: #ffebe7;
  color: #a63e2e;
}

.handoff-boundary-section,
.handoff-risk-section,
.handoff-collection-section,
.handoff-action-section {
  margin-top: 16px;
}

.handoff-collection-section {
  padding: 20px;
  border: 1px solid rgba(7, 27, 40, .1);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(7, 27, 40, .035);
}

.handoff-collection-section .handoff-section-title {
  align-items: flex-start;
}

.handoff-collection-section .handoff-section-title > b {
  margin-left: auto;
}

.handoff-payment-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.handoff-payment-status.paid {
  background: #e4f6eb;
  color: #167342;
}

.handoff-payment-status.partial {
  background: #fff1d7;
  color: #8d6300;
}

.handoff-payment-status.unpaid {
  background: #ffebe7;
  color: #a63e2e;
}

.handoff-payment-history {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.handoff-payment-row {
  display: grid;
  grid-template-columns: 9px minmax(0, 150px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid #e8e4dc;
  border-radius: 10px;
  background: #faf9f6;
}

.handoff-payment-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0d9488;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, .1);
}

.handoff-payment-row strong,
.handoff-payment-row small,
.handoff-payment-row p,
.handoff-payment-row b {
  display: block;
  margin: 0;
}

.handoff-payment-row strong {
  color: #071b28;
  font-size: 13px;
  font-weight: 950;
}

.handoff-payment-row small,
.handoff-payment-row p,
.handoff-payment-row b {
  color: #77848a;
  font-size: 9px;
  line-height: 1.55;
}

.handoff-payment-row b {
  color: #29414c;
  white-space: nowrap;
}

.handoff-payment-empty {
  padding: 14px;
  border: 1px dashed #d9d5cd;
  border-radius: 10px;
  color: #7b878d;
  background: #faf9f6;
  font-size: 10px;
  line-height: 1.7;
}

.handoff-payment-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 85, 61, .34);
  border-radius: 13px;
  background: linear-gradient(135deg, #fff9f4, #fff);
  box-shadow: inset 4px 0 0 #ff553d;
}

.handoff-payment-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.handoff-payment-form-head span,
.handoff-payment-form-head strong,
.handoff-payment-form-head small {
  display: block;
}

.handoff-payment-form-head span {
  color: #ff553d;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.handoff-payment-form-head strong {
  margin-top: 3px;
  color: #071b28;
  font-size: 16px;
}

.handoff-payment-form-head small {
  margin-top: 4px;
  color: #748087;
  font-size: 9px;
}

.handoff-payment-form-head > b {
  padding: 8px 10px;
  border-radius: 8px;
  color: #a33b2c;
  background: #ffebe7;
  font-size: 11px;
  white-space: nowrap;
}

.handoff-payment-form > .primary-button {
  justify-self: end;
}

.handoff-payment-form > p {
  margin: -4px 0 0;
  color: #818b90;
  font-size: 9px;
}

.handoff-payment-readonly {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 11px;
  background: #fff5e6;
}

.handoff-payment-readonly > span {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #f0a000;
  font-size: 11px;
  font-weight: 900;
}

.handoff-payment-readonly strong,
.handoff-payment-readonly p {
  display: block;
  margin: 0;
}

.handoff-payment-readonly strong {
  color: #5f4300;
  font-size: 12px;
}

.handoff-payment-readonly p {
  margin-top: 4px;
  color: #8c7542;
  font-size: 10px;
  line-height: 1.65;
}

.handoff-boundary-section .handoff-boundary {
  margin-top: 16px;
}

.handoff-boundary-section .handoff-boundary article {
  min-height: 126px;
  padding: 16px;
  border-radius: 11px;
  background: #faf9f6;
}

.handoff-boundary-section .handoff-boundary article.positive {
  border-top: 3px solid #2eaa67;
}

.handoff-boundary-section .handoff-boundary article.negative {
  border-top: 3px solid #ff553d;
}

.handoff-boundary-section .handoff-boundary article.cooperate {
  border-top: 3px solid #0d9488;
}

.handoff-boundary-section .handoff-boundary article.commitment {
  border-top: 3px solid #d6a928;
}

.handoff-boundary-section .handoff-boundary span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 850;
}

.handoff-boundary-section .handoff-boundary p {
  font-size: 11px;
  line-height: 1.75;
}

.handoff-risk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.handoff-risk-grid p {
  margin: 0;
  padding: 14px;
  border-radius: 10px;
  background: #f7f8f7;
}

.handoff-risk-grid p.full {
  grid-column: 1 / -1;
}

.handoff-risk-grid span,
.handoff-risk-grid strong {
  display: block;
}

.handoff-risk-grid span {
  color: #899499;
  font-size: 9px;
}

.handoff-risk-grid strong {
  margin-top: 5px;
  color: #152d39;
  font-size: 11px;
  line-height: 1.6;
}

.handoff-action-section {
  position: sticky;
  bottom: -38px;
  z-index: 4;
  border-color: rgba(13, 148, 136, .28);
  box-shadow: 0 -12px 34px rgba(7, 27, 40, .11);
}

.handoff-action-section .task-awaiting-verifier,
.handoff-action-section .task-verified-banner,
.handoff-action-section .handoff-action-card {
  margin: 0;
}

.handoff-action-section .task-awaiting-verifier {
  border: 0;
  background: #eef8f6;
}

@media (max-width: 720px) {
  .modal:has(#entity-form[data-type="project"]),
  .modal:has(#handoff-form) {
    width: calc(100% - 18px);
    max-height: calc(100svh - 18px);
    border-radius: 17px;
  }

  .modal:has(#entity-form[data-type="project"]) .modal-header,
  .modal:has(#handoff-form) .modal-header {
    min-height: 82px;
    padding: 19px 18px 15px;
  }

  .modal:has(#entity-form[data-type="project"]) .modal-header h2,
  .modal:has(#handoff-form) .modal-header h2 {
    font-size: 23px;
  }

  .modal:has(#entity-form[data-type="project"]) .modal-body,
  .modal:has(#handoff-form) .modal-body {
    padding: 14px 12px 22px;
  }

  .modal:has(#entity-form[data-type="project"]) .modal-footer,
  .modal:has(#handoff-form) .modal-footer {
    padding: 10px 12px;
  }

  .modal:has(#entity-form[data-type="project"]) .modal-footer .primary-button,
  .modal:has(#handoff-form) .modal-footer .primary-button {
    min-width: 0;
    flex: 1;
  }

  .sales-journey {
    gap: 4px;
    padding: 12px 10px;
    overflow-x: auto;
  }

  .sales-journey-step {
    min-width: 57px;
    display: grid;
    justify-items: center;
    gap: 5px;
    text-align: center;
  }

  .sales-journey-step > span {
    width: 32px;
    height: 32px;
  }

  .sales-journey-step > span i {
    font-size: 14px;
  }

  .sales-journey-step strong {
    font-size: 9px;
  }

  .sales-journey-step small {
    display: none;
  }

  .sales-journey-line {
    min-width: 12px;
    margin: 0 2px;
  }

  .ops-form-section {
    padding: 15px 13px;
  }

  .ops-form-section > header {
    margin-bottom: 14px;
  }

  .handoff-detail-drawer .drawer-header {
    min-height: 88px;
    padding: 18px 17px;
  }

  .handoff-detail-drawer .drawer-header h2 {
    font-size: 22px;
  }

  .handoff-detail-drawer .drawer-body {
    padding: 14px 12px 30px;
  }

  .handoff-money-band {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .handoff-money-band > i {
    width: 100%;
    height: 1px;
  }

  .handoff-money-icon {
    width: 44px;
    height: 44px;
  }

  .handoff-money-band strong {
    font-size: 21px;
  }

  .handoff-overview-grid,
  .handoff-risk-grid {
    grid-template-columns: 1fr;
  }

  .handoff-risk-grid p.full {
    grid-column: auto;
  }

  .handoff-overview-grid article,
  .handoff-boundary-section,
  .handoff-risk-section,
  .handoff-collection-section,
  .handoff-action-section {
    padding: 16px;
  }

  .handoff-payment-row {
    grid-template-columns: 9px minmax(0, 1fr) auto;
  }

  .handoff-payment-row p {
    grid-column: 2 / -1;
  }

  .handoff-payment-form-head {
    display: grid;
  }

  .handoff-payment-form-head > b {
    justify-self: start;
  }

  .handoff-action-section {
    bottom: -30px;
  }
}

/* 置于最终级联层：总览数字卡保持四个可点击入口，不被旧版统计条覆盖。 */
.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.summary-item {
  min-height: 108px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 0 14px;
  padding: 15px;
  border: 1px solid #dfe3e5;
  border-radius: 9px;
  background: #fff;
  color: #15232b;
  text-align: left;
}

.summary-item + .summary-item::before {
  display: none;
}

.summary-icon {
  width: 52px;
  height: 52px;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0b2a43;
  color: #fff;
  font-size: 24px;
}

.summary-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 3px 10px;
}

.summary-label {
  color: #2e3a41;
  font-size: 13px;
  font-weight: 800;
}

.summary-value {
  margin: 0;
  color: #0b2a43;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
}

.summary-caption {
  grid-column: 1 / -1;
  margin: 0;
  color: #7a878d;
  font-size: 10px;
}

.summary-link {
  grid-column: 2 / 3;
}

@media (max-width: 900px) {
  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }

  .summary-item {
    min-height: 104px;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0 9px;
    padding: 12px 10px;
  }

  .summary-icon {
    width: 40px;
    height: 40px;
    font-size: 19px;
  }

  .summary-copy {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .summary-label {
    font-size: 11px;
  }

  .summary-value {
    font-size: 28px;
  }

  .summary-caption {
    display: none;
  }
}

/* 交接验收：沿用原页面风格，只增强状态辨识、8项展示和点击入口。 */
.delivery-status-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  overflow-x: auto;
  scrollbar-width: thin;
}

.delivery-status-chip {
  min-height: 25px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.delivery-status-chip i {
  font-size: 13px;
}

.delivery-status-chip.waiting {
  border-color: #b9d7f4;
  background: #eaf4ff;
  color: #276aa5;
}

.delivery-status-chip.blocked {
  border-color: #d5dade;
  background: #f0f2f3;
  color: #5d686f;
}

.delivery-status-chip.active {
  border-color: #9ed9d2;
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.delivery-status-chip.internal {
  border-color: #d2c1ef;
  background: #f2edfb;
  color: #7151a6;
}

.delivery-status-chip.customer {
  border-color: #f0c98b;
  background: var(--amber-soft);
  color: #a85f00;
}

.delivery-status-chip.confirmed {
  border-color: #addac5;
  background: var(--green-soft);
  color: var(--green);
}

.delivery-status-chip.returned {
  border-color: #efb5b5;
  background: var(--red-soft);
  color: var(--red);
}

.delivery-status-chip.paused {
  border-color: #c7cdd1;
  background: #e7eaec;
  color: #39464d;
}

.delivery-project-open {
  min-width: 0;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.delivery-project-open:hover h3,
.delivery-project-open:focus-visible h3 {
  color: var(--coral-dark);
}

.delivery-project-open:focus-visible {
  border-radius: 5px;
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}

.delivery-project-open small {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  color: var(--coral-dark);
  font-size: 9px;
  font-weight: 750;
}

.delivery-mini-list > .delivery-item-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: 24px auto minmax(0, 1fr) 16px;
  align-items: center;
  gap: 7px;
  padding: 8px 8px 8px 6px;
  border: 1px solid var(--line-soft);
  border-left-width: 3px;
  border-radius: 7px;
  background: var(--surface-soft);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.delivery-mini-list > .delivery-item-row:hover,
.delivery-mini-list > .delivery-item-row:focus-visible {
  border-color: #c8d0d4;
  background: #fff;
  outline: none;
  transform: translateX(2px);
}

.delivery-mini-list > .delivery-item-row.waiting { border-left-color: #4d91cf; }
.delivery-mini-list > .delivery-item-row.blocked { border-left-color: #8b969c; }
.delivery-mini-list > .delivery-item-row.active { border-left-color: var(--teal); }
.delivery-mini-list > .delivery-item-row.internal { border-left-color: #8b68c0; }
.delivery-mini-list > .delivery-item-row.customer { border-left-color: var(--amber); }
.delivery-mini-list > .delivery-item-row.confirmed { border-left-color: var(--green); }
.delivery-mini-list > .delivery-item-row.returned { border-left-color: var(--red); }
.delivery-mini-list > .delivery-item-row.paused { border-left-color: #46535a; }

.delivery-item-index {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.delivery-item-copy {
  min-width: 0;
}

.delivery-item-copy strong,
.delivery-item-copy small {
  display: block;
}

.delivery-item-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-item-copy small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-item-caret {
  color: #8d989e;
  font-size: 14px;
}

.delivery-project-actions .delivery-project-enter {
  border-color: #f08c76;
  background: var(--coral-soft);
  color: var(--coral-dark);
  font-weight: 800;
}

.customer-link-preview-action {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.customer-link-preview-action .primary-button {
  flex: 0 0 auto;
  text-decoration: none;
}

.customer-link-preview-action span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.delivery-rule-strip,
.delivery-service-banner,
.delivery-dispatch-card,
.delivery-linked-task {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #f0d7c9;
  border-radius: 12px;
  background: linear-gradient(145deg, #fffaf6, #fff4ec);
}

.delivery-rule-strip > i,
.delivery-service-banner > span,
.delivery-dispatch-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ff6549, #e83b25);
  box-shadow: 0 8px 18px rgba(231, 65, 39, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: white;
  font-size: 20px;
}

.delivery-rule-strip div,
.delivery-service-banner div,
.delivery-dispatch-card div,
.delivery-linked-task div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.delivery-rule-strip strong,
.delivery-service-banner strong,
.delivery-dispatch-card strong,
.delivery-linked-task strong {
  color: var(--ink);
  font-size: 13px;
}

.delivery-rule-strip p,
.delivery-service-banner p,
.delivery-dispatch-card p,
.delivery-linked-task small {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.delivery-service-banner {
  border-color: #b8ddd6;
  background: linear-gradient(145deg, #f2fbf8, #e6f6f2);
}

.delivery-service-banner > span {
  background: linear-gradient(145deg, #22ad99, #0a8678);
  box-shadow: 0 8px 18px rgba(10, 134, 120, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.delivery-service-banner small {
  color: var(--teal);
  font-size: 9px;
  font-weight: 750;
}

.delivery-dispatch-card .primary-button,
.delivery-linked-task .secondary-button {
  flex: 0 0 auto;
  margin-left: auto;
}

.delivery-linked-task {
  justify-content: space-between;
  margin-bottom: 12px;
  border-color: #d7e1e4;
  background: white;
}

.delivery-linked-task > div > span {
  color: var(--coral);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.delivery-task-link-note {
  border-color: #f0d7c9;
  background: #fff7f1;
}

@media (max-width: 560px) {
  .delivery-responsibility-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .delivery-responsibility-heading .secondary-button {
    width: 100%;
  }

  .delivery-project-card {
    padding: 14px;
  }

  .delivery-status-legend {
    padding: 10px 12px;
  }

  .delivery-mini-list > .delivery-item-row {
    grid-template-columns: 22px minmax(0, 1fr) 15px;
    gap: 7px;
  }

  .delivery-item-row .delivery-status-chip {
    grid-column: 2 / 3;
    grid-row: 2;
    justify-self: start;
  }

  .delivery-item-row .delivery-item-copy {
    grid-column: 2 / 3;
    grid-row: 1;
  }

  .delivery-item-row .delivery-item-caret {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .delivery-item-index {
    grid-row: 1 / 3;
  }

  .delivery-project-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .delivery-project-actions .secondary-button {
    width: 100%;
    min-width: 0;
  }

  .customer-link-preview-action {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-link-preview-action .primary-button {
    justify-content: center;
  }

  .delivery-dispatch-card,
  .delivery-linked-task {
    align-items: stretch;
    flex-direction: column;
  }

  .delivery-dispatch-card .primary-button,
  .delivery-linked-task .secondary-button {
    width: 100%;
    margin-left: 0;
  }
}
/* 交付绩效：执行人与交付负责人分开，负责人只看进度、催办和验收。 */
.mine-supervision-panel {
  margin-bottom: 18px;
  border-color: rgba(18, 151, 155, 0.28);
  box-shadow: 0 14px 34px rgba(9, 44, 59, 0.07);
  overflow: hidden;
}

.mine-supervision-panel .panel-header {
  background: linear-gradient(112deg, rgba(18, 151, 155, 0.11), rgba(255, 87, 61, 0.06));
  border-bottom-color: rgba(18, 151, 155, 0.18);
}

.supervision-kicker {
  display: block;
  margin-bottom: 5px;
  color: #0a8c91;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.supervision-task-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.supervision-task-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 18px;
  gap: 10px;
  align-items: center;
  min-height: 74px;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 1px solid rgba(9, 44, 59, 0.12);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.supervision-task-row:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 151, 155, 0.45);
  box-shadow: 0 10px 22px rgba(9, 44, 59, 0.09);
}

.supervision-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  color: #087d82;
  font-size: 13px;
  font-weight: 900;
  background: #e4f7f5;
  border: 1px solid #b9e7e2;
  border-radius: 11px;
}

.supervision-task-row > span:nth-child(2) {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.supervision-task-row strong,
.supervision-task-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supervision-task-row small {
  color: var(--muted);
  font-size: 12px;
}

.supervision-task-row > b {
  display: grid;
  gap: 4px;
  color: #087d82;
  font-size: 12px;
  text-align: right;
}

.supervision-task-row > b.overdue {
  color: #e34831;
}

.supervision-task-row > b small {
  color: currentColor;
  opacity: 0.7;
}

.task-owner-stack {
  display: grid;
  gap: 5px;
}

.task-owner-stack > small {
  color: #0a8c91;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.task-auto-link,
.task-supervision-relationship {
  display: flex;
  gap: 12px;
  align-items: center;
  background: linear-gradient(110deg, #fff9f5, #f3fbfa);
  border: 1px solid rgba(255, 87, 61, 0.17);
}

.task-auto-link > div,
.task-supervision-relationship > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.task-auto-link p,
.task-supervision-relationship p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.task-auto-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 7px 9px;
  color: #d9442e;
  font-size: 11px;
  font-weight: 900;
  background: #fff0ea;
  border: 1px solid #ffd2c4;
  border-radius: 8px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .supervision-task-list {
    grid-template-columns: 1fr;
  }

  .task-auto-link,
  .task-supervision-relationship {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

/* 顶栏信息分区：品牌岗位、互动羊驼、账号操作各自成组，避免文字被挤成竖排。 */
.topbar {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) clamp(108px, 9vw, 138px) auto;
  align-items: center;
  column-gap: clamp(14px, 1.4vw, 24px);
  padding: 0 clamp(18px, 2vw, 28px);
}

.topbar-primary,
.topbar-status,
.topbar-commands {
  min-width: 0;
  display: flex;
  align-items: center;
}

.topbar-primary {
  gap: 16px;
}

.topbar-feature {
  min-width: 0;
  display: grid;
  place-items: center;
}

.topbar-actions {
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 3px;
  white-space: nowrap;
}

.topbar-status,
.topbar-commands {
  justify-content: flex-end;
  gap: 8px;
}

.topbar-product {
  min-width: 176px;
  display: grid;
  align-items: center;
  gap: 2px;
  line-height: 1.2;
  white-space: nowrap;
}

.topbar-product strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
}

.topbar-product span {
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.topbar .role-switcher {
  flex: 0 0 auto;
  display: grid;
  align-items: center;
  gap: 3px;
}

.topbar .role-switcher > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.topbar .role-switcher select,
.topbar .role-switcher.personal-role strong {
  min-height: 30px;
  max-width: 150px;
  margin: 0;
  padding-block: 0;
  white-space: nowrap;
}

.topbar .topbar-alpaca-slot {
  width: 100%;
  height: 56px;
  flex: none;
}

.topbar-actions .topbar-date {
  flex: 0 0 auto;
  margin-right: 2px;
  padding-right: 11px;
}

.topbar-actions .editor-mode-button,
.topbar-actions .undo-center-button,
.topbar-actions .sync-state,
.topbar-actions .member-button,
.topbar-commands > .secondary-button,
.topbar-commands > .primary-button {
  flex: 0 0 auto;
}

.topbar-actions .member-button {
  min-width: 104px;
  max-width: 132px;
}

.topbar-commands > .secondary-button,
.topbar-commands > .primary-button {
  min-height: 42px;
  padding-inline: 15px;
  line-height: 1.1;
  white-space: nowrap;
}

@media (max-width: 1400px) {
  .topbar {
    grid-template-columns: minmax(270px, 1fr) 112px auto;
    column-gap: 14px;
    padding-inline: 20px;
  }

  .topbar-primary {
    gap: 12px;
  }

  .topbar-actions {
    gap: 2px;
  }

  .topbar-status,
  .topbar-commands {
    gap: 5px;
  }

  .topbar-actions .editor-mode-button,
  .topbar-actions .undo-center-button,
  .topbar-actions .sync-state {
    padding-inline: 7px;
  }

  .topbar-actions .member-button {
    min-width: 94px;
    max-width: 112px;
  }

  .topbar-commands > .secondary-button,
  .topbar-commands > .primary-button {
    padding-inline: 12px;
  }
}

@media (max-width: 1280px) {
  .topbar {
    grid-template-columns: minmax(240px, 1fr) 104px auto;
  }

  .topbar-product {
    min-width: 0;
  }

  .topbar-product span,
  .topbar-actions .topbar-date,
  .topbar-actions .sync-state > span,
  .topbar-actions .undo-center-label {
    display: none;
  }

  .topbar-actions .sync-state,
  .topbar-actions .undo-center-button {
    min-width: 34px;
    justify-content: center;
  }
}

@media (max-width: 1180px) {
  .topbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .topbar-status,
  .topbar-commands {
    gap: 6px;
  }

  .topbar-status .sync-state {
    display: none;
  }

  .topbar-status .undo-center-button {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
  }
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: minmax(210px, 1fr) 92px auto;
    column-gap: 10px;
    padding-inline: 16px;
  }

  .topbar-primary {
    gap: 9px;
  }

  .topbar-product strong {
    font-size: 13px;
  }

  .topbar-actions .editor-mode-button {
    width: 36px;
    min-width: 36px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .topbar-actions .editor-mode-button span {
    margin: 0;
  }

  .topbar-actions .member-button {
    min-width: 102px;
    max-width: 116px;
  }
}

@media (max-width: 900px) {
  .topbar {
    min-height: 64px;
    display: grid;
    grid-template-columns: auto minmax(76px, 96px) auto;
    column-gap: 10px;
    padding: 0 14px;
  }

  .topbar-primary {
    display: block;
  }

  .topbar-primary .mobile-menu {
    display: inline-grid;
  }

  .topbar-primary .topbar-product,
  .topbar-primary .role-switcher,
  .topbar-actions .topbar-date,
  .topbar-actions .avatar-review-topbar,
  .topbar-actions .editor-mode-button,
  .topbar-actions .undo-center-button,
  .topbar-actions .sync-state,
  .topbar-commands > .secondary-button,
  .topbar-commands > .primary-button {
    display: none;
  }

  .topbar .topbar-alpaca-slot {
    height: 46px;
  }

  .topbar-actions {
    display: flex;
    justify-content: end;
  }

  .topbar-actions .topbar-status {
    display: none;
  }

  .topbar-actions .topbar-commands {
    display: flex;
  }

  .topbar-actions .member-button {
    min-width: 92px;
    max-width: 124px;
    margin: 0;
  }
}

/* 我的工作第一屏：先告诉当前岗位“现在做什么”，再展示流程与统计。 */
.mine-command.mine-first-action {
  min-height: 184px;
  grid-template-columns: 78px minmax(0, 1fr) minmax(238px, 0.34fr);
  gap: 24px;
  margin-bottom: 14px;
  padding: 26px 28px 26px 24px;
  border: 1px solid #ead6cf;
  border-left: 6px solid var(--coral);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 86, 61, .12), transparent 28%),
    linear-gradient(112deg, #fff 0%, #fffaf7 100%);
  box-shadow: 0 12px 30px rgba(41, 25, 19, .07);
}

.mine-command.mine-first-action.is-clear {
  border-color: #cfe2df;
  border-left-color: var(--teal);
  background:
    radial-gradient(circle at 88% 12%, rgba(12, 156, 146, .10), transparent 28%),
    linear-gradient(112deg, #fff 0%, #f8fcfb 100%);
}

.mine-first-number {
  width: 72px;
  height: 94px;
  align-self: start;
  display: grid;
  place-content: center;
  gap: 2px;
  border-radius: 18px;
  background: var(--coral);
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 24px rgba(240, 74, 49, .22);
}

.mine-first-action.is-clear .mine-first-number {
  background: var(--teal);
  box-shadow: 0 12px 24px rgba(12, 156, 146, .18);
}

.mine-first-number span {
  color: rgba(255, 255, 255, .74);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .16em;
}

.mine-first-number strong {
  color: #fff;
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.07em;
}

.mine-first-copy {
  min-width: 0;
}

.mine-first-copy > span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff0ea;
  color: var(--coral-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
}

.mine-first-action.is-clear .mine-first-copy > span {
  background: #eaf8f5;
  color: var(--teal-dark);
}

.mine-command.mine-first-action .mine-first-copy h2 {
  max-width: 850px;
  margin: 10px 0 7px;
  color: #12212b;
  font-size: clamp(27px, 2.65vw, 39px);
  font-weight: 950;
  line-height: 1.18;
  letter-spacing: -.055em;
}

.mine-command.mine-first-action .mine-first-copy p {
  max-width: 850px;
  margin: 0;
  color: #4f5d65;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.65;
}

.mine-first-standard {
  max-width: 850px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px dashed #e5c8be;
}

.mine-first-standard b {
  flex: 0 0 auto;
  color: var(--coral-dark);
  font-size: 10px;
  font-weight: 900;
}

.mine-first-standard span {
  color: #1f323d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.mine-first-action.is-clear .mine-first-standard {
  border-top-color: #bedbd5;
}

.mine-first-action.is-clear .mine-first-standard b {
  color: var(--teal-dark);
}

.mine-first-action-button {
  align-self: stretch;
  align-content: center;
  gap: 13px;
}

.mine-first-action-button small {
  max-width: none;
  color: #66747b;
  font-size: 10px;
  line-height: 1.55;
  text-align: left;
}

.mine-first-action-button small b {
  display: block;
  margin-bottom: 3px;
  color: var(--coral-dark);
  font-size: 10px;
  font-weight: 900;
}

.mine-first-action-button .mine-next-button {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(240, 74, 49, .18);
}

.mine-first-action-button .mine-next-button i {
  font-size: 18px;
}

.mine-first-action.is-clear .mine-next-button {
  border-color: #9cbeb8;
  color: var(--teal-dark);
  box-shadow: none;
}

.mine-first-action + .personal-route {
  margin-bottom: 14px;
}

@media (max-width: 1050px) {
  .mine-command.mine-first-action {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .mine-first-number {
    width: 64px;
    height: 84px;
  }

  .mine-first-action-button {
    grid-column: 2;
    grid-template-columns: minmax(0, 1fr) minmax(230px, .55fr);
    align-items: center;
  }
}

@media (max-width: 680px) {
  .page-head .page-actions .mine-create-task-button {
    min-height: 42px;
    display: inline-flex;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 12px;
  }

  .mine-command.mine-first-action {
    min-height: 0;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 13px;
    padding: 17px 15px 16px 13px;
    border-left-width: 4px;
    border-radius: 12px;
  }

  .mine-first-number {
    width: 46px;
    height: 60px;
    border-radius: 13px;
  }

  .mine-first-number span {
    font-size: 6px;
  }

  .mine-first-number strong {
    font-size: 23px;
  }

  .mine-first-copy > span {
    min-height: 22px;
    padding: 0 8px;
    font-size: 8px;
  }

  .mine-command.mine-first-action .mine-first-copy h2 {
    margin-top: 8px;
    font-size: 22px;
    line-height: 1.28;
  }

  .mine-command.mine-first-action .mine-first-copy p {
    font-size: 11px;
  }

  .mine-first-standard {
    display: grid;
    gap: 4px;
    margin-top: 9px;
    padding-top: 9px;
  }

  .mine-first-standard span {
    font-size: 11px;
  }

  .mine-first-action-button {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 61px;
  }

  .mine-first-action-button .mine-next-button {
    min-height: 50px;
    font-size: 13px;
  }
}

/* 岗位任务红绿灯：保留既有橙色统筹台，只强化任务优先级与点击联动。 */
.traffic-control {
  display: grid;
  grid-template-columns: minmax(220px, 1.05fr) repeat(3, minmax(190px, 1fr));
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--coral);
  border-radius: 10px;
  background: rgba(255, 254, 250, .97);
  box-shadow: 0 10px 24px rgba(21, 35, 43, .045);
  overflow: hidden;
}

.traffic-control-title {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--coral-soft), #fffefa 72%);
}

.traffic-control-title span {
  color: var(--coral-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.traffic-control-title strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.traffic-control > button {
  --signal: var(--green);
  --signal-soft: var(--green-soft);
  position: relative;
  min-width: 0;
  min-height: 88px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border: 0;
  border-left: 1px solid var(--line-soft);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.traffic-control > button.red {
  --signal: #e33b2d;
  --signal-soft: #fff0ed;
}

.traffic-control > button.yellow {
  --signal: #e29313;
  --signal-soft: #fff7df;
}

.traffic-control > button.green {
  --signal: #2f9348;
  --signal-soft: #edf7ef;
}

.traffic-control > button:hover,
.traffic-control > button.active {
  z-index: 1;
  background: var(--signal-soft);
  box-shadow: inset 0 -4px 0 var(--signal);
}

.traffic-control > button:hover {
  transform: translateY(-1px);
}

.traffic-control > button > i {
  width: 16px;
  height: 16px;
  display: block;
  border: 4px solid rgba(255,255,255,.86);
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 1px var(--signal), 0 4px 10px color-mix(in srgb, var(--signal) 28%, transparent);
}

.traffic-control > button > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.traffic-control > button > span b {
  color: var(--signal);
  font-size: 15px;
}

.traffic-control > button > span small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.traffic-control > button > strong {
  color: var(--signal);
  font-size: 26px;
  line-height: 1;
}

.traffic-control > button > strong small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 10px;
}

.traffic-control > button > em {
  position: absolute;
  right: 14px;
  bottom: 7px;
  color: var(--signal);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  opacity: .72;
}

.task-traffic-badge {
  --signal: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  margin-right: 8px;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--signal) 35%, #fff);
  border-radius: 999px;
  background: color-mix(in srgb, var(--signal) 9%, #fff);
  color: var(--signal);
  vertical-align: middle;
  white-space: nowrap;
}

.task-traffic-badge.red { --signal: #e33b2d; }
.task-traffic-badge.yellow { --signal: #d98708; }
.task-traffic-badge.green { --signal: #2f9348; }

.task-traffic-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 14%, transparent);
}

.task-traffic-badge b {
  font-size: 10px;
  font-weight: 900;
}

.task-traffic-badge small {
  font-size: 10px;
}

.task-traffic-badge.compact {
  min-height: 20px;
  margin-right: 6px;
  padding: 0 7px;
}

.task-traffic-row {
  --signal: #2f9348;
}

.task-traffic-row.traffic-red { --signal: #e33b2d; }
.task-traffic-row.traffic-yellow { --signal: #d98708; }

.task-traffic-row td:first-child {
  box-shadow: inset 4px 0 0 var(--signal);
}

.kanban-card.traffic-red { border-left: 4px solid #e33b2d; }
.kanban-card.traffic-yellow { border-left: 4px solid #d98708; }
.kanban-card.traffic-green { border-left: 4px solid #2f9348; }

.role-fixed-flow {
  display: grid;
  grid-template-columns: minmax(210px, .8fr) minmax(0, 2.8fr);
  gap: 18px;
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--coral);
  border-radius: 10px;
  background: var(--surface);
}

.role-fixed-flow > div {
  display: grid;
  align-content: center;
  gap: 6px;
}

.role-fixed-flow > div span {
  color: var(--coral-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.role-fixed-flow > div strong {
  font-size: 16px;
  line-height: 1.4;
}

.role-fixed-flow ol {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.role-fixed-flow li {
  position: relative;
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface-soft);
}

.role-fixed-flow li b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 12px;
}

.role-fixed-flow li span {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}

.role-fixed-flow li > i {
  position: absolute;
  z-index: 2;
  right: -10px;
  top: 50%;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--coral-dark);
  transform: translateY(-50%);
}

@media (max-width: 1180px) {
  .traffic-control {
    grid-template-columns: 1fr repeat(3, minmax(150px, 1fr));
  }

  .traffic-control > button > em {
    display: none;
  }

  .role-fixed-flow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .traffic-control {
    grid-template-columns: 1fr;
    border-left-width: 4px;
  }

  .traffic-control-title,
  .traffic-control > button {
    min-height: 68px;
  }

  .traffic-control > button {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .role-fixed-flow {
    padding: 15px;
  }

  .role-fixed-flow ol {
    grid-template-columns: 1fr;
  }

  .role-fixed-flow li > i {
    right: 50%;
    top: auto;
    bottom: -14px;
    transform: translateX(50%) rotate(90deg);
  }
}

/* 客户消息6小时响应与月度扣分 */
.response-mini-panel {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 5px solid #2f9348;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 9px 26px rgba(20, 38, 45, .05);
}

.response-mini-panel.has-warning { border-left-color: #d98708; }
.response-mini-panel.has-overdue { border-left-color: #e33b2d; }

.response-mini-score {
  padding-right: 18px;
  border-right: 1px solid var(--line-soft);
}

.response-mini-score span,
.response-mini-panel p {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.response-mini-score strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.response-mini-score small,
.response-rule-score small,
.response-person-card small {
  margin-left: 3px;
  color: var(--muted);
  font-size: .46em;
}

.response-mini-panel h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.response-mini-panel p { margin: 0; }

.response-rule-hero {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 330px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(20, 38, 45, .06);
}

.response-rule-score {
  display: grid;
  align-content: center;
  min-height: 190px;
  padding: 28px;
  background: var(--coral);
  color: #fff;
}

.response-rule-score > span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.response-rule-score > strong {
  margin: 8px 0;
  font-size: 58px;
  line-height: 1;
}

.response-rule-score small,
.response-rule-score p {
  color: rgba(255, 255, 255, .82);
}

.response-rule-score p { margin: 0; font-size: 12px; }

.response-rule-copy {
  display: grid;
  align-content: center;
  padding: 28px 34px;
}

.response-rule-copy > span {
  color: var(--coral);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}

.response-rule-copy h2 {
  margin: 8px 0 10px;
  font-size: 31px;
}

.response-rule-copy p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.response-rule-steps {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
  border-left: 1px solid var(--line-soft);
  background: var(--surface-soft);
}

.response-rule-steps > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.response-rule-steps b {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2f9348;
  color: #fff;
  font-size: 11px;
}

.response-rule-steps > div:nth-child(2) b { background: #d98708; }
.response-rule-steps > div:nth-child(3) b { background: #e33b2d; }
.response-rule-steps span { font-size: 12px; font-weight: 750; }

.response-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.response-kpis > div {
  position: relative;
  min-height: 102px;
  padding: 20px 22px;
  border-right: 1px solid var(--line-soft);
}

.response-kpis > div:last-child { border-right: 0; }
.response-kpis span,
.response-kpis small { display: block; color: var(--muted); font-size: 11px; }
.response-kpis strong { display: block; margin: 4px 0; font-size: 31px; }
.response-kpis .green strong { color: #2f9348; }
.response-kpis .yellow strong { color: #d98708; }
.response-kpis .red strong { color: #e33b2d; }

.response-person-section,
.response-message-section {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.response-person-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.response-person-card {
  padding: 17px 18px;
  border: 1px solid var(--line-soft);
  border-top: 4px solid #2f9348;
  border-radius: 9px;
  background: var(--surface-soft);
}

.response-person-card.yellow { border-top-color: #d98708; }
.response-person-card.red { border-top-color: #e33b2d; }
.response-person-card > div { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.response-person-card > div span { font-weight: 850; }
.response-person-card > div strong { font-size: 28px; line-height: 1; }
.response-person-card p { margin: 10px 0 6px; color: var(--muted); font-size: 11px; }
.response-person-status { font-size: 11px; font-weight: 800; }

.response-message-list { padding: 0 18px 18px; }

.response-message-row {
  --response-signal: #2f9348;
  display: grid;
  grid-template-columns: 64px minmax(250px, 1fr) 205px 150px 115px;
  align-items: center;
  gap: 16px;
  min-height: 100px;
  margin-top: 10px;
  padding: 14px 16px 14px 12px;
  border: 1px solid var(--line-soft);
  border-left: 5px solid var(--response-signal);
  border-radius: 9px;
  background: #fff;
}

.response-message-row.yellow { --response-signal: #d98708; }
.response-message-row.red { --response-signal: #e33b2d; }

.response-signal {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--response-signal);
  font-size: 10px;
}

.response-signal span,
.response-record-signal span {
  width: 17px;
  height: 17px;
  border: 5px solid color-mix(in srgb, var(--response-signal), white 74%);
  border-radius: 50%;
  background: var(--response-signal);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--response-signal), white 50%);
}

.response-message-main span,
.response-time span,
.response-time small,
.response-result span,
.response-result small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.response-message-main h3 {
  margin: 5px 0;
  font-size: 14px;
  line-height: 1.55;
}

.response-message-main > small { color: var(--ink); font-size: 11px; font-weight: 800; }
.response-time strong { display: block; margin: 4px 0; color: var(--response-signal); font-size: 13px; }
.response-result strong { display: block; margin: 4px 0; color: #e33b2d; font-size: 17px; }

.response-form-rule,
.response-deadline-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 86, 61, .22);
  border-radius: 8px;
  background: rgba(255, 86, 61, .07);
}

.response-form-rule b {
  color: var(--coral);
  font-size: 18px;
}

.response-form-rule span { color: var(--muted); font-size: 12px; }
.response-deadline-card { --response-signal: #2f9348; }
.response-deadline-card.yellow { --response-signal: #d98708; }
.response-deadline-card.red { --response-signal: #e33b2d; }
.response-deadline-card > span { padding: 6px 9px; border-radius: 5px; background: var(--response-signal); color: #fff; font-size: 11px; font-weight: 900; }
.response-deadline-card div { display: grid; gap: 4px; }
.response-deadline-card small { color: var(--muted); }

.response-record-detail { padding: 4px; }
.response-record-signal { --response-signal: #2f9348; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 16px; border-radius: 8px; background: var(--surface-soft); }
.response-record-signal.yellow { --response-signal: #d98708; }
.response-record-signal.red { --response-signal: #e33b2d; }
.response-record-signal strong { color: var(--response-signal); }
.response-record-signal small { margin-left: auto; color: var(--muted); }
.response-record-detail dl { margin: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.response-record-detail dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.response-record-detail dl > div:last-child { border-bottom: 0; }
.response-record-detail dt { color: var(--muted); font-size: 11px; }
.response-record-detail dd { margin: 0; font-weight: 750; line-height: 1.55; }

@media (max-width: 1180px) {
  .response-rule-hero { grid-template-columns: 200px 1fr; }
  .response-rule-steps { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); border-left: 0; border-top: 1px solid var(--line-soft); }
  .response-message-row { grid-template-columns: 55px minmax(220px, 1fr) 175px 120px; }
  .response-row-action { grid-column: 2 / -1; }
}

@media (max-width: 760px) {
  .response-mini-panel { grid-template-columns: 1fr; gap: 13px; }
  .response-mini-score { padding-right: 0; padding-bottom: 12px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .response-rule-hero { grid-template-columns: 1fr; }
  .response-rule-score { min-height: 145px; }
  .response-rule-copy { padding: 23px; }
  .response-rule-steps { grid-template-columns: 1fr; }
  .response-kpis { grid-template-columns: repeat(2, 1fr); }
  .response-kpis > div:nth-child(2) { border-right: 0; }
  .response-kpis > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .response-person-grid { grid-template-columns: 1fr; }
  .response-message-row { grid-template-columns: 46px 1fr; gap: 10px; }
  .response-time,
  .response-result,
  .response-row-action { grid-column: 2; }
  .response-row-action .primary-button,
  .response-row-action .secondary-button { width: 100%; }
  .response-record-detail dl > div { grid-template-columns: 1fr; gap: 5px; }
}

/* 企业微信客户聊天工具栏：只呈现搜索、资料和发送动作。 */
body:has(.knowledge-toolbar-mode) {
  min-width: 0;
  padding-bottom: 0;
  overflow-x: hidden;
  background: #f7f8f6;
}

.app-shell.knowledge-toolbar-mode {
  min-width: 0;
  min-height: 100vh;
  display: block;
  overflow-x: hidden;
  background: #f7f8f6;
}

.knowledge-toolbar-mode .main {
  min-width: 0;
  width: 100%;
}

.knowledge-toolbar-mode .knowledge-toolbar-content {
  width: min(100%, 720px);
  min-width: 0;
  margin: 0 auto;
  padding: 18px;
}

.knowledge-toolbar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 2px 2px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.knowledge-toolbar-head > div { min-width: 0; }
.knowledge-toolbar-head span {
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}
.knowledge-toolbar-head h1 { margin: 4px 0 3px; color: var(--ink); font-size: 24px; }
.knowledge-toolbar-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.knowledge-toolbar-head > strong {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 11px;
}

.knowledge-toolbar-mode .knowledge-toolbar-status {
  margin: 0 0 12px;
  padding: 13px;
  border-radius: 14px;
}
.knowledge-toolbar-mode .knowledge-toolbar-status > div { gap: 10px; }
.knowledge-toolbar-mode .knowledge-toolbar-status > div > i {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 20px;
}
.knowledge-toolbar-mode .knowledge-toolbar-status .secondary-button { flex: 0 0 auto; }
.knowledge-toolbar-mode .knowledge-search-panel {
  grid-template-columns: minmax(0, 1fr) 138px;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
}
.knowledge-toolbar-mode .knowledge-search-panel > select:last-child:nth-child(3) {
  grid-column: 1 / -1;
}
.knowledge-toolbar-mode .knowledge-result-head { margin-top: 13px; }
.knowledge-toolbar-mode .knowledge-grid,
.knowledge-toolbar-mode .knowledge-grid.single-card { grid-template-columns: minmax(0, 1fr); }
.knowledge-toolbar-mode .knowledge-card { padding: 16px; border-radius: 15px; }
.knowledge-toolbar-mode .knowledge-card h2 { font-size: 17px; }
.knowledge-toolbar-mode .knowledge-card-actions > button { min-width: 0; }
.knowledge-toolbar-mode :where(.knowledge-card, .knowledge-question, .knowledge-summary, .knowledge-file-row, .knowledge-card-actions) {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* 外部客户群不冒充 Webhook：人工发送必须复制、真实发群、再确认。 */
.wecom-manual-outbox-list { display: grid; gap: 12px; }
.wecom-manual-outbox-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(224, 123, 23, .34);
  border-radius: 16px;
  background: #fffbf3;
}
.wecom-manual-outbox-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.wecom-manual-outbox-card header > div { display: grid; min-width: 0; gap: 3px; }
.wecom-manual-outbox-card header span { color: #a65e08; font-size: 11px; font-weight: 850; }
.wecom-manual-outbox-card header strong { overflow-wrap: anywhere; }
.wecom-manual-outbox-card header small { flex: 0 0 auto; color: var(--muted); }
.wecom-manual-outbox-card pre {
  max-width: 100%;
  margin: 13px 0;
  padding: 13px;
  overflow: auto;
  border: 1px solid rgba(224, 123, 23, .2);
  border-radius: 12px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.wecom-manual-outbox-card > p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

@media (max-width: 420px) {
  .knowledge-toolbar-mode .knowledge-toolbar-content { width: 100%; padding: 12px; }
  .knowledge-toolbar-head { gap: 8px; }
  .knowledge-toolbar-head h1 { font-size: 21px; }
  .knowledge-toolbar-head > strong { max-width: 82px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .knowledge-toolbar-mode .knowledge-toolbar-status { align-items: stretch; flex-direction: column; }
  .knowledge-toolbar-mode .knowledge-toolbar-status .secondary-button { width: 100%; }
  .knowledge-toolbar-mode .knowledge-search-panel { grid-template-columns: minmax(0, 1fr); }
  .knowledge-toolbar-mode .knowledge-search-panel > select:last-child:nth-child(3) { grid-column: auto; }
  .knowledge-toolbar-mode .knowledge-result-head { gap: 4px; }
  .knowledge-toolbar-mode .knowledge-card header { align-items: flex-start; }
  .knowledge-toolbar-mode .knowledge-card-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .knowledge-toolbar-mode .knowledge-card-actions > button { width: 100%; }
  .knowledge-toolbar-mode .knowledge-file-row,
  .knowledge-toolbar-mode .knowledge-file-row > span:last-child { align-items: stretch; flex-direction: column; width: 100%; }
  .knowledge-toolbar-mode .knowledge-file-row a,
  .knowledge-toolbar-mode .knowledge-file-row button { width: 100%; text-align: center; }
  .wecom-manual-outbox-card header { flex-direction: column; }
  .wecom-manual-outbox-card .wecom-card-actions { display: grid; grid-template-columns: 1fr; }
  .wecom-manual-outbox-card .wecom-card-actions > * { width: 100%; }
}

/* 智能体部门工单：暖白工作台 + 珊瑚色主操作，与现有公司后台同一设计语言。 */
.agent-service-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid #d9d5ce;
  border-left: 4px solid #ff4d34;
  border-radius: 8px;
  background: #fffefb;
}
body:has(.agent-workspace) .page-head h1 { font-size: clamp(34px, 4vw, 48px); line-height: 1.02; }
body:has(.agent-workspace) .page-head { align-items: flex-end; }
.agent-service-banner > div { display: grid; gap: 4px; }
.agent-service-banner > div > span { color: #ff4d34; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.agent-service-banner strong { color: #10181d; font-size: 15px; }
.agent-service-banner p { margin: 0; color: #667078; font-size: 12px; line-height: 1.65; }
.agent-service-banner button { flex: 0 0 auto; }
.agent-service-actions { display: flex; align-items: center; gap: 8px; }
.agent-mobile-submit { display: none; }

.agent-kpi-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.agent-kpi-rail article {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 15px;
  border: 1px solid #d9d5ce;
  border-radius: 7px;
  background: #fffefb;
  box-shadow: 0 5px 18px rgba(16, 24, 29, .035);
}
.agent-kpi-rail article span { color: #667078; font-size: 11px; font-weight: 760; }
.agent-kpi-rail article strong { color: #10181d; font-size: 28px; line-height: 1; }
.agent-kpi-rail article small { overflow: hidden; color: #8a8e91; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.agent-kpi-rail article.danger { border-color: rgba(216, 58, 46, .38); background: #fff8f6; }
.agent-kpi-rail article.danger strong { color: #d83a2e; }

.agent-balance-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  padding: 11px 14px;
  border: 1px solid rgba(217, 133, 22, .35);
  border-radius: 7px;
  background: #fff9ed;
  color: #8b5611;
  font-size: 12px;
}
.agent-balance-note i { font-size: 18px; }

.agent-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.agent-filter-tabs,
.agent-scope-tabs { display: flex; align-items: center; gap: 5px; min-width: 0; }
.agent-filter-tabs button,
.agent-scope-tabs button {
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #667078;
  font: inherit;
  font-size: 11px;
  font-weight: 760;
  cursor: pointer;
}
.agent-filter-tabs button:hover,
.agent-scope-tabs button:hover { background: rgba(16, 24, 29, .04); color: #10181d; }
.agent-filter-tabs button.active,
.agent-scope-tabs button.active { border-color: #10181d; background: #10181d; color: #fff; }
.agent-scope-tabs > span { color: #7b8085; font-size: 11px; }

.agent-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(350px, .8fr);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid #d9d5ce;
  border-radius: 8px;
  background: #fffefb;
  box-shadow: 0 12px 32px rgba(16, 24, 29, .05);
}
.agent-order-list { min-width: 0; border-right: 1px solid #d9d5ce; background: #fffefb; }
.agent-order-columns,
.agent-order-row {
  display: grid;
  grid-template-columns: 128px minmax(190px, 1fr) 76px 76px 118px 76px;
  align-items: center;
  gap: 10px;
}
.agent-order-columns {
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid #d9d5ce;
  background: #f4f1eb;
  color: #7c817f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}
.agent-order-row {
  width: 100%;
  min-height: 66px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid #ebe8e2;
  background: transparent;
  color: #10181d;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease;
}
.agent-order-row:hover { background: #faf8f3; }
.agent-order-row.selected { background: #fff2ee; box-shadow: inset 3px 0 #ff4d34; }
.agent-order-row > span { min-width: 0; font-size: 11px; }
.agent-order-row > span:nth-child(2) { display: grid; gap: 4px; }
.agent-order-row > span:nth-child(2) strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.agent-order-row > span:nth-child(2) small { overflow: hidden; color: #7a7e80; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.agent-order-number { color: #566067; font: 750 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.agent-due { color: #576067; }
.agent-due.overdue { color: #d83a2e; font-weight: 850; }

.agent-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 58px;
  padding: 5px 7px;
  border: 1px solid #d9d5ce;
  border-radius: 999px;
  background: #f5f2ec;
  color: #566067;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}
.agent-status.new { border-color: #e6b9ae; background: #fff1ed; color: #ba3f2c; }
.agent-status.active { border-color: #9cc4dc; background: #edf7fc; color: #246487; }
.agent-status.waiting { border-color: #e8c27f; background: #fff7e7; color: #95600c; }
.agent-status.done { border-color: #a9d8ba; background: #eef9f2; color: #227847; }
.agent-status.cancelled { color: #85898b; }

.agent-detail-panel { min-width: 0; padding: 20px; background: #fbf9f5; }
.agent-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #dfdcd6; }
.agent-detail-head > div { display: grid; gap: 4px; }
.agent-detail-head > div > span { color: #7c817f; font: 750 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.agent-detail-head h2 { margin: 0; color: #10181d; font-size: 21px; letter-spacing: -.03em; }
.agent-transfer-alert { display: flex; gap: 10px; margin-top: 14px; padding: 12px; border: 1px solid #e5ba71; border-radius: 7px; background: #fff7e7; color: #7e520c; }
.agent-transfer-alert i { margin-top: 2px; font-size: 19px; }
.agent-transfer-alert div { display: grid; gap: 3px; }
.agent-transfer-alert p { margin: 0; font-size: 11px; line-height: 1.55; }
.agent-order-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.agent-order-meta div { display: grid; gap: 3px; min-width: 0; }
.agent-order-meta dt { color: #85898b; font-size: 10px; }
.agent-order-meta dd { margin: 0; color: #222b30; font-size: 12px; font-weight: 750; overflow-wrap: anywhere; }
.agent-demand-copy,
.agent-result-summary { display: grid; gap: 8px; margin: 14px 0; padding: 14px; border: 1px solid #dfdcd6; border-radius: 7px; background: #fffefb; }
.agent-demand-copy > span,
.agent-result-summary > span { color: #7d8285; font-size: 10px; font-weight: 850; letter-spacing: .04em; }
.agent-demand-copy p { margin: 0; color: #252d31; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
.agent-result-summary { border-color: #a9d8ba; background: #f3fbf5; }
.agent-result-summary strong { color: #1d6d40; font-size: 12px; line-height: 1.65; }
.agent-result-summary a { color: #1d6d40; font-size: 11px; font-weight: 800; }
.agent-action-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 18px; }
.agent-action-row button { min-height: 34px; padding: 7px 10px; font-size: 10px; }
.agent-complete-button { margin-left: auto; background: #229c58; border-color: #229c58; }
.agent-files-grid { display: grid; gap: 11px; }
.agent-file-group { overflow: hidden; border: 1px solid #dfdcd6; border-radius: 7px; background: #fffefb; }
.agent-file-group > header { display: flex; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid #ece9e3; background: #f5f2ed; color: #4e575c; font-size: 10px; }
.agent-file-group > header span { color: #85898b; }
.agent-file-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) 18px; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #efede8; color: #273136; text-decoration: none; }
.agent-file-row:last-child { border-bottom: 0; }
.agent-file-row:hover { background: #faf8f3; }
.agent-file-row > span { display: grid; min-width: 0; gap: 2px; }
.agent-file-row strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.agent-file-row small { color: #85898b; font-size: 9px; }
.agent-empty-copy { margin: 0; padding: 11px 12px; color: #989b9d; font-size: 10px; }
.agent-event-timeline { margin-top: 18px; }
.agent-event-timeline > header { display: flex; justify-content: space-between; margin-bottom: 10px; color: #576067; font-size: 10px; }
.agent-event-timeline > div { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 8px; padding: 0 0 10px; }
.agent-event-timeline > div > i { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: #ff4d34; box-shadow: 0 0 0 3px #ffe5de; }
.agent-event-timeline > div > span { display: grid; gap: 2px; }
.agent-event-timeline > div strong { color: #343d42; font-size: 10px; }
.agent-event-timeline > div small { color: #85898b; font-size: 9px; line-height: 1.5; }
.agent-empty-state { display: grid; place-items: center; align-content: center; min-height: 260px; padding: 28px; color: #85898b; text-align: center; }
.agent-empty-state i { margin-bottom: 8px; color: #c2bdb4; font-size: 35px; }
.agent-empty-state strong { color: #4e575c; font-size: 13px; }
.agent-empty-state p { margin: 5px 0 0; font-size: 11px; }

.agent-intake-form { display: grid; gap: 18px; }
.agent-intake-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.agent-intake-form legend,
.agent-intake-form .field > span { margin-bottom: 8px; color: #222b30; font-size: 12px; font-weight: 850; }
.agent-intake-identity { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #b7d9c4; border-radius: 7px; background: #f1faf4; }
.agent-intake-identity i { color: #229c58; font-size: 24px; }
.agent-intake-identity span { display: grid; gap: 2px; }
.agent-intake-identity small { color: #60806c; font-size: 10px; }
.agent-intake-identity strong { color: #1d6d40; }
.agent-type-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.agent-type-options label input,
.agent-owner-options label input { position: absolute; opacity: 0; pointer-events: none; }
.agent-type-options label span { display: grid; place-items: center; min-height: 42px; padding: 8px; border: 1px solid #d9d5ce; border-radius: 7px; background: #fffefb; color: #596267; font-size: 11px; font-weight: 800; cursor: pointer; }
.agent-type-options label input:checked + span { border-color: #ff4d34; background: #fff0ec; color: #bd3e2a; box-shadow: inset 0 0 0 1px #ff4d34; }
.agent-owner-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.agent-owner-options label { position: relative; }
.agent-owner-options label > span { display: grid; gap: 3px; padding: 13px 14px; border: 1px solid #d9d5ce; border-radius: 7px; background: #fffefb; cursor: pointer; }
.agent-owner-options label strong { color: #222b30; font-size: 13px; }
.agent-owner-options label small { color: #7c817f; font-size: 10px; }
.agent-owner-options label input:checked + span { border-color: #ff4d34; background: #fff0ec; box-shadow: inset 0 0 0 1px #ff4d34; }
.agent-owner-options label.recommended input:checked + span small { color: #bd3e2a; font-weight: 800; }
.agent-form-note { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-radius: 7px; background: #f4f1eb; color: #687176; font-size: 10px; }
.agent-final-check { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 12px; border: 1px solid #d9d5ce; border-radius: 7px; background: #f7f4ee; }
.agent-final-check i { font-size: 24px; color: #ff4d34; }
.agent-final-check span { display: grid; gap: 2px; }
.agent-final-check strong { color: #30393e; font-size: 11px; }
.agent-final-check small { color: #7c817f; font-size: 10px; }
.agent-rules-card { display: grid; gap: 10px; }
.agent-rules-card p { margin: 0; padding: 12px 13px; border: 1px solid #dfdcd6; border-radius: 7px; background: #fffefb; color: #596267; font-size: 11px; line-height: 1.65; }
.agent-rules-card strong { color: #20292e; }

@media (max-width: 1180px) {
  .agent-kpi-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agent-workspace { grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); }
  .agent-order-columns,
  .agent-order-row { grid-template-columns: 118px minmax(160px, 1fr) 68px 68px 106px 68px; gap: 7px; }
}

@media (max-width: 980px) {
  .agent-toolbar { align-items: stretch; flex-direction: column; }
  .agent-filter-tabs,
  .agent-scope-tabs { overflow-x: auto; padding-bottom: 2px; }
  .agent-filter-tabs button,
  .agent-scope-tabs button { flex: 0 0 auto; }
  .agent-workspace { display: block; overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .agent-order-list { overflow: hidden; border: 1px solid #d9d5ce; border-radius: 8px; }
  .agent-detail-panel { margin-top: 14px; border: 1px solid #d9d5ce; border-radius: 8px; }
}

@media (max-width: 720px) {
  .agent-service-banner { align-items: stretch; flex-direction: column; padding: 15px; }
  .agent-service-banner button { width: 100%; }
  .agent-service-actions { display: grid; grid-template-columns: 1fr; }
  .agent-mobile-submit { display: flex; }
  .agent-kpi-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .agent-kpi-rail article { padding: 12px; }
  .agent-kpi-rail article strong { font-size: 24px; }
  .agent-order-columns { display: none; }
  .agent-order-row {
    grid-template-columns: 1fr auto;
    gap: 7px 12px;
    min-height: 0;
    padding: 13px;
  }
  .agent-order-row .agent-order-number { grid-column: 1; grid-row: 1; }
  .agent-order-row > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .agent-order-row > span:nth-child(3) { grid-column: 1; grid-row: 3; }
  .agent-order-row > span:nth-child(3)::before { content: "需求人："; color: #96999a; }
  .agent-order-row > span:nth-child(4) { grid-column: 1; grid-row: 4; }
  .agent-order-row > span:nth-child(4)::before { content: "负责："; color: #96999a; }
  .agent-order-row .agent-due { grid-column: 1; grid-row: 5; }
  .agent-order-row .agent-due::before { content: "要求："; color: #96999a; font-weight: 500; }
  .agent-order-row .agent-status { grid-column: 2; grid-row: 1 / span 2; }
  .agent-filter-tabs { width: 100%; gap: 3px; overflow-x: visible; }
  .agent-filter-tabs button { flex: 1 1 0; min-width: 0; padding: 7px 4px; font-size: 10px; white-space: nowrap; }
  .agent-detail-panel { padding: 16px 16px 76px; }
  .agent-detail-head h2 { font-size: 19px; }
  .agent-order-meta { grid-template-columns: 1fr; gap: 8px; }
  .agent-action-row { display: grid; grid-template-columns: 1fr 1fr; }
  .agent-action-row button { width: 100%; margin: 0; }
  .agent-complete-button { grid-column: 1 / -1; }
  .agent-type-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agent-owner-options { grid-template-columns: 1fr; }
  .modal:has(#agent-work-order-form) { width: min(100% - 18px, 620px); max-height: calc(100dvh - 18px); }
}
