:root {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: #183f36;
  background: #faf8f1;
  --page: #faf8f1;
  --paper: #fffdf7;
  --soft: #edf0e4;
  --line: #dedfd3;
  --ink: #183f36;
  --muted: #626d61;
  --green: #315e50;
  --green-deep: #214c3e;
  --apricot: #d77708;
  --warm: #f2eedf;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--page); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--green); outline-offset: 3px;
}
.shell { width: min(1320px, calc(100% - 80px)); margin: 0 auto; }
.preview-notice { padding: 12px 0; font-size: 12px; line-height: 1.7; color: var(--muted); border-bottom: 1px dashed var(--line); }
.preview-notice a { white-space: nowrap; text-underline-offset: 3px; }
.topbar {
  min-height: 76px; display: flex; align-items: center; gap: 42px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; font-weight: 800; white-space: nowrap; }
.brand-soft { color: var(--muted); font-size: 15px; font-weight: 500; letter-spacing: .02em; }
.mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px;
  background: var(--green); color: #fff; font-size: 23px;
}
.topbar-nav { display: flex; align-self: stretch; align-items: stretch; gap: 25px; margin-right: auto; }
.topbar-nav a {
  display: grid; place-items: center; padding: 0 7px; border-bottom: 3px solid transparent;
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 650;
}
.topbar-nav a:hover, .topbar-nav a[aria-current="page"] { color: var(--ink); }
.topbar-nav a[aria-current="page"] { border-bottom-color: var(--apricot); }
.topbar-actions { margin-left: auto; }
main { min-height: calc(100vh - 150px); padding: 35px 0 70px; }
.message {
  margin-bottom: 18px; padding: 11px 15px; border: 1px solid #c9d8f0; border-radius: 12px;
  background: var(--warm); color: var(--ink); line-height: 1.55;
}
.message:empty { display: none; }
.workspace-view { animation: appear .18s ease-out; }
@keyframes appear { from { opacity: .72; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .workspace-view { animation: none; } }
.view-heading {
  display: flex; align-items: end; justify-content: space-between; gap: 20px;
  margin-bottom: 24px;
}
.view-heading > .button { flex: none; white-space: nowrap; }
.view-heading h1 {
  margin: 3px 0 6px; font-size: clamp(27px, 3vw, 36px); line-height: 1.24; letter-spacing: -.05em;
}
.eyebrow, .section-label {
  margin: 0; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em;
}
.intro { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.heading-actions { display: flex; align-items: center; gap: 16px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 9px 16px; border: 1px solid var(--green); border-radius: 10px;
  background: var(--green); color: white; text-decoration: none; font-size: 14px; font-weight: 700;
  box-shadow: none;
}
.button:hover { background: var(--green-deep); }
.button-secondary { background: transparent; color: var(--green); box-shadow: none; }
.button-secondary:hover { background: var(--soft); }
.text-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  border: 0; padding: 8px; background: transparent; color: var(--green);
  font-size: 13px; font-weight: 750; text-decoration: none;
}
.text-button:hover { text-decoration: underline; }
.card {
  min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--paper); box-shadow: 0 7px 22px #1f2a3708;
}
.card-heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.card-heading h2 { margin: 4px 0 17px; font-size: 21px; overflow-wrap: anywhere; }
.qualification-card, .association-card { margin: 18px 0; }
.association-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.association-preview { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); overflow-wrap: anywhere; }
.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.partner-discovery { margin: 30px 0; }
.partner-discovery-heading {
  display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 12px;
}
.partner-discovery-heading h2 { margin: 5px 0 0; font-size: 27px; }
.partner-discovery-heading > .small { margin: 0; text-align: right; }
.candidate-card {
  overflow: hidden; border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(135deg, var(--paper), var(--soft));
}
.candidate-summary {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  min-height: 100px; padding: 13px 18px; cursor: pointer; list-style: none;
}
.candidate-summary::-webkit-details-marker { display: none; }
.candidate-summary:hover { background: var(--paper); }
.candidate-avatar {
  width: 72px; height: 72px; border-radius: 16px; object-fit: cover; object-position: center;
  background: var(--soft);
}
.candidate-summary-copy { display: grid; gap: 5px; min-width: 0; }
.candidate-summary-copy strong { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.candidate-summary-copy span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.candidate-open { color: var(--green); font-size: 13px; font-weight: 700; white-space: nowrap; }
.candidate-card[open] .candidate-open { font-size: 0; }
.candidate-card[open] .candidate-open::after { content: "收起形象⌃"; font-size: 13px; }
.candidate-detail {
  display: grid; grid-template-columns: minmax(210px, .72fr) minmax(0, 1.28fr); gap: 24px;
  padding: 20px; border-top: 1px solid var(--line); background: var(--paper);
}
.candidate-portrait {
  width: 100%; max-height: 430px; border-radius: 16px; object-fit: contain; object-position: center;
  background: var(--page);
}
.candidate-copy { align-self: center; min-width: 0; }
.candidate-copy h3 { margin: 5px 0 9px; font: 500 27px var(--serif); }
.candidate-copy > p:not(.section-label) { margin: 0 0 16px; color: var(--muted); }
.candidate-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 17px; }
.candidate-tags span {
  padding: 5px 10px; border-radius: 999px; background: var(--soft); color: var(--green);
  font-size: 12px; font-weight: 700;
}
.candidate-limit {
  padding: 13px 14px; border-left: 4px solid var(--green); border-radius: 8px;
  background: var(--soft); color: var(--ink) !important; line-height: 1.65;
}
.saved-partners-heading { margin-top: 28px; }
.partner-card {
  min-width: 0; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
  box-shadow: 0 8px 24px #1f2a370a;
}
.agent-main { display: flex; gap: 14px; min-width: 0; padding: 18px 18px 8px; }
.agent-avatar {
  width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 50%; background: var(--soft); color: var(--green); font-size: 20px; font-weight: 750;
}
.agent-info { min-width: 0; }
.agent-info h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.agent-meta { display: flex; gap: 8px; margin: 0 0 4px; color: var(--ink); font-size: 13px; }
.agent-label { flex: 0 0 auto; color: var(--muted); }
.agent-meta strong { min-width: 0; overflow-wrap: anywhere; font-weight: 650; }
.config-dialog { width: min(680px, calc(100% - 32px)); max-height: min(840px, calc(100dvh - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--ink); background: #fff; box-shadow: 0 18px 50px #1f2a3726; }
.config-dialog::backdrop { background: #1f2a3766; }
.config-dialog-card { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: inherit; min-width: 0; }
.config-dialog-header { padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.config-dialog-header h2 { margin: 0 0 5px; }
.config-dialog-header p { margin: 0; }
.config-dialog-header .text-button { flex: none; min-width: 44px; white-space: nowrap; }
.config-dialog-body { overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px; }
.config-dialog-body > label:not(.check) { display: block; margin: 15px 0 7px; font-size: 14px; font-weight: 700; }
.config-dialog-body > label:first-child { margin-top: 0; }
.config-dialog-body .check { margin: 14px 0 6px; }
.config-dialog-actions { display: flex; justify-content: flex-end; padding: 12px 22px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.config-dialog-actions .button { min-width: 112px; }
.capability-list { margin: 10px 0; padding-left: 20px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.config-help { padding-top: 12px; border-top: 1px solid var(--line); }
#config-intro { width: 100%; margin-top: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; resize: vertical; color: var(--ink); background: #f7f9fc; }
.partner-actions { display: flex; gap: 8px; margin-top: auto; padding: 12px 16px 16px; }
.partner-actions .button { flex: 1; min-height: 44px; }
.empty-state {
  display: grid; justify-items: center; text-align: center; padding: 34px 24px 38px;
  border: 1px dashed #b8c8df; border-radius: 18px; background: var(--paper);
}
.empty-state h2 { margin: 15px 0 5px; font-size: 23px; }
.empty-state p { max-width: 480px; margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.empty-illustration {
  position: relative; display: grid; place-items: center; width: 90px; height: 90px;
  border: 3px solid var(--green); border-radius: 43%; background: var(--soft); transform: rotate(-5deg);
  box-shadow: 0 6px 0 #dbe6f8;
}
.empty-eyes { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 31px 0 var(--green); transform: translateX(-15px); }
.empty-eyes::after {
  content: ""; position: absolute; left: 16px; top: 22px; width: 17px; height: 8px;
  border-bottom: 3px solid var(--green); border-radius: 50%;
}
.quiet-note { margin-top: 19px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.quiet-note summary { cursor: pointer; }
.quiet-note p { max-width: 780px; }
.create-panel { max-width: 600px; margin: 0 0 20px; }
.create-panel label { display: block; margin: 8px 0 6px; font-size: 13px; font-weight: 700; }
.create-panel .button { margin-top: 12px; }
.grid { display: grid; grid-template-columns: minmax(290px, .82fr) minmax(0, 1.18fr); align-items: start; gap: 18px; }
.dashboard-nav { display: flex; gap: 20px; margin-bottom: 14px; }
.dashboard-nav a { color: var(--green); font-size: 13px; text-decoration: none; font-weight: 700; }
.dashboard-nav a:hover { text-decoration: underline; }
.device-list { display: grid; gap: 9px; }
.device {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%;
  min-height: 61px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px;
  background: #f7f9fc; color: var(--ink); text-align: left; overflow-wrap: anywhere;
}
.device:hover, .device[aria-pressed="true"] { border-color: var(--green); background: var(--soft); }
.device small { flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.claim-guide { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.claim-guide > summary { color: var(--green); font-size: 15px; font-weight: 750; cursor: pointer; }
.claim-guide[open] > summary { margin-bottom: 12px; }
.claim-steps { padding-left: 21px; color: var(--ink); font-size: 13px; line-height: 1.7; }
.claim-steps li { margin-bottom: 6px; }
.claim-steps a, .small a { color: var(--green); }
.claim-scan { display: grid; gap: 8px; margin: 14px 0; }
.claim-scan .button { justify-self: start; }
.claim-scan p { margin: 0; }
.claim-scan video { display: block; width: 100%; max-height: 280px; object-fit: cover; border-radius: 12px; background: #152a23; }
#claim-camera { display: grid; gap: 8px; }
#claim-qr-preview { padding: 12px; border: 1px solid #b8c8df; border-radius: 12px; background: var(--soft); }
#claim-qr-preview strong { overflow-wrap: anywhere; }
#claim-qr-preview .text-button { margin-left: 10px; }
.manual-claim { margin: 12px 0; }
.manual-claim summary, .help-inline summary { color: var(--muted); font-size: 12px; cursor: pointer; }
.manual-claim[open] summary, .help-inline[open] summary { color: var(--green); }
.state-chip { max-width: 50%; padding: 6px 10px; border-radius: 99px; background: var(--soft); color: var(--green); font-size: 11px; text-align: right; overflow-wrap: anywhere; }
.status-panel { padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.status-panel > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.status-panel strong { color: var(--ink); font-size: 13px; text-align: right; }
.field-title { color: var(--muted); font-size: 13px; }
.status-panel p { margin: 7px 0; }
.memory-panel { margin-top: 4px; }
.memory-panel .status-panel { border-top: none; }
.memory-panel .button-secondary, .memory-panel .text-button { margin-top: 11px; }
.identity-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.identity-name { color: var(--ink); font-size: 13px; }
.settings-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 17px; }
.settings-head h3 { margin: 0; font-size: 18px; }
.config-state { margin: 11px 0; padding: 11px 13px; border-radius: 11px; background: var(--soft); color: var(--green); font-size: 12px; line-height: 1.6; }
.account-card { max-width: 760px; display: flex; align-items: start; gap: 15px; margin-bottom: 17px; }
.account-card p { margin: 5px 0 10px; line-height: 1.6; }
.account-dot { width: 35px; height: 35px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 33%, #fff 0 20%, var(--apricot) 25% 100%); }
.agreement-card, .help-card { max-width: 760px; margin-bottom: 17px; }
.agreement-card .card-heading p { max-width: 55%; margin: 0; text-align: right; }
.notice-text { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.notice-text h3 { margin: 0 0 7px; font-size: 16px; }
.notice-text p { margin: 0 0 12px; }
.help-card summary { cursor: pointer; font-weight: 750; }
.sign-in-card { max-width: 460px; margin: 56px auto; padding: 32px; text-align: center; }
.sign-in-mark { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--soft); color: var(--green); font-size: 32px; }
.sign-in-card h1 { margin: 20px 0 10px; font-size: 26px; }
.sign-in-card p { color: var(--muted); }
.sign-in-card .button { width: 100%; margin: 8px 0; }
#login-feedback:empty { display: none; }
.cloudbase-signin { display: grid; gap: 10px; margin-top: 14px; text-align: left; }
.password-setup-view { max-width: 560px; margin: 24px auto; }
#account-password-setup { margin-left: 12px; }
.cloudbase-signin form { display: grid; gap: 8px; }
.cloudbase-signin .button { width: 100%; margin: 6px 0 0; }
.cloudbase-signin .text-button { min-height: 44px; }
.auth-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.auth-details { border-top: 1px solid var(--line); padding-top: 12px; }
.auth-details summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 700; }
.auth-status { min-height: 1.4em; margin: 4px 0 0; }
form { display: grid; gap: 8px; }
form label { margin-top: 7px; font-size: 13px; font-weight: 700; }
form .button { justify-self: start; margin-top: 8px; }
select, input[type="text"], input[type="email"], input[type="password"] {
  width: 100%; min-height: 44px; padding: 8px 11px; border: 1px solid #b8c8df;
  border-radius: 10px; background: white; color: var(--ink);
}
input[type="range"] { width: 100%; accent-color: var(--green); }
input[type="checkbox"] { accent-color: var(--green); }
output { float: right; color: var(--green); }
.check { display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; }
.check input { flex: none; margin-top: 4px; }
.small, .muted { color: var(--muted); font-size: 13px; line-height: 1.65; }
p { line-height: 1.6; }
.help-inline { margin: 10px 0; }
.settings-help { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); }
#device-section, #device-detail, #claim-guide { scroll-margin-top: 18px; }
footer { padding: 18px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
@media (max-width: 870px) {
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .shell { width: min(100% - 28px, 450px); }
  .topbar { min-height: 62px; gap: 10px; }
  .brand { font-size: 18px; }
  .brand-soft { font-size: 12px; }
  .topbar-nav {
    position: fixed; z-index: 10; bottom: 0; left: 0; right: 0; height: 62px;
    justify-content: space-around; gap: 0; margin: 0; border-top: 1px solid var(--line);
    background: var(--paper); backdrop-filter: blur(12px);
  }
  .topbar-nav a { width: 25%; border-bottom: 0; border-top: 3px solid transparent; }
  .topbar-nav a[aria-current="page"] { border-top-color: var(--apricot); border-bottom: 0; }
  main { padding: 24px 0 89px; }
  .view-heading { align-items: start; }
  .view-heading > .button { min-height: 44px; padding: 8px 12px; font-size: 13px; }
  .view-heading h1 { font-size: 27px; }
  .view-heading .intro { font-size: 12px; }
  .heading-actions { flex-direction: column-reverse; align-items: end; gap: 5px; }
  .heading-actions .button { white-space: nowrap; font-size: 13px; padding: 8px 12px; min-height: 44px; }
  .partner-grid { grid-template-columns: 1fr; gap: 13px; }
  .agent-info h2 { font-size: 17px; }
  .partner-actions { gap: 8px; }
  .partner-actions .button { min-height: 44px; padding: 8px 12px; font-size: 13px; }
  .card { padding: 17px; }
  .sign-in-card { margin: 24px auto; padding: 28px 22px; }
  .config-dialog-header { padding: 18px 16px 12px; }
  .config-dialog-body { padding: 16px; }
  .config-dialog-actions { padding-left: 16px; padding-right: 16px; }
  .config-dialog-actions .button { width: 100%; }
  .device { align-items: start; }
  .device small { max-width: 42%; text-align: right; }
  .agreement-card .card-heading { display: block; }
  .agreement-card .card-heading p { max-width: none; text-align: left; }
  .state-chip { max-width: 46%; }
  footer { display: none; }
}
@media (max-width: 370px) {
  .view-heading { flex-wrap: wrap; }
  .heading-actions { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
}

/* The workbench keeps its existing controls; only catalogue presentation is new. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.brand { position: relative; font-size: 22px; font-weight: 500; letter-spacing: .25em; padding-top: 14px; }
.sun-arc { position: absolute; width: 34px; height: 17px; border: 1.5px solid var(--apricot); border-bottom: 0; border-radius: 40px 40px 0 0; top: -3px; left: 50%; transform: translateX(-50%); }
.topbar { gap: 64px; min-height: 86px; }
.topbar-nav { gap: 30px; }
.topbar-nav a { font-weight: 500; }
main { padding-top: 26px; }
h1, h2, .hero-intro, .catalog-note { font-family: var(--serif); font-weight: 500; }
.button { border-radius: 99px; padding: 10px 23px; font-weight: 500; gap: 18px; }
.button span[aria-hidden] { font-size: 22px; line-height: 1; }
.card, .partner-card { background: var(--paper); border-color: var(--line); box-shadow: none; }
.message, .empty-state, #claim-qr-preview, select, input[type="text"], input[type="email"], input[type="password"] { border-color: var(--line); }
.device, #config-intro { background: #f6f5ed; }
.companion-hero { position: relative; min-height: 520px; isolation: isolate; overflow: hidden; border-radius: 4px 4px 20px 20px; background: #eee9d8; }
.hero-portrait { position: absolute; z-index: -2; right: 0; top: 0; width: 68%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.companion-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #faf8f1 2%, #faf8f1f5 28%, #faf8f1a6 43%, #faf8f100 63%); }
.hero-copy { padding: 52px 20px 45px 34px; max-width: 690px; }
.hero-copy .eyebrow { color: var(--green); margin-bottom: 27px; font-weight: 400; letter-spacing: .3em; }
.hero-copy h1 { margin: 0; font-size: clamp(36px, 4.2vw, 60px); line-height: 1.42; letter-spacing: .02em; }
.sun-flourish { color: var(--apricot); display: inline-block; font-family: serif; font-size: .7em; margin-left: .18em; vertical-align: .15em; }
.hero-intro { font-size: 22px; margin: 23px 0 28px; letter-spacing: .05em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions .button { min-height: 52px; font-size: 16px; padding-inline: 28px; }
.hero-actions .button-secondary { background: #faf8f1d9; }
.preview-label { display: inline-block; font-size: 12px; color: #6e6659; padding: 5px 16px; background: #eee9dd; border-radius: 99px; margin: 17px 0 0; }
.device-invite { display: flex; align-items: center; gap: 24px; padding: 21px 30px; margin: 20px 0 30px; background: linear-gradient(105deg, #e9ecde, #f1f1e7); border: 1px solid #e6e6d8; border-radius: 16px; }
.device-invite > div { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.device-invite strong { font-family: var(--serif); font-size: 25px; font-weight: 500; }
.device-invite div span { color: var(--muted); }
.device-invite .button { margin-left: auto; flex: none; }
.device-line-icon { width: 34px; height: 43px; flex: none; border: 2px solid var(--green); border-radius: 45% / 13%; position: relative; }
.device-line-icon::after { content: ""; position: absolute; inset: 3px 3px auto; height: 7px; border: 1px solid var(--green); border-radius: 50%; }
.section-heading { align-items: center; margin-top: 24px; margin-bottom: 16px; }
.section-heading h2 { position: relative; font-size: 28px; margin: 0 0 9px; }
.section-heading h2::after { content: ""; display: block; width: 29px; height: 3px; border-radius: 3px; margin-top: 7px; background: var(--apricot); }
.section-heading .small { margin: 0; }
.partner-grid { gap: 22px; }
.partner-card { border-radius: 15px; overflow: hidden; min-width: 0; }
.role-art { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); }
.role-art img { position: absolute; display: block; width: 200%; height: 200%; max-width: none; top: 0; left: 0; }
.art-tangtang img { transform: translateX(-50%); }
.art-ayang img { transform: translateY(-50%); }
.art-wanqing img { transform: translate(-50%, -50%); }
.art-hensun img { width: 100%; height: 100%; object-fit: cover; object-position: center 27%; }
.discovery-grid .agent-main, .catalog-grid .agent-main { padding: 18px 22px 8px; }
.agent-info { min-width: 0; }
.discovery-grid h3, .catalog-grid h3 { font-family: var(--serif); font-size: 27px; font-weight: 500; margin: 0 0 9px; }
.agent-meta { color: var(--muted); }
.agent-meta strong { font-weight: 500; }
.agent-label { color: var(--muted); }
.role-description { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 12px 0 4px; }
.partner-actions { padding: 12px 20px 20px; }
.partner-actions .button { padding-inline: 14px; white-space: nowrap; }
.agent-avatar { background: var(--soft); color: var(--green); border-color: var(--line); }
.empty-illustration { box-shadow: 0 6px 0 #e2e5d7; }
.empty-state { border-style: solid; background: linear-gradient(135deg, var(--paper), #f0f1e7); }
.saved-partners-heading { margin-top: 38px; }
.create-panel { margin-top: 24px; scroll-margin-top: 20px; }
.catalog-heading { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin: 22px 0 30px; }
.catalog-heading h1 { font-size: clamp(30px, 3.2vw, 47px); margin: 15px 0 14px; }
.catalog-heading .intro { font-family: var(--serif); font-size: 18px; }
.catalog-controls { min-width: 320px; width: 39%; }
#catalog-search { width: 100%; min-height: 48px; padding: 12px 19px; border: 1px solid #91a394; border-radius: 99px; color: var(--ink); background: var(--paper); }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.catalog-filters button { flex: 1; white-space: nowrap; padding: 9px 12px; min-height: 44px; border: 1px solid #829b8c; border-radius: 99px; color: var(--green); background: transparent; font-size: 13px; }
.catalog-filters button[aria-pressed="true"] { color: var(--paper); background: var(--green); }
.catalog-note { margin-top: 35px; padding: 25px; border-top: 1px solid var(--line); font-size: 25px; text-align: center; }
.catalog-note span { display: block; margin-top: 12px; font: 13px "Microsoft YaHei", sans-serif; color: var(--muted); }
.role-dialog { padding: 0; width: min(700px, calc(100% - 32px)); max-height: 90dvh; overflow: auto; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); background: var(--paper); }
.role-dialog::backdrop { background: #102d2466; backdrop-filter: blur(4px); }
.role-dialog .role-art { max-height: 340px; aspect-ratio: 3 / 2; }
.role-dialog-copy { position: relative; padding: 26px 30px 22px; }
#role-detail-close { position: absolute; right: 18px; top: 8px; }
#role-detail-title { margin: 12px 0; font-size: 34px; }
#role-detail-description { margin: 16px 0 24px; }
#role-detail-note { margin-bottom: 0; }
.device-heading { margin: 24px 0 28px; align-items: center; }
.device-heading h1 { font-size: clamp(30px, 3.5vw, 49px); margin-top: 14px; margin-bottom: 14px; }
.device-illustration { position: relative; display: grid; place-items: center; height: 225px; border-radius: 12px; margin-bottom: 24px; overflow: hidden; background: radial-gradient(ellipse at 80% 20%, #fffce6 0, transparent 45%), linear-gradient(115deg, #d4d7be, #f6eed6 55%, #e5d7b8); }
.device-illustration::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 85px, #fff8 86px 92px, transparent 93px 175px); transform: skew(-12deg); }
.device-cylinder { position: relative; width: 128px; height: 147px; border-radius: 40% 40% 35% 35% / 13% 13% 16% 16%; background: linear-gradient(90deg, #dfd7c5, #fff9e9 38%, #ece4d3); box-shadow: 12px 18px 24px #776c3b40, inset 0 -40px 0 #c6bfaa44; border: 1px solid #ded4bf; display: grid; place-items: center; }
.device-cylinder::before { content: ""; position: absolute; top: 5px; left: 8px; right: 8px; height: 12px; border-radius: 50%; border: 2px solid #bbad8b; }
.device-cylinder span { color: #e2a557; font-size: 37px; padding-bottom: 12px; text-shadow: 0 0 12px #fffbdd; }
.device-illustration-caption { position: absolute; bottom: 10px; left: 15px; padding: 3px 8px; color: #4a5446; background: #fff8; border-radius: 8px; font-size: 11px; }
.config-progress { display: flex; list-style: none; padding: 20px 0 12px; margin: 0; gap: 8px; }
.config-progress li { position: relative; flex: 1; text-align: center; color: var(--muted); font-size: 11px; padding-top: 29px; }
.config-progress li::before { content: ""; position: absolute; top: 0; width: 17px; height: 17px; left: calc(50% - 9px); border: 3px solid #c9c9bd; border-radius: 50%; background: var(--paper); }
.config-progress .step-done::before { background: var(--green); border-color: var(--green); }
.config-progress .step-current::before { background: #e8a142; border-color: #e8a142; }
.config-progress [aria-current="step"] { color: #8e5100; font-weight: 700; }
.sign-in-card { background: linear-gradient(145deg, var(--paper), #edf0e3); border-color: var(--line); padding-block: 45px; }
@media (max-width: 1050px) {
  .shell { width: calc(100% - 48px); }
  .hero-copy { padding-left: 20px; max-width: 580px; }
  .hero-copy h1 { font-size: 44px; }
  .hero-intro { font-size: 18px; }
  .catalog-heading { flex-direction: column; align-items: stretch; }
  .catalog-controls { width: 100%; }
  .catalog-filters { justify-content: flex-start; }
  .catalog-filters button { flex: none; min-width: 90px; }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 32px); }
  .topbar { min-height: 72px; gap: 16px; }
  .brand { font-size: 18px; }
  .topbar-nav { gap: 0; height: calc(65px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
  .topbar-nav a { font-size: 13px; }
  main { padding-top: 16px; padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .companion-hero { min-height: 650px; margin-inline: -16px; border-radius: 0; display: flex; align-items: end; }
  .hero-portrait { width: 100%; height: 100%; object-position: 50% 22%; }
  .companion-hero::after { background: linear-gradient(0deg, #faf8f1 1%, #faf8f1ef 15%, #faf8f190 37%, #faf8f100 59%); }
  .hero-copy { padding: 30px 24px 25px; width: 100%; }
  .hero-copy .eyebrow { margin-bottom: 15px; font-size: 10px; }
  .hero-copy h1 { font-size: clamp(28px, 8vw, 36px); line-height: 1.4; }
  .hero-intro { font-size: 15px; margin: 16px 0 22px; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { padding-inline: 16px; min-height: 46px; font-size: 13px; gap: 10px; }
  .preview-label { font-size: 11px; margin-top: 13px; }
  .device-invite { gap: 15px; padding: 18px 14px; margin-top: 5px; flex-wrap: wrap; }
  .device-invite > div { flex: 1; gap: 3px; flex-direction: column; align-items: start; }
  .device-invite strong { font-size: 21px; }
  .device-invite div span { font-size: 12px; }
  .device-invite .button { padding-inline: 13px; font-size: 12px; gap: 5px; }
  .partner-discovery-heading { align-items: start; }
  .partner-discovery-heading h2 { font-size: 24px; }
  .partner-discovery-heading > .small { max-width: 46%; }
  .candidate-summary { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .candidate-avatar { width: 60px; height: 60px; border-radius: 14px; }
  .candidate-open { grid-column: 2; margin-top: -7px; }
  .candidate-detail { grid-template-columns: 1fr; gap: 17px; padding: 15px; }
  .candidate-portrait { max-height: 480px; }
  .candidate-copy h3 { font-size: 24px; }
  .section-heading h2 { font-size: 26px; }
  .section-heading .small { font-size: 11px; }
  .section-heading .heading-actions { flex-direction: row; align-items: center; gap: 5px; }
  .partner-grid { grid-template-columns: 1fr; gap: 20px; }
  .catalog-heading { margin-top: 15px; gap: 24px; }
  .catalog-heading h1 { font-size: 30px; }
  .catalog-heading .intro { font-size: 15px; }
  .catalog-controls { min-width: 0; }
  .catalog-filters { gap: 5px; }
  .catalog-filters button { flex: 1; min-width: 0; font-size: 11px; padding-inline: 8px; }
  .catalog-note { padding-inline: 0; font-size: 23px; }
  .role-dialog-copy { padding: 24px; }
  .device-heading { align-items: start; flex-direction: column; }
  .device-heading h1 { font-size: 30px; }
  .device-heading .intro { font-size: 14px; }
  .device-illustration { height: 210px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
