:root {
  --ink: #17211d;
  --muted: #66716c;
  --line: #dfe5e1;
  --surface: #ffffff;
  --surface-soft: #f4f7f5;
  --forest: #184f43;
  --forest-deep: #113d34;
  --mint: #d9eee5;
  --coral: #e46f58;
  --coral-soft: #fff0ec;
  --gold: #d9a53a;
  --shadow: 0 12px 32px rgba(23, 33, 29, 0.08);
  --content: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 116px; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  letter-spacing: 0;
  line-height: 1.55;
}
button, a { font: inherit; }
button { letter-spacing: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--ink);
  padding: 9px 14px;
  color: white;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.public-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  border-bottom: 1px solid rgba(23, 33, 29, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: min(var(--content), calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--forest-deep);
  font-size: 21px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.brand img, .footer-brand img { width: 34px; height: 34px; object-fit: contain; }
.primary-nav { display: flex; align-items: stretch; height: 100%; gap: 24px; }
.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #4e5954;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.primary-nav a:nth-child(2) { color: var(--forest); }
.primary-nav a:nth-child(2)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--coral);
}
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-search, .header-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.header-search {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--ink);
  text-decoration: none;
}
.header-search:hover { background: var(--surface-soft); }
.header-avatar { width: 38px; height: 38px; overflow: hidden; border: 2px solid var(--mint); border-radius: 50%; }
.header-avatar img { width: 100%; height: 100%; object-fit: cover; }

