* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #eef2ef;
  color: #18211d;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

img {
  display: block;
  max-width: 100%;
}

.pc-body {
  background:
    linear-gradient(180deg, rgba(77, 174, 114, 0.08), rgba(77, 174, 114, 0) 220px),
    #eef2ef;
}

.pc-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
}

.pc-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow: auto;
  padding: 22px 18px 20px;
  background: linear-gradient(180deg, #12241d 0%, #162b23 100%);
  color: #eef6ef;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.pc-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 22px;
}

.pc-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4fb37a, #75c98f);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(79, 179, 122, 0.24);
}

.pc-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.pc-brand-copy strong {
  font-size: 18px;
  line-height: 1.1;
}

.pc-brand-copy span {
  font-size: 12px;
  color: rgba(238, 246, 239, 0.68);
}

.pc-nav {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.pc-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  color: rgba(238, 246, 239, 0.86);
  background: transparent;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.pc-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transform: translateX(1px);
}

.pc-nav-item.is-active,
.pc-nav-item.active {
  background: rgba(79, 179, 122, 0.18);
  color: #fff;
}

.pc-nav-primary {
  background: rgba(79, 179, 122, 0.12);
}

.pc-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
}

.pc-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(24, 33, 29, 0.06);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(24, 33, 29, 0.06);
}

.sidebar-preview,
.sidebar-compliance {
  margin-top: 16px;
  padding: 16px;
}

.pc-panel-title {
  margin-bottom: 14px;
  color: #28342f;
  font-size: 15px;
  font-weight: 700;
}

.pc-field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.pc-field.compact {
  margin-bottom: 0;
}

.pc-label {
  color: #55615b;
  font-size: 12px;
  font-weight: 600;
}

.pc-input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #d7e0da;
  border-radius: 10px;
  background: #fff;
  color: #16211c;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.pc-input:focus {
  border-color: #4fb37a;
  box-shadow: 0 0 0 3px rgba(79, 179, 122, 0.14);
}

.pc-sms-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.pc-sms-row .pc-btn {
  min-width: 108px;
  padding: 0 12px;
  white-space: nowrap;
}

.pc-textarea {
  min-height: 96px;
  resize: vertical;
}

.pc-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.pc-actions.compact {
  margin-top: 6px;
}

.pc-actions.column {
  flex-direction: column;
  align-items: stretch;
}

.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f3f6f4;
  color: #23302a;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.pc-btn:hover {
  transform: translateY(-1px);
}

.pc-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.pc-btn-primary {
  background: linear-gradient(135deg, #4fb37a, #3ea567);
  color: #fff;
  box-shadow: 0 12px 24px rgba(79, 179, 122, 0.2);
}

.pc-btn-ghost {
  background: #eef4ef;
  color: #31413a;
  border-color: #dbe4de;
}

.pc-btn-danger {
  background: #fff2f0;
  color: #b42318;
  border-color: #ffd9d6;
}

.pc-btn-small {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 9px;
}

.pc-help {
  min-height: 20px;
  margin-top: 10px;
  color: #7b867f;
  font-size: 12px;
}

.pc-preview-stack {
  display: grid;
  gap: 10px;
}

.pc-preview-img,
.pc-preview-card img,
.pc-hero-visual img,
.pc-preview-gallery img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.pc-preview-img {
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(24, 33, 29, 0.06);
}

.pc-compliance-records {
  display: grid;
  gap: 8px;
}

.pc-compliance-line {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(24, 33, 29, 0.08);
}

.pc-compliance-line span {
  color: #64706a;
  font-size: 12px;
}

.pc-compliance-line strong,
.pc-compliance-line a {
  color: #25312b;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.pc-compliance-line a:hover,
.pc-compliance-link:hover {
  color: #2f8f58;
}

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

.pc-compliance-link {
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid #dbe4de;
  border-radius: 9px;
  background: #eef4ef;
  color: #31413a;
  font-size: 12px;
  cursor: pointer;
}

.pc-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pc-modal.is-open {
  display: flex;
}

.pc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 36, 29, 0.58);
}

.pc-modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(18, 36, 29, 0.28);
}

.pc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(24, 33, 29, 0.08);
}

.pc-modal-head h2 {
  margin: 0;
  color: #17211c;
  font-size: 18px;
}

