.header-login { font-size: 15px; font-weight: 600; white-space: nowrap; }
.social-mode .header nav { display: none; }
.social-mode .header-login { margin-left: auto; }
.social-mode > footer { display: none; }
#social-app { min-height: calc(100svh - 94px); }
.social-icon { width: 22px; height: 22px; display: inline-block; vertical-align: middle; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-layout { max-width: 1280px; margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 9%; align-items: center; padding: 65px 6% 85px; }
.auth-story { position: relative; min-width: 0; }
.auth-story h1 { font: 800 clamp(30px,3.2vw,45px)/1.6 var(--jp); letter-spacing: -.04em; margin: 15px 0 22px; }
.auth-story > p:not(.section-kicker) { color: var(--muted); font-size: 17px; }
.auth-photo { position: relative; margin: 28px 20px 10px 0; rotate: -3deg; }
.auth-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1.45; object-fit: cover; border-radius: 20px; }
.auth-photo figcaption { position: absolute; right: -16px; bottom: 18px; background: var(--lime); border-radius: 9px; padding: 10px 18px; font-size: 14px; rotate: 5deg; }
.auth-panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 35px; box-shadow: 0 20px 80px #253d4c06; }
.auth-panel > .section-kicker { margin: 0 0 16px; }
.google-signin { width: 100%; min-height: 54px; padding: 13px 18px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid #a9b8c1; border-radius: 10px; background: #fff; color: var(--ink); font: 600 16px var(--jp); }
.google-signin:hover:enabled { background: #f7fafc; }
.google-signin svg { width: 20px; height: 20px; flex-shrink: 0; }
.auth-provider-note { color: var(--muted); font-size: 12px; text-align: center; margin: 8px 0 0; }
.auth-divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; margin: 25px 0; }
.auth-divider::before,.auth-divider::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.auth-panel .otp-input { font: 700 clamp(21px,3vw,28px) var(--sans); letter-spacing: .18em; text-align: center; min-height: 68px; padding-inline: 8px; }
.auth-code-help,.auth-signup-note { font-size: 13px; color: var(--muted); line-height: 1.8; margin: 10px 0 20px; }
.auth-code-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.auth-code-actions button { padding: 6px 0; border: 0; background: transparent; color: var(--ink); font: 500 13px var(--jp); text-decoration: underline; text-underline-offset: 4px; }
.auth-code-actions button:disabled { opacity: .5; text-decoration: none; }
.auth-panel h2 { font-size: 28px; line-height: 1.5; margin: 0 0 13px; }
.auth-panel .auth-lead { font-size: 15px; line-height: 1.9; color: var(--muted); margin: 0 0 25px; overflow-wrap: anywhere; }
.auth-panel form label { font-size: 15px; margin-bottom: 19px; }
.auth-panel input { font-size: 16px; min-height: 51px; border-radius: 10px; }
.auth-panel .primary { width: 100%; margin-top: 5px; font-size: 16px; }
.auth-panel .form-error:empty { display: none; }
.auth-link { display: block; margin-top: 20px; text-align: center; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.auth-fine { font-size: 12px; line-height: 1.9; color: var(--muted); border-top: 1px solid var(--line); padding-top: 22px; margin: 26px 0 0; }
.auth-success { background: #eff6e6; border-radius: 12px; padding: 18px; font-size: 15px; color: #426440; }
.sns-shell { max-width: 1330px; padding: 37px 4.5% 75px; margin: auto; display: grid; grid-template-columns: 185px minmax(0,650px) minmax(170px,1fr); gap: 35px; align-items: start; }
.sns-nav { position: sticky; top: 125px; display: flex; flex-direction: column; gap: 8px; }
.sns-nav a { display: flex; align-items: center; gap: 13px; padding: 13px 15px; border-radius: 12px; font-size: 16px; font-weight: 600; }
.sns-nav a.active { background: #fff; color: var(--accent); }
.sns-nav a:hover { background: #ffffff80; }
.sns-nav .sns-post-link { margin-top: 17px; background: var(--ink); color: #fff; justify-content: center; padding-inline: 8px; }
.sns-content { min-width: 0; }
.sns-aside { position: sticky; top: 131px; }
.sns-aside > div { padding: 22px 18px; background: #ffffff70; border: 1px solid #fff; border-radius: 16px; }
.sns-aside .section-kicker { font-size: 13px; }
.sns-aside h3 { font-size: 18px; line-height: 1.7; margin: 10px 0; }
.sns-aside p { font-size: 13px; line-height: 1.9; color: var(--muted); }
.sns-aside small { display: block; margin: 22px 5px; color: var(--muted); font-size: 12px; }
.sns-page-head { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.sns-page-head h1 { font-size: 28px; font-weight: 800; line-height: 1.5; letter-spacing: -.04em; margin: 0; }
.sns-date { font: 700 13px/1.5 var(--sans); letter-spacing: .6px; color: var(--muted); margin: 0 0 7px; }
.sns-icon-button { display: inline-grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 50%; width: 43px; height: 43px; flex-shrink: 0; }
.daily-prompt { border: 1px solid #f0cdbf; background: #fff4ed; padding: 23px; border-radius: 18px; margin-bottom: 25px; }
.daily-prompt .section-kicker { font-size: 13px; margin-bottom: 8px; }
.daily-prompt h2 { font-size: 22px; line-height: 1.65; margin: 0 0 11px; }
.daily-prompt p { color: #7e776c; font-size: 15px; margin: 0 0 18px; line-height: 1.9; }
.daily-prompt .primary { min-height: 49px; padding: 12px 20px; font-size: 15px; }
.daily-prompt.done { background: #edf5e5; border-color: #d4e2c8; }
.daily-prompt.done .section-kicker { color: #5a7c48; }
.sns-empty { text-align: center; padding: 44px 25px; border: 1px dashed #c6d7e1; border-radius: 18px; }
.sns-empty > .social-icon { width: 34px; height: 34px; color: #90a8b5; margin-bottom: 10px; }
.sns-empty h2 { font-size: 21px; margin: 10px 0; }
.sns-empty p { font-size: 15px; color: var(--muted); line-height: 2; }
.sns-empty .outline-button { font-size: 14px; margin-top: 10px; min-height: 48px; }
.locked-shapes { display: flex; gap: 15px; justify-content: center; margin: 24px auto; }
.locked-shapes span { width: 104px; height: 110px; border-radius: 12px; background: linear-gradient(150deg,#d9e5eb,#e7edf1); rotate: -5deg; }
.locked-shapes span:last-child { background: linear-gradient(150deg,#f1e5dd,#ebedef); rotate: 6deg; }
.sns-post { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 25px; }
.post-author { padding: 18px; display: flex; gap: 11px; align-items: center; }
.pet-avatar { display: inline-flex; align-items: center; justify-content: center; background: #dde9ef; width: 43px; height: 43px; border-radius: 50%; overflow: hidden; font-size: 20px; font-weight: 700; flex-shrink: 0; }
.pet-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-author strong { display: block; font-size: 16px; line-height: 1.4; }
.post-author small { color: var(--muted); font-size: 12px; }
.post-photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #e8eef2; }
.post-body { padding: 17px 20px 22px; }
.post-caption { font-size: 16px; margin: 0 0 17px; line-height: 1.9; overflow-wrap: anywhere; }
.post-reactions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.post-reactions button { display: inline-flex; gap: 7px; align-items: center; font-size: 13px; background: #f2f6f8; padding: 8px 13px; border: 1px solid transparent; border-radius: 25px; }
.post-reactions button.active { background: #fff0e8; color: var(--accent); border-color: #f6cbba; }
.post-reactions .social-icon { width: 18px; height: 18px; }
.post-time { margin-left: auto; font-size: 12px; color: var(--muted); }
.sns-profile { border: 1px solid var(--line); border-radius: 20px; background: #fff; padding: 29px; margin-bottom: 27px; }
.profile-cover { height: 75px; margin: -29px -29px 0; border-radius: 20px 20px 0 0; background: #dce9ec; background-image: radial-gradient(circle at 75% 10%,#cee1e6 0 20%,transparent 20%),radial-gradient(circle at 10% 110%,#e6efcb 0 30%,transparent 30%); }
.profile-top { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-top: -30px; margin-bottom: 15px; }
.profile-top .pet-avatar { width: 92px; height: 92px; border: 5px solid #fff; font-size: 32px; }
.small-outline { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 8px 13px; font-size: 13px; font-weight: 600; }
.sns-profile h1 { font-size: 28px; line-height: 1.5; margin: 0 0 2px; }
.profile-handle { font-size: 14px; color: var(--muted); margin: 0 0 13px; }
.profile-bio { font-size: 15px; line-height: 2; margin: 0 0 15px; overflow-wrap: anywhere; }
.profile-likes { display: flex; gap: 7px; flex-wrap: wrap; font-size: 12px; }
.profile-likes span { background: #f0f5f6; padding: 5px 10px; border-radius: 6px; }
.profile-counts { display: flex; gap: 25px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 23px; font-size: 13px; color: var(--muted); }
.profile-counts b { color: var(--ink); font-size: 21px; margin-right: 6px; }
.memories-head { display: flex; align-items: center; gap: 14px; margin: 25px 0 18px; }
.memories-head h2 { font-size: 22px; margin: 0; }
.memories-head small { font-size: 12px; color: var(--muted); }
.month-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 17px; font-weight: 700; }
.memory-week, .memory-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 7px; }
.memory-week { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 9px; }
.memory-day { border: 1px solid #dbe6ec; border-radius: 9px; aspect-ratio: .82; min-width: 0; padding: 0; position: relative; background: #ffffff70; color: #8b9da7; font: 700 13px var(--sans); overflow: hidden; }
.memory-day.today { border-color: var(--accent); color: var(--accent); }
.memory-day span { position: absolute; top: 5px; left: 7px; z-index: 1; }
.memory-day img { width: 100%; height: 100%; object-fit: cover; display: block; }
.memory-day:has(img) span { color: #fff; text-shadow: 0 1px 4px #0009; }
.memory-day.empty { visibility: hidden; }
.memories-foot { font-size: 12px; line-height: 1.9; color: var(--muted); margin-top: 18px; }
.sns-search { display: flex; gap: 9px; margin-bottom: 24px; }
.sns-search input { margin: 0; font-size: 16px; border-radius: 10px; min-height: 50px; }
.sns-search button { min-height: 50px; padding: 10px 17px; font-size: 14px; }
.sns-subheading { font-size: 18px; margin: 27px 0 16px; }
.friend-row { display: flex; align-items: center; gap: 13px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.friend-info { flex: 1; min-width: 0; }
.friend-info a { font-size: 16px; font-weight: 700; display: block; line-height: 1.5; overflow-wrap: anywhere; }
.friend-info small { color: var(--muted); font-size: 12px; }
.friend-actions { display: flex; gap: 6px; }
.friend-actions button { font-size: 12px; }
.friend-actions .accept { color: #fff; background: var(--ink); }
.sns-invite { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-top: 25px; }
.sns-invite h2 { font-size: 19px; margin: 0 0 10px; }
.sns-invite p { font-size: 14px; color: var(--muted); }
.composer { background: #fff; border-radius: 20px; border: 1px solid var(--line); padding: 27px; }
.composer > p { color: var(--muted); font-size: 15px; line-height: 2; }
.photo-picker { width: 100%; border: 1.5px dashed #b8ccd6; border-radius: 15px; min-height: 245px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; cursor: pointer; background: #f4f8fa; overflow: hidden; position: relative; text-align: center; }
.photo-picker .social-icon { width: 37px; height: 37px; }
.photo-picker span { font-size: 17px; font-weight: 600; }
.photo-picker small { font-size: 12px; color: var(--muted); }
.photo-picker img { width: 100%; max-height: 460px; object-fit: contain; background: #edf3f6; display: block; }
.composer textarea { font-size: 16px; border-radius: 10px; margin-top: 9px; }
.composer label { font-size: 15px; }
.composer .primary { width: 100%; font-size: 16px; margin-top: 10px; }
.composer .privacy-note { font-size: 12px; padding: 14px; background: #f3f7ee; border-radius: 10px; line-height: 1.9; }
.sns-notice { padding: 18px; border-radius: 12px; font-size: 14px; line-height: 1.9; background: #fff5ed; margin-bottom: 25px; }
.sns-loading { padding: 70px 20px; text-align: center; color: var(--muted); font-size: 16px; }
.sns-loading::before { content: ''; display: block; width: 24px; height: 24px; border: 2px solid #d0dfe6; border-top-color: var(--accent); border-radius: 50%; animation: sns-spin .8s linear infinite; margin: 0 auto 17px; }
@keyframes sns-spin { to { transform: rotate(360deg); } }
.sns-error { border: 1px solid #edcbbb; background: #fff5ef; padding: 20px; border-radius: 14px; color: #90503b; font-size: 15px; line-height: 2; }
.sns-settings { background: #fff; border-radius: 16px; padding: 25px; }
.sns-settings h2 { font-size: 20px; }
.sns-settings p { font-size: 15px; color: var(--muted); line-height: 2; }
.sns-settings .small-outline { margin-top: 15px; }
.memory-detail img { width: 100%; max-height: 65svh; object-fit: contain; border-radius: 10px; }
.memory-detail h2 { font-size: 21px; }
.profile-dialog .storage-note { font-size: 12px; }
.profile-dialog form label > small { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
button:disabled { cursor: default; opacity: .55; }
@media(max-width:1100px) {
  .sns-shell { grid-template-columns: 165px minmax(0,1fr); gap: 30px; max-width: 1000px; }
  .sns-aside { display: none; }
  .auth-layout { gap: 6%; }
  .auth-panel { padding: 28px; }
}
@media(max-width:700px) {
  .header-login { font-size: 12px; margin-left: auto; }
  .header:has(.header-login) { gap: 12px; }
  .header:has(.header-login) .logo { --wordmark-width: 115px; }
  .header:has(.header-login) .nav-cta { padding-inline: 10px; }
  #social-app { min-height: calc(100svh - 80px); }
  .auth-layout { display: block; padding: 32px 6% 55px; }
  .auth-story { margin-bottom: 28px; }
  .auth-story h1 { font-size: 26px; margin-bottom: 14px; }
  .auth-story > p:not(.section-kicker) { font-size: 15px; }
  .auth-photo { display: none; }
  .auth-story .section-kicker { font-size: 14px; }
  .auth-panel { padding: 25px 21px; border-radius: 19px; }
  .auth-panel h2 { font-size: 24px; }
  .auth-panel .auth-lead { font-size: 14px; }
  .sns-shell { display: block; padding: 25px 5.5% 110px; }
  .sns-nav { position: fixed; bottom: 0; left: 0; right: 0; top: auto; background: #ffffffed; backdrop-filter: blur(15px); border-top: 1px solid var(--line); z-index: 20; flex-direction: row; justify-content: space-around; padding: 10px 3% max(10px,env(safe-area-inset-bottom)); gap: 0; }
  .sns-nav a { flex: 1; padding: 3px 0; display: flex; flex-direction: column; gap: 4px; font-size: 10px; background: transparent; border-radius: 0; }
  .sns-nav a.active { background: transparent; }
  .sns-nav .sns-post-link { margin: 0; padding: 3px 0; color: var(--ink); background: transparent; }
  .sns-nav .social-icon { width: 24px; height: 24px; }
  .sns-page-head h1 { font-size: 24px; }
  .sns-page-head { margin-bottom: 21px; }
  .daily-prompt { padding: 21px; }
  .daily-prompt h2 { font-size: 20px; }
  .daily-prompt p { font-size: 14px; }
  .sns-profile { padding: 22px; }
  .profile-cover { margin: -22px -22px 0; }
  .sns-profile h1 { font-size: 26px; }
  .profile-top .pet-avatar { width: 80px; height: 80px; }
  .profile-counts { gap: 20px; }
  .profile-counts b { font-size: 19px; }
  .memories-head h2 { font-size: 21px; }
  .memory-grid,.memory-week { gap: 5px; }
  .memory-day { border-radius: 6px; font-size: 11px; }
  .memory-day span { left: 5px; top: 3px; }
  .post-author { padding: 15px; }
  .post-body { padding: 16px; }
  .post-reactions button { font-size: 12px; padding: 7px 10px; }
  .post-time { width: 100%; margin: 7px 0 0; }
  .friend-actions { flex-direction: column; }
  .composer { padding: 21px; }
  .photo-picker { min-height: 220px; }
  .sns-invite { padding: 21px; }
}
@media(prefers-reduced-motion:reduce) { .sns-loading::before { animation: none; } }
