:root {
  --ink: #27333b;
  --muted: #65737c;
  --line: #e9e5df;
  --paper: #fffdf9;
  --cream: #f7f3ec;
  --orange: #ec8e4c;
  --orange-deep: #d96e32;
  --green: #70a37e;
  --shadow: 0 18px 45px rgba(54, 47, 38, .08);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--cream); }
body { margin: 0; min-width: 320px; min-height: 100dvh; color: var(--ink); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(217, 110, 50, .45); outline-offset: 3px; }
.app-shell { width: 100%; max-width: 480px; min-height: 100dvh; margin: 0 auto; padding: 22px 16px calc(24px + env(safe-area-inset-bottom)); }
.brand { display: flex; align-items: center; gap: 10px; margin: 2px 0 34px; color: var(--ink); font-weight: 700; letter-spacing: .03em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: #f4c68f; box-shadow: inset 0 -3px 0 rgba(164, 95, 39, .12); font-size: 21px; }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .06em; }
.hero { padding: 10px 4px 26px; }
.hero h1 { max-width: 320px; margin: 0 0 12px; font-size: 32px; line-height: 1.23; letter-spacing: -.04em; }
.hero p { margin: 0; color: var(--muted); font-size: 15px; }
.landing-actions { display: grid; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 16px; padding: 0 20px; transition: transform .18s, box-shadow .18s, background .18s; font-weight: 700; }
.button:active { transform: scale(.98); }
.button.primary { color: #fff; background: var(--orange); box-shadow: 0 9px 20px rgba(224, 122, 56, .22); }
.button.primary:hover { background: var(--orange-deep); }
.button.secondary { color: var(--ink); background: var(--paper); border: 1px solid var(--line); }
.button.ghost { min-height: 40px; padding: 0 12px; color: var(--muted); background: transparent; }
.hint { margin: 22px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.resume-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding: 14px 15px; border: 1px solid #f1dfcf; border-radius: 16px; background: #fff8f0; }
.resume-card strong, .resume-card span { display: block; }
.resume-card strong { font-size: 15px; }
.resume-card span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.card { background: rgba(255, 253, 249, .9); border: 1px solid rgba(231, 225, 216, .8); border-radius: 22px; box-shadow: var(--shadow); }
.form-card { padding: 22px 20px; }
.back { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 22px; padding: 4px 0; color: var(--muted); background: transparent; }
.form-card h2 { margin: 0 0 7px; font-size: 24px; letter-spacing: -.03em; }
.form-card .subtitle { margin: 0 0 22px; color: var(--muted); }
.field { display: grid; gap: 7px; margin: 16px 0; }
.field label { font-size: 13px; font-weight: 700; }
.field input { width: 100%; height: 52px; border: 1px solid var(--line); border-radius: 14px; padding: 0 15px; outline: none; color: var(--ink); background: #fff; transition: border .18s, box-shadow .18s; }
.field input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(236, 142, 76, .13); }
.field input.code { font-size: 19px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.form-card .button { width: 100%; margin-top: 10px; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dashboard-header .brand { margin: 0; }
.header-actions { display: flex; align-items: center; gap: 2px; }
.large-mode-link { min-height: 40px; padding: 0 13px; border-radius: 12px; color: var(--orange-deep); background: #fff0e5; font-size: 13px; text-decoration: none; }
.welcome { position: relative; margin: 26px 2px 16px; padding-right: 64px; }
.welcome h1 { margin: 0; font-size: 26px; letter-spacing: -.04em; }
.welcome p { margin: 4px 0 0; color: var(--muted); }
.profile-avatar { position: absolute; top: -4px; right: 0; display: grid; place-items: center; width: 54px; height: 54px; padding: 0; overflow: hidden; border: 3px solid var(--paper); border-radius: 18px; color: #805b39; background: #f7d9b6; box-shadow: 0 6px 16px rgba(54, 47, 38, .12); font-weight: 800; }
.profile-avatar-image { display: grid; place-items: center; width: 100%; height: 100%; font-size: 18px; }
.profile-avatar img { object-fit: cover; }
.profile-dialog-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: end center; padding: 18px; background: rgba(32, 39, 51, .38); }
.profile-dialog { width: min(440px, 100%); padding: 20px; border-radius: 22px; box-shadow: 0 18px 50px rgba(28, 32, 41, .22); }
.profile-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.profile-dialog-head h2 { margin: 0; font-size: 19px; }
.profile-dialog-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.dialog-close { width: 32px; height: 32px; border: 0; border-radius: 10px; color: var(--muted); background: #f4f1ed; font-size: 24px; line-height: 1; }
.profile-options { display: grid; gap: 8px; }
.profile-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px; border: 0; border-radius: 14px; color: var(--ink); background: #faf8f5; text-align: left; }
.profile-option:hover { background: #f5eee7; }
.profile-option-danger { color: #a74636; }
.profile-option > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #fff; font-size: 19px; }
.profile-option strong, .profile-option small { display: block; }
.profile-option small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.profile-form { display: grid; gap: 9px; }
.profile-form label { font-size: 13px; font-weight: 700; }
.profile-form input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #d8d1c8; border-radius: 11px; color: var(--ink); background: #fff; outline: none; }
.profile-form input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(243, 138, 74, .16); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 12px; }
.share-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 18px; margin-bottom: 18px; }
.share-actions { display: flex; gap: 7px; }
.eyebrow { margin: 0 0 4px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.share-code { margin: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 19px; letter-spacing: .12em; }
.copy-button { flex: 0 0 auto; min-height: 38px; padding: 0 13px; border-radius: 11px; color: var(--orange-deep); background: #fff0e5; font-size: 13px; font-weight: 700; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 2px 11px; }
.section-title h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.section-title span { color: var(--muted); font-size: 13px; }
.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.status-button { display: flex; align-items: center; gap: 9px; min-height: 60px; padding: 10px 12px; text-align: left; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--paper); transition: border .18s, transform .18s, box-shadow .18s; }
.status-button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(54, 47, 38, .07); }
.status-button.active { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(236, 142, 76, .12); }
.status-button .emoji { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; font-size: 18px; background: #fff2e8; }
.status-button .status-name { font-size: 14px; font-weight: 700; }
.status-button:last-child:nth-child(odd) { grid-column: 1 / -1; }
.members { display: grid; gap: 9px; }
.member-row { display: flex; align-items: center; gap: 11px; padding: 12px 14px; background: rgba(255, 253, 249, .86); border: 1px solid var(--line); border-radius: 16px; }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 13px; color: #805b39; background: #f7d9b6; font-size: 15px; font-weight: 800; }
.avatar-image { object-fit: cover; }
.member-main { min-width: 0; flex: 1; }
.member-name { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.owner-tag { color: var(--orange-deep); font-size: 12px; font-weight: 600; }
.member-status { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.member-time { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.empty { padding: 18px; color: var(--muted); text-align: center; background: rgba(255, 253, 249, .7); border-radius: 16px; }
.feed { overflow: hidden; padding: 0 15px; }
.feed-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.feed-row:last-child { border-bottom: 0; }
.feed-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; background: #fff2e8; }
.feed-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; overflow: hidden; border-radius: 12px; color: #805b39; background: #f7d9b6; font-size: 14px; font-weight: 800; }
.feed-avatar.avatar-image { object-fit: cover; }
.feed-copy { flex: 1; }
.feed-copy strong { margin-right: 5px; font-size: 13px; }
.feed-copy span { color: var(--muted); font-size: 13px; }
.location-link { display: block; width: fit-content; margin-top: 3px; color: var(--orange-deep); font-size: 13px; text-decoration: none; }
.location-address { display: block; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.feed-time { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.location-share { display: flex; align-items: center; gap: 9px; margin: 12px 2px 18px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 253, 249, .62); }
.location-share label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; }
.location-share input { width: 18px; height: 18px; accent-color: var(--orange); }
.location-share small { color: var(--muted); font-size: 12px; }
.toast { position: fixed; z-index: 30; right: 16px; bottom: calc(22px + env(safe-area-inset-bottom)); left: 16px; display: flex; align-items: center; justify-content: center; gap: 12px; max-width: 448px; margin: auto; padding: 12px 16px; border-radius: 14px; color: #fff; background: rgba(39, 51, 59, .94); box-shadow: 0 10px 30px rgba(39, 51, 59, .2); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; text-align: center; font-size: 14px; }
.toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast button { flex: 0 0 auto; padding: 7px 11px; border-radius: 9px; color: var(--ink); background: #fff; font-weight: 800; }
.toast.error { background: #bd5d4e; }
.loading { display: grid; min-height: 60vh; place-items: center; color: var(--muted); }
@media (min-width: 520px) { body { padding: 20px 0; } .app-shell { min-height: calc(100dvh - 40px); border-radius: 30px; background: rgba(255,255,255,.2); } }
@media (max-width: 360px) { .app-shell { padding-inline: 12px; } .brand { gap: 7px; font-size: 14px; } .brand small { display: none; } .large-mode-link { padding-inline: 10px; } .share-card { align-items: flex-start; flex-direction: column; } .share-actions { width: 100%; } .share-actions .copy-button { flex: 1; } }
