:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    sans-serif;
  color: #192c37;
  background: #f4f7f8;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 80px;
  border-bottom: 1px solid #dce5e8;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw, 20px);
}
a {
  color: #16766b;
  text-decoration: none;
}
.brand {
  font-size: 24px;
  font-weight: 750;
  color: #163e40;
}
.brand span {
  font-size: 13px;
  font-weight: 400;
  border-left: 1px solid #bbcdd0;
  margin-left: 16px;
  padding-left: 16px;
  color: #62747a;
}
main {
  max-width: 1120px;
  margin: 45px auto;
  padding: 0 24px;
  min-height: 70vh;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #16766b;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 14px 0;
}
h2 {
  font-size: 20px;
  margin: 0 0 20px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.8;
}
.muted,
small {
  color: #61767e;
  font-size: 13px;
  line-height: 1.8;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}
.card {
  background: white;
  border: 1px solid #dce5e8;
  padding: 28px;
  border-radius: 14px;
  margin-bottom: 22px;
  box-shadow: 0 4px 15px #243f4504;
}
.grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
}
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.projects .card {
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.projects .card:hover {
  border-color: #289a88;
}
.login {
  max-width: 470px;
  margin: 70px auto;
}
.login h1 {
  font-size: 29px;
}
.login .card {
  padding: 34px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0 8px;
}
input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c9d7db;
  border-radius: 7px;
  font: inherit;
  background: #fff;
  color: #192c37;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
button,
.button {
  cursor: pointer;
  border: 0;
  border-radius: 7px;
  background: #16766b;
  color: white;
  padding: 12px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
}
button:hover {
  background: #105f57;
}
.secondary {
  background: #eaf3f1;
  color: #16695f;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.badge {
  display: inline-block;
  padding: 5px 10px;
  background: #eaf4f1;
  color: #16766b;
  border-radius: 5px;
  font-size: 12px;
}
.banner {
  background: #fff6dc;
  border: 1px solid #f1e1ae;
  padding: 10px 16px;
  border-radius: 7px;
  font-size: 12px;
  color: #715c27;
  margin-bottom: 26px;
}
.progress {
  height: 9px;
  border-radius: 10px;
  overflow: hidden;
  background: #e8eff0;
  margin: 20px 0;
}
progress {
  width: 100%;
  height: 12px;
  accent-color: #16766b;
}
.stat {
  font-size: 38px;
  color: #16766b;
  font-weight: 650;
}
.prose {
  white-space: pre-wrap;
  line-height: 1.9;
  font-size: 15px;
}
.file,
.note {
  padding: 15px 0;
  border-bottom: 1px solid #e7eef0;
  overflow-wrap: anywhere;
}
.file {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.note p {
  margin: 5px 0;
}
.empty {
  padding: 20px 0;
  color: #70848c;
  font-size: 14px;
}
#notice {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #153e3d;
  color: white;
  border-radius: 8px;
  padding: 14px 24px;
  display: none;
  max-width: 90vw;
}
footer {
  text-align: center;
  color: #799096;
  font-size: 12px;
  padding: 26px;
}
details {
  margin-top: 20px;
}
summary {
  cursor: pointer;
  font-size: 13px;
  color: #667b82;
}
.section-label {
  color: #6e838a;
  font-size: 12px;
  margin-bottom: 12px;
}
@media (max-width: 700px) {
  header {
    height: 66px;
  }
  .brand {
    font-size: 20px;
  }
  .brand span {
    display: none;
  }
  main {
    margin: 28px auto;
    padding: 0 16px;
  }
  .grid,
  .projects {
    grid-template-columns: 1fr;
  }
  .hero {
    display: block;
  }
  h1 {
    font-size: 27px;
  }
  .card {
    padding: 22px;
  }
  .login {
    margin: 35px auto;
  }
  .hero .actions {
    margin-top: 14px;
  }
  .stat {
    font-size: 32px;
  }
  #identity {
    font-size: 12px;
  }
}
.projects .card:hover {
  background: #f2f9f7;
}
#access-result {
  overflow-wrap: anywhere;
}
/* Approved three-section workspace: white, navy and restrained violet. */
:root {
  color: #102747;
  background: #fff;
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
}
header {
  height: 74px;
  border-color: #e7eaf2;
  padding: 0 max(5vw, 24px);
}
.brand {
  color: #102747;
}
.brand span {
  color: #7c89a2;
  border-color: #e0e5ef;
}
main {
  max-width: 1340px;
  margin: 30px auto;
  padding: 0 34px;
}
.banner {
  font-size: 12px;
  background: #f8f9fc;
  color: #7b87a0;
  border: 0;
  padding: 8px 12px;
  margin-bottom: 20px;
}
h1 {
  font-size: 38px;
  letter-spacing: -1px;
  line-height: 1.35;
  margin: 12px 0;
}
h2 {
  color: #102747;
  font-size: 24px;
}
.muted,
small {
  color: #7b89a3;
}
a {
  color: #6652ff;
}
button {
  background: #6953ff;
  border: 1px solid transparent;
  border-radius: 7px;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.secondary {
  color: #596a87;
  background: #f7f8fc;
  border-color: #e4e8f2;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #9687ff;
  outline-offset: 3px;
}
.breadcrumb {
  font-size: 14px;
  color: #8290a8;
}
.current-stage {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #62718d;
  font-weight: 600;
}
.current-stage i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #6e58ff;
}
.next-step {
  display: flex;
  align-items: center;
  gap: 22px;
  background: #f5f3ff;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0 30px;
}
.next-step p {
  flex: 1;
  margin: 0;
  color: #65728d;
}
.next-step strong {
  color: #6e58ff;
}
.next-step button {
  padding: 13px 18px;
  white-space: nowrap;
}
.next-step button span {
  margin-left: 12px;
}
.doc-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 9px;
  background: #f5f3ff;
  color: #715aff;
  font-size: 29px;
}
.next-step .doc-icon {
  background: #fff;
}
.section-heading {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin: 28px 0 17px;
}
.section-heading h2 {
  margin: 0;
  font-size: 26px;
}
.section-heading > span {
  font-size: 15px;
  color: #7b89a3;
}
.base-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.base-tile {
  display: flex;
  gap: 20px;
  align-items: center;
  border: 1px solid #e3e7f1;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  color: #102747;
  padding: 20px 18px;
  min-width: 0;
}
.base-tile strong {
  font-size: 16px;
  display: block;
}
.base-tile small {
  display: block;
  font-size: 13px;
  margin-top: 7px;
  line-height: 1.5;
}
.base-tile > b {
  margin-left: auto;
  color: #8b99b1;
  font-size: 24px;
  font-weight: 400;
}
.base-tile:hover,
.material-tile:hover {
  border-color: #c9c0ff;
  background: #fcfbff;
}
.stages-section {
  margin: 38px 0;
}
.stage-panel {
  border: 1px solid #e1e6f0;
  border-radius: 7px;
  margin-bottom: 11px;
  overflow: hidden;
}
.stage-panel summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 22px;
  background: #f9fafc;
  cursor: pointer;
  list-style: none;
}
.stage-panel summary::-webkit-details-marker {
  display: none;
}
.stage-panel summary strong {
  font-size: 18px;
}
.chevron {
  font-size: 25px;
  line-height: 18px;
  color: #7d8ba7;
}
.stage-panel[open] .chevron {
  transform: rotate(90deg);
  color: #6c56ff;
}
.stage-panel[open] summary {
  background: #f4f2ff;
}
.stage-tag {
  margin-left: auto;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 12px;
  color: #8a96aa;
  background: #f0f2f6;
}
.stage-panel[open] .stage-tag {
  color: #6b55ff;
  background: #eeebff;
}
.stage-body {
  padding: 12px 18px;
}
.material-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.material-tile {
  padding: 10px;
  text-align: left;
  background: #fff;
  border: 1px solid #e2e7f1;
  color: #102747;
  min-width: 0;
}
.material-cover {
  width: 100%;
  height: 112px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  margin-bottom: 11px;
}
.abstract-cover {
  background: linear-gradient(
    143deg,
    #f5f2fc 12%,
    #e3ddf9 48%,
    #faf9ff 49%,
    #e5defc 60%,
    #d4cafa 100%
  );
}
.material-tile strong {
  display: block;
  font-size: 16px;
  margin: 4px 0 8px;
}
.material-tile > span {
  font-size: 13px;
  color: #8290a8;
  display: flex;
  justify-content: space-between;
}
.add-tile {
  min-height: 184px;
  background: #fff;
  border: 1px dashed #d3caff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #6c56ff;
  font-size: 16px;
}
.add-tile > span {
  font-size: 35px;
  font-weight: 300;
}
.stage-attachments {
  border-top: 1px solid #e9ecf3;
  padding-top: 10px;
  margin-top: 12px;
}
.stage-attachments .file {
  padding: 6px 0;
  display: flex;
  gap: 20px;
}
.stage-attachments small {
  font-size: 12px;
}
.support-grid {
  display: block;
}
.support-grid aside {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
.card {
  box-shadow: none;
  border-color: #e3e7f1;
  border-radius: 8px;
}
.badge {
  color: #6b55cf;
  background: #f3f0ff;
}
progress {
  accent-color: #7159ff;
}
.section-label,
.eyebrow {
  color: #6d5bc3;
}
.material-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: 85vh;
  overflow: auto;
  border: 1px solid #e3e7f1;
  border-radius: 12px;
  padding: 26px;
  color: #102747;
  box-shadow: 0 20px 80px #14284c25;
}
.material-dialog::backdrop {
  background: #12274455;
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.dialog-top h2 {
  margin: 0;
}
.detail-cover {
  display: block;
  max-height: 280px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 20px;
}
.material-dialog .material-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.material-dialog .prose {
  overflow-wrap: anywhere;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-wrap: anywhere;
}
.check-row input {
  width: auto;
  margin: 0;
}
.card-form fieldset {
  border: 1px solid #e3e7f1;
  border-radius: 6px;
  margin: 14px 0;
}
.form-error {
  color: #b32643;
}
.file span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.file a {
  flex-shrink: 0;
}
.card-form label {
  display: block;
}
.card-form .check-row {
  display: flex;
}
@media (max-width: 900px) {
  .base-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .support-grid aside {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  header {
    padding: 0 18px;
    height: 66px;
  }
  .brand {
    font-size: 21px;
  }
  .brand span {
    display: none;
  }
  #identity {
    font-size: 11px;
  }
  main {
    padding: 0 18px;
    margin: 22px auto;
  }
  h1 {
    font-size: 27px;
  }
  .section-heading {
    display: block;
  }
  .section-heading h2 {
    font-size: 22px;
    margin-bottom: 8px;
  }
  .section-heading > span {
    font-size: 13px;
  }
  .next-step {
    flex-wrap: wrap;
    padding: 15px;
    gap: 12px;
  }
  .next-step p {
    font-size: 14px;
    line-height: 1.7;
  }
  .next-step button {
    width: 100%;
  }
  .base-tile {
    padding: 14px 10px;
    gap: 9px;
  }
  .base-tile .doc-icon {
    width: 32px;
    height: 36px;
    font-size: 23px;
  }
  .base-tile strong {
    font-size: 14px;
  }
  .base-tile small {
    font-size: 11px;
  }
  .base-tile > b {
    display: none;
  }
  .stage-panel summary {
    padding: 14px 12px;
    gap: 10px;
  }
  .stage-panel summary strong {
    font-size: 16px;
  }
  .stage-tag {
    padding: 3px 7px;
    font-size: 11px;
  }
  .stage-body {
    padding: 10px;
  }
  .material-grid,
  .material-dialog .material-grid {
    grid-template-columns: 1fr;
  }
  .material-cover {
    height: 150px;
  }
  .add-tile {
    min-height: 105px;
  }
  .material-dialog {
    padding: 20px;
  }
  .stages-section {
    margin: 28px 0;
  }
  .card {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
/* Local delivery workflow: existing white/lilac language, task-oriented layout. */
main {
  max-width: 1180px;
  padding-bottom: 130px;
}
.workspace-tabs {
  display: flex;
  gap: 8px;
  margin: 24px 0;
  border-bottom: 1px solid #e3e2ed;
  padding-bottom: 12px;
  position: sticky;
  top: 0;
  background: #fafaff;
  z-index: 3;
}
.workspace-tabs button {
  flex: 1;
}
.workspace-tabs .active {
  background: #6347ed;
  color: #fff;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.row h2,
.row h3 {
  margin: 0;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.overview-grid .card {
  height: auto;
}
.lead {
  font-size: 20px;
  line-height: 1.7;
}
.stage-row,
.task-item,
.timeline-item {
  border-top: 1px solid #e4e4ef;
  padding: 24px 0;
}
.timeline-item {
  border-left: 3px solid #dcd4ff;
  padding-left: 20px;
  margin-top: 16px;
}
.deliverable {
  border: 1px solid #e3e2ed;
  background: #fbfaff;
  border-radius: 12px;
  padding: 18px;
  margin: 16px 0;
  overflow-wrap: anywhere;
}
.file-link {
  display: block;
  padding: 10px 0;
}
.text-button {
  background: transparent;
  color: #5634cf;
  border: 1px solid #dcd4ff;
  margin: 4px;
}
.save-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px max(20px, calc((100vw - 1140px) / 2));
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid #dedbea;
  box-shadow: 0 -4px 24px #2520500b;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.save-bar small {
  display: block;
  font-size: 12px;
  color: #667085;
  margin-top: 4px;
}
.save-bar .actions {
  margin: 0;
}
.flow-dialog {
  width: min(900px, 94vw);
  max-width: 94vw;
  max-height: 90vh;
  overflow: auto;
  padding: 28px;
}
.flow-dialog .dialog-top {
  position: sticky;
  top: -28px;
  background: white;
  z-index: 2;
  padding: 12px 0;
}
.flow-dialog input[type="file"] {
  width: 100%;
}
.flow-dialog fieldset {
  border: 1px solid #e3e2ed;
  margin: 20px 0;
  border-radius: 10px;
}
.preview-banner {
  padding: 18px;
  background: #f2eeff;
  border-radius: 12px;
  margin: 12px 0 24px;
}
.preview-banner p {
  margin-bottom: 0;
}
.muted,
small {
  color: #5e687a;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #9c87ff;
  outline-offset: 3px;
}
#notice {
  z-index: 100;
  max-width: 90vw;
  cursor: pointer;
}
#workspace .card {
  margin-bottom: 20px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}
.check-row input {
  width: auto;
}
@media (max-width: 720px) {
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .save-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    padding: 10px 16px;
  }
  .save-bar .actions {
    display: flex;
    flex-wrap: nowrap;
  }
  .save-bar .actions button {
    flex: 1;
  }
  .workspace-tabs {
    gap: 4px;
  }
  .workspace-tabs button {
    padding: 10px 6px;
    font-size: 13px;
  }
  .flow-dialog {
    padding: 18px;
  }
  .flow-dialog .dialog-top {
    top: -18px;
  }
  .row {
    gap: 10px;
  }
  .hero h1 {
    font-size: 28px;
  }
}
#notice {
  top: 90px;
  right: 20px;
  bottom: auto;
  left: auto;
  transform: none;
}
/* Client view v2: clear phases, latest update and browsable document collection. */
.customer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 32px 0;
}
.customer-heading h1 {
  font-size: 38px;
  margin: 10px 0;
}
.resource-total {
  border-left: 1px solid #ddd9ee;
  padding-left: 30px;
  min-width: 130px;
}
.resource-total strong {
  display: block;
  font-size: 46px;
  color: #6647db;
}
.resource-total span {
  color: #647084;
  font-size: 13px;
}
.phase-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 32px;
}
.phase-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  background: #f4f4f9;
  border: 1px solid #e5e4ee;
  border-radius: 16px;
  color: #7b8294;
}
.phase-step small {
  display: block;
  margin-top: 5px;
}
.phase-step.is-current {
  background: #ebe5ff;
  border-color: #b4a2f5;
  color: #4922ad;
}
.phase-step.is-done {
  background: #edf7f4;
  color: #276c59;
}
.phase-num {
  font-size: 32px;
  font-weight: 750;
  opacity: 0.55;
}
.latest-panel {
  padding: 32px;
  border-radius: 22px;
  background: linear-gradient(125deg, #f6f2ff, #f1f7ff);
  border: 1px solid #e1d8f8;
  margin-bottom: 36px;
}
.latest-panel h2 {
  font-size: 25px;
  line-height: 1.5;
  margin-top: 24px;
  max-width: 850px;
}
.latest-panel .eyebrow {
  color: #6c4ac3;
}
.byline {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  white-space: nowrap;
}
.byline small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  height: 36px;
  width: 36px;
  background: #e9ddff;
  color: #6c40a5;
  font-weight: 700;
  border: 2px solid white;
}
.tone-2,
.tone-6 {
  background: #d8eee7;
  color: #276c59;
}
.tone-3,
.tone-7 {
  background: #ffe7d5;
  color: #95643a;
}
.tone-4,
.tone-8 {
  background: #dae7ff;
  color: #345b91;
}
.tone-5,
.tone-9,
.tone-10 {
  background: #f4ddeb;
  color: #9d537c;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}
.resource-tile {
  background: white;
  border: 1px solid #e3e0ec;
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
}
.resource-open {
  padding: 0;
  background: white;
  color: inherit;
  border: 0;
  width: 100%;
  text-align: left;
  border-radius: 0;
  display: block;
}
.resource-open:hover {
  background: #fcfbff;
}
.resource-art {
  height: 150px;
  background: #e9e8f5;
  padding: 18px 22px 0;
  overflow: hidden;
}
.resource-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.paper-preview {
  background: white;
  height: 160px;
  box-shadow: 0 3px 18px #43347112;
  padding: 16px;
  color: #3b3655;
  border-radius: 3px;
  overflow: hidden;
}
.paper-preview span {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  color: #8b7aad;
  border-bottom: 1px solid #e9e4f4;
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.paper-preview strong {
  font-size: 15px;
}
.paper-preview p {
  font-size: 10px;
  color: #818494;
  line-height: 1.7;
}
.resource-caption {
  padding: 18px 20px 12px;
}
.resource-caption h3 {
  font-size: 16px;
  margin: 10px 0;
}
.resource-caption p {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.7;
  color: #6c7585;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.resource-meta {
  padding: 12px 18px;
  border-top: 1px solid #f0eef5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.resource-meta > span:last-child {
  font-size: 10px;
  color: #8067b4;
}
.next-inline {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #dfd8ec;
  font-size: 14px;
}
.next-inline > span {
  color: #8c7ca7;
}
.next-inline small {
  margin-left: auto;
}
.resources-section {
  margin: 36px 0;
}
.resource-search {
  font-size: 12px;
  max-width: 220px;
}
.resource-search input {
  margin: 4px 0;
}
.phase-detail {
  padding: 22px 0;
  border-top: 1px solid #e6e4ee;
  scroll-margin-top: 20px;
}
.phase-detail h3 {
  font-size: 19px;
}
.plan-task {
  background: #f8f9fc;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 12px 0;
}
.feedback-link {
  color: #6c51ac;
  background: #f1edfa;
  padding: 9px 13px;
  font-size: 12px;
}
.contribution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 24px;
}
.contribution-grid form {
  padding: 24px;
  background: #f8f9fc;
  border-radius: 14px;
}
.feedback-history {
  margin-top: 24px;
}
.resource-dialog {
  width: min(800px, 94vw);
  max-width: 94vw;
}
.resource-body {
  margin: 24px 0;
  padding: 24px;
  background: #f8f9fc;
  line-height: 1.9;
  white-space: pre-wrap;
}
.staff-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.staff-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 4px;
  border: 1px solid #ebe7f3;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
}
.staff-option input {
  width: auto;
}
.staff-option:has(input:checked) {
  background: #f0eaff;
  border-color: #a996e8;
}
.staff-picker {
  margin-top: 22px;
}
.client-contribution {
  margin-top: 24px;
}
@media (max-width: 760px) {
  .customer-heading h1 {
    font-size: 27px;
  }
  .customer-heading {
    gap: 12px;
  }
  .resource-total {
    padding-left: 14px;
    min-width: 75px;
  }
  .resource-total strong {
    font-size: 30px;
  }
  .phase-track {
    gap: 6px;
  }
  .phase-step {
    padding: 14px 9px;
    gap: 5px;
    display: block;
  }
  .phase-num {
    font-size: 23px;
  }
  .phase-step strong {
    font-size: 13px;
  }
  .phase-step small {
    font-size: 11px;
  }
  .latest-panel {
    padding: 20px;
  }
  .latest-panel h2 {
    font-size: 20px;
  }
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .resource-art {
    height: 125px;
    padding: 13px 12px 0;
  }
  .resource-caption {
    padding: 12px;
  }
  .resource-meta {
    padding: 10px;
    display: block;
  }
  .resource-meta > span:last-child {
    display: none;
  }
  .next-inline {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .next-inline small {
    margin-left: 0;
  }
  .contribution-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .plan-task {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .staff-options {
    grid-template-columns: repeat(5, 1fr);
  }
  .byline {
    font-size: 11px;
  }
  .avatar {
    width: 28px;
    height: 28px;
  }
  .resource-search {
    max-width: 100%;
    width: 100%;
  }
  .paper-preview strong {
    font-size: 12px;
  }
  .paper-preview p {
    font-size: 9px;
  }
}

/* Local workflow polish: clear inbox and compact editing. */
.inbox-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: #f1efff;
  border: 1px solid #ddd5ff;
  border-radius: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.inbox-summary button {
  margin-left: auto;
}
.inbox-item {
  padding: 22px 0;
  border-bottom: 1px solid #e3e7ef;
}
.inbox-item:last-child {
  border-bottom: 0;
}
.inbox-item small,
.resource-class {
  display: block;
  color: #65718a;
  margin: 8px 0;
  font-size: 12px;
}
.inbox-item button {
  margin: 8px 8px 0 0;
}
.change-note {
  background: #f5f4fd;
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
}
.form-actions {
  position: sticky;
  bottom: -1px;
  background: white;
  padding: 16px 0;
  margin: 16px 0 0;
  border-top: 1px solid #e1e5ee;
  z-index: 3;
}
.update-form textarea {
  min-height: 84px;
}
.update-form details {
  padding: 12px 0;
  border-top: 1px solid #e1e5ee;
}
.update-form summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 12px;
}
.update-form #update-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.update-form #update-results button {
  grid-column: 1 / -1;
  justify-self: start;
}
.timeline-item .byline {
  margin-bottom: 8px;
}
.save-bar small {
  max-width: 560px;
  line-height: 1.6;
}
@media (min-width: 900px) {
  .update-form .staff-options {
    grid-template-columns: repeat(10, 1fr);
  }
  .flow-dialog:has(.update-form) {
    width: min(960px, 94vw);
  }
  .next-fields {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
  }
}
@media (max-width: 520px) {
  .inbox-summary {
    gap: 10px;
  }
  .inbox-summary button {
    margin-left: 0;
  }
  .update-form #update-results {
    grid-template-columns: 1fr;
  }
}

