/* Cake request history and owner queue. Kept scoped so the builder can use
   its own playful treatment while the queue stays practical and calm. */
.cake-requests-header { align-items: center; }
.cake-requests-header .btn { flex-shrink: 0; }
.cake-request-metrics { margin-bottom: 1.1rem; }
.cake-request-metrics .metric { border-top: 3px solid #b8788a; }
.cake-request-metrics .metric:nth-child(2) { border-top-color: #d79858; }
.cake-request-metrics .metric:nth-child(3) { border-top-color: #7e9a83; }
.cake-queue-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: .8rem 1rem; margin-bottom: 1.1rem; }
.cake-queue-toolbar label { min-width: 170px; }
.cake-queue-toolbar .cake-search-field { flex: 1 1 280px; }
.cake-request-list { display: grid; gap: 1.1rem; }
.cake-request-card { display: grid; gap: 1.1rem; }
.cake-request-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.cake-request-chip-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.cake-request-meta { display: flex; gap: .35rem .75rem; flex-wrap: wrap; color: var(--muted); font-size: .78rem; margin-top: .45rem; }
.cake-request-meta span + span::before { content: '·'; margin-right: .75rem; color: #b9a9aa; }
.cake-request-customer { margin-top: .55rem; font-size: .9rem; }
.cake-request-customer a { color: var(--primary-dark); overflow-wrap: anywhere; }
.cake-request-price { color: var(--primary-dark); font-size: 1.25rem; white-space: nowrap; }
.cake-request-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(180px, .6fr); gap: 1rem; align-items: start; }
.cake-design-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1.15rem; margin: 0; }
.cake-design-list > div { min-width: 0; border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
.cake-design-list dt { color: var(--muted); font-size: .76rem; }
.cake-design-list dd { margin: .2rem 0 0; font-weight: 650; overflow-wrap: anywhere; }
.cake-request-notes { margin-top: .9rem; border-left: 3px solid #d79858; padding-left: .7rem; white-space: pre-wrap; }
.cake-request-photo { margin: 0; min-width: 0; border-radius: 10px; overflow: hidden; background: #f4ece8; border: 1px solid var(--line); }
.cake-request-photo-details { padding: 0; min-width: 0; }
.cake-request-photo-details > summary { padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: #fbf5f1; font-size: .82rem; }
.cake-request-photo-details[open] > summary { border-radius: 8px 8px 0 0; }
.cake-request-photo-details[open] .cake-request-photo { border-radius: 0 0 10px 10px; border-top: 0; }
.cake-request-photo a { display: block; }
.cake-request-photo img { width: 100%; max-height: 260px; object-fit: cover; }
.cake-request-photo figcaption { padding: .45rem .65rem; color: var(--muted); font-size: .75rem; }
.cake-request-photo-empty { min-height: 145px; padding: 1rem; display: grid; place-items: center; align-content: center; gap: .25rem; text-align: center; color: var(--muted); }
.cake-request-photo-empty span { color: var(--accent); font-size: 1.35rem; }
.cake-request-photo-empty p { font-size: .8rem; }
.cake-request-forms { display: grid; gap: .95rem; }
.cake-quote-form { display: grid; gap: .8rem; background: #fbf5f1; border: 1px solid var(--line); border-radius: 10px; padding: 1rem; }
.cake-quote-form .eyebrow { margin-bottom: .25rem; }
.cake-quote-form h3 { margin: 0; }
.cake-quote-form .form-grid { align-items: start; }
.cake-status-form { display: flex; align-items: end; gap: .65rem; flex-wrap: wrap; }
.cake-status-form label { flex: 1 1 200px; }
.cake-status-form .form-status { flex: 1 1 130px; }
.cake-form-note { color: var(--muted); font-size: .76rem; }
.cake-quote-message { margin-top: .9rem; padding: .75rem .85rem; background: #f8f0dc; color: #634421; border-radius: 8px; }
.cake-quote-message p { margin-top: .25rem; white-space: pre-wrap; }
.cake-request-actions { border-top: 1px solid var(--line); padding-top: .95rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.cake-request-actions p { font-size: .84rem; }
.cake-pickup-note { margin: 0; }
.cake-filter-empty { margin-top: 1rem; }
.cake-empty, .cake-access-card, .cake-requests-error { display: grid; gap: .7rem; max-width: 760px; }
.cake-empty .btn, .cake-access-card .btn, .cake-requests-error .btn { justify-self: start; }
.cake-access-card .actions { margin-top: .25rem; }
.badge-warning { background: #fcf0d9; color: #754914; }
.badge-danger { background: #f7dfe5; color: #8b293d; }
.badge-neutral { background: #ece7e8; color: #5d4d58; }
@media (max-width: 700px) {
  .cake-request-grid { grid-template-columns: 1fr; }
  .cake-request-photo { max-width: 430px; }
  .cake-design-list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cake-request-head { display: grid; }
  .cake-request-price { justify-self: start; }
  .cake-status-form { display: grid; align-items: stretch; }
  .cake-status-form label, .cake-status-form .form-status { width: 100%; }
}
