/* Published request: one readable sheet on phone, tablet, and desktop. */
.request-detail-sheet {
  --detail-ink: #202430;
  --detail-muted: #707787;
  max-height: calc(100% - max(12px, env(safe-area-inset-top)));
  height: 91%;
  min-height: 0;
  padding: 10px 18px max(18px, env(safe-area-inset-bottom));
  color: var(--detail-ink);
}
.request-detail-sheet .sheet-handle { flex: 0 0 auto; margin-bottom: 9px; }
.request-detail-toolbar { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; padding-bottom: 12px; }
.request-detail-toolbar .cat-badge { min-width: 0; line-height: 1.35; gap: 6px; }
.request-detail-toolbar .cat-badge svg { flex-shrink: 0; }
.request-detail-controls { display: flex; gap: 6px; margin-left: auto; }
.request-detail-icon { width: 42px; height: 42px; border: 1px solid #ebe9f5; background: #f7f6fc; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; cursor: pointer; }
.request-detail-icon:disabled { opacity: .38; cursor: default; }
.request-detail-icon:focus-visible, .request-detail-forecast summary:focus-visible { outline: 3px solid rgba(108, 77, 240, .45); outline-offset: 3px; }
.request-detail-scroll { min-height: 0; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: 4px; }
.request-detail-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.request-detail-meta .urg-chip { line-height: 1.3; white-space: normal; }
.request-detail-age { color: var(--detail-muted); font-size: 11px; text-align: right; }
.request-detail-author { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.request-detail-author-body { flex: 1; min-width: 0; }
.request-detail-author-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; font-weight: 730; }
.request-detail-rating { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--detail-muted); font-weight: 600; }
.request-detail-mine { padding: 2px 7px; border-radius: 6px; color: var(--violet); background: #f1edff; font-size: 10px; font-weight: 750; }
.request-detail-location { display: flex; align-items: flex-start; gap: 4px; font-size: 12px; line-height: 1.4; color: var(--detail-muted); margin-top: 4px; }
.request-detail-location svg { flex-shrink: 0; margin-top: 1px; }
.request-detail-sheet .sheet-title { font-size: clamp(24px, 5.8vw, 31px); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; margin-bottom: 16px; overflow-wrap: anywhere; }
.request-detail-sheet .player-card { border-radius: 18px; padding: 12px 13px; }
/* VoicePlayer is flex(button, waveform, time). The waveform's 42 minimum-width
   bars used to force the time label beyond a 320px sheet. Let every bar scale. */
.request-detail-sheet .player-card > div { width: 100%; min-width: 0; }
.request-detail-sheet .player-card > div > div { min-width: 0; }
.request-detail-sheet .player-card > div > span { flex: 0 0 auto; white-space: nowrap; }
.request-detail-sheet .player-card > div > div > div { min-width: 0; gap: clamp(1px, .45vw, 2.5px) !important; }
.request-detail-sheet .player-card > div > div > div > div { min-width: 0 !important; }
.request-detail-voice-caption { display: flex; align-items: flex-start; gap: 5px; font-size: 11px; line-height: 1.4; color: var(--detail-muted); margin-top: 8px; }
.request-detail-voice-caption svg { flex-shrink: 0; margin-top: 1px; }
.request-detail-sheet .sheet-desc { font-size: 15px; line-height: 1.55; margin: 16px 0; overflow-wrap: anywhere; white-space: pre-line; }
.request-detail-sheet .request-detail-empty { color: var(--detail-muted); font-size: 13px; }
.request-detail-facts { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 8px; margin-bottom: 16px; }
.request-detail-fact { background: #f5f5f9; border-radius: 16px; padding: 13px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.request-detail-fact-label { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--detail-muted); }
.request-detail-fact-label svg { flex-shrink: 0; }
.request-detail-fact > b { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.request-detail-price { background: #f4f0ff; border: 1px solid #e5dcff; }
.request-detail-price > b { font-size: 24px; line-height: 1.15; font-weight: 820; letter-spacing: -.025em; }
.request-detail-price > b > span { color: var(--violet); font-size: 18px; }
.request-detail-responses { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.request-detail-response-icon { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 13px; background: #f1edff; }
.request-detail-responses b { font-size: 14px; }
.request-detail-responses div > span { display: block; margin-top: 3px; font-size: 12px; line-height: 1.4; color: var(--detail-muted); }
.request-detail-forecast { border: 1px solid #e8e4f3; background: #faf9fd; border-radius: 16px; padding: 14px; margin: 0 0 18px; }
.request-detail-forecast summary { display: flex; gap: 9px; align-items: flex-start; list-style: none; cursor: pointer; }
.request-detail-forecast summary::-webkit-details-marker { display: none; }
.request-detail-forecast summary > svg { flex-shrink: 0; margin-top: 1px; }
.request-detail-forecast summary > span:not(.request-detail-info) { flex: 1; min-width: 0; }
.request-detail-forecast summary b { display: block; font-size: 12.5px; line-height: 1.3; }
.request-detail-forecast summary small { display: block; color: var(--detail-muted); font-size: 11.5px; line-height: 1.45; margin-top: 5px; }
.request-detail-info { border: 1.4px solid #9298a7; color: #717787; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 750; flex-shrink: 0; }
.request-detail-forecast p { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: var(--detail-muted); }
.request-detail-footer { padding-top: 14px; border-top: 1px solid var(--line); }
.request-detail-footer .sheet-actions > div { width: 100%; min-width: 0; }
.request-detail-footer .owner-banner { align-items: flex-start; }
.request-detail-footer .fee-scale { margin-bottom: 2px; }
.request-detail-footer .fee-scale > div:first-child { flex-wrap: wrap; gap: 4px 10px; }
.request-detail-footer .fee-scale > div:first-child > span { min-width: 0; }
.request-detail-footer .fee-row, .request-detail-footer .fee-track, .request-detail-footer .fee-labels { min-width: 0; }
.request-detail-footer .fee-track, .request-detail-footer .fee-labels { margin-left: 4px; margin-right: 4px; }
.request-detail-footer .fee-seg, .request-detail-footer .fee-labels > span { min-width: 0; flex-shrink: 1; }
.request-detail-footer .fee-labels > span { overflow-wrap: anywhere; line-height: 1.3; }
.request-detail-footer .fee-marker::after { inset: -3px; animation: detail-fee-pulse 2s ease-out infinite; }
.request-detail-footer .fee-row-head { gap: 8px; align-items: flex-start; }
.request-detail-footer .fee-row-label { min-width: 0; }
.request-detail-footer .fee-row-head > b { flex-shrink: 0; }
.request-detail-footer .fee-next { align-items: flex-start; }
.request-detail-footer .fee-next > svg { flex-shrink: 0; margin-top: 2px; }
.request-detail-footer .fee-next > span { min-width: 0; }
.request-detail-footer .sheet-actions .b-main { max-width: 100%; flex-wrap: wrap; justify-content: center; white-space: normal; }
.request-detail-footer .sheet-actions > .btn-2line, .request-detail-footer .sheet-actions > .response-status-btn { height: auto; min-height: 64px; padding-top: 12px; padding-bottom: 12px; }
.request-detail-footer .sheet-actions small { max-width: 100%; white-space: normal; line-height: 1.3; }
@keyframes detail-fee-pulse { from { transform: scale(.5); opacity: .6; } to { transform: scale(1); opacity: 0; } }
.request-detail-share-status { margin-bottom: 13px; padding: 10px 12px; border-radius: 12px; background: #eee9ff; color: #5536b2; font-size: 12px; line-height: 1.45; }
.request-share-overlay { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: rgba(20, 22, 34, .52); padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom)); }
.request-share-dialog { width: min(100%, 440px); box-sizing: border-box; border-radius: 24px; background: #fff; color: #202430; padding: 24px; font-family: inherit; box-shadow: 0 18px 80px rgba(20, 22, 34, .22); }
.request-share-dialog h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.02em; }
.request-share-dialog p { font-size: 14px; line-height: 1.5; color: #707787; margin: 0 0 18px; }
.request-share-dialog input { width: 100%; min-height: 48px; padding: 10px; box-sizing: border-box; border: 1px solid #c4b9ef; background: #faf9fd; border-radius: 12px; color: #483294; font-size: 16px; font-family: inherit; }
.request-share-dialog button { width: 100%; min-height: 48px; padding: 10px; border: 0; border-radius: 12px; background: #6c4df0; color: #fff; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; margin-top: 14px; }
.request-share-dialog :focus-visible { outline: 3px solid #a995ef; outline-offset: 3px; }
@media (min-width: 768px) {
  .request-detail-sheet { width: min(100%, 560px); }
  .request-detail-scroll { padding-right: 4px; }
}
@media (max-width: 359px) {
  .request-detail-sheet { padding-left: 13px; padding-right: 13px; }
  .request-detail-toolbar { gap: 6px; }
  .request-detail-toolbar .cat-badge { font-size: 11px; }
  .request-detail-controls { gap: 4px; }
  .request-detail-icon { width: 38px; height: 40px; }
  .request-detail-sheet .sheet-actions-dual { grid-template-columns: 1fr; gap: 16px; }
  .request-detail-sheet .sheet-actions-dual .b-main { flex-wrap: wrap; font-size: 12px; gap: 4px; }
  .request-detail-fact { padding: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .request-detail-sheet { animation: none; }
}
