/* Warm blush palette: pale pink surfaces, rose actions, dark readable text. */
/* Japanese reading hierarchy: regular body, bold names and headings. */
:root {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: #332a2d;
  font-weight: 400;
  line-height: 1.65;
  --muted: #716168;
  --line: #ecd6d8;
}
body { overflow-wrap: anywhere; }
button, input, select, textarea { letter-spacing: 0; }
button { font-weight: 700; }
.brand { height: 62px; padding: 10px 16px; gap: 8px; }
.brand img { width: 36px; height: 36px; flex-shrink: 0; }
.brand > span { font-size: clamp(12px, 3.45vw, 18px); font-weight: 700; letter-spacing: -.035em; }
nav { padding: 0 8px; }
nav button { min-height: 48px; font-size: 15px; font-weight: 700; color: #6b5b61; white-space: nowrap; overflow-wrap: normal; }
nav button[aria-current=page] { font-weight: 700; border-bottom-width: 3px; }
nav .dot { width: 7px; height: 7px; top: 4px; right: 8px; }
.trial { font-size: 12px; line-height: 1.5; padding: 5px 8px; }
main { padding: 14px 16px 48px; }
.heading { gap: 8px; margin-bottom: 12px; }
h1, .heading h1 { font-size: 24px; line-height: 1.4; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 20px; line-height: 1.5; font-weight: 700; }
h3 { font-size: 18px; line-height: 1.5; font-weight: 700; }
.heading h1 { min-width: 0; }
.heading select { max-width: 40%; padding: 8px 10px; font-size: 16px; }
.primary, .secondary { font-size: 16px; font-weight: 700; line-height: 1.5; }
.primary { min-height: 48px; }
.tabs { margin-bottom: 16px; }
.tabs button { font-size: 16px; line-height: 1.5; min-height: 48px; font-weight: 500; color: #6b5b61; }
.tabs button[aria-pressed=true] { color: #332a2d; font-weight: 700; border-bottom-width: 3px; }
.card { padding: 14px; }
.people { grid-template-columns: 1fr 1.1fr 1fr; gap: 6px; position: relative; isolation: isolate; --flow-avatar: 88px; }
/* A quiet sender-to-recipient cue behind the coin, clear of both portraits. */
.people::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  left: calc((100% - 12px) / 6.2 + var(--flow-avatar) / 2 + 2px);
  right: calc((100% - 12px) / 6.2 + var(--flow-avatar) / 2 + 2px);
  top: calc(50% + 11px);
  height: 36px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgb(181 87 105 / 8%), rgb(181 87 105 / 18%) 28%, rgb(181 87 105 / 28%) 100%);
  clip-path: polygon(0 36%, calc(100% - 12px) 36%, calc(100% - 12px) 5%, 100% 50%, calc(100% - 12px) 95%, calc(100% - 12px) 64%, 0 64%);
}
.people span { font-size: 16px; font-weight: 700; line-height: 1.45; margin-bottom: 8px; }
.people small { font-size: 13px; font-weight: 500; line-height: 1.4; }
.people .avatar { width: 88px; height: 88px; max-width: 100%; font-size: 23px; font-weight: 700; }
.coin { max-width: 132px; height: 120px; }
.message { font-size: 17px; line-height: 1.75; }
.meta { gap: 10px; font-size: 13px; line-height: 1.5; flex-wrap: wrap; }
.meta button { font-size: 14px; }
.field, label.field { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
input[type=search], input[type=text], textarea, select { font-weight: 400; font-size: 16px; }
input::placeholder, textarea::placeholder { color: #7a6c71; opacity: 1; }
.roster { gap: 6px; }
.person { min-height: 104px; padding: 4px 2px; font-size: 16px; font-weight: 700; line-height: 1.2; }
.person .avatar, .person img.avatar { width: 56px; height: 56px; font-size: 16px; margin-bottom: 4px; }
.person[aria-pressed=true] { box-shadow: inset 0 0 0 1px var(--brand); }
.compose { padding: 14px; }
.coin-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 4px; }
.coin-choice { font-size: 13px; line-height: 1.4; }
.coin-choice img { height: 58px; }
.news-head { gap: 8px; }
.news-head small { font-size: 13px; font-weight: 500; }
.muted, .save-hint, .install-note { font-size: 14px; line-height: 1.7; }
.checks legend, .checks label { font-size: 16px; }
.checks legend { font-weight: 700; }
.setting { font-size: 16px; font-weight: 700; }
.setting small { font-size: 14px; font-weight: 400; }
.switcher button { font-size: 16px; font-weight: 700; }
.rank-tabs button { font-size: 14px; }
.rank-row { gap: 12px; padding: 16px 2px; }
.rank-row .avatar, .birthday-row .avatar { width: 56px; height: 56px; flex-shrink: 0; }
.rank-label, .birthday-person { font-size: 17px; font-weight: 700; line-height: 1.5; }
.rank-label small, .birthday-person small { font-size: 14px; font-weight: 400; }
.rank-pos, .number { font-weight: 700; font-size: 24px; }
.number small { font-size: 13px; font-weight: 400; }
.birthday-row { gap: 10px; }
.birthday-date { font-size: 16px; font-weight: 700; }
.pill { font-size: 13px; font-weight: 700; }
.month strong { font-size: 20px; }
.file-label, .test-controls label { font-size: 16px; }
.file-label input, .error { font-size: 14px; }
@media (min-width: 700px) {
  main { padding: 24px 28px 56px; }
  .brand { padding-left: 28px; height: 70px; }
  .person { min-height: 114px; }
  .person .avatar, .person img.avatar { width: 64px; height: 64px; }
  .people .avatar { width: 100px; height: 100px; }
  .people { --flow-avatar: 100px; }
  .people .coin { max-width: 148px; height: 140px; }
  .coin-picker { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 359px) {
  main { padding-left: 12px; padding-right: 12px; }
  .brand { padding-left: 10px; padding-right: 10px; gap: 5px; }
  .brand img { width: 30px; height: 30px; }
  nav button { font-size: 13px; }
  .heading h1 { font-size: 22px; }
  .heading select { max-width: 34%; font-size: 15px; }
  .heading .primary { font-size: 14px; padding: 8px; }
  .tabs button { font-size: 14px; }
  .people .avatar { width: 72px; height: 72px; }
  .people { --flow-avatar: 72px; }
  .people span { font-size: 16px; }
  .person { font-size: 16px; }
  .person .avatar, .person img.avatar { width: 52px; height: 52px; }
  .birthday-row { gap: 6px; }
  .coin-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

[hidden]{display:none!important}
.person{position:relative}.person .newcomer-badge{position:absolute;top:-5px;right:-2px;z-index:1;padding:2px 5px;background:#9d3b25;color:#fff;border:2px solid #fff;border-radius:6px;font-size:12px;font-weight:700;line-height:1.3;pointer-events:none}.newcomer-info{flex:1;min-width:0;overflow-wrap:anywhere}.welcome-button{flex-shrink:0;min-height:44px;padding:8px 10px;background:var(--soft);color:var(--brand);border:1px solid var(--line);font-size:14px;font-weight:700}.newcomer-row{flex-wrap:wrap}.newcomer-row .welcome-button{margin-left:auto}
#profile-bar{padding:8px 16px 0}
.profile-chip{display:flex;align-items:center;gap:10px;width:100%;padding:7px 10px;border:1px solid var(--line);border-radius:12px;text-align:left;background:#fff}
.profile-chip .avatar{width:38px;height:38px;font-size:12px;flex-shrink:0;margin:0}
.profile-chip strong{display:block;font-size:15px;line-height:1.4}
.profile-chip small{display:block;font-size:12px;font-weight:400;color:var(--muted)}
.profile-change{margin-left:auto;font-size:13px;color:var(--muted);flex-shrink:0}
.identity-footer{position:sticky;bottom:0;background:#fff;padding:12px 0 0;border-top:1px solid var(--line);margin-top:16px}
.identity-footer strong{display:block;margin-bottom:6px}
.identity-footer .muted{margin:8px 0;font-size:12px}
button:disabled{opacity:.45;cursor:default}

.post-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:4px;border-top:1px solid #f1e3e5;padding-top:4px}.post-actions button{min-height:44px;padding:8px 12px;font-size:14px;font-weight:600;color:#716168;background:transparent;border:0}.post-actions button:last-child{color:#b42132}.dialog-actions{display:flex;justify-content:flex-end;gap:12px}.delete-preview{margin:16px 0;padding:12px;border-left:3px solid #e60020;white-space:pre-wrap;overflow-wrap:anywhere;max-height:160px;overflow:auto}

nav{display:flex;overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain}nav::-webkit-scrollbar{display:none}nav button{flex:1 0 auto;min-width:56px;padding-inline:8px}nav button[data-page="rank"]{min-width:76px}
.birthday-near{margin-top:28px}.birthday-near>h2{margin-bottom:12px}.birthday-day{padding:10px 12px;border-bottom:1px solid var(--line)}.birthday-day h3{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:700}.birthday-day.is-today{background:#fce5e4;border-left:4px solid var(--brand);border-radius:8px}.today-label{font-size:13px;color:white;background:var(--brand);padding:1px 9px;border-radius:20px}.birthday-day .no-birthday{font-size:14px;color:var(--muted);margin:4px 0}.birthday-day .birthday-row{border:0;padding:12px 0;margin:0}.birthday-month{border-top:3px solid var(--line);margin-top:26px;padding-top:12px}.birthday-month h2{font-size:20px}.birthday-month .month{margin:10px 0 16px}.birthday-row .avatar{margin:0}.birthday-person{min-width:0;overflow-wrap:anywhere}
.newcomers-subtitle{margin-top:-8px;font-weight:600;color:var(--muted)}.newcomer-row{display:flex;gap:16px;align-items:center;padding:20px 0;border-bottom:1px solid var(--line)}.newcomer-row .avatar{width:64px;height:64px;margin:0;flex-shrink:0}.newcomer-info h2{font-size:19px}.newcomer-info p{font-size:14px;color:var(--muted);margin:2px 0}.newcomer-info time{font-size:15px}
.birthday-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.birthday-controls .switcher{flex:1;margin:0;min-width:160px}.birth-custom-button{min-height:44px;padding:8px 12px;font-size:14px;font-weight:700;border:1px solid var(--line);border-radius:10px;background:white;color:var(--brand)}.birth-custom-button[aria-pressed=true]{border-color:var(--brand);background:#fce5e4}.birth-custom-summary{font-size:14px;color:var(--brand);margin:10px 0 0;line-height:1.6}.birthday-controls+.birthday-near{margin-top:22px}
dialog.birth-drawer{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,600px);max-width:100%;max-height:92dvh;border-radius:20px 20px 0 0;padding:22px 0 0;overflow:hidden;animation:birth-slide-in .2s ease-out}dialog.birth-drawer>h2{padding:0 52px 18px 20px;margin:0;font-size:20px}dialog.birth-drawer .close{top:10px;right:12px;min-width:44px;min-height:44px}#birth-custom-form{display:flex;flex-direction:column;max-height:calc(92dvh - 70px)}.birth-drawer-body{overflow:auto;overscroll-behavior:contain;padding:0 20px 12px;min-height:0}.birth-custom-section{padding:16px 0;border-top:1px solid var(--line)}.birth-custom-section h3{font-size:17px;margin:0 0 12px}.birth-toggle{display:flex;gap:10px;align-items:center;font-size:16px;min-height:44px}.birth-role-checks{margin:10px 0 0}.birth-role-checks label{display:flex;align-items:center;gap:8px;min-height:44px;margin:0}.birth-role-checks legend{font-size:14px;color:var(--muted)}.birth-store-checks{max-height:240px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:8px;padding:8px}.birth-store-checks label{display:flex;align-items:center;gap:8px;min-height:44px;margin:0}.birth-drawer-footer{flex-shrink:0;padding:12px 20px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:white}.birth-preview{font-size:14px;line-height:1.5;margin:0 0 10px;color:var(--brand);font-weight:600}.birth-drawer-footer .back{min-height:44px;margin-top:4px}.birth-drawer-footer .error:empty{display:none}@keyframes birth-slide-in{from{transform:translateY(40px);opacity:0}to{transform:translateY(0);opacity:1}}@media(prefers-reduced-motion:reduce){dialog.birth-drawer{animation:none}}

.dot,nav .dot{width:8px;height:8px}
/* Start immediately with two soft nudges, then rest until the next cycle. */
.dot-pulse{transform-origin:center;animation:notification-breathe 8s ease-in-out infinite}
@keyframes notification-breathe{
  0%{transform:translateX(0) scale(1.15)}
  3%{transform:translateX(-.7px) scale(1.6)}
  6%{transform:translateX(.7px) scale(1.12)}
  9%{transform:translateX(-.5px) scale(1.5)}
  12%{transform:translateX(.4px) scale(1.08)}
  16%,99%{transform:translateX(0) scale(1)}
  100%{transform:translateX(0) scale(1.15)}
}
@media(prefers-reduced-motion:reduce){.dot-pulse{animation:none}}

.news-types{border:0;padding:0;margin:0 0 20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.news-types legend{font-size:16px;font-weight:700;margin-bottom:8px}.news-types button{border:1px solid var(--line);background:#fff;font-size:16px;font-weight:700;min-height:48px}.news-types button[aria-pressed=true]{background:var(--soft);border-color:var(--brand);color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}.news-tag-picker{margin-bottom:24px;padding:14px;border:1px solid var(--line);border-radius:12px}.news-tag-picker h2{font-size:17px}.news-tag-picker .muted{margin:4px 0 10px}.news-tag-picker .roster{max-height:280px;overflow:auto;overscroll-behavior:contain;margin-top:12px;padding:4px;grid-template-columns:repeat(3,minmax(0,1fr))}.news-tag-picker .person{font-size:14px;overflow-wrap:anywhere;min-height:104px}.news-tag-picker .tag-selected{position:absolute;top:2px;right:3px;border-radius:50%;background:var(--brand);color:#fff;font-size:13px;padding:2px 6px}#news-selected-tags{display:flex;gap:6px;flex-wrap:wrap}.news-selected-tag{font-size:14px;background:var(--soft);margin-bottom:8px}.news-type-label{display:inline-block;font-size:13px;font-weight:700;color:var(--brand);background:var(--soft);padding:3px 9px;border-radius:6px;margin-bottom:10px}.news-tag-cards{margin:14px 0;border-top:1px solid var(--line)}.news-tag-card{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--line)}.news-tag-card .avatar{width:48px;height:48px;margin:0;flex-shrink:0;font-size:14px}.news-tag-name{flex:1;min-width:100px;overflow-wrap:anywhere}.news-tag-name strong{font-size:16px}.news-tag-name small{display:block;font-size:13px;color:var(--muted)}.news-gift-button{flex-basis:100%;min-height:44px;background:var(--soft);border:1px solid var(--line);color:var(--brand);font-size:15px;font-weight:700}@media(min-width:550px){.news-tag-picker .roster{grid-template-columns:repeat(4,minmax(0,1fr))}.news-gift-button{flex-basis:auto}}

.news-tag-toggle{margin-bottom:10px;font-size:14px}.news-tag-picker .empty{grid-column:1/-1;font-size:14px;padding:16px 8px;margin:0}

/* Compact NEWS: sender identity and timestamp above, actions in one footer row. */
.news-card .news-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start}.news-heading{min-width:0}.news-heading h2{font-size:20px;line-height:1.5}.news-date{display:block;margin-top:4px;font-size:12px;line-height:1.5;color:var(--muted)}.news-author{display:flex;gap:6px;align-items:center;justify-content:flex-end;justify-self:end;min-width:0;max-width:128px}.news-author .avatar{width:36px;height:36px;flex-shrink:0;font-size:12px;margin:0}.news-author>div{min-width:0;text-align:right}.news-author small{display:block;text-align:right;font-size:12px;line-height:1.4;color:var(--muted);overflow-wrap:anywhere}.news-author strong{display:block;font-size:14px;font-weight:700;line-height:1.5;overflow-wrap:anywhere}.news-tag-cards{margin:10px 0 2px}.news-tag-card{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:9px;padding:10px 0}.news-tag-card .avatar{width:44px;height:44px}.news-tag-name{min-width:0}.news-tag-name strong{font-size:16px}.news-tag-name small{font-size:13px}.news-gift-button{min-width:100px;max-width:120px;min-height:44px;padding:5px 9px;font-size:13px;line-height:1.35}.news-gift-button small{display:block;font-size:12px;font-weight:500}.news-gift-button span{display:block;white-space:nowrap}.news-meta{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;color:var(--muted);margin-top:2px}.news-meta button{min-height:44px;padding:4px 0;font-size:13px;line-height:1.4}.news-like-button{white-space:nowrap;font-weight:600}.news-like-button[aria-pressed=true]{color:#b33136}.news-meta .news-likers{text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}.news-photo-count{white-space:nowrap;color:var(--brand);font-weight:600}.news-like-person{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.news-like-person .avatar{width:40px;height:40px;margin:0;font-size:13px}.news-like-person strong{font-size:16px}.news-like-person small{display:block;color:var(--muted);font-size:13px}@media(max-width:359px){.news-card .news-head{gap:8px;grid-template-columns:minmax(0,1fr) auto}.news-author .avatar{width:30px;height:30px}.news-author{gap:5px;max-width:112px}.news-tag-card{gap:6px;grid-template-columns:40px minmax(0,1fr) auto}.news-tag-card .avatar{width:40px;height:40px}.news-gift-button{min-width:94px;padding-inline:6px}.news-meta{gap:5px}}

/* NEWS header tools share a compact row; gift artwork stays beside its label. */
.news-topline{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:-6px 0 6px;min-height:30px}
.news-kind-date{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.news-topline .news-type-label{margin:0;white-space:nowrap}
.news-topline .news-date{margin:0;font-size:11px;line-height:1.4}
.news-topline .post-actions{flex-shrink:0;gap:2px;border:0;padding:0;margin:0 -6px 0 0}
.news-topline .post-actions button{min-width:44px;min-height:44px;padding:6px;font-size:12px}
.news-card .news-heading h2{margin:0}
.news-author{align-items:flex-start;align-self:start;margin:0}
.news-gift-button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:138px;max-width:148px;padding:5px 7px}
.news-gift-button .news-gift-coin{display:block;flex-shrink:0;width:36px;height:36px;object-fit:contain;margin:0}
.news-gift-button .news-gift-label{min-width:0;text-align:center}
@media(max-width:359px){
 .news-topline{gap:4px}.news-kind-date{gap:4px}
 .news-topline .news-type-label{padding-inline:6px;font-size:12px}
 .news-gift-button{min-width:126px;max-width:136px;gap:4px;padding-inline:5px;font-size:12px}
 .news-gift-button .news-gift-coin{width:32px;height:32px}
}

/* A single compact recipient row, with the name as its visual focus. */
.news-tag-cards{margin:12px 0 2px}
.news-tag-card{display:grid;grid-template-columns:max-content 40px minmax(0,1fr) 118px;grid-template-rows:auto;align-items:center;gap:6px;padding:8px 0}
.news-recipient-prefix,.news-recipient-suffix{font-size:12px;line-height:1.4;font-weight:400;white-space:nowrap;color:var(--muted)}
.news-tag-card>.avatar{width:40px;height:40px;margin:0;border-radius:50%;object-fit:cover}
.news-recipient-identity{display:flex;align-items:center;gap:3px;min-width:0}
.news-recipient-details{flex:0 1 auto;min-width:0}
.news-recipient-details strong{display:block;font-size:15px;font-weight:700;line-height:1.4;overflow-wrap:anywhere}
.news-recipient-details small{display:block;margin-top:2px;font-size:12px;line-height:1.35;color:var(--muted);overflow-wrap:anywhere}
.news-recipient-suffix{flex-shrink:0}
.news-tag-card>.news-gift-button{width:118px;min-width:0;max-width:none;min-height:48px;padding:6px;gap:4px;border:1px solid #e5c5cb;border-radius:12px;background:#fbe8e6;color:#844350;font-size:12px;line-height:1.35}
.news-tag-card .news-gift-coin{width:28px;height:28px;flex-shrink:0}
.news-tag-card .news-gift-label{text-align:left}
.news-tag-card .news-gift-label small{font-size:12px;font-weight:500;line-height:1.35}
.news-tag-card .news-gift-label>span{font-weight:700;line-height:1.4}
.news-tag-card>.news-gift-button:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.news-tag-card>.news-gift-button:not(:disabled):active{background:#f4d7d9}
.news-tag-card>.pill,.news-tag-card>.muted{font-size:12px;text-align:center}
@media(max-width:374px){
 .news-tag-card{grid-template-columns:max-content 32px minmax(0,1fr) 108px;gap:4px;margin-inline:-4px}
 .news-tag-card>.avatar{width:32px;height:32px}
 .news-recipient-identity{gap:2px}
 .news-recipient-details strong{font-size:14px}
 .news-tag-card>.news-gift-button{width:108px;min-height:46px;padding:4px;gap:2px}
 .news-tag-card .news-gift-coin{width:24px;height:24px}
}

/* NEWS has one footer row and a full-image, native swipe gallery. */
.news-card .news-footer{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:6px;align-items:center;margin-top:6px}
.news-footer .news-like-button{display:flex;align-items:center;gap:3px;min-height:44px;padding:4px 0;font-size:16px;font-weight:700;line-height:1.4}
.news-footer .news-like-button>span{font-size:14px;font-variant-numeric:tabular-nums}
.news-footer .news-likers{font-size:12px;min-width:0;font-weight:400}
.news-footer .news-date{margin:0;font-size:12px;line-height:1.4;white-space:nowrap;font-variant-numeric:tabular-nums}
.news-footer .post-actions{display:flex;gap:0;margin:0 -6px 0 0;padding:0;border:0}
.news-footer .post-actions button{min-width:40px;min-height:44px;padding:4px;font-size:12px}
.news-gallery{position:relative;margin:14px 0 10px;border-radius:10px;isolation:isolate}
.news-gallery-track{display:block;position:relative;width:100%;max-height:480px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;border-radius:10px;background:#fcf6f4}
.news-gallery-track::-webkit-scrollbar{display:none}
.news-gallery-track:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.news-gallery-track .news-gallery-slide{flex:0 0 100%;min-width:100%;height:100%;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;scroll-snap-align:start;scroll-snap-stop:always}
.news-gallery-slide .news-photo{display:block;width:100%;height:100%;max-height:none;margin:0;border-radius:0;object-fit:contain}
.news-gallery-counter{position:absolute;top:8px;right:8px;pointer-events:none;padding:3px 8px;border-radius:20px;background:#292522b3;color:#fff;font-size:12px;line-height:1.4;font-variant-numeric:tabular-nums}
.news-gallery-arrow{display:none;position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;min-height:44px;padding:0;border:1px solid #fff8;border-radius:50%;background:#fffE;color:#332a2d;font-size:28px;line-height:1}
.news-gallery-prev{left:8px}.news-gallery-next{right:8px}
@media(hover:hover) and (pointer:fine){.news-gallery-arrow{display:block}.news-gallery-arrow:disabled{visibility:hidden}}
/* Keep all attachments available after opening a photo, using native touch scrolling. */
:root:has(dialog.photo-viewer[open]){overflow:hidden}
dialog.photo-viewer{position:fixed;inset:0;width:min(960px,calc(100vw - 24px));height:min(900px,calc(100dvh - 24px));max-width:none;max-height:none;margin:auto;padding:0;border-radius:16px;background:#211c20;color:#fff;overflow:hidden;overscroll-behavior:contain}
dialog.photo-viewer[open]{display:flex;flex-direction:column}
dialog.photo-viewer::backdrop{background:#171317d9}
.photo-viewer .photo-viewer-title{flex:none;margin:0;padding:18px 64px 16px 20px;font-size:15px;font-weight:500;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.photo-viewer .close{position:absolute;top:6px;right:8px;z-index:1;float:none;width:44px;height:44px;padding:0;border-radius:50%;background:#ffffff12;color:#fff;font-size:28px;line-height:1}
.photo-viewer-track{display:flex;flex:1;min-height:0;width:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none}
.photo-viewer-track::-webkit-scrollbar{display:none}
.photo-viewer-slide{flex:0 0 100%;min-width:100%;height:100%;scroll-snap-align:start;scroll-snap-stop:always}
.photo-viewer-slide img{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;user-select:none}
.photo-viewer-controls{display:flex;flex:none;align-items:center;justify-content:center;gap:24px;min-height:64px;padding:8px 16px max(8px,env(safe-area-inset-bottom))}
.photo-viewer-controls button{width:44px;height:44px;padding:0;border:1px solid #ffffff38;border-radius:50%;color:#fff;background:#ffffff0d;font-size:28px;line-height:1}
.photo-viewer-controls button:disabled{opacity:.25}
.photo-viewer-counter{min-width:60px;text-align:center;font-size:14px;font-variant-numeric:tabular-nums}
.photo-viewer button:hover:not(:disabled){background:#ffffff26}
.photo-viewer :focus-visible{outline:2px solid #fff;outline-offset:-3px}
@media(max-width:600px){dialog.photo-viewer{width:100vw;height:100dvh;margin:0;border-radius:0}.photo-viewer .photo-viewer-title{padding-top:max(18px,env(safe-area-inset-top))}}
@media(max-width:359px){.news-card .news-footer{gap:3px}.news-footer .post-actions button{min-width:36px;padding-inline:2px}}

/* Birthday and newcomer actions use the same coin artwork and shape as NEWS. */
.coin-gift-action{display:inline-flex;align-items:center;justify-content:center;flex:0 0 118px;box-sizing:border-box;width:118px;min-height:48px;padding:6px;gap:4px;border:1px solid #e5c5cb;border-radius:12px;background:#fbe8e6;color:#844350;font-size:12px;line-height:1.35;text-align:left}
.coin-gift-action .coin-gift-art{display:block;flex-shrink:0;width:28px;height:28px;object-fit:contain;margin:0}
.coin-gift-copy{display:block;min-width:0;white-space:nowrap}
.coin-gift-copy small{display:block;font-size:12px;font-weight:500;line-height:1.35;color:inherit}
.coin-gift-copy strong{display:block;font-size:12px;font-weight:700;line-height:1.4;color:inherit}
button.coin-gift-action:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
button.coin-gift-action:active,.birthday-row:not(:disabled):active .coin-gift-action{background:#f4d7d9}
.birthday-row{gap:8px}
.birthday-row .avatar{width:44px;height:44px}
.birthday-row .birthday-date{min-width:42px}
.newcomer-row{flex-wrap:nowrap;gap:12px}
.newcomer-row .avatar{width:56px;height:56px}
.newcomer-row .coin-gift-action{margin-left:0}
@media(max-width:374px){
 .coin-gift-action{flex-basis:108px;width:108px;min-height:46px;padding:4px;gap:2px}
 .coin-gift-action .coin-gift-art{width:24px;height:24px}
 .birthday-row{gap:6px}.birthday-row .avatar{width:40px;height:40px}
 .birthday-row .birthday-date{min-width:36px;font-size:13px}
 .newcomer-row{gap:8px}.newcomer-row .avatar{width:48px;height:48px}
}

/* Birthday crown and date on eligible recipient portraits. */
.roster-portrait{position:relative;isolation:isolate;display:block;width:56px;height:56px;margin:8px auto 12px}
.person .roster-portrait{display:block;width:56px;height:56px;margin:8px auto 12px}
.roster-portrait .avatar,.person .roster-portrait .avatar{display:flex;width:100%;height:100%;margin:0;border-radius:50%;object-fit:cover}
.birthday-portrait{--birthday-ink:#b3444d;--birthday-soft:#fff2f0;--birthday-ring:#efb8b6;--birthday-accent:#cf5560}
.birthday-portrait>.avatar{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--birthday-ring)}
.roster-portrait .birthday-mark-symbol{position:absolute;z-index:1;display:grid;place-items:center;left:-7px;top:-5px;width:24px;height:24px;border:2px solid #fff;border-radius:50%;background:var(--birthday-soft);color:var(--birthday-ink);box-shadow:0 1px 4px #43211a1a;pointer-events:none}
.birthday-mark-symbol svg{display:block;width:19px;height:19px}
.roster-portrait .birthday-mark-date{position:absolute;z-index:2;display:block;left:50%;bottom:-8px;transform:translateX(-50%);width:max-content;min-width:38px;max-width:78px;padding:1px 6px;border:1px solid var(--birthday-ring);border-radius:12px;background:var(--birthday-soft);color:var(--birthday-ink);font-size:12px;line-height:17px;font-weight:700;white-space:nowrap;box-shadow:0 1px 3px #43211a12;pointer-events:none}
.birthday-mark-crown{--birthday-ink:#835716;--birthday-soft:#fff5d9;--birthday-ring:#e5c887;--birthday-accent:#9c6b20}
.birthday-mark-crown .birthday-mark-symbol{left:50%;top:-17px;transform:translateX(-50%);width:29px;height:26px;border:0;border-radius:0;box-shadow:none;background:transparent;filter:drop-shadow(0 1px 1px #fff)}
.birthday-mark-crown .birthday-mark-symbol svg{width:28px;height:26px}
.birthday-today .birthday-mark-date{background:var(--birthday-accent);color:#fff;border-color:var(--birthday-accent)}
.send-roster .person{padding-top:6px;padding-bottom:7px}
.send-roster .person .newcomer-badge{z-index:3}
@media(min-width:700px){.person .roster-portrait{width:64px;height:64px}}
@media(max-width:359px){.person .roster-portrait{width:52px;height:52px}}

.send-roster .person:has(.newcomer-badge) .birthday-portrait{margin-top:30px}

/* Shared profile access, prominent totals and comfortable touch targets. */
.avatar-link{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;text-decoration:none;border-radius:50%;vertical-align:middle}
.avatar-link:focus-visible{outline:3px solid var(--brand);outline-offset:4px}
.people .avatar-link{display:flex;width:max-content;margin:auto}
.profile-chip .profile-name{flex:1;min-width:0;text-align:left;padding:0;line-height:1.4}
.profile-chip .profile-change{margin-left:auto;font-size:13px;white-space:nowrap}
.coin-summary{display:grid;grid-template-columns:1fr 1fr;gap:0;background:#fbe8e6;border:1px solid #ecd6d8;border-radius:16px;padding:12px 8px 7px;margin-bottom:4px}
.coin-summary>button,.coin-summary>div{text-align:center;min-width:0;padding:3px 10px}
.coin-summary>button+button,.coin-summary>div+div{border-left:1px solid #e5c5cb;border-radius:0}
.coin-summary>button>span,.coin-summary>div>span{display:block;color:#7c5862;font-size:14px;font-weight:600}
.coin-summary strong{display:block;color:#82414e;font-size:32px;line-height:1.35;font-weight:750;font-variant-numeric:tabular-nums}
.coin-summary strong small{font-size:13px;font-weight:500;margin-left:5px}
.coin-summary p{grid-column:1/-1;text-align:center;margin:5px 0 0;font-size:11px;color:#7a646b}
.meta .coin-like-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:112px;min-height:52px;padding:8px 10px;font-size:14px;font-weight:600;border:1px solid #e9cfd3;border-radius:26px;background:#fff4f2;color:#8b4b58;touch-action:manipulation}
.coin-like-button svg{display:block;width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7}
.meta .coin-like-button:is([aria-pressed=true],.has-likes){color:#c63950;background:#fff0f2;border-color:#f2bdc7}
.coin-like-button:is([aria-pressed=true],.has-likes) svg{fill:currentColor}
.meta .coin-likers{flex:1;min-width:0;min-height:44px;padding:4px 0;text-align:left;font-size:13px;font-weight:500;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;touch-action:manipulation}
.meta .coin-likers:focus-visible{outline:2px solid var(--brand);outline-offset:3px;border-radius:4px}
.meta .coin-reply-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:48px;padding:7px 8px;border:1px solid #e5c5cb;border-radius:12px;background:#fbe8e6;color:#844350;font-size:12px;font-weight:700;white-space:nowrap;touch-action:manipulation}
.coin-reply-button img{display:block;flex:none;width:26px;height:26px;object-fit:contain}
.meta .coin-reply-button:active{background:#f4d7d9}
.meta .coin-reply-button:focus-visible{outline:2px solid #9b4b59;outline-offset:3px}
.meta:has(.coin-like-button){flex-wrap:wrap;gap:8px}
.meta:has(.coin-like-button)>time{font-size:11px}
.member-profile{text-align:center;padding:14px 0 22px}
.profile-portrait .avatar{width:100px;height:100px;font-size:26px}
.member-profile h2{margin-top:14px;font-size:24px}
.profile-store{margin:4px 0;font-size:15px;color:var(--muted)}
.member-profile .muted{margin:6px 0 16px}
.profile-answers{margin:20px 0}.profile-answers>div{padding:18px 0;border-bottom:1px solid var(--line)}
.profile-answers dt{font-size:14px;font-weight:700;color:var(--muted);margin-bottom:6px}
.profile-answers dd{font-size:17px;line-height:1.8;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.profile-edit-photo{display:flex;align-items:center;gap:16px;margin:18px 0 8px}
.profile-edit-photo .avatar{width:80px;height:80px;object-fit:cover;flex:none}
.profile-edit-photo .file-label{flex:1;min-width:0;margin:0;font-size:14px}
.profile-edit-photo input{display:block;width:100%;margin-top:8px}
#profile-edit-form textarea{min-height:80px}
.profile-edit-actions{display:flex;justify-content:flex-end;gap:10px;position:sticky;bottom:-22px;margin:0 -22px -22px;padding:14px 22px;background:#fff5f3;border-top:1px solid var(--line)}
.profile-edit-actions button{min-width:100px}
.send-roster .person{cursor:default}.send-roster .person[data-selected=true]{border-color:var(--brand);background:var(--soft)}
.roster-portrait .avatar-link{width:100%;height:100%}
.send-roster .recipient-name{display:block;width:100%;padding:4px 0;min-height:48px;line-height:1.35;font-size:16px;font-weight:700}
.send-roster .recipient-name span{margin:0}
.birthday-row .avatar-link{margin:0}.birthday-row .coin-gift-action{flex-shrink:0}
.news-author>.avatar-link{margin:0}.news-author>div{min-width:0}
.schedule-link{display:flex;justify-content:flex-end;margin:0 0 8px}
.schedule-link button{font-size:13px;color:var(--brand);min-height:38px;padding:4px 2px}
.schedule-link strong{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:50%;background:var(--soft)}
.schedule-control{margin:16px 0;border:1px solid var(--line);padding:12px;border-radius:12px;background:#fff}
.schedule-control legend{padding:0 4px;font-size:14px;font-weight:600}
.schedule-control select{width:100%}
.schedule-date{display:block;margin-top:12px;font-size:13px;color:var(--muted)}
.schedule-date[hidden]{display:none}
input[type=datetime-local]{display:block;max-width:100%;width:100%;min-width:0;min-height:48px;border:1px solid #d7b9bf;border-radius:9px;padding:8px;background:#fff;font:inherit;font-size:16px;margin-top:5px}
.scheduled-head{display:flex;flex-wrap:wrap;gap:8px;align-items:center;color:var(--brand);font-size:13px;margin-bottom:12px}
.scheduled-card h2{font-size:18px}.scheduled-coin{width:64px;height:64px;object-fit:contain;float:right;margin:8px}
.scheduled-actions{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--line);clear:both}
.scheduled-actions button{font-size:14px;color:var(--brand)}
.settings-links{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}
@media(max-width:374px){.meta .coin-like-button{min-width:104px;padding:7px;gap:4px}.send-roster .recipient-name{font-size:14px}}

.birthday-portrait .avatar-link>.avatar{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--birthday-ring)}

/* Personal activity lives in My Page; settings stay within easy reach in the header. */
.brand>span{flex:1;min-width:0;font-size:clamp(11px,3vw,18px)}
.header-settings{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;min-height:44px;padding:9px;margin-right:-6px;color:var(--muted)}
.header-settings svg{width:22px;height:22px;flex:none}
.header-settings[aria-current=page]{color:var(--brand);background:var(--soft)}
nav button{min-width:0;padding-inline:5px}
nav button[data-page=rank]{min-width:0}
.my-profile{display:flex;align-items:center;gap:12px;margin:4px 0 22px}
.my-profile .avatar{width:64px;height:64px;margin:0;font-size:22px}
.my-profile>div{flex:1;min-width:0}
.my-profile h2{font-size:20px}
.my-profile p{margin:2px 0 0;color:var(--muted);font-size:14px}
.my-profile-link{flex-shrink:0;padding:8px 0 8px 6px;font-size:12px;color:var(--brand)}
.my-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.my-total-card{text-align:left;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px;min-height:154px}
.my-total-card:hover{background:#fff9f8;border-color:#dcb5be}
.my-total-label{display:block;font-size:15px;font-weight:700;white-space:nowrap}
.my-total-number{display:block;font-size:36px;line-height:1.45;color:var(--brand);font-variant-numeric:tabular-nums}
.my-total-number small{font-size:14px;font-weight:500;margin-left:5px;color:var(--muted)}
.my-total-rank{display:flex;align-items:baseline;justify-content:space-between;gap:6px;margin-top:7px;font-size:12px;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}
.my-rank-scope{font-size:12px;color:var(--muted)}
.my-total-rank b{font-size:20px;margin-right:2px}
.my-total-rank small{font-size:11px;font-weight:400;color:var(--muted)}
.my-totals-note{font-size:11px;color:var(--muted);margin:8px 0 22px;text-align:center}
.my-page-details{scroll-margin-top:130px}
.my-coin-types{display:grid;gap:12px}
.my-coin-type{padding:14px;background:#fff;border:1px solid var(--line);border-radius:14px}
.my-coin-type-head{display:flex;align-items:center;gap:12px}
.my-coin-type-head img{width:54px;height:54px;object-fit:contain;flex:none}
.my-coin-type-head h2{font-size:17px}
.my-coin-type dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 0}
.my-coin-type dl>div{display:flex;align-items:baseline;justify-content:space-between;gap:6px;background:#fff5f3;border-radius:8px;padding:8px 10px}
.my-coin-type dt{font-size:14px;font-weight:600}
.my-coin-type dd{margin:0;font-size:19px;font-weight:700;font-variant-numeric:tabular-nums}
.my-coin-type dd small{font-size:12px;font-weight:400;margin-left:4px}
@media(max-width:359px){
 .brand{gap:4px}
 .header-settings{flex-basis:36px;width:36px;padding-inline:7px}
 nav{padding-inline:4px}
 nav button{font-size:12px;padding-inline:4px}
 .my-profile{gap:8px}
 .my-profile .avatar{width:52px;height:52px}
 .my-profile h2{font-size:18px}
 .my-profile-link{font-size:11px}
 .my-totals{gap:8px}
 .my-total-card{padding:12px 10px}
 .my-total-label{font-size:14px}
 .my-total-number{font-size:32px}
 .my-total-rank b{font-size:20px}
 .my-total-rank small{font-size:11px}
}

/* Natural first-image sizing without inline styles or generated CSS. */
.news-gallery-track .news-gallery-slide:first-child{position:relative;height:auto}.news-gallery-slide:first-child .news-photo{height:auto;max-height:480px;aspect-ratio:auto 4 / 3}.news-gallery-track .news-gallery-slide:not(:first-child){position:absolute;top:0;width:100%;height:100%}
.news-gallery-track .news-gallery-slide:nth-child(2){left:100%}.news-gallery-track .news-gallery-slide:nth-child(3){left:200%}.news-gallery-track .news-gallery-slide:nth-child(4){left:300%}.news-gallery-track .news-gallery-slide:nth-child(5){left:400%}.news-gallery-track .news-gallery-slide:nth-child(6){left:500%}.news-gallery-track .news-gallery-slide:nth-child(7){left:600%}.news-gallery-track .news-gallery-slide:nth-child(8){left:700%}.news-gallery-track .news-gallery-slide:nth-child(9){left:800%}.news-gallery-track .news-gallery-slide:nth-child(10){left:900%}
.coin-gift-preview{text-align:center}.read-marker{display:block;width:1px;height:1px}
