.account-main { padding-bottom: 55px; }
.account-panel { padding: clamp(15px,2.9vw,31px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.account-panel > p { color: var(--muted); margin: 5px 0 12px; }
.account-status { color: var(--accent-hover); background: #f0eafa; border-radius: 8px; padding: 10px 13px; margin: 12px 0; font-size: 14px; }
.account-status:empty { display: none; }
.login-panel { width: min(100%,480px); }
.demo-entry { display: inline-block; margin: 0 0 13px; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 16px; padding: 11px 14px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f0eafa; color: var(--muted); font-size: 14px; }
.demo-routes { flex-basis: 100%; }
.demo-routes summary { color: var(--ink); cursor: pointer; font-weight: 650; }
.demo-routes nav { display: flex; flex-wrap: wrap; gap: 5px 16px; margin-top: 7px; }
.demo-routes nav a { padding: 3px 0; }
.blessing-picker { margin-bottom: 14px; }
.blessing-picker blockquote { margin: 10px 0 16px; padding-inline-start: 12px; border-inline-start: 2px solid var(--line); overflow-wrap: anywhere; white-space: pre-wrap; }
.blessing-saved { margin-bottom: 8px; color: var(--accent-hover); }
.stack-form { display: grid; justify-items: start; gap: 11px; }
.account-bar, .panel-heading, .card-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 15px; }
.account-bar { margin-bottom: 10px; }
.account-bar p { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.panel-heading { margin-bottom: 10px; }
.panel-heading h2 { font-size: 21px; }
.account-welcome { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: clamp(18px,5vw,66px); align-items: center; }
.account-welcome h2 { font-size: clamp(23px,3.5vw,37px); line-height: 1.25; margin-bottom: 8px; }
.account-welcome p, .guide-list dd { color: var(--muted); }
.welcome-action { margin-top: 14px; }
.guide-list { margin: 18px 0 0; }
.guide-list > div { display: grid; grid-template-columns: minmax(6em,auto) 1fr; gap: 4px 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.guide-list dt { font-weight: 650; }
.guide-list dd { margin: 0; }
.welcome-sample { display: grid; align-self: center; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--page); }
.welcome-sample img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.welcome-sample > span { display: flex; justify-content: space-between; gap: 8px; padding: 13px 16px; font-weight: 650; color: var(--accent-hover); }
.welcome-sample:hover > span { text-decoration: underline; }
#cardList { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(8px,1.4vw,15px); }
.my-card { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.my-card:hover { background: #eee9fa; border-color: #c5b7e7; }
button.my-card { width: 100%; text-align: start; background: var(--surface); color: var(--ink); }
.my-card-cover { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; overflow: hidden; border-radius: 8px; color: var(--accent-hover); background: #eee8f9; font-weight: 650; }
.my-card img { width: 100%; height: 100%; object-fit: cover; }
.my-card strong, .my-card small { display: block; overflow-wrap: anywhere; }
.my-card small { color: var(--muted); font-size: 12px; margin-top: 3px; }
.card-back { display: inline-block; margin-bottom: 16px; }
.card-guide { margin-top: 18px; padding: 11px 14px; border-radius: 9px; background: #f1ebfa; }
.card-guide summary { cursor: pointer; font-weight: 650; }
.card-guide-links { display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 7px 0; }
.card-guide-links a { padding-block: 5px; }
#editProfile, #records, #wallSettings, #sharing { scroll-margin-top: 100px; }
.wall-settings .small-note, .wall-status { margin-bottom: 10px; }
.wall-status { color: var(--accent-hover); font-size: 14px; }
.wall-status:empty { display: none; }
.wall-options { display: grid; grid-template-columns: repeat(auto-fill,minmax(105px,1fr)); gap: 8px; }
.wall-options label { position: relative; display: grid; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; font-size: 12px; }
.wall-options label:has(input:checked) { border-color: var(--accent); background: #f1ebfa; }
.wall-options input { position: absolute; top: 8px; left: 8px; accent-color: var(--accent); }
.wall-options img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wall-links { margin-top: 12px; }
.profile-row, .shared-profile { display: flex; gap: clamp(12px,2.5vw,25px); align-items: center; }
.profile-row > div, .shared-profile > div { min-width: 0; }
.profile-row h2, .shared-profile h1 { margin: 5px 0; font-size: clamp(27px,4.4vw,50px); line-height: 1.2; overflow-wrap: anywhere; }
.profile-row img { width: clamp(60px,12vw,120px); aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.profile-id { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; margin-top: 4px; }
.profile-row #managedIntro, .shared-profile #sharedIntro { overflow-wrap: anywhere; white-space: pre-wrap; color: var(--muted); }
.edit-profile { margin-top: 14px; border-block: 1px solid var(--line); }
.edit-profile summary { padding: 11px 0; cursor: pointer; font-weight: 650; }
.edit-profile form { padding-bottom: 15px; }
.record-section, .sharing-section { margin-top: 23px; }
.record-section h3, .sharing-section h3 { margin-bottom: 11px; }
.record-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.record-tabs button { min-height: 34px; padding: 5px 11px; color: var(--ink); background: var(--page); border: 1px solid var(--line); border-radius: 7px; }
.record-tabs button[aria-pressed=true] { color: var(--accent-hover); background: #eee7fa; border-color: #baa7e4; font-weight: 700; }
.record-list { display: grid; gap: 8px; }
.record { padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: #faf8fe; }
.record time { color: var(--accent-hover); font-size: 12px; }
.record img { margin-top: 6px; width: auto; height: auto; max-width: 100%; max-height: 380px; border-radius: 6px; }
.record p { margin-top: 5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.record-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; }
.record-actions span { flex: 1 0 auto; color: var(--muted); font-size: 12px; }
.record-form { margin-top: 13px; }
.record-form h4 { margin: 0; }
.sharing-section { border-top: 1px solid var(--line); padding-top: 20px; }
.checkbox-row { display: flex; align-items: center; gap: 7px; min-height: 31px; font-size: 14px; overflow-wrap: anywhere; }
.checkbox-row input { accent-color: var(--accent); width: 16px; height: 16px; flex: 0 0 16px; }
.checkbox-row img { width: 35px; height: 31px; object-fit: cover; border-radius: 4px; flex: 0 0 35px; }
.share-fields { width: 100%; min-inline-size: 0; margin: 0; border: 1px solid var(--line); border-radius: 8px; }
.share-fields legend { font-weight: 650; }
.share-link-panel { margin-top: 12px; padding: 10px; background: #eee8f9; border-radius: 8px; }
.share-link-panel .actions { margin-top: 8px; }
.card-actions { margin-top: 19px; padding-top: 10px; border-top: 1px solid var(--line); }
.destructive { color: #8a3c3f; }
.shared-profile { margin: 22px 0 18px; background: #f0ebfb; }
.shared-profile img { width: min(42%,250px); max-height: 250px; height: auto; object-fit: cover; border-radius: 12px; }
.shared-wish { margin: 8px 0 0; color: var(--accent-hover); font-size: clamp(16px,2.3vw,22px); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.shared-group { margin: 18px 0; }
.shared-group h2 { font-size: 21px; margin-bottom: 6px; }
#sharedCard .real-place { margin-top: 19px; }
@media (max-width: 690px) {
  .account-welcome { grid-template-columns: minmax(0,1fr); }
  #cardList { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .shared-profile { align-items: flex-start; }
}
@media (max-width: 430px) {
  .guide-list > div, #cardList { grid-template-columns: minmax(0,1fr); }
}