.attachment-reader {
  width: min(1100px, 94vw);
  max-width: 1100px;
  height: 90vh;
  padding: 24px;
}
.reader-toolbar,
.attachment-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.attachment-pdf {
  width: 100%;
  height: 65vh;
  border: 1px solid #e1e5ee;
  border-radius: 8px;
}
.attachment-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.markdown-reader {
  line-height: 1.85;
  overflow-wrap: anywhere;
  padding: 12px 0;
}
.markdown-reader pre {
  white-space: pre-wrap;
  overflow: auto;
  background: #f5f6fa;
  border-radius: 8px;
  padding: 16px;
}
.markdown-reader code {
  background: #f1f2f7;
  padding: 2px 4px;
}
.markdown-reader blockquote {
  border-left: 3px solid #7051f4;
  margin: 16px 0;
  padding: 8px 16px;
  color: #56627b;
}
.markdown-reader h1 {
  font-size: 28px;
}
.markdown-reader h2 {
  font-size: 23px;
}
.markdown-reader h3 {
  font-size: 19px;
}
.table-scroll {
  overflow-x: auto;
}
.markdown-reader table {
  border-collapse: collapse;
  width: 100%;
}
.markdown-reader th,
.markdown-reader td {
  border: 1px solid #dce0ec;
  padding: 10px;
  text-align: left;
}
@media (max-width: 520px) {
  .attachment-reader {
    padding: 16px;
  }
  .reader-toolbar {
    gap: 12px;
  }
  .attachment-pdf {
    height: 62vh;
  }
}

