:root {
  --profile-bg: #fff8ef;
  --profile-card: #fffdf9;
  --profile-text: #1e2a25;
  --profile-muted: #737b75;
  --profile-line: rgba(58, 55, 48, 0.12);
  --profile-green: #0b9470;
  --profile-gold: #e7c47e;
  --profile-shadow: 0 12px 28px rgba(54, 42, 26, 0.12);
}

.profile-shell { min-height: 100vh; color: var(--profile-text); background: linear-gradient(180deg, #fff8ef 0%, #f7efe5 100%); }
.profile-page { min-height: 100vh; padding-bottom: 96px; overflow-x: hidden; background: var(--profile-bg); }
.profile-cover-section { position: relative; height: 132px; overflow: hidden; background: #d9c2a4; }
.cover-photo {
  position: absolute;
  inset: 0;
  background-color: #d9c2a4;
  background-image: url('../img/home_hcm_hero.png');
  background-position: center 62%;
  background-size: cover;
  background-repeat: no-repeat;
}
.cover-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 28, 34, 0.01), rgba(16, 28, 34, 0.12));
  pointer-events: none;
}
.profile-top-actions { position: absolute; z-index: 5; top: 15px; left: 15px; right: 15px; display: flex; align-items: center; justify-content: space-between; }
.profile-actions-right { display: flex; gap: 9px; }
.profile-action { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px; color: #23342f; background: rgba(255,253,249,.84); -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px); border: 1px solid rgba(255,255,255,.62); box-shadow: 0 5px 12px rgba(23,31,28,.12); font-size: 18px; font-weight: 900; line-height: 1; text-decoration: none; }
.profile-back { background: rgba(255, 253, 249, 0.44); color: #fff; font-size: 32px; }
.profile-card { position: relative; z-index: 6; margin-top: -18px; min-height: 76px; padding: 10px 14px 6px 108px; border-radius: 42px 42px 0 0; background: rgba(255,253,249,.99); box-shadow: 0 -5px 14px rgba(64,50,34,.07); }
.profile-avatar { position: absolute; left: 14px; top: -31px; width: 88px; height: 88px; overflow: hidden; border-radius: 50%; border: 4px solid #fffdf9; background: #fff; box-shadow: 0 7px 16px rgba(32,37,34,.16); }
.profile-avatar::before { content: none; }
.profile-avatar img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; object-position: center; }
.profile-info { min-width: 0; padding-right: 150px; }
.profile-name-row { display: flex; align-items: center; gap: 9px; min-width: 0; }
.profile-name-row h1 { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family:"KaiTi","STKaiti","Noto Serif SC",serif; font-size: 18.5px; line-height: 1.15; font-weight: 700; letter-spacing: .01em; }
.level-badge { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 18px; padding: 0 8px; border-radius: 999px; background: #f0d9ad; color: #8a652a; font-size: 9px; font-weight: 800; line-height: 1; white-space: nowrap; }
.profile-info p { margin: 5px 0 3px; color: #5f625d; font-family:"KaiTi","STKaiti","Noto Serif SC",serif; font-size: 10.5px; font-weight: 500; line-height: 1.25; }
.profile-info small { display:flex;align-items:center;gap:3px;color:#575e59;font-size:9.5px;font-weight:600;line-height:1.2;white-space:nowrap; }
.profile-location-icon { width:13px;height:13px;flex:0 0 auto; }
.profile-card-controls { position:absolute;right:10px;top:11px;z-index:2;display:flex;align-items:center;gap:5px; max-width:calc(100% - 118px); flex-wrap:nowrap; }
.profile-message-button {
  min-width: 48px;
  height: 30px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ded4c5;
  border-radius: 13px;
  color: #4e564f;
  background: rgba(255, 253, 249, 0.9);
  font-size: 10px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(64, 50, 34, 0.04);
  flex: 0 0 auto;
}
.profile-message-button:focus-visible { outline: 3px solid rgba(7, 136, 102, 0.28); outline-offset: 2px; }
.profile-edit-link { min-width:66px;height:31px;padding:0 10px;display:flex;align-items:center;justify-content:center;border:1px solid #ded4c5;border-radius:13px;color:#4e564f;background:rgba(255,253,249,.9);font-size:10px;font-weight:850;text-decoration:none;box-shadow:0 3px 8px rgba(64,50,34,.04); }
.profile-follow-button {
  min-width: 58px;
  height: 30px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #0b9470;
  border-radius: 13px;
  color: #fff;
  background: #0b9470;
  font-size: 10px;
  font-weight: 850;
  box-shadow: 0 3px 8px rgba(11, 148, 112, 0.18);
  cursor: pointer;
  flex: 0 0 auto;
}
.profile-follow-button.is-following {
  color: #4e564f;
  background: rgba(255, 253, 249, 0.9);
  border-color: #ded4c5;
  box-shadow: 0 3px 8px rgba(64, 50, 34, 0.04);
}
.profile-follow-button:disabled { opacity: 0.65; cursor: wait; }
.profile-follow-button:focus-visible { outline: 3px solid rgba(7, 136, 102, 0.28); outline-offset: 2px; }
.profile-card-settings { width:31px;height:31px;display:grid;place-items:center;border:1px solid #ded4c5;border-radius:13px;color:#59645e;background:rgba(255,253,249,.9);text-decoration:none;box-shadow:0 3px 8px rgba(64,50,34,.04); }
.profile-card-settings .ui-icon { width:16px;height:16px; }
.profile-edit-link:focus-visible,.profile-card-settings:focus-visible { outline:3px solid rgba(7,136,102,.28);outline-offset:2px; }
.message-board-button { display:none; }
.message-board-button span { color: #8b8b7d; font-size: 10px; }
.message-board-button::before { content: ''; position: absolute; right: -8px; top: -7px; width: 18px; height: 13px; background: rgba(221,193,132,.62); transform: rotate(38deg); }
.message-board-button::after { content: ''; position: absolute; right: -23px; bottom: -12px; width: 22px; height: 31px; display: grid; place-items: center; border: 1px solid #d5c7ad; color: #8a806e; background: #efe5cf; font-size: 11px; transform: rotate(9deg); box-shadow: 1px 2px 3px rgba(73,52,24,.09); }
.profile-card::before { content: ''; position: absolute; left: 5px; top: 36px; z-index: -1; color: #82936c; font-size: 42px; line-height: 1; opacity: .72; transform: rotate(-48deg); }
.profile-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 5px; background: radial-gradient(8px 3px at 8px 0,transparent 65%,#fffdf9 68%) 0 0/16px 5px repeat-x; }
.profile-stats { display:grid;grid-template-columns:repeat(4,1fr);padding:4px 16px 11px;background:#fffdf9;border-bottom:0; }
.profile-stats a { min-height:48px;display:grid;place-items:center;align-content:center;gap:5px;color:var(--profile-text);border-right:1px solid rgba(58,55,48,.07);text-decoration:none; }
.profile-stats a:last-child { border-right: 0; }
.profile-stats strong { font-family:"Avenir Next","Segoe UI",Arial,sans-serif; font-size:14px; line-height:1.15; font-weight:750; letter-spacing:-.015em; font-variant-numeric:tabular-nums; }
.profile-stats span { color: #6f766f; font-size: 13px; font-weight: 800; }
.profile-tabs { position:-webkit-sticky;position:sticky;top:0;z-index:8;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));height:48px;padding:0 18px;background:rgba(255,253,249,.98);border-top:0;border-bottom:1px solid rgba(58,55,48,.14);box-shadow:0 3px 8px rgba(69,52,28,.035);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px); }
.profile-shell[data-profile-own="0"] .profile-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }
.profile-tabs a { position: relative; min-height: 44px; display: grid; place-items: center; color: #5a635d; font-size: 13px; font-weight: 780; letter-spacing: 0.02em; text-decoration: none; }
.profile-tabs a.active { color: var(--profile-green); font-weight: 900; }
.profile-tabs a.active::after { content: ''; position: absolute; left: 38%; right: 38%; bottom: 4px; height: 2px; border-radius: 999px; background: var(--profile-green); box-shadow: 0 4px 10px rgba(11, 148, 112, 0.16); }
.profile-panel { display: none; }
.profile-panel.active { display: block; }

.published-feed { padding: 16px 14px 0; background: #f1e6d2; }
.published-post { overflow: hidden; border: 1px solid rgba(136,108,69,.2); border-radius: 14px; background: #fffaf1; box-shadow: 0 8px 18px rgba(79,58,33,.16); }
.published-post > img { display: block; width: 100%; max-height: 360px; object-fit: cover; }
.published-post-copy { padding: 12px 14px 8px; }
.published-post-copy small { color: #7c776e; font-size: 10px; }
.published-post-copy h2 { margin: 5px 0 4px; color: #4e4436; font-family: Georgia,"Noto Serif SC",serif; font-size: 16px; }
.published-post-copy p { margin: 0; color: #69635a; font-size: 12px; line-height: 1.55; white-space: pre-line; }
.published-post-actions { min-height: 38px; padding: 0 14px; display: flex; align-items: center; gap: 22px; border-top: 1px solid rgba(118,98,70,.12); }
.published-post-actions button { padding: 0; color: #59695e; font-size: 11px; }
.published-post-actions button.liked { color: #d9584d; }
.published-post-actions button:last-child { margin-left: auto; font-size: 17px; }

.scrapbook-wall { position: relative; min-height: 620px; padding: 22px 14px 82px; overflow: hidden; background: radial-gradient(circle at 20% 24%,rgba(210,184,126,.18),transparent 24%), repeating-linear-gradient(0deg,rgba(137,112,72,.035) 0 1px,transparent 1px 4px), #f1e6d2; }
.scrapbook-wall::before { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg,transparent 0 48%,rgba(117,91,54,.035) 49% 50%,transparent 51%), radial-gradient(circle at 90% 12%,rgba(255,255,255,.72),transparent 22%); pointer-events: none; }
.travel-post { position: absolute; z-index: 3; padding: 7px 7px 9px; background: #fffaf1; border: 1px solid rgba(136,108,69,.2); box-shadow: 0 8px 15px rgba(79,58,33,.2); }
.travel-post img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(.96); }
.post-copy { padding: 6px 6px 2px; }
.post-copy h2 { margin: 0 0 3px; color: #4e4436; font-family: Georgia,"Noto Serif SC",serif; font-size: 12px; line-height: 1.25; }
.post-copy p,.post-copy small { margin: 0; color: #776f62; font-size: 8px; line-height: 1.45; }
.post-copy small { display: block; margin-top: 2px; }
.coffee-post { left: 25px; top: 24px; width: 210px; transform: rotate(-2.2deg); }
.coffee-post img { height: 128px; }
.recommend-tag { position: absolute; z-index: 2; left: 13px; top: 13px; padding: 4px 8px; border-radius: 9px; background: rgba(79,112,78,.83); color: #fff; font-size: 8px; }
.post-actions { min-height: 29px; margin: 4px -7px -9px; padding: 0 8px; display: flex; align-items: center; gap: 14px; border-top: 1px solid rgba(118,98,70,.12); }
.post-actions button { padding: 0; color: #59695e; font-size: 9px; }
.post-actions button:first-child span,.post-actions button.liked { color: #d9584d; }
.post-actions button:last-child { margin-left: auto; font-size: 15px; }
.hand-note { position: absolute; z-index: 2; right: 18px; top: 32px; width: 148px; min-height: 128px; padding: 20px 17px 12px; background: #e7ead5; color: #4d5548; box-shadow: 0 7px 14px rgba(79,58,33,.11); transform: rotate(1.8deg); }
.hand-note::before { content: ''; position: absolute; left: 42px; top: -9px; width: 70px; height: 18px; background: rgba(220,193,136,.48); transform: rotate(-4deg); }
.hand-note p { margin: 0; font-family: Georgia,"Noto Serif SC",serif; font-size: 12px; line-height: 1.55; }
.hand-note span { display: block; margin-top: 2px; font-size: 22px; text-align: right; }
.church-post { right: 13px; top: 184px; width: 155px; transform: rotate(5deg); }
.church-post img { height: 112px; object-position: 61% 64%; }
.night-post { left: 18px; top: 330px; width: 177px; transform: rotate(-4.4deg); }
.night-post img { height: 94px; }
.food-post { left: 190px; top: 352px; width: 153px; transform: rotate(2.2deg); }
.food-post img { height: 94px; }
.paper-tape { position: absolute; z-index: 6; left: 42px; top: -8px; width: 62px; height: 18px; background: rgba(220,193,136,.5); transform: rotate(-4deg); }
.tape-one { left: 54px; top: 15px; transform: rotate(-8deg); }
.paper-pin { position: absolute; z-index: 6; right: 16px; top: -11px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%,#ffe28b,#c78c19 68%); box-shadow: 0 2px 3px rgba(70,45,12,.4); }
.gold-pin { position: absolute; z-index: 8; right: 9px; top: -13px; width: 18px; height: 18px; border: 2px solid #fff5d9; border-radius: 50%; background: radial-gradient(circle at 34% 28%,#ffeeb2 0 16%,#d89a24 50%,#9b6313 100%); box-shadow: 0 3px 5px rgba(72,45,8,.42); }
.gold-pin::after { content: ''; position: absolute; left: 7px; top: 14px; width: 2px; height: 10px; background: #8b641f; transform: rotate(15deg); transform-origin: top; }
.postage-stamp { position: absolute; z-index: 7; right: 5px; top: 5px; width: 34px; height: 39px; padding-top: 4px; border: 3px dotted #9a6656; outline: 1px solid rgba(135,78,66,.35); color: #9b675b; background: #eadac2; font-family: Georgia,serif; font-size: 5px; font-style: normal; line-height: 1.1; text-align: center; transform: rotate(5deg); }
.postage-stamp b { display: block; margin-top: 3px; font-size: 15px; }
.postmark-lines { position: absolute; z-index: 6; right: 32px; top: 19px; width: 34px; height: 17px; border-top: 1px solid rgba(112,82,69,.5); border-bottom: 1px solid rgba(112,82,69,.5); transform: rotate(7deg); }
.postmark-lines::after { content: ''; position: absolute; left: 0; right: 0; top: 7px; border-top: 1px solid rgba(112,82,69,.5); }
.card-leaf { position: absolute; right: 8px; bottom: 3px; color: #6d805c; font-size: 24px; font-style: normal; transform: rotate(-26deg); }
.round-postmark { position: absolute; right: 8px; bottom: 8px; width: 44px; height: 44px; padding-top: 11px; border: 1px dashed rgba(112,91,63,.44); border-radius: 50%; color: rgba(112,91,63,.55); font-family: Georgia,serif; font-size: 6px; line-height: 1.15; text-align: center; transform: rotate(13deg); }
.saigon-stamp { position: absolute; z-index: 2; right: 20px; top: 500px; width: 142px; height: 102px; padding: 12px 8px; border: 3px double #9b7d4f; color: #7b6749; background: #e8d7ad; box-shadow: 0 5px 10px rgba(82,58,27,.14); text-align: center; transform: rotate(1deg); }
.saigon-stamp small,.saigon-stamp span { display: block; font-family: Georgia,serif; font-size: 8px; letter-spacing: .09em; }
.saigon-stamp strong { display: block; margin: 2px 0; font-family: Georgia,serif; font-size: 23px; letter-spacing: .04em; }
.saigon-stamp b { display: block; font-size: 22px; font-weight: 400; }
.saigon-stamp>i { position: absolute; left: 14px; right: 14px; bottom: 4px; overflow: hidden; color: #816b49; font-size: 18px; font-style: normal; line-height: 8px; }
.botanical-sprig { position: absolute; z-index: 2; width: 54px; height: 132px; border-left: 2px solid rgba(130,111,57,.68); border-radius: 50%; transform-origin: bottom; }
.botanical-sprig i { position: absolute; width: 12px; height: 21px; border-radius: 70% 15% 70% 15%; background: linear-gradient(135deg,#c9ad66,#8e7c3e); opacity: .68; }
.botanical-sprig i::after { content: ''; position: absolute; left: 4px; top: -6px; width: 5px; height: 5px; border: 1px solid #b99447; border-radius: 50%; background: #e7cf95; }
.botanical-sprig i:nth-child(1){left:-12px;top:18px;transform:rotate(-38deg)}.botanical-sprig i:nth-child(2){left:3px;top:39px;transform:rotate(42deg)}.botanical-sprig i:nth-child(3){left:-14px;top:62px;transform:rotate(-48deg)}.botanical-sprig i:nth-child(4){left:1px;top:82px;transform:rotate(34deg)}.botanical-sprig i:nth-child(5){left:-12px;top:103px;transform:rotate(-38deg)}
.sprig-left { left: 7px; top: 203px; transform: rotate(-12deg); }.sprig-right { right: -6px; top: 56px; transform: rotate(17deg) scale(.9); }.sprig-center { left: 217px; top: 257px; transform: rotate(-18deg) scale(.74); }
.sprig-center i { background: linear-gradient(135deg,#d6bc79,#9d8445); }
.corner-doodle { position: absolute; z-index: 1; color: rgba(155,124,74,.37); font-family: Georgia,serif; font-size: 34px; }.doodle-left { left: -7px; top: 16px; transform: rotate(-22deg); }.doodle-right { right: 8px; bottom: 14px; color: rgba(99,119,76,.48); transform: rotate(22deg); }
.note-card, .travel-list-note, .memo-card, .ticket-stub, .small-note { position: absolute; z-index: 2; box-shadow: 0 12px 18px rgba(75, 55, 28, .09); }
.note-main { left: 42px; top: 32px; width: 142px; min-height: 134px; padding: 25px 18px 14px; transform: rotate(-5deg); background: #fff3b5; color: #685f41; font-weight: 850; font-size: 16px; line-height: 1.55; }
.note-main::before, .travel-list-note::before, .memo-card::before { content: ''; position: absolute; left: 35%; top: -13px; width: 72px; height: 24px; background: rgba(225, 197, 131, .44); transform: rotate(-6deg); }
.note-main span, .memo-card span { position: absolute; right: 15px; bottom: 14px; color: #b29661; }
.polaroid-card { position: absolute; z-index: 3; width: 160px; padding: 8px 8px 24px; background: #fffdf9; box-shadow: 0 12px 20px rgba(64, 49, 27, .13); text-align: center; }
.polaroid-card strong { position: absolute; left: 10px; right: 10px; bottom: 6px; font-family: Georgia, serif; font-size: 12px; color: #6c604e; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.polaroid-image { height: 96px; border-radius: 3px; overflow: hidden; }
.balloon-card { right: 22px; top: 42px; }
.santorini-polaroid { left: 48px; top: 245px; }
.swiss-card { right: 18px; top: 368px; width: 142px; }
.rotate-right { transform: rotate(4deg); }
.rotate-left { transform: rotate(-7deg); }
.rotate-right-small { transform: rotate(6deg); }
.travel-list-note { right: 36px; top: 228px; width: 146px; min-height: 132px; padding: 18px 16px; background: #e9f2c7; color: #557057; transform: rotate(-1deg); }
.travel-list-note h2 { margin: 0 0 10px; font-size: 20px; color: #708b64; font-family: Georgia, serif; font-weight: 600; }
.travel-list-note label { display: block; margin: 4px 0; color: #4d674e; font-size: 13px; font-weight: 850; }
.travel-list-note input { accent-color: var(--profile-green); }
.ticket-stub { left: 28px; top: 403px; width: 128px; padding: 12px 10px; background: #fff7dd; border: 1px dashed rgba(88, 70, 40, .45); color: #67533a; transform: rotate(-4deg); }
.ticket-stub strong { display: block; font-size: 12px; letter-spacing: .08em; }
.ticket-stub span { display: block; margin-top: 4px; font-size: 9px; }
.memo-card { left: 166px; top: 420px; width: 136px; padding: 18px 16px; color: #665d45; background: #fff7c7; font-size: 15px; font-weight: 850; line-height: 1.45; transform: rotate(-3deg); }
.small-note { padding: 12px 15px; color: #697957; background: #eff1cf; font-family: Georgia, serif; font-size: 14px; font-style: italic; }
.ocean-note { left: 32px; bottom: 36px; transform: rotate(4deg); }
.good-note { right: 98px; bottom: 22px; transform: rotate(-2deg); }
.wall-leaf { position: absolute; z-index: 1; width: 56px; height: 140px; border-left: 6px solid #75966b; border-radius: 50%; opacity: .74; }
.wall-leaf::before, .wall-leaf::after { content: ''; position: absolute; width: 20px; height: 34px; border-radius: 50% 0 50% 0; background: #75966b; }
.wall-leaf::before { left: -24px; top: 35px; transform: rotate(-26deg); }
.wall-leaf::after { left: -4px; top: 72px; transform: rotate(28deg); }
.leaf-one { left: 14px; top: 120px; transform: rotate(-12deg); }
.leaf-two { right: 28px; top: 355px; transform: rotate(18deg); }
.stamp-mark { position: absolute; right: 26px; top: 20px; z-index: 4; width: 74px; height: 74px; display: grid; place-items: center; border: 2px dashed rgba(88, 83, 70, .48); border-radius: 50%; color: rgba(88, 83, 70, .55); font-size: 33px; transform: rotate(18deg); }
.balloon-scene { background: radial-gradient(circle at 32% 24%, #d06b3d 0 6%, transparent 7%), radial-gradient(circle at 70% 21%, #e2a24c 0 7%, transparent 8%), linear-gradient(180deg, #a8d9ee 0 42%, #d9b77f 43% 62%, #fff0d5 63% 100%); }
.santorini-scene { background: url('../img/santorini.svg') center bottom / 120% auto no-repeat, linear-gradient(180deg, #bdddf0 0 44%, #275b75 45% 57%, #f4e3ca 58% 100%); }
.swiss-scene { background: linear-gradient(135deg, transparent 0 55%, #b64032 56% 61%, transparent 62% 100%), linear-gradient(180deg, #c7dce8 0 38%, #e9edf0 39% 50%, #536f45 51% 68%, #d6c293 69% 100%); }

.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; padding: 13px 14px 90px; background: linear-gradient(180deg, #fff8ef 0%, #f8f0e6 100%); }
.profile-guide-card { min-width: 0; overflow: hidden; border-radius: 7px; background: #fffdf9; border: 1px solid rgba(226, 216, 202, 0.86); box-shadow: 0 8px 18px rgba(58, 46, 28, 0.08); }
.guide-image { position: relative; height: 118px; overflow: hidden; background: #d8c0a0; }
.guide-image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.24)); }
.guide-image span { position: absolute; left: 8px; bottom: 7px; z-index: 2; max-width: calc(100% - 16px); padding: 3px 8px; border-radius: 999px; color: #4b4e49; background: rgba(255, 252, 244, 0.82); font-size: 10px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.santorini-guide { background: url('../img/santorini.svg') center bottom / 112% auto no-repeat, linear-gradient(180deg, #e5afa0 0 42%, #526c81 43% 53%, #f5e3c5 54% 100%); }
.kyoto-guide { background: radial-gradient(circle at 52% 42%, #1f2421 0 8%, transparent 9%), linear-gradient(90deg, transparent 0 43%, #303531 44% 47%, transparent 48% 100%), linear-gradient(180deg, #9fa8a0 0 38%, #453c32 39% 50%, #d0a06a 51% 100%); }
.iceland-guide { background: radial-gradient(circle at 50% 35%, #7bf2db 0 7%, transparent 22%), linear-gradient(180deg, #071928 0 45%, #152f55 46% 62%, #0e1b25 63% 100%); }
.bali-guide { background: radial-gradient(circle at 54% 45%, #e5bd98 0 7%, transparent 8%), linear-gradient(180deg, #74b0b2 0 38%, #5a8f68 39% 58%, #d1a15f 59% 100%); }
.swiss-guide { background: linear-gradient(135deg, transparent 0 55%, #b64032 56% 61%, transparent 62% 100%), linear-gradient(180deg, #c7dce8 0 38%, #e9edf0 39% 50%, #536f45 51% 68%, #d6c293 69% 100%); }
.cinque-guide { background: linear-gradient(135deg, #9bc5d7 0 43%, #b36b49 44% 52%, #e5b46d 53% 61%, #d87a5d 62% 70%, #4e7690 71% 100%); }
.guide-card-copy { padding: 10px 11px 11px; }
.guide-card-copy h2 { margin: 0 0 7px; color: #1e2a25; font-size: 16px; line-height: 1.32; font-weight: 950; letter-spacing: -0.02em; }
.guide-card-copy p { margin: 0 0 13px; color: #727b75; font-size: 12px; line-height: 1.45; font-weight: 650; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guide-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #727b75; font-size: 12px; font-weight: 800; }

.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 13px; padding: 16px 16px 100px; background: #fff8ef; }
.video-card { min-width: 0; }
.video-thumb { position: relative; height: 162px; overflow: hidden; border-radius: 9px; background: #caa; box-shadow: 0 10px 18px rgba(52, 42, 30, .09); }
.video-thumb::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,.22)); }
.video-thumb button { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(0,0,0,.34); border: 2px solid rgba(255,255,255,.82); font-size: 16px; }
.video-thumb span { position: absolute; right: 8px; bottom: 8px; z-index: 2; color: #fff; font-size: 12px; font-weight: 850; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.video-card h2 { margin: 9px 0 7px; color: #2d332e; font-size: 14px; line-height: 1.35; font-weight: 850; }
.video-card p { margin: 0; color: #6f766f; font-size: 12px; font-weight: 750; }

.profile-waterfall-page { min-height: 520px; padding: 11px 10px 102px; background: linear-gradient(rgba(190,170,130,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(190,170,130,.07) 1px, transparent 1px), #fff8ef; background-size: 24px 24px; }
.profile-waterfall-head { min-height: 50px; padding: 2px 3px 9px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.profile-waterfall-head h2 { margin: 0; color: #28352f; font-family: Georgia, "Noto Serif SC", serif; font-size: 16px; letter-spacing: 0; }
.profile-waterfall-head h2 span { margin-left: 5px; padding: 2px 6px; border-radius: 4px; background: #f0dfba; color: #8d6b36; font-family: inherit; font-size: 9px; }
.profile-waterfall-head p { margin: 3px 0 0; color: #8c918c; font-size: 8px; }
.profile-waterfall-head a { min-height: 30px; display: flex; align-items: center; color: #626c66; font-size: 9px; font-weight: 700; }
.snapshot-upload-button { position: fixed; right: max(22px, calc((100vw - 430px) / 2 + 22px)); bottom: 90px; z-index: 20; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(180deg, #18ac85, #078866); box-shadow: 0 16px 28px rgba(7, 136, 102, .28); text-decoration:none; }
.snapshot-upload-button .ui-icon { width: 29px; height: 29px; }
.snapshot-upload-button:focus-visible { outline: 3px solid rgba(7, 136, 102, .3); outline-offset: 2px; }
.profile-waterfall-grid { column-count: 2; column-gap: 9px; }
.profile-waterfall-card { width: 100%; margin: 0 0 9px; display: inline-block; overflow: hidden; break-inside: avoid; border: 1px solid rgba(226,216,202,.9); border-radius: 8px; background: #fffdf9; box-shadow: 0 6px 15px rgba(58,46,28,.07); vertical-align: top; }
.profile-waterfall-card a, .profile-waterfall-card > button { width: 100%; display: block; color: inherit; text-align: left; text-decoration: none; }
.waterfall-media { position: relative; overflow: hidden; background: #d6c5ae; }
.waterfall-media.short { height: 100px; }
.waterfall-media.medium { height: 128px; }
.waterfall-media.tall { height: 166px; }
.waterfall-media img, .waterfall-media video { width: 100%; height: 100%; display: block; object-fit: cover; }
.waterfall-media::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(0deg, rgba(24,33,29,.16), transparent); pointer-events: none; }
.waterfall-media > .waterfall-badge { position: absolute; left: 7px; top: 7px; z-index: 2; padding: 3px 7px; border-radius: 4px; background: rgba(10,132,94,.9); color: #fff; font-size: 8px; font-weight: 800; }
.waterfall-copy { padding: 8px 8px 9px; }
.waterfall-copy h3 { margin: 0; color: #27342e; font-size: 12px; line-height: 1.35; letter-spacing: 0; }
.waterfall-copy p { margin: 3px 0 7px; color: #7b817c; font-size: 8px; line-height: 1.45; }
.waterfall-copy small { display: block; color: #777e78; font-size: 8px; }
.waterfall-play { position: absolute; right: 7px; bottom: 7px; left: auto; top: auto; z-index: 3; width: 28px; height: 28px; margin: 0; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.92); border-radius: 50%; background: rgba(28,39,34,.48); color: #fff; font-size: 10px; font-weight: 800; line-height: 1; text-indent: 1px; pointer-events: none; }
.profile-waterfall-status { position: fixed; left: 50%; bottom: 89px; z-index: 46; margin: 0; padding: 8px 12px; border-radius: 6px; background: rgba(34,49,42,.96); color: #fff; font-size: 9px; opacity: 0; pointer-events: none; transform: translate(-50%, 7px); transition: opacity .2s ease, transform .2s ease; }
.profile-waterfall-status.is-visible { opacity: 1; transform: translate(-50%, 0); }
.video-waterfall-page { padding-top: 9px; }
.video-waterfall-page .profile-waterfall-head { min-height: 47px; padding: 0 3px 4px; }
.video-waterfall-page .profile-waterfall-head h2 { font-size: 18px; }
.video-waterfall-page .profile-waterfall-head h2 span { vertical-align: middle; }
.video-waterfall-page .profile-waterfall-head p { font-size: 9px; }
.snapshot-sort-wrap,.guide-sort-wrap { position: relative; flex: 0 0 auto; }
.snapshot-sort-button,.guide-sort-button { min-height:32px;padding:0 2px 0 8px;color:#5f6862;background:transparent;font-size:10px;font-weight:750;white-space:nowrap; }
.snapshot-sort-button span,.guide-sort-button span { margin-left:2px;font-size:10px; }
.snapshot-sort-button[aria-expanded="true"] span,.guide-sort-button[aria-expanded="true"] span { display:inline-block; transform:rotate(180deg); }
.snapshot-sort-menu,.guide-sort-menu { position:absolute; top:calc(100% + 4px); right:0; z-index:20; min-width:112px; padding:4px; border:1px solid #e5ddd0; border-radius:10px; background:#fffdf9; box-shadow:0 10px 22px rgba(40,34,26,.12); }
.snapshot-sort-menu[hidden],.guide-sort-menu[hidden] { display:none; }
.snapshot-sort-menu button,.guide-sort-menu button,.guide-sort-menu a { width:100%; min-height:30px; padding:0 10px; display:flex; align-items:center; justify-content:flex-start; border:0; border-radius:7px; color:#4f5752; background:transparent; font-size:11px; font-weight:700; white-space:nowrap; text-decoration:none; }
.snapshot-sort-menu button[aria-selected="true"],.guide-sort-menu button[aria-selected="true"] { color:#0b8560; background:#e8f6ef; }
.guide-sort-menu a { margin-top:2px; border-top:1px solid #efe7db; border-radius:0 0 7px 7px; color:#626c66; }
.snapshot-filter-bar { min-height:42px;display:flex;align-items:center;gap:8px;padding:1px 2px 7px; }
.snapshot-filter-bar button { min-width:58px;height:30px;padding:0 16px;border-radius:999px;color:#726d64;background:#f0e8dc;font-size:11px;font-weight:800;transition:color .18s ease,background-color .18s ease,box-shadow .18s ease; }
.snapshot-filter-bar button.active { color:#fff;background:#0b9470;box-shadow:0 7px 14px rgba(11,148,112,.18); }
.snapshot-filter-bar button:focus-visible,.snapshot-sort-button:focus-visible,.snapshot-sort-menu button:focus-visible,.guide-sort-button:focus-visible,.guide-sort-menu button:focus-visible,.guide-sort-menu a:focus-visible { outline:3px solid rgba(7,136,102,.28);outline-offset:2px; }
.snapshot-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 9px;align-items:start; }
.snapshot-card { min-width:0;overflow:hidden;border:1px solid rgba(221,210,194,.92);border-radius:10px;background:#fffdf9;box-shadow:0 7px 15px rgba(58,46,28,.08); }
.snapshot-card[hidden] { display:none; }
.snapshot-card > button { width:100%;display:block;color:inherit;background:transparent;text-align:left; }
.snapshot-card > button:focus-visible { outline:3px solid rgba(7,136,102,.3);outline-offset:-3px; }
.snapshot-media { position:relative;aspect-ratio:1.35/1;overflow:hidden;background:#d3c2ac; }
.snapshot-media::after { content:"";position:absolute;inset:56% 0 0;background:linear-gradient(0deg,rgba(22,29,26,.22),transparent);pointer-events:none; }
.snapshot-media img,.snapshot-media video { width:100%;height:100%;display:block;object-fit:cover;transition:transform .26s ease; }
.snapshot-card > button:active .snapshot-media img { transform:scale(.985); }
.snapshot-photo-mark { position:absolute;right:7px;top:7px;z-index:3;width:19px;height:19px;display:grid;place-items:center;border-radius:5px;color:#fff;background:rgba(29,39,35,.62);font-size:10px;box-shadow:0 2px 7px rgba(0,0,0,.15); }
.snapshot-play { position:absolute;left:50%;top:50%;z-index:3;width:42px;height:42px;display:grid;place-items:center;border:2px solid rgba(255,255,255,.94);border-radius:50%;color:#fff;background:rgba(26,36,32,.32);transform:translate(-50%,-50%);box-shadow:0 4px 12px rgba(0,0,0,.18); }
.snapshot-play .ui-icon { width:27px;height:27px; }
.snapshot-media time { position:absolute;right:6px;bottom:6px;z-index:3;padding:2px 4px;border-radius:3px;color:#fff;background:rgba(21,29,26,.58);font-size:8px;font-weight:850; }
.snapshot-copy { min-height:62px;padding:7px 8px 8px;display:grid;align-content:start; }
.snapshot-copy h3 { margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#28342f;font-size:12px;line-height:1.35;font-weight:900; }
.snapshot-copy p { margin:3px 0 6px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#8a8d87;font-size:8px;line-height:1.35; }
.snapshot-copy small { display:flex;align-items:center;gap:12px;color:#8b8d88;font-size:8px;font-weight:700; }
.snapshot-copy small span { display:inline-flex;align-items:center;gap:3px; }
.snapshot-copy small .ui-icon { width:11px;height:11px;stroke-width:1.8; }
.uploaded-snapshot-card .snapshot-media { aspect-ratio:1.35/1;background:#29332e; }
.coffee-video { background: radial-gradient(circle at 47% 58%, #fff 0 9%, transparent 10%), radial-gradient(circle at 47% 58%, #955e35 0 17%, transparent 18%), linear-gradient(135deg, #7aa272, #d2b071 48%, #3f3024); }
.city-video { background: radial-gradient(circle at 70% 24%, #f28762 0 4%, transparent 5%), linear-gradient(180deg, #514b72 0 45%, #1d2530 46% 100%); }
.dinner-video { background: radial-gradient(circle at 45% 46%, #e5b269 0 8%, transparent 9%), radial-gradient(circle at 58% 48%, #ad5b35 0 6%, transparent 7%), linear-gradient(135deg, #e6d5b8, #6a462f); }
.beach-video { background: radial-gradient(circle at 70% 24%, #fff6d0 0 10%, transparent 11%), linear-gradient(180deg, #cbdfea 0 48%, #8bb1b5 49% 65%, #d8b982 66% 100%); }
.spa-video { background: radial-gradient(circle at 52% 58%, #dca174 0 12%, transparent 13%), linear-gradient(135deg, #4d3325, #f0bb76 54%, #2b1e19); }
.airport-video { background: linear-gradient(180deg, #b8d4e4 0 42%, #6a7d84 43% 54%, #e6d9c1 55% 100%); }
.sunset-video { background: radial-gradient(circle at 75% 37%, #f5a15c 0 7%, transparent 8%), linear-gradient(180deg, #9aa7aa 0 42%, #f0a15d 43% 56%, #463b35 57% 100%); }
.outfit-video { background: radial-gradient(circle at 55% 32%, #e7b08b 0 6%, transparent 7%), linear-gradient(135deg, #e0d0bb, #8a6f5e); }

.saved-page { padding: 14px 12px 100px; background: #fff8ef; display: grid; gap: 13px; }
.saved-status { margin: 0; color: #7a7468; font-size: 12px; font-weight: 700; }
.saved-empty { margin: 18px 4px 0; padding: 28px 16px; text-align: center; color: #7a7468; font-size: 13px; line-height: 1.55; border: 1px dashed rgba(58,55,48,.18); border-radius: 16px; background: rgba(255,253,249,.9); }
.saved-section { overflow: hidden; border-radius: 18px; background: rgba(255, 253, 249, .96); border: 1px solid rgba(230, 218, 202, .88); box-shadow: 0 8px 18px rgba(58, 46, 28, .07); }
.saved-head { min-height: 48px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(58,55,48,.08); }
.saved-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 950; }
.saved-head h2 span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #0b9470; font-size: 13px; }
.saved-head h2 span.purple { background: #7b58b8; }
.saved-head h2 span.gold { background: #d8a137; }
.saved-head h2 span.green { background: #278b6c; }
.saved-head em { color: #b58a3f; font-size: 12px; font-style: normal; }
.saved-head a { min-height: 36px; display: flex; align-items: center; color: #8a867d; font-size: 12px; font-weight: 850; text-decoration: none; }
.saved-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 10px; }
.saved-card { min-width: 0; display: block; text-decoration: none; color: var(--profile-text); }
.saved-thumb { position: relative; height: 70px; overflow: hidden; border-radius: 8px; margin-bottom: 7px; background: #1a1f1c center / cover no-repeat; }
.saved-thumb-media,.saved-thumb video { width: 100%; height: 100%; display: block; object-fit: cover; background: #1a1f1c; }
.saved-card.video-saved .saved-thumb { aspect-ratio: 9 / 16; height: auto; max-height: 140px; }
.saved-thumb i { position: absolute; right: 6px; top: 6px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: #c49b3e; background: rgba(255,255,255,.88); font-style: normal; font-size: 11px; }
.saved-thumb b { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(0,0,0,.34); border: 1px solid rgba(255,255,255,.82); font-size: 11px; }
.saved-thumb time { position: absolute; right: 4px; bottom: 4px; color: #fff; font-size: 9px; font-weight: 900; }
.saved-card strong { display: block; margin-bottom: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; font-weight: 900; }
.saved-card small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #8a867d; font-size: 9px; font-weight: 700; }
.ticket-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px; }
.ticket-row a { min-height: 62px; padding: 9px 7px; border-radius: 12px; display: grid; align-content: center; gap: 3px; color: #625845; background: #fff6e1; border: 1px solid rgba(221, 200, 157, .9); text-decoration: none; }
.ticket-row span { font-size: 16px; }
.ticket-row strong { font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ticket-row small { color: #8a806f; font-size: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.profile-fab { position: fixed; right: max(22px, calc((100vw - 430px) / 2 + 22px)); bottom: 90px; z-index: 20; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; color: white; background: linear-gradient(180deg, #18ac85, #078866); box-shadow: 0 16px 28px rgba(7, 136, 102, 0.28); font-size: 38px; line-height: 1; text-decoration: none; }
.profile-fab[hidden] { display: none; }
.profile-panel.active:not(#feed) ~ .profile-fab { display: none; }
.profile-action:focus-visible, .profile-stats a:focus-visible, .profile-tabs a:focus-visible, .profile-fab:focus-visible, .profile-guide-card:focus-within, .video-thumb button:focus-visible, .saved-card:focus-visible { outline: 3px solid rgba(7, 136, 102, 0.34); outline-offset: 2px; }

@media (max-width: 374px) {
  .scrapbook-wall { min-height: 545px; padding-left: 12px; padding-right: 12px; }
  .polaroid-card { width: 142px; }
  .balloon-card { right: 14px; }
  .travel-list-note { right: 18px; width: 136px; }
  .video-thumb { height: 146px; }
  .saved-row, .ticket-row { gap: 7px; }
  .profile-waterfall-page { padding-left: 8px; padding-right: 8px; }
  .profile-waterfall-grid { column-gap: 7px; }
  .profile-waterfall-card { margin-bottom: 7px; }
  .waterfall-media.short { height: 92px; }
  .waterfall-media.medium { height: 116px; }
  .waterfall-media.tall { height: 150px; }
}

@media (min-width: 700px) {
  .profile-cover-section { height: 224px; }
}


@media (max-width: 390px) {
  .profile-tabs { height: 44px; padding: 0 14px; }
  .profile-tabs a { min-height: 42px; font-size: 12.5px; }
  .profile-tabs a.active::after { left: 39%; right: 39%; bottom: 4px; }
}

/* v0.1.25 - make profile guide/video content match the compact saved-category layout */
.compact-content-page { padding-top: 12px; }
.compact-content-page .saved-section { border-radius: 16px; }
.compact-content-page .saved-head { padding: 10px 12px 8px; }
.compact-content-page .saved-row { padding: 9px; gap: 8px; }
.compact-content-page .saved-thumb { height: 62px; border-radius: 9px; }
.compact-content-page .saved-card strong { font-size: 10.5px; line-height: 1.25; }
.compact-content-page .saved-card small { font-size: 8.5px; }


/* v0.1.28 - use real travel photos for profile guide/video/saved cards */
.scrap-photo,.guide-image,.video-thumb,.saved-thumb{background-size:cover;background-position:center;background-repeat:no-repeat;}
.balloon-scene{background-image:url('../img/guides/scrap_balloon.jpg');}
.santorini-scene{background-image:url('../img/guides/scrap_santorini.jpg');}
.swiss-scene{background-image:url('../img/guides/scrap_swiss.jpg');}
.santorini-guide{background-image:url('../img/guides/guide_santorini_sunset.jpg');}
.kyoto-guide{background-image:url('../img/guides/guide_shop_interior.jpg');}
.iceland-guide{background-image:url('../img/guides/home_inspiration_aurora.jpg');}
.bali-guide{background-image:url('../img/guides/guide_spa_pool.jpg');}
.swiss-guide{background-image:url('../img/guides/scrap_swiss.jpg');}
.cinque-guide{background-image:url('../img/guides/guide_hotel_view.jpg');}
.coffee-video{background-image:url('../img/guides/video_coffee.jpg');}
.city-video{background-image:url('../img/guides/video_city.jpg');}
.dinner-video{background-image:url('../img/guides/video_dinner.jpg');}
.beach-video{background-image:url('../img/guides/video_beach.jpg');}
.spa-video{background-image:url('../img/guides/video_spa.jpg');}
.airport-video{background-image:url('../img/guides/video_airport.jpg');}
.sunset-video{background-image:url('../img/guides/video_sunset.jpg');}
.outfit-video{background-image:url('../img/guides/video_outfit.jpg');}
.guide-image::before,.video-thumb::before{background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(0,0,0,.24));}

.cover-photo {
  background-color: #d9c2a4;
  background-image: url('../img/home_hcm_hero.png');
  background-position: center 62%;
  background-size: cover;
  background-repeat: no-repeat;
}

.profile-avatar {
  overflow: hidden;
  background: #fff url('../img/avatar.svg') center / cover no-repeat;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.comment-sheet { position: fixed; inset: 0; z-index: 80; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .25s ease,visibility .25s ease; }
.comment-sheet.open { visibility: visible; opacity: 1; pointer-events: auto; }
.comment-backdrop { position: absolute; inset: 0; width: 100%; background: rgba(33,30,24,.32); }
.comment-dialog { position: absolute; left: 50%; bottom: 0; width: min(100%,430px); max-height: 76vh; padding: 9px 16px calc(12px + env(safe-area-inset-bottom)); overflow: auto; border-radius: 22px 22px 0 0; background: #fffdf8; box-shadow: 0 -12px 30px rgba(47,38,24,.18); transform: translate(-50%,105%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.comment-sheet.open .comment-dialog { transform: translate(-50%,0); }
.sheet-handle { width: 38px; height: 4px; margin: 0 auto 10px; display: block; border-radius: 9px; background: #d8d1c7; }
.comment-dialog>h2 { margin: 0 0 9px; color: #3d3a34; font-family: Georgia,"Noto Serif SC",serif; font-size: 17px; text-align: center; }
.comment-tabs { display: flex; gap: 28px; border-bottom: 1px solid #eee7dc; }
.comment-tabs button { position: relative; min-height: 37px; color: #76766f; font-size: 11px; }
.comment-tabs button.active { color: #47765b; font-weight: 850; }
.comment-tabs button.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #47765b; }
.comment-list article { min-height: 64px; padding: 10px 0; display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; border-bottom: 1px solid #f0eae2; }
.comment-list img,.comment-avatar,.comment-form img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.comment-avatar { display: grid; place-items: center; color: #fff; background: #6b887d; font-size: 12px; }.comment-avatar.coral { background: #c98572; }
.comment-list strong { display: block; color: #4d4b45; font-size: 10px; }.comment-list em { padding: 1px 4px; border-radius: 5px; color: #977330; background: #f3dfb1; font-size: 7px; font-style: normal; }
.comment-list p { margin: 3px 0; color: #66665f; font-size: 9px; line-height: 1.45; }.comment-list small { color: #aaa69e; font-size: 7px; }
.comment-list article>button { align-self: center; color: #bf6458; font-size: 10px; }.comment-list article>button b { display: block; margin-top: 2px; color: #99958e; font-size: 7px; }
.comment-form { margin-top: 10px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 7px; }.comment-form label { min-width: 0; }.comment-form input { width: 100%; height: 34px; padding: 0 12px; border: 1px solid #ebe4da; border-radius: 18px; outline: 0; color: #4d4b45; background: #f8f4ed; font-size:16px; }.comment-form input:focus { border-color: #78a38b; }.comment-form>button { height: 34px; padding: 0 14px; border-radius: 17px; color: #fff; background: #477b5c; font-size:16px; font-weight: 800; }
.comment-safe { display: block; margin-top: 8px; color: #aaa69e; font-size: 7px; text-align: center; }
body.comments-open { overflow: hidden; }

@media (max-width:430px) {
  .profile-info { padding-right: 128px; }
}
@media (max-width:374px) {
  .profile-card { min-height: 78px; padding: 9px 10px 10px 100px; }
  .profile-avatar { left: 12px; top: -29px; width: 82px; height: 82px; }
  .profile-name-row h1 { font-size: 17.5px; }
  .profile-info p { font-size: 10px; }
  .profile-info small { font-size: 9px; }
  .profile-info { padding-right: 0; }
  .profile-card-controls {
    position: static;
    right: auto;
    top: auto;
    max-width: none;
    width: 100%;
    margin: 8px 0 0;
    justify-content: flex-end;
    gap: 6px;
  }
  .profile-edit-link { min-width:54px;padding:0 7px;font-size:9px; }
  .profile-message-button { min-width:48px;padding:0 8px;font-size:10px; }
  .profile-follow-button { min-width:56px;padding:0 8px;font-size:10px; }
  .profile-card-settings { width:29px;height:29px; }
  .snapshot-grid { gap:8px 7px; }
  .snapshot-copy { min-height:58px;padding:7px; }
  .snapshot-copy p { margin-bottom:5px; }
  .message-board-button { right: 10px; min-width: 76px; padding: 0 9px; }
  .coffee-post { left: 16px; width: 194px; }
  .hand-note { right: 10px; width: 137px; }
  .church-post { right: 8px; width: 144px; }
  .night-post { left: 11px; width: 163px; }
  .food-post { left: 167px; width: 145px; }
}

@media (prefers-reduced-motion:reduce) { .comment-sheet,.comment-dialog { transition: none; } }

/* v0.6.20 profile empty — full width, centered (guides waterfall + snapshot grid) */
.profile-waterfall-grid.is-empty {
  column-count: 1;
  display: block;
}
.snapshot-grid.is-empty {
  grid-template-columns: 1fr;
}
.profile-content-empty {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 12px 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(48vh, 300px);
  padding: 0;
  break-inside: avoid;
  column-span: all;
  -webkit-column-span: all;
  grid-column: 1 / -1;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.profile-content-empty-inner {
  box-sizing: border-box;
  width: min(100%, 320px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 168px;
  padding: 28px 20px;
  text-align: center;
  border: 1px dashed rgba(170, 158, 140, .7);
  border-radius: 14px;
  background: rgba(255, 253, 249, .94);
}
.profile-content-empty p {
  margin: 0;
  color: #6d756f;
  font-size: 14px;
  line-height: 1.5;
}
.profile-content-empty a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: #0b7a55;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* v0.6.21 count badge alignment with title */
.profile-waterfall-head h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  line-height: 1.25;
}
.profile-waterfall-head h2 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin: 0;
  padding: 0 6px;
  border-radius: 5px;
  background: #f0dfba;
  color: #8d6b36;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}
.video-waterfall-page .profile-waterfall-head h2 span {
  vertical-align: middle;
}