.ui-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.icon-search { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m21 21-4.35-4.35m2.35-5.65a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m21 21-4.35-4.35m2.35-5.65a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.icon-eye { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Zm10 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Zm10 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.icon-check { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.icon-map-pin { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 10c0 5-8 12-8 12S4 15 4 10a8 8 0 1 1 16 0Zm-8 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z' fill='%23000'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 10c0 5-8 12-8 12S4 15 4 10a8 8 0 1 1 16 0Zm-8 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z' fill='%23000'/%3E%3C/svg%3E"); }
.icon-calendar { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v4m10-4v4M3 9h18M5 4h14a2 2 0 0 1 2 2v15H3V6a2 2 0 0 1 2-2Z' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v4m10-4v4M3 9h18M5 4h14a2 2 0 0 1 2 2v15H3V6a2 2 0 0 1 2-2Z' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.icon-clock { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20Zm0-14v5l3 2' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20Zm0-14v5l3 2' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.icon-sparkles { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 3 1.4 4.1L17.5 8.5l-4.1 1.4L12 14l-1.4-4.1-4.1-1.4 4.1-1.4L12 3Zm6 11 .8 2.2L21 17l-2.2.8L18 20l-.8-2.2L15 17l2.2-.8L18 14ZM5 13l1.1 2.9L9 17l-2.9 1.1L5 21l-1.1-2.9L1 17l2.9-1.1L5 13Z' fill='%23000'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 3 1.4 4.1L17.5 8.5l-4.1 1.4L12 14l-1.4-4.1-4.1-1.4 4.1-1.4L12 3Zm6 11 .8 2.2L21 17l-2.2.8L18 20l-.8-2.2L15 17l2.2-.8L18 14ZM5 13l1.1 2.9L9 17l-2.9 1.1L5 21l-1.1-2.9L1 17l2.9-1.1L5 13Z' fill='%23000'/%3E%3C/svg%3E"); }
.icon-user-plus { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2m7-10a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm11-3v6m3-3h-6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2m7-10a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm11-3v6m3-3h-6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.icon-share { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12v8h16v-8M16 6l-4-4-4 4m4-4v14' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12v8h16v-8M16 6l-4-4-4 4m4-4v14' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.icon-arrow-right { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 18 6-6-6-6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 18 6-6-6-6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.icon-edit { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20h9M16.5 3.5a2.1 2.1 0 0 1 3 3L8 18l-4 1 1-4L16.5 3.5Z' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20h9M16.5 3.5a2.1 2.1 0 0 1 3 3L8 18l-4 1 1-4L16.5 3.5Z' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.icon-shield { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Zm-3-10 2 2 4-4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Zm-3-10 2 2 4-4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.icon-close { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m18 6-12 12M6 6l12 12' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m18 6-12 12M6 6l12 12' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }

.profile-cover {
  position: relative;
  overflow: hidden;
  min-height: 332px;
  background: #153d32;
  color: white;
}
.cover-art { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cover-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; transform: scale(1.015); }
.cover-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(9, 35, 29, .9) 0%, rgba(9, 35, 29, .7) 48%, rgba(9, 35, 29, .34) 100%);
}
.cover-inner {
  position: relative;
  z-index: 2;
  width: min(var(--content), calc(100% - 40px));
  min-height: 332px;
  margin: 0 auto;
  padding: 54px 0 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
}
.identity-block { min-width: 0; display: flex; align-items: center; gap: 28px; }
.avatar-frame {
  position: relative;
  width: 152px;
  height: 152px;
  flex: 0 0 auto;
  border: 5px solid rgba(255,255,255,0.95);
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
}
.avatar-frame img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.availability-dot {
  position: absolute;
  right: 5px;
  bottom: 12px;
  width: 22px;
  height: 22px;
  border: 4px solid white;
  border-radius: 50%;
  background: #37b878;
}
.identity-copy { min-width: 0; }
.identity-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.identity-heading h1 { margin: 0; font-size: 42px; line-height: 1.15; font-weight: 800; }
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
}
.verified-badge .ui-icon { width: 14px; height: 14px; }
.creator-handle { margin: 5px 0 10px; color: rgba(255,255,255,.72); font-size: 15px; }
.creator-tagline { max-width: 650px; margin: 0; font-size: 18px; line-height: 1.65; }
.identity-meta { margin-top: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 17px; color: rgba(255,255,255,.76); font-size: 13px; }
.identity-meta span { display: inline-flex; align-items: center; gap: 6px; }
.identity-meta .ui-icon { width: 15px; height: 15px; }
.profile-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding-bottom: 3px; }
.button, .icon-button, .text-button, .mini-icon-button, .work-card, .social-link {
  -webkit-tap-highlight-color: transparent;
}
.button {
  min-height: 46px;
  border-radius: 6px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
}
.button-primary { background: var(--coral); color: white; }
.button-primary:hover { background: #cd5b47; }
.button:disabled { opacity: .62; cursor: not-allowed; }
.button:disabled:hover { background: var(--coral); }
.button-secondary { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.08); color: white; }
.button-secondary:hover { background: rgba(255,255,255,.16); }
.button-secondary.followed { border-color: var(--mint); background: var(--mint); color: var(--forest); }
.icon-button, .mini-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.icon-button { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; background: rgba(255,255,255,.08); color: white; }
.icon-button:hover { background: rgba(255,255,255,.16); }

.profile-nav-wrap { height: 56px; border-bottom: 1px solid var(--line); background: var(--surface); }
.prototype-banner {
  width: min(var(--content), calc(100% - 48px));
  margin: 20px auto 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid var(--coral);
  background: #fff8f5;
  padding: 11px 15px;
  color: #5d4d47;
  font-size: 13px;
  line-height: 1.55;
}
.prototype-banner strong { flex: 0 0 auto; color: #9b3f31; }
.prototype-banner span { flex: 1; }
.prototype-banner a { flex: 0 0 auto; color: var(--forest); font-weight: 700; }
.profile-nav { width: min(var(--content), calc(100% - 40px)); height: 100%; margin: 0 auto; display: flex; align-items: stretch; gap: 36px; }
.profile-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.profile-nav a.active, .profile-nav a:hover { color: var(--forest); }
.profile-nav a.active::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: var(--coral); }

.profile-layout {
  width: min(var(--content), calc(100% - 40px));
  margin: 34px auto 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(300px, .82fr);
  gap: 28px;
  align-items: start;
}
.main-column, .side-column { min-width: 0; display: grid; }
.main-column { gap: 0; }
.side-column { gap: 22px; align-content: start; background: var(--surface-soft); padding: 24px; }
.content-section, .side-section { scroll-margin-top: 116px; }
.content-section { padding: 30px 0 36px; border-bottom: 1px solid var(--line); }
.content-section:first-child { padding-top: 0; }
.content-section:last-child { border-bottom: 0; padding-bottom: 0; }
.side-section { padding: 0 0 22px; border-bottom: 1px solid var(--line); }
.side-section:last-child { padding-bottom: 0; border-bottom: 0; }
.section-heading, .side-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.section-heading { margin-bottom: 22px; }
.section-kicker { display: block; margin-bottom: 3px; color: var(--coral); font-size: 11px; font-weight: 800; letter-spacing: 1.4px; }
.section-heading h2, .side-heading h2 { margin: 0; line-height: 1.25; }
.section-heading h2 { font-size: 25px; }
.side-heading h2 { font-size: 18px; }
.text-button { border: 0; background: transparent; padding: 3px 0; display: inline-flex; align-items: center; gap: 2px; color: var(--forest); font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; }
.text-button .ui-icon { width: 15px; height: 15px; }

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.work-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 6px;
  background: #e7ece9;
  padding: 0;
  color: white;
  cursor: pointer;
  text-align: left;
}
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.work-card::after { content: ""; position: absolute; inset: 36% 0 0; background: linear-gradient(transparent, rgba(11,22,18,.82)); }
.work-card:hover img { transform: scale(1.035); }
.work-copy { position: absolute; z-index: 1; right: 18px; bottom: 16px; left: 18px; }
.work-copy span { display: block; margin-bottom: 3px; color: rgba(255,255,255,.75); font-size: 12px; }
.work-copy strong { display: block; overflow: hidden; font-size: 17px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.work-card[hidden] { display: none; }
.empty-panel { grid-column: 1 / -1; padding: 54px 24px; border: 1px dashed #cdd6d1; background: var(--surface-soft); text-align: center; color: var(--muted); }
.empty-panel strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 17px; }

.status-pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; background: #e8f6ef; padding: 6px 10px; color: #247653; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-pill > span { width: 7px; height: 7px; border-radius: 50%; background: #37b878; }
.service-list { display: grid; }
.service-card {
  min-height: 108px;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.service-card:first-child { border-top: 0; padding-top: 0; }
.service-card:last-child { padding-bottom: 0; }
.service-thumb { width: 66px; height: 66px; overflow: hidden; border-radius: 6px; background: var(--surface-soft); }
.service-thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-info { min-width: 0; }
.service-info h3 { margin: 0 0 5px; font-size: 17px; }
.service-info p { margin: 0; color: var(--muted); font-size: 13px; }
.service-tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.service-tags span { border-radius: 3px; background: var(--surface-soft); padding: 3px 7px; color: #5f6964; font-size: 11px; }
.service-price { min-width: 102px; text-align: right; }
.service-price strong { display: block; color: var(--forest); font-size: 19px; }
.service-price span { color: var(--muted); font-size: 11px; }

.review-heading { align-items: flex-end; }
.rating-summary { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; text-align: right; }
.rating-summary strong { grid-row: 1 / 3; color: var(--forest); font-size: 32px; line-height: 1; }
.rating-summary .stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.rating-summary > span:last-child { color: var(--muted); font-size: 11px; }
.review-list { display: grid; }
.review-card { padding: 20px 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; border-top: 1px solid var(--line); }
.review-card:last-child { padding-bottom: 0; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--mint); color: var(--forest); font-weight: 800; }
.review-meta { display: flex; justify-content: space-between; gap: 12px; }
.review-meta strong { font-size: 14px; }
.review-meta time { color: var(--muted); font-size: 11px; }
.review-stars { color: var(--gold); font-size: 11px; letter-spacing: 1px; }
.review-copy { margin: 8px 0 0; color: #48534e; font-size: 14px; line-height: 1.75; }
.review-service { margin-top: 8px; display: inline-block; background: var(--surface-soft); padding: 3px 7px; color: var(--muted); font-size: 11px; }

.side-heading { margin-bottom: 15px; }
.mini-icon-button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--forest); }
.mini-icon-button .ui-icon { width: 15px; height: 15px; }
.intro-section > p { margin: 0; color: #48534e; font-size: 14px; line-height: 1.85; }
.interest-list { margin-top: 17px; display: flex; flex-wrap: wrap; gap: 7px; }
.interest-list span { border: 1px solid #d8e3de; border-radius: 999px; background: #f6faf8; padding: 5px 9px; color: var(--forest); font-size: 12px; }
.trust-list { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trust-list > div { min-width: 0; border-right: 1px solid var(--line); }
.trust-list > div:last-child { border-right: 0; }
.trust-list dt { color: var(--muted); font-size: 11px; }
.trust-list dd { margin: 5px 0 0; }
.trust-list dd strong, .trust-list dd span { display: block; }
.trust-list dd strong { color: var(--forest); font-size: 17px; }
.trust-list dd span { color: #89918d; font-size: 10px; }
.trust-note { margin: 18px 0 0; padding-top: 15px; display: flex; align-items: flex-start; gap: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
.trust-note .ui-icon { width: 16px; height: 16px; margin-top: 1px; color: #37a16f; }
.count-badge { min-width: 22px; height: 22px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.character-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; }
.character-card img { width: 92px; aspect-ratio: 1; border-radius: 6px; object-fit: cover; }
.character-card h3 { margin: 0 0 2px; font-size: 17px; }
.character-card p { margin: 0 0 9px; color: var(--muted); font-size: 12px; }
.social-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.social-link { min-width: 0; min-height: 43px; padding: 0 11px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); font-size: 12px; font-weight: 700; text-decoration: none; }
.social-link:hover { border-color: #aebdb5; background: var(--surface-soft); }
.social-mark { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--forest); color: white; font-size: 10px; font-weight: 800; }
.empty-inline { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.badge-list { display: flex; gap: 12px; }
.profile-badge { flex: 1; min-width: 0; text-align: center; }
.badge-icon { width: 42px; height: 42px; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--coral-soft); color: var(--coral); font-size: 18px; font-weight: 800; }
.profile-badge:nth-child(2) .badge-icon { background: #eef0fa; color: #5361aa; }
.profile-badge:nth-child(3) .badge-icon { background: #e8f6ef; color: #278060; }
.profile-badge strong { display: block; overflow-wrap: anywhere; font-size: 10px; }
.profile-badge span { color: var(--muted); font-size: 9px; }
.owner-only { display: none; }
body.owner-view .owner-only { display: inline-flex; }

.toast {
  position: fixed;
  z-index: 300;
  right: 24px;
  bottom: 24px;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  border-radius: 6px;
  background: var(--ink);
  padding: 11px 16px;
  color: white;
  font-size: 13px;
  box-shadow: var(--shadow);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }

.commission-dialog {
  width: min(470px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border: 0;
  border-radius: 8px;
  padding: 34px;
  color: var(--ink);
  box-shadow: 0 26px 80px rgba(10, 28, 22, .28);
}
.commission-dialog::backdrop { background: rgba(11, 28, 23, .62); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--surface-soft); color: var(--muted); cursor: pointer; }
.dialog-icon { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--coral-soft); color: var(--coral); }
.commission-dialog h2 { margin: 18px 0 5px; font-size: 24px; }
.commission-dialog > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.dialog-service-options { margin: 20px 0; display: grid; gap: 8px; }
.dialog-option { position: relative; }
.dialog-option input { position: absolute; opacity: 0; }
.dialog-option label { min-height: 55px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.dialog-option input:checked + label { border-color: var(--forest); background: #f2f9f6; box-shadow: inset 3px 0 var(--forest); }
.dialog-option label strong { font-size: 14px; }
.dialog-option label span { color: var(--forest); font-size: 13px; font-weight: 700; white-space: nowrap; }
.dialog-next { width: 100%; }
.commission-dialog small { display: block; margin-top: 9px; color: var(--muted); text-align: center; }
.work-dialog { width: min(760px, calc(100% - 28px)); padding: 0; overflow: hidden; border: 0; border-radius: 7px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px rgba(10,30,24,.25); }
.work-dialog::backdrop { background: rgba(7,18,15,.68); backdrop-filter: blur(3px); }
.work-dialog > img { width: 100%; max-height: min(68vh, 620px); display: block; object-fit: contain; background: #edf3f0; }
.work-dialog > div { padding: 18px 22px 22px; }
.work-dialog > div > span { color: var(--coral); font-size: 12px; font-weight: 800; }
.work-dialog h2 { margin: 4px 0 6px; font-size: 22px; }
.work-dialog p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.work-dialog .dialog-close { background: rgba(255,255,255,.92); }

button:focus-visible, a:focus-visible { outline: 3px solid rgba(228,111,88,.42); outline-offset: 3px; }

@media (max-width: 980px) {
  .profile-layout { grid-template-columns: minmax(0, 1.45fr) minmax(280px, .85fr); gap: 20px; }
  .cover-inner { align-items: center; }
  .identity-block { gap: 20px; }
  .avatar-frame { width: 128px; height: 128px; }
  .identity-heading h1 { font-size: 35px; }
  .profile-actions { flex-direction: column; align-items: stretch; }
  .profile-actions .icon-button { position: absolute; top: 20px; right: 0; }
  .service-card { grid-template-columns: 58px minmax(0, 1fr); }
  .service-thumb { width: 58px; height: 58px; }
  .service-price { grid-column: 2; min-width: 0; text-align: left; }
  .service-price strong, .service-price span { display: inline; }
  .trust-list { grid-template-columns: 1fr; }
  .trust-list > div { padding: 6px 0; display: flex; align-items: center; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-list > div:last-child { border-bottom: 0; }
  .trust-list dd { margin: 0; text-align: right; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 104px; }
  .public-header { height: 56px; }
  .header-inner { width: calc(100% - 28px); gap: 16px; }
  .brand { font-size: 18px; }
  .brand img { width: 31px; height: 31px; }
  .primary-nav { display: none; }
  .profile-cover { min-height: 0; }
  .cover-art img { object-position: 62% center; }
  .cover-inner { width: calc(100% - 32px); min-height: 0; padding: 32px 0 26px; display: block; }
  .identity-block { display: block; }
  .avatar-frame { width: 104px; height: 104px; margin-bottom: 16px; border-width: 4px; }
  .availability-dot { width: 19px; height: 19px; border-width: 3px; }
  .identity-heading { gap: 8px; }
  .identity-heading h1 { font-size: 30px; }
  .verified-badge { padding: 4px 8px; font-size: 11px; }
  .creator-tagline { font-size: 15px; }
  .identity-meta { gap: 9px 14px; font-size: 11px; }
  .profile-actions { position: static; margin-top: 23px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 8px; }
  .profile-actions .icon-button { position: static; width: 44px; height: 44px; }
  .button { min-height: 44px; padding: 0 12px; font-size: 14px; }
  .profile-nav-wrap { position: sticky; top: 56px; z-index: 90; height: 49px; overflow-x: auto; }
  .profile-nav { width: max-content; min-width: 100%; padding: 0 16px; gap: 28px; }
  .prototype-banner { width: calc(100% - 28px); margin-top: 14px; align-items: flex-start; flex-wrap: wrap; }
  .prototype-banner span { flex-basis: calc(100% - 82px); }
  .prototype-banner a { margin-left: 82px; }
  .profile-nav a { font-size: 13px; white-space: nowrap; }
  .profile-layout { width: 100%; margin: 16px auto 45px; display: flex; flex-direction: column; gap: 16px; }
  .main-column, .side-column { width: 100%; gap: 16px; }
  .content-section { padding: 21px 16px; border-bottom: 8px solid var(--surface-soft); }
  .content-section:first-child { padding-top: 21px; }
  .content-section:last-child { padding-bottom: 21px; border-bottom: 8px solid var(--surface-soft); }
  .side-section { padding: 21px 16px; border-bottom: 8px solid var(--surface); background: var(--surface-soft); }
  .content-section { scroll-margin-top: 105px; }
  .section-heading h2 { font-size: 22px; }
  .work-grid { gap: 9px; }
  .work-copy { right: 11px; bottom: 10px; left: 11px; }
  .work-copy strong { font-size: 14px; }
  .work-copy span { font-size: 10px; }
  .service-card { gap: 12px; }
  .service-info p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .review-heading { align-items: flex-start; }
  .rating-summary strong { font-size: 27px; }
  .side-column { display: contents; }
  .intro-section { order: -3; }
  .character-section { order: -2; }
  .toast { right: 16px; bottom: 16px; left: 16px; text-align: center; }
  .commission-dialog { padding: 28px 20px 22px; }
}

@media (max-width: 430px) {
  .identity-meta span:nth-child(2) { display: none; }
  .profile-actions { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) 44px; }
  .button .ui-icon { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { aspect-ratio: 16 / 11; }
  .section-heading { align-items: flex-end; }
  .status-pill { padding: 5px 8px; font-size: 10px; }
  .rating-summary .stars { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