.pc-modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid #dbe4de;
  border-radius: 9px;
  background: #f3f6f4;
  color: #23302a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.pc-modal-body {
  overflow: auto;
  padding: 18px 20px 22px;
  color: #3d4943;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.pc-login-panel {
  width: min(420px, 100%);
}

.pc-login-body {
  padding: 20px;
}

.pc-login-submit {
  width: 100%;
}

.pc-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pc-topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 16px 28px;
  background: rgba(238, 242, 239, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(24, 33, 29, 0.08);
}

.pc-topbar-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pc-topbar-kicker {
  color: #6a756f;
  font-size: 12px;
  letter-spacing: 0;
}

.pc-topbar-copy strong {
  font-size: 24px;
  line-height: 1.15;
}

.pc-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pc-link {
  color: #4c8f68;
  font-weight: 600;
}

.pc-user-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(24, 33, 29, 0.08);
  color: #304139;
  font-size: 13px;
  cursor: pointer;
}

.pc-user-chip.is-guest {
  color: #2f8f58;
  font-weight: 700;
}

.pc-auth-locked {
  min-height: 320px;
  display: grid;
  place-items: center;
}

.pc-auth-locked-page .pc-content > :not(.pc-auth-locked) {
  display: none;
}

.pc-auth-locked-card {
  width: min(420px, 100%);
  padding: 28px;
  text-align: center;
}

.pc-auth-locked-card h2 {
  margin: 0 0 8px;
  color: #17211c;
  font-size: 20px;
}

.pc-auth-locked-card p {
  margin: 0 0 18px;
  color: #66716b;
  line-height: 1.6;
}

.pc-content {
  min-width: 0;
  padding: 24px 28px 32px;
  display: grid;
  gap: 18px;
}

.pc-section {
  display: grid;
  gap: 16px;
}

.pc-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.pc-section-head h2 {
  margin: 0;
  color: #17211c;
  font-size: 20px;
  line-height: 1.2;
}

.pc-section-head span {
  color: #77817b;
  font-size: 13px;
}

.pc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.pc-hero-copy,
.pc-hero-visual {
  min-width: 0;
}

.pc-hero-copy {
  display: grid;
  gap: 16px;
}

.pc-hero-visual {
  padding: 12px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(24, 33, 29, 0.06);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(24, 33, 29, 0.05);
}

.pc-hero-visual img {
  aspect-ratio: 1.75 / 1;
}

.pc-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pc-summary-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(24, 33, 29, 0.06);
  box-shadow: 0 12px 28px rgba(24, 33, 29, 0.05);
}

.pc-summary-card span {
  color: #6d7972;
  font-size: 13px;
}

.pc-summary-card strong {
  color: #16211c;
  font-size: 28px;
  line-height: 1.1;
}

.pc-service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.pc-service-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 164px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(24, 33, 29, 0.06);
  box-shadow: 0 12px 28px rgba(24, 33, 29, 0.04);
}

.pc-service-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  object-fit: cover;
  background: #f4f7f4;
  border: 1px solid rgba(24, 33, 29, 0.05);
}

.pc-service-name {
  margin: 0;
  color: #18221d;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.pc-service-desc {
  color: #68736d;
  font-size: 13px;
  line-height: 1.55;
}

.pc-section.pc-two-col,
.pc-detail-grid,
.pc-create-grid,
.pc-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.pc-two-col > .pc-panel,
.pc-detail-grid > .pc-panel,
.pc-create-grid > .pc-panel,
.pc-profile-grid > .pc-panel {
  padding: 18px;
}

.pc-table-wrap {
  overflow: auto;
}

.pc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.pc-table th,
.pc-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(24, 33, 29, 0.06);
  text-align: left;
  font-size: 13px;
  vertical-align: middle;
}

.pc-table th {
  color: #637069;
  font-weight: 700;
  white-space: nowrap;
}

.pc-table td {
  color: #1a241f;
}

.pc-order-row:hover {
  background: rgba(79, 179, 122, 0.04);
}

.pc-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pc-status.wait {
  background: #edf7ff;
  color: #2563eb;
}

.pc-status.good {
  background: #effaf2;
  color: #1e7f48;
}

.pc-status.warn {
  background: #fff6e5;
  color: #b65e00;
}

.pc-status.bad {
  background: #fff1ef;
  color: #c0352b;
}

.pc-status.gray {
  background: #f2f4f3;
  color: #607069;
}

