:root {
  color-scheme: light;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui,sans-serif;
  --ink: #332e37;
  --muted: #736b76;
  --canvas: #faf9f6;
  --surface: #fffefa;
  --border: #e4dfdc;
  --accent: #65415c;
  --kima-color-primary: var(--accent);
  --kima-color-on-primary: #fff;
  --kima-color-surface: var(--surface);
  --kima-color-on-surface: var(--ink);
  background: var(--canvas); color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display:none !important; }
body { margin:0; min-width:280px; }
button, input, select, textarea { font:inherit; }
button, select { cursor:pointer; }
a { color:var(--accent); text-underline-offset:4px; }
button, a, select, input, textarea { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:3px solid #8f5886; outline-offset:4px; }
h1,h2,h3,p { margin:0; }
h1,h2,h3 { line-height:1.3; }
button:disabled { cursor:default; opacity:.55; }
.skip { position:fixed; left:12px; top:-100px; z-index:99; padding:10px 16px; background:white; border-radius:8px; }
.skip:focus-visible { top:8px; }
.site-header { border-bottom:1px solid var(--border); background:var(--surface); }
.header-inner, #content { width:min(1136px, calc(100% - 72px)); margin-inline:auto; }
.header-inner { display:flex; align-items:center; min-height:80px; gap:clamp(28px,6vw,90px); }
.wordmark { display:inline-flex; align-items:center; gap:9px; text-decoration:none; color:var(--ink); font:600 30px/1.2 "Instrument Serif",Georgia,serif; letter-spacing:-1.7px; white-space:nowrap; }
.wordmark img { width:35px; height:35px; }
.site-nav { display:flex; align-items:center; gap:4px; }
.site-nav a { display:inline-flex; align-items:center; justify-content:center; gap:9px; padding:10px 16px; min-height:42px; border-radius:22px; text-decoration:none; font-size:14px; color:#69626c; font-weight:580; }
.site-nav a:hover, .group-link:hover { background:#f3efec; }
.site-nav a[aria-current] { background:#eee5ee; color:#603e59; }
.nav-symbol { position:relative; width:16px; height:16px; display:inline-block; }
.compass { border:1.6px solid currentColor; border-radius:50%; }
.compass::after { content:""; position:absolute; inset:3px; background:currentColor; clip-path:polygon(93% 7%,60% 64%,7% 93%,35% 36%); }
.bubble { width:16px; height:13px; border:1.6px solid currentColor; border-radius:5px 5px 5px 1px; }
.bubble::after { content:""; position:absolute; width:6px; border-top:1.4px solid currentColor; top:4px; left:3px; }
.person::before, .person::after { content:""; position:absolute; left:50%; transform:translateX(-50%); border:1.6px solid currentColor; }
.person::before { width:6px; height:6px; border-radius:50%; top:0; }
.person::after { width:13px; height:5px; border-radius:9px 9px 2px 2px; bottom:0; }
#inbox-count { border-radius:10px; background:#794958; color:white; padding:0 5px; font-size:11px; }
.group-link { margin-left:auto; border:1px solid var(--border); border-radius:28px; padding:9px 14px; text-decoration:none; font-size:13px; font-weight:600; color:var(--ink); white-space:nowrap; }
.group-link b { margin-left:3px; }
#content { padding:34px 0 60px; outline:none; }
.discovery-hero { position:relative; display:flex; align-items:center; isolation:isolate; overflow:hidden; min-height:clamp(275px,28vw,342px); padding:48px clamp(26px,4.6vw,64px); border:1px solid #e7d9de; border-radius:24px; background:linear-gradient(110deg,#f9ebe5 5%,#f6e7e5 50%,#f2e3ef); }
.discovery-hero::before { content:""; position:absolute; inset:0; z-index:-1; background:url('./assets/garden.webp') right -15px bottom -2px / auto 114% no-repeat; }
.hero-copy { max-width:64%; }
.hero-community { display:inline-flex; align-items:center; gap:9px; color:#6d535b; font:italic 18px/1.2 Georgia,serif; }
.hero-community::before { content:""; display:inline-block; width:24px; height:1.5px; background:currentColor; }
.hero-copy h1 { margin:18px 0 13px; font-family:"Noto Serif CJK SC","Songti SC","STSong",serif; font-weight:800; font-size:clamp(36px,4.7vw,64px); letter-spacing:-.06em; line-height:1.26; color:#482e40; }
.hero-copy h1 span { color:#b5677e; font:inherit; }
.hero-copy p { color:#68505d; font-size:clamp(14px,1.45vw,17px); line-height:1.8; }
.hero-actions { display:flex; align-items:center; gap:22px; }
.hero-actions:not(:empty) { margin-top:25px; }
.primary-link { display:inline-flex; gap:17px; align-items:center; justify-content:center; padding:11px 17px; border-radius:23px; background:#593c51; color:white; text-decoration:none; font-size:14px; font-weight:650; }
.primary-link:hover { background:#744663; }
.plain-link { font-size:14px; font-weight:650; text-decoration:none; border-bottom:1px solid #9d788b; }
.matches { margin-top:24px; }
.filter-bar { display:flex; align-items:flex-end; gap:18px; padding:22px 26px; background:var(--surface); border:1px solid var(--border); border-radius:16px; }
.field { display:grid; gap:7px; color:#514a53; font-size:13px; font-weight:620; min-width:0; }
.filter-bar .field { flex:1; }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=submit]), textarea, select {
  padding:10px 12px; min-height:44px; min-width:0; width:100%;
  border:1px solid #d8d0d5; border-radius:10px; color:var(--ink); background:var(--surface); font-size:15px; font-weight:400;
}
input[type=checkbox] { accent-color:var(--accent); }
textarea { line-height:1.6; }
.filter-bar kima-button { margin-bottom:3px; }
.list-heading,.page-head { margin:28px 0 16px; }
.list-heading { display:flex; align-items:center; justify-content:space-between; }
h2 { font-size:23px; letter-spacing:-.04em; }
.page-number,.muted,.status { color:var(--muted); }
.page-number { font-size:13px; }
.status { padding:30px 22px; line-height:1.7; border:1px dashed #d9cfd6; border-radius:14px; background:var(--surface); }
.match-grid,.guide-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
.discovery-card { display:flex; align-items:center; gap:14px; text-align:left; color:var(--ink); min-height:103px; padding:18px; background:var(--surface); border:1px solid var(--border); border-radius:15px; }
.discovery-card:hover { border-color:#ba94ae; }
.card-copy { min-width:0; flex:1; display:grid; gap:6px; }
.card-copy strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.card-copy>span { color:var(--muted); font-size:13px; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.card-arrow { align-self:flex-start; color:#95758b; }
.pagination { margin-top:18px; display:flex; justify-content:flex-end; gap:8px; }
.pagination button { padding:9px 16px; border:1px solid var(--border); border-radius:22px; background:var(--surface); color:var(--ink); font-size:13px; }
.guest-info { margin-top:32px; }
.guest-info h2 { margin-bottom:16px; }
.guide-grid article { padding:23px; border:1px solid var(--border); border-radius:16px; background:var(--surface); }
.guide-grid h3 { font-size:17px; margin:15px 0 7px; }
.guide-grid p { color:var(--muted); font-size:14px; line-height:1.75; }
.guide-icon { border-radius:12px; width:42px; height:42px; display:grid; place-items:center; font:600 25px/1 Georgia,serif; }
.mail-mark { background:#f7e5d5; color:#86513c; }
.profile-mark { background:#e4eddd; color:#4f6650; }
.chat-mark { background:#eee4f3; color:#705374; }
.panel { border:1px solid var(--border); border-radius:18px; padding:clamp(20px,3vw,36px); background:var(--surface); }
.stack { display:grid; gap:16px; }
.actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.error { color:#9c334c; }
.page-head:first-child { margin-top:0; }
.page-head h1 { font-size:clamp(25px,3vw,35px); letter-spacing:-.04em; }
.page-head p { margin-top:8px; }
@media(max-width:800px) {
  .header-inner,#content { width:calc(100% - 38px); }
  .header-inner { min-height:68px; gap:22px; }
  .site-nav a { padding:10px; }
  .discovery-hero::before { background-size:auto 93%; background-position:right -65px bottom -8px; }
  .match-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .guide-grid { gap:10px; }
  .guide-grid article { padding:16px; }
}
@media(max-width:600px) {
  .header-inner { min-height:62px; }
  .wordmark { font-size:25px; }
  .wordmark img { width:30px; height:30px; }
  .group-link { font-size:12px; padding:7px 12px; }
  #content { padding:18px 0 calc(90px + env(safe-area-inset-bottom)); }
  .site-nav { position:fixed; left:0; right:0; bottom:0; z-index:8; justify-content:space-around; gap:0; background:var(--surface); border-top:1px solid var(--border); padding:6px max(10px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left)); }
  .site-nav a { min-width:70px; font-size:12px; padding:7px 19px; flex-direction:column; gap:5px; border-radius:14px; position:relative; }
  #inbox-count { position:absolute; right:9px; top:2px; }
  .discovery-hero { align-items:flex-start; min-height:306px; padding:25px; border-radius:19px; }
  .discovery-hero::before { background-size:auto 63%; background-position:right -55px bottom -10px; }
  .hero-copy { max-width:100%; }
  .hero-community { font-size:15px; }
  .hero-copy h1 { font-size:36px; margin-top:13px; margin-bottom:6px; }
  .hero-copy p { max-width:98%; font-size:14px; }
  .hero-actions { max-width:130px; flex-wrap:wrap; gap:13px; }
  .hero-actions:not(:empty) { margin-top:22px; }
  .filter-bar { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:16px; }
  .filter-bar kima-button { justify-self:start; }
  .matches { margin-top:16px; }
  .guide-grid,.match-grid { grid-template-columns:1fr; }
  .guide-grid article { display:grid; grid-template-columns:40px 1fr; gap:0 14px; align-content:center; }
  .guide-icon { grid-row:span 2; align-self:center; }
  .guide-grid h3 { margin:0 0 4px; }
  .guest-info { margin-top:23px; }
  .list-heading { margin-top:23px; }
}
@media(max-width:350px) {
  .header-inner,#content { width:calc(100% - 24px); }
  .hero-copy h1 { font-size:30px; }
  .discovery-hero { padding:20px; }
}

.member-id { font: .75rem/1.5 'IBM Plex Mono', monospace; overflow-wrap: anywhere; }
.profile-heading > div { min-width: 0; }
