body.account-pending .app-shell, body.account-pending .mobile-nav { visibility: hidden; }
.social-dialog { width: min(920px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); }
.social-dialog .dialog-body { overflow: auto; }
.social-dialog .dialog-header { position: sticky; top: 0; background: white; z-index: 2; }
.social-dialog .dialog-header h2 { font-size: 22px; overflow-wrap: anywhere; }
.social-form { display: grid; gap: 18px; }
.social-form input, .social-form select, .social-form textarea { max-width: 100%; min-width: 0; }
.social-form textarea { min-height: 72px; }
.social-toolbar, .social-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.social-actions button { min-height: 40px; }
.social-row { padding: 20px 0; border-bottom: 1px solid #d8deda; }
.social-row h3 { font-size: 18px; margin: 0 0 8px; }
.social-row p { margin: 8px 0; overflow-wrap: anywhere; }
.social-row small, .collection-author { color: #576760; }
.social-row a { display: block; margin-top: 8px; }
.social-error, .sync-error { color: #a52a24 !important; }
.public-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,240px),1fr)); gap: 20px; }
.collection-tile { min-width: 0; padding: 14px; border: 1px solid #d8deda; border-radius: 6px; }
.collection-tile img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #f0f3f1; border-radius: 4px; }
.collection-cover { display: block; width: 100%; aspect-ratio: 3/1; object-fit: cover; margin-bottom: 18px; }
.collection-tile h3 { font-size: 19px; margin: 14px 0 8px; overflow-wrap: anywhere; }
.collection-tile p { overflow-wrap: anywhere; white-space: pre-wrap; }
.collection-choice { border: 0; border-bottom: 1px solid #d8deda; padding: 20px 0; display: grid; gap: 12px; min-width: 0; }
.collection-choice legend { font-weight: 650; overflow-wrap: anywhere; }
.collection-choice input[type=checkbox], .check-line input { width: 18px; height: 18px; accent-color: #237355; vertical-align: middle; margin-right: 8px; }
.check-line { display: flex; align-items: start; gap: 8px; }
.check-line input { flex-shrink: 0; }
.personal-price { color: #187344; }
.item-card { position: relative; }
.item-selection { position: absolute; right: 10px; top: 10px; z-index: 1; padding: 4px; background: white; border-radius: 4px; display: flex; }
.item-selection input { width: 18px; height: 18px; accent-color: #237355; margin: 0; }
.selection-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.selection-bar[hidden] { display: none; }
.borrowed-placeholder { aspect-ratio: 16/10; display: grid; place-content: center; justify-items: center; gap: 12px; background: #eaf0ee; }
.item-view-tabs { position: sticky; top: 0; z-index: 2; background: white; margin: 18px 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.item-view-tabs button { min-width: 0; padding: 10px 4px; font-size: 14px; }
.item-view-tabs button { flex: 1; }
.item-price-summary { margin: 20px 0; }
.item-price-summary strong { font-size: 28px; overflow-wrap: anywhere; }
.identity-form { margin: 20px 0; }
.recognition-details { margin-top: 16px; }
.recognition-details summary, .social-row summary { cursor: pointer; padding: 12px 0; }
.social-dialog [hidden], .drawer-body [hidden] { display: none !important; }
#syncStatus { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
#syncStatus.sync-error { position: fixed; bottom: 12px; left: 12px; right: 12px; padding: 12px; background: #fff4f2; border: 1px solid #bd665e; z-index: 100; }
.sidebar { overflow-y: auto; }
.drawer-panel { width: min(620px, 100vw); }
.valuation-rate, .condition-metric small, .valuation-listing small { font-size: 12px; }
@media(max-width:640px) {
  .social-dialog { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .social-dialog .dialog-shell { min-height: 100%; }
  .social-dialog .dialog-body { padding: 18px; }
  .social-actions button { flex: 1 1 auto; }
  .public-grid { grid-template-columns: 1fr; }
  #syncStatus.sync-error { bottom: 70px; }
  .drawer-info-grid { grid-template-columns: 1fr 1fr; }
  .item-social-actions { gap: 8px; }
}