.pc-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.pc-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #d9e2dc;
  background: #fff;
  color: #213029;
  cursor: pointer;
}

.pc-page-btn.is-active {
  border-color: #4fb37a;
  background: #4fb37a;
  color: #fff;
}

.pc-filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.filter-actions {
  justify-content: flex-end;
}

.pc-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 6px 0 14px;
}

.pc-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #33413a;
  font-size: 13px;
}

.pc-switch input {
  width: 16px;
  height: 16px;
  accent-color: #4fb37a;
}

.pc-quote-box {
  display: grid;
  gap: 10px;
}

.pc-quote-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5f8f5;
}

.pc-quote-row span {
  color: #65706a;
}

.pc-quote-row strong {
  font-size: 18px;
}

.pc-preview-card {
  margin-top: 18px;
  padding: 12px;
  border-radius: 14px;
  background: #f8fbf8;
  border: 1px solid rgba(24, 33, 29, 0.06);
}

.pc-preview-card img {
  aspect-ratio: 16 / 10;
}

.pc-preview-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pc-preview-gallery img {
  aspect-ratio: 0.75 / 1;
  border: 1px solid rgba(24, 33, 29, 0.06);
}

.pc-profile-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.pc-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 10px 18px rgba(24, 33, 29, 0.08);
}

.pc-profile-meta {
  display: grid;
  gap: 8px;
}

.pc-profile-name {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.pc-profile-sub {
  color: #66726b;
  font-size: 13px;
}

.pc-asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pc-asset-card {
  padding: 16px;
  border-radius: 14px;
  background: #f7faf7;
  border: 1px solid rgba(24, 33, 29, 0.06);
}

.pc-asset-card span {
  color: #6b766f;
  font-size: 13px;
}

.pc-asset-card strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.1;
}

.pc-required {
  margin-left: 4px;
  color: #d94841;
}

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

.pc-check-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7faf7;
  border: 1px solid rgba(24, 33, 29, 0.06);
  font-size: 13px;
}

.pc-check-item input {
  accent-color: #4fb37a;
}

.pc-upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pc-upload-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4ef;
  color: #304139;
  font-size: 12px;
}

.pc-detail-section {
  margin-top: 18px;
}

.pc-detail-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.2;
}

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

.pc-image-list img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(24, 33, 29, 0.06);
}

.pc-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 40;
  min-width: 220px;
  max-width: min(92vw, 420px);
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(18, 36, 29, 0.92);
  color: #fff;
  box-shadow: 0 14px 34px rgba(18, 36, 29, 0.2);
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.pc-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.pc-toast.success {
  background: rgba(26, 108, 63, 0.95);
}

.pc-toast.warn {
  background: rgba(165, 92, 0, 0.95);
}

.pc-toast.bad {
  background: rgba(176, 39, 37, 0.95);
}

.pc-toast.info {
  background: rgba(24, 33, 29, 0.94);
}

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

.pc-list-item {
  padding: 14px;
  border-radius: 12px;
  background: #f7faf7;
  border: 1px solid rgba(24, 33, 29, 0.06);
}

.pc-list-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pc-list-item-title {
  font-weight: 700;
}

.pc-list-item-sub {
  margin-top: 8px;
  color: #64706a;
  font-size: 13px;
  line-height: 1.55;
}

.pc-timeline {
  display: grid;
  gap: 10px;
}

.pc-timeline-item {
  position: relative;
  padding-left: 18px;
  color: #304039;
}

.pc-timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4fb37a;
}

.pc-empty {
  padding: 28px 20px;
  text-align: center;
  color: #6d7972;
}

.pc-muted {
  color: #6d7972;
}

@media (max-width: 1280px) {
  .pc-shell {
    grid-template-columns: 1fr;
  }

  .pc-sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 1100px) {
  .pc-hero,
  .pc-section.pc-two-col,
  .pc-detail-grid,
  .pc-create-grid,
  .pc-profile-grid {
    grid-template-columns: 1fr;
  }

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

  .pc-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pc-asset-grid,
  .pc-preview-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .pc-content,
  .pc-topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pc-summary-grid,
  .pc-service-grid,
  .pc-filter-bar {
    grid-template-columns: 1fr;
  }

  .pc-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .pc-modal {
    padding: 14px;
  }

  .pc-modal-panel {
    max-height: 84vh;
  }
}
