/* Home: keep the member's information prominent and the feed easy to scan. */
.home-screen .home-feed { margin-top:28px; }
.home-screen .home-feed-section { padding-top:22px; }
.home-screen .home-feed-section + .home-feed-section { margin-top:24px; }
.home-screen .home-feed-heading { gap:12px; margin-bottom:12px; }
.home-screen .home-feed-heading h2 { line-height:1.25; }
.home-screen .home-request-card { align-items:center; min-height:84px; gap:13px; }
.home-screen .home-request-visual { flex-basis:60px; width:60px; height:60px; border-radius:10px; }
.home-screen .home-request-card .home-feed-copy { gap:4px; }
.home-screen .home-request-card .home-feed-copy strong { font-size:13px; line-height:1.3; }
.home-screen .home-request-card .home-feed-copy > span { color:#b9ada0; -webkit-line-clamp:2; }

/* Requests: a clear author, title, description and action hierarchy. */
.demand-card { padding:18px; border-color:#40352c; background:#171513; }
.demand-card-header { gap:11px; }
.demand-card .demand-person strong { color:#f8f3eb; font-size:14px; line-height:1.3; }
.demand-card .demand-person small { color:#b9aa99; }
.demand-card .demand-title { margin-top:18px; font-size:16px; line-height:1.35; }
.demand-card .demand-text { color:#e3d9cd; line-height:1.6; }
.demand-card .demand-text.is-collapsed { display:-webkit-box; overflow:hidden; -webkit-line-clamp:4; -webkit-box-orient:vertical; }
.demand-card .demand-expand { min-height:40px; margin:-8px 0 4px; padding:4px 0; border:0; background:transparent; color:#e8bd82; font-size:12px; font-weight:600; }
.demand-card .demand-image { max-height:420px; object-fit:contain; }
.demand-heading-actions { display:flex; flex:0 0 auto; flex-direction:column; align-items:stretch; gap:3px; }
.demand-heading .demand-heading-actions .demand-manage-link { display:inline-flex; align-items:center; justify-content:center; gap:3px; min-height:38px; padding:6px 4px; border:0; background:transparent; color:#e8bd82; font-size:12px; font-weight:500; }
.demand-manage-link i { font-size:13px; }

/* Profile: separate editable identity from account destinations. */
#member .profile-photo { margin-bottom:20px; }
#member .profile-group { margin:16px 0; padding:18px; border:1px solid #40352c; border-radius:14px; background:#171513; }
#member .profile-group legend { padding:0 7px; color:#e8bd82; font-size:13px; font-weight:600; }
#member .profile-group label { margin-top:15px; }
#member .profile-menu-heading { padding-bottom:2px; }
#member .profile-menu button[data-open]:active { background:#29221b!important; }

/* Promotions: consistent imagery and legible labels for every aspect ratio. */
#promotion-list .promotion { overflow:hidden; border-color:#39312a; background:#151311; }
#promotion-list .promotion-visual { aspect-ratio:1 / 1; background:#100e0d; }
#promotion-list .promotion-visual img { object-fit:contain; }
#promotion-list .promotion-copy { gap:0; padding:12px; }
#promotion-list .promotion-copy strong { display:block; color:#f7f3ed; font-size:13px; line-height:1.4; -webkit-line-clamp:unset; }
#promotion-list .promotion-source { color:#c9bfb4; }
#promotion-list .promotion-area { color:#e8bd82; }
#promotion-detail .detail-about { padding-bottom:12px; }

/* Scanner: put the main actions before the optional visual guidance. */
#scanner:not([hidden]) { display:flex; flex-direction:column; }
#scanner > .scanner-photo-guide { order:2; width:100%; max-width:none; margin:18px 0 8px; padding:16px; }
#scanner .scanner-photo-guide h3 { font-size:15px; }
#scanner .scanner-photo-guide img { max-width:215px; margin:4px auto; }
#scanner .scanner-photo-guide p { font-size:12px; line-height:1.5; }
#scanner .ename-scanner { margin:12px 0 0; }

/* Messages retain their existing status text and retry controls. */
#demand-status:not(:empty),#home-requests-status:not(:empty),#home-promotion-status:not(:empty),#home-news-status:not(:empty),#scanner-config-status:not(:empty) { line-height:1.5; overflow-wrap:anywhere; }
.demand-filters { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:14px 0; }
.demand-screen .demand-filters input { min-width:0; min-height:44px; margin:0; padding:10px 12px; border:1px solid #493e34; border-radius:9px; background:#100e0d; color:#f6f3ee; font:inherit; font-size:13px; }
.demand-filters .demand-filter-field:first-child { grid-column:1 / -1; }
.demand-filters button { grid-column:1 / -1; justify-self:start; min-height:40px; padding:6px 2px; border:0; background:transparent; color:#e8bd82; font-size:12px; }
.demand-card .demand-author-link { display:flex; align-items:center; gap:11px; padding:0; border:0; background:transparent; color:inherit; text-align:left; }
.demand-card .demand-meta { color:#d0aa7c; font-size:12px; line-height:1.4; overflow-wrap:anywhere; }
.favorite-button, .detail-actions a { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:9px 12px; border:1px solid #59493a; border-radius:10px; background:#211c18; color:#e8bd82; font:inherit; font-size:12px; text-decoration:none; }
.favorite-button[aria-pressed="true"] { color:#f5d5a8; border-color:#b18a60; background:#3b2d21; }
.favorite-button i { font-size:18px; }
.detail-actions { display:flex; flex-wrap:wrap; gap:8px; padding:18px 0; }
.detail-actions h3 { flex-basis:100%; margin:12px 0 2px; color:#f6f3ee; font-size:15px; }
#public-card-favorite { margin:12px 0; }
#favorites-list { display:grid; gap:10px; }
.favorite-row { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:14px; border:1px solid #40352c; border-radius:12px; background:#171513; }
.favorite-row > div { flex:1 1 150px; min-width:0; }
.favorite-row strong,.favorite-row small { display:block; overflow-wrap:anywhere; }
.favorite-row small { margin-bottom:4px; color:#e8bd82; font-size:11px; }
.favorite-row strong { font-size:13px; line-height:1.4; }
.profile-field-hint { display:block; margin-top:7px; color:#bfb2a5; font-size:12px; line-height:1.4; }
.my-requests-header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.my-requests-header h2 { margin:0; }
.my-requests-header .screen-intro { margin:7px 0 0; }
.my-requests-count { flex:none; padding:7px 10px; border:1px solid #58432e; border-radius:99px; background:#2b221a; color:#e8bd82; font-size:12px; font-weight:600; white-space:nowrap; }
.my-requests-count:empty { display:none; }
#my-demands .my-requests-note { margin:18px 0; color:#bdb0a3; font-size:12px; line-height:1.5; }
#my-demands-status { color:#d4c3b0; font-size:13px; line-height:1.5; }
#my-demands-list { display:grid; gap:12px; }
.my-request-card { padding:16px; border:1px solid #40352c; border-radius:14px; background:#171513; }
.my-request-top { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
#my-demands .my-request-top h3 { min-width:0; margin:0; color:#f6f3ee; font-size:15px; line-height:1.4; overflow-wrap:anywhere; }
.my-request-state { flex:none; padding:5px 8px; border:1px solid #5c4a34; border-radius:8px; color:#edc794; font-size:11px; }
.my-request-state.is-hidden { border-color:#49413a; color:#b7aaa0; }
.my-request-dates { display:grid; gap:5px; margin-top:13px; color:#bfb2a5; font-size:12px; line-height:1.4; }
.my-request-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:15px; padding-top:14px; border-top:1px solid #352c25; }
#my-demands .my-request-actions button { min-height:44px; margin:0; padding:9px 14px; border:1px solid #59493a; background:#211c18; color:#e8bd82; font-size:12px; }
#my-demands-new { width:100%; }
.retry-action, #demand-retry, .home-feed-retry { min-height:44px; }
@media (max-width:340px) {
  .home-screen .home-request-visual { flex-basis:48px; width:48px; height:48px; }
  .demand-card { padding:14px; }
  #member .profile-group { padding:14px; }
  #promotion-list .promotion-copy { padding:10px; }
}