.pdf-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.pdf-controls label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pdf-controls select {
  width: auto;
}
.pdf-canvas-wrap {
  overflow: auto;
  background: #e9ecf3;
  border-radius: 10px;
  padding: 12px;
  max-height: 65vh;
}
.pdf-canvas-wrap canvas {
  display: block;
  margin: auto;
  background: white;
}
.pdf-page-text {
  white-space: pre-wrap;
  line-height: 1.8;
  padding: 16px;
}
.pdf-page-count {
  font-variant-numeric: tabular-nums;
  min-width: 85px;
}

/* Internal delivery console: the main site's ink, indigo and champagne palette. */
body.delivery-admin {
  color: #eaf0fb;
  background: radial-gradient(ellipse at 82% 0%, #292761 0%, transparent 36%),
    radial-gradient(ellipse at 0% 20%, #142c4e 0%, transparent 38%), #0b1020;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.delivery-admin header { height: 76px; background: rgba(11,16,32,.88); border-color: rgba(148,163,184,.2); backdrop-filter: blur(16px); }
.delivery-admin .brand { color: #f8fafc; letter-spacing: .04em; }
.delivery-admin .brand span { color: #aeb9d0; border-color: #39445c; }
.delivery-admin #identity { color: #96a5be; font-size: 12px; }
.delivery-admin main { max-width: 1300px; margin-top: 30px; }
.delivery-admin .banner { background: rgba(245,158,11,.10); border: 1px solid rgba(245,158,11,.23); color: #edcc87; border-radius: 9px; padding: 10px 15px; }
.delivery-admin .hero { position: relative; padding: 26px 30px 30px; border: 1px solid rgba(148,163,184,.18); border-radius: 20px; overflow: hidden; background: linear-gradient(112deg, rgba(24,35,68,.98), rgba(37,35,84,.75)); box-shadow: 0 20px 50px rgba(0,0,0,.15); }
.delivery-admin .hero::after { content: ""; position: absolute; width: 250px; height: 250px; right: -30px; top: -140px; border: 1px solid rgba(165,180,252,.28); border-radius: 50%; box-shadow: 0 0 0 35px rgba(99,102,241,.06), 0 0 0 70px rgba(99,102,241,.04); pointer-events: none; }
.delivery-admin .hero h1 { color: #f8fafc; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.03em; }
.delivery-admin .hero .muted { color: #b3bfd3; }
.delivery-admin .eyebrow { color: #f0bc61; letter-spacing: .13em; }
.delivery-admin .project-toolbar { display: grid; grid-template-columns: minmax(180px, 1fr) 210px auto; gap: 16px; align-items: end; margin: 26px 0 18px; }
.delivery-admin .project-toolbar label { margin: 0; color: #b6c2d5; font-size: 12px; }
.delivery-admin .project-toolbar input, .delivery-admin .project-toolbar select { margin-top: 8px; }
.delivery-admin .project-count { padding-bottom: 14px; font-size: 12px; color: #a3b1c9; }
.delivery-admin .card, .delivery-admin .inbox-summary { background: #f8faff; color: #16253e; border: 1px solid rgba(198,210,230,.75); border-radius: 16px; box-shadow: 0 18px 40px rgba(2,8,23,.16); }
.delivery-admin .projects .project { min-width: 0; margin: 0; padding: 24px; background: linear-gradient(155deg,#ffffff,#eff3ff); transition: transform .18s, box-shadow .18s, border-color .18s; }
.delivery-admin .projects .project[hidden] { display: none; }
.delivery-admin .projects .project:hover { color: #16253e; transform: translateY(-3px); border-color: #857afa; box-shadow: 0 22px 42px rgba(4,10,30,.3); }
.delivery-admin .project h2 { margin: 14px 0 8px; color: #132441; font-size: 23px; }
.delivery-admin .project p { margin: 6px 0; font-weight: 400; }
.delivery-admin .project-next { color: #334564; font-size: 13px; }
.delivery-admin .project-blocker { color: #9c5816; font-size: 13px; }
.delivery-admin .section-label { display: inline-block; color: #4f46b4; background: #e9e8ff; padding: 5px 10px; border-radius: 30px; font-weight: 700; }
.delivery-admin #create { margin-top: 24px; }
.delivery-admin .template-modules { border: 1px solid #d9e0ef; border-radius: 12px; padding: 14px 18px; margin: 18px 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 14px; }
.delivery-admin .template-modules legend { font-weight: 700; padding: 0 8px; }
.delivery-admin .template-modules p { grid-column: 1/-1; margin: 0 0 8px; }
.delivery-admin .check-row { align-items: center; font-weight: 500; }
.delivery-admin .workspace-tabs { top: 0; background: rgba(11,16,32,.92); border: 1px solid rgba(148,163,184,.17); border-radius: 13px; padding: 7px; backdrop-filter: blur(14px); }
.delivery-admin .workspace-tabs button.secondary { background: transparent; color: #c1cce0; border-color: transparent; }
.delivery-admin .workspace-tabs .active { background: #4f46e5; }
.delivery-admin .workspace-tabs button:hover { background: #373888; color: white; }
.delivery-admin .overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.delivery-admin .overview-grid .card:nth-child(3) { grid-column: 1 / -1; }
.delivery-admin .inbox-summary { margin-bottom: 20px; padding: 18px 22px; }
.delivery-admin h2, .delivery-admin h3 { color: #162844; }
.delivery-admin .muted, .delivery-admin small { color: #61728e; }
.delivery-admin button { background: #4f46e5; color: #fff; border-radius: 9px; }
.delivery-admin button:hover { background: #3730a3; }
.delivery-admin button.secondary { background: #eef1fb; color: #344a6c; border-color: #dce3f2; }
.delivery-admin button.secondary:hover { background: #dfe5fb; color: #2f287d; }
.delivery-admin .badge { background: #eeedff; color: #5044bc; border-radius: 30px; }
.delivery-admin input:not([type=checkbox]):not([type=radio]), .delivery-admin textarea, .delivery-admin select { border: 1px solid #ced7e7; color: #172841; background: #fff; border-radius: 9px; }
.delivery-admin input:focus-visible, .delivery-admin textarea:focus-visible, .delivery-admin select:focus-visible { outline: 3px solid rgba(99,102,241,.25); border-color: #6366f1; }
.delivery-admin .task-item, .delivery-admin .stage-row, .delivery-admin .timeline-item { border-color: #e1e7f1; }
.delivery-admin .deliverable { background: #fff; border-color: #e0e7f2; }
.delivery-admin .material-alert { color: #8a4f12; background: #fff4da; border: 1px solid #f3d69a; padding: 9px 12px; border-radius: 8px; font-size: 13px; }
.delivery-admin .source-note { background: #eef2ff; color: #34436a; border-left: 3px solid #7168ef; border-radius: 7px; padding: 10px 14px; margin: 14px 0; }
.delivery-admin .source-note p { margin: 4px 0; font-size: 13px; }
.delivery-admin .save-bar { background: rgba(11,16,32,.96); color: #eff4ff; border-color: #34425d; backdrop-filter: blur(12px); }
.delivery-admin .save-bar small { color: #b6c1d3; }
.delivery-admin dialog { color: #162844; background: #fff; border: 1px solid #d6deeb; border-radius: 18px; box-shadow: 0 28px 80px rgba(0,0,0,.35); }
.delivery-admin dialog::backdrop { background: rgba(3,7,20,.68); }
.delivery-admin footer { color: #9aa9c1; }
@media(max-width:700px) {
  .delivery-admin header { height: 66px; }
  .delivery-admin main { padding-left: 16px; padding-right: 16px; }
  .delivery-admin .hero { padding: 24px 20px; }
  .delivery-admin .project-toolbar { grid-template-columns: 1fr 1fr; }
  .delivery-admin .project-count { grid-column: 1 / -1; padding: 0; }
  .delivery-admin .template-modules { grid-template-columns: 1fr 1fr; }
  .delivery-admin .overview-grid { grid-template-columns: 1fr; }
  .delivery-admin .overview-grid .card:nth-child(3) { grid-column: auto; }
  .delivery-admin .workspace-tabs { overflow-x: auto; }
  .delivery-admin .workspace-tabs button { flex: 0 0 auto; }
}
@media(prefers-reduced-motion:reduce) { .delivery-admin .projects .project { transition: none; } }

/* Based on the live zhikeyun.cn homepage: bright canvas and violet, pink and amber light. */
body.delivery-admin {
  color: #18223c;
  background: radial-gradient(ellipse at 88% 3%, rgba(255,197,124,.30), transparent 23%),
    radial-gradient(ellipse at 65% 2%, rgba(221,177,255,.38), transparent 28%),
    radial-gradient(ellipse at 5% 42%, rgba(190,195,255,.19), transparent 29%), #fafbfe;
}
.delivery-admin header { background: rgba(255,255,255,.9); border-color: #e9ebf3; box-shadow: 0 5px 25px rgba(31,36,68,.04); }
.delivery-admin .brand { display: inline-flex; align-items: center; color: #13213a; letter-spacing: -.02em; }
.delivery-admin .brand img { width: 34px; height: 34px; object-fit: contain; margin-right: 9px; }
.delivery-admin .brand span { color: #76829a; border-color: #dfe3ee; }
.delivery-admin #identity { color: #6d7991; }
.delivery-admin .banner { background: #fff8e7; border-color: #f3e0b5; color: #815c1d; }
.delivery-admin .hero { background: linear-gradient(112deg,rgba(255,255,255,.97) 8%,rgba(255,255,255,.92) 48%,rgba(243,223,255,.72) 80%,rgba(255,222,188,.78)); border-color: rgba(255,255,255,.85); box-shadow: 0 14px 48px rgba(55,45,120,.09); }
.delivery-admin .hero::after { border-color: rgba(255,255,255,.65); box-shadow: 0 0 0 35px rgba(198,152,255,.11),0 0 0 70px rgba(255,176,208,.10); }
.delivery-admin .hero h1 { color: #171e39; }
.delivery-admin .hero .muted { color: #5d6c85; }
.delivery-admin .eyebrow { color: #6652ec; }
.delivery-admin .project-toolbar label, .delivery-admin .project-count { color: #596a85; }
.delivery-admin .card, .delivery-admin .inbox-summary { background: rgba(255,255,255,.92); border: 1px solid rgba(221,225,239,.85); box-shadow: 0 12px 35px rgba(51,46,100,.07); }
.delivery-admin .projects .project { background: linear-gradient(140deg,rgba(255,255,255,.98),rgba(243,240,255,.84)); }
.delivery-admin .projects .project:nth-child(3n + 2) { background: linear-gradient(140deg,#fff, #fff1f6); }
.delivery-admin .projects .project:nth-child(3n) { background: linear-gradient(140deg,#fff, #fff4e8); }
.delivery-admin .projects .project:hover { box-shadow: 0 20px 40px rgba(76,60,145,.14); }
.delivery-admin .workspace-tabs { background: rgba(248,248,255,.94); border-color: #e3e4f0; box-shadow: 0 8px 25px rgba(49,44,95,.05); }
.delivery-admin .workspace-tabs button.secondary { color: #65718b; }
.delivery-admin .workspace-tabs .active { background: #5547f5; }
.delivery-admin .workspace-tabs button:hover { background: #eceaff; color: #4032bd; }
.delivery-admin .workspace-tabs .active:hover { background: #4b3ee3; color: white; }
.delivery-admin .save-bar { background: rgba(255,255,255,.96); color: #23324b; border-color: #e5e7f0; box-shadow: 0 -8px 32px rgba(54,51,100,.08); }
.delivery-admin .save-bar small { color: #687995; }
.delivery-admin footer { color: #8d98ad; }

/* Keep phase names readable in narrow client screens and embedded previews. */
@media (max-width: 420px) {
  .phase-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase-step { min-width: 0; }
}

/* Project access settings in the local manager. */
.delivery-admin .access-settings { border-color: #e2def1; background: linear-gradient(140deg,#fff 30%,#f9f6ff); }
.delivery-admin .access-settings > .row { align-items: flex-start; }
.delivery-admin .access-settings h2 { margin-bottom: 5px; }
.delivery-admin .access-settings .row p { margin: 0; }
.delivery-admin .access-settings form { max-width: 620px; }
.delivery-admin .access-settings form p { margin: 6px 0 14px; }
.delivery-admin .access-settings input { background: #fff; }
.delivery-admin .access-separator { border-top: 1px solid #e9e7f1; margin: 26px 0 20px; }
.delivery-admin .access-actions { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px 24px; border-top: 1px solid #e9e7f1; margin-top: 26px; padding-top: 24px; }
.delivery-admin .access-actions strong { font-size: 14px; }
.delivery-admin .access-actions p { margin: 3px 0 0; }
.delivery-admin .access-result { margin-top: 24px; padding: 18px 20px; background: #f0edff; border: 1px solid #ded5fb; border-radius: 12px; color: #302b63; }
.delivery-admin .access-result p { font-size: 13px; line-height: 1.7; }
.delivery-admin .access-result input { color: #273452; }
@media (max-width: 520px) {
  .delivery-admin .access-settings > .row { align-items: flex-start; flex-wrap: wrap; }
  .delivery-admin .access-actions { grid-template-columns: 1fr; gap: 8px; }
  .delivery-admin .access-actions button { justify-self: start; margin-bottom: 8px; }
}

.delivery-admin .access-settings fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
