/* Presentation only. Portal R29 and Mi Espacio's existing layout retain geometry. */
.service-history-list { display:grid; gap:12px; }
.service-history-row,.history-view summary.service-row { display:grid; grid-template-columns:72px minmax(0,1fr) 16px; align-items:center; gap:12px; width:100%; min-width:0; padding:12px; border:1px solid var(--line,#e4dce0); border-radius:20px; background:#fff; color:inherit; text-align:left; text-decoration:none; box-sizing:border-box; }
.service-history-thumb,.history-view summary .service-thumb { width:72px; height:72px; object-fit:cover; border-radius:14px; background:#f8f2f3; }
.service-history-copy { display:grid; gap:8px; min-width:0; overflow-wrap:anywhere; }
.service-history-copy strong { font-size:15px; line-height:1.4; }
.service-history-copy small { color:var(--muted,#777); font-size:12px; line-height:1.5; }
.history-title-row { display:flex; flex-wrap:wrap; align-items:flex-start; gap:12px 20px; margin-bottom:14px; }
.history-title-row h1 { margin:0; }
.history-count { display:inline-flex; align-items:center; margin:0; padding:8px 12px; line-height:1.4; }
.service-history-card { margin:0 0 14px; border:1px solid var(--line,#e4dce0); border-radius:20px; background:#fff; overflow:hidden; }
.history-view summary.service-row { border:0; margin:0; list-style:none; cursor:pointer; }
.history-view summary.service-row::-webkit-details-marker { display:none; }
.history-view summary.service-row::marker { content:''; }
.service-history-card[open] summary.service-row { border-bottom:1px solid var(--line,#e4dce0); border-radius:0; }
.service-history-card[open] summary .history-chevron { transform:rotate(90deg); }
.service-history-content { padding:14px; }
.service-photo-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; }
.service-photo-grid figure { margin:0; min-width:0; }
.service-photo-grid img,.evidence-surface .c086-gallery-image { width:100%; max-height:65vh; object-fit:contain; border-radius:14px; }
.service-photo-grid figcaption { padding:8px 0; color:var(--muted,#777); font-size:13px; }
.service-photo-previews { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:12px; }
.service-photo-previews article { display:grid; gap:8px; min-width:0; padding:8px; border:1px solid var(--line,#e4dce0); border-radius:14px; }
.service-photo-previews button { min-height:44px; padding:8px; white-space:normal; }
.service-photo-previews img { display:block; width:100%; height:100px; object-fit:cover; border-radius:10px; }
.service-photo-previews small { overflow-wrap:anywhere; }
.service-photo-previews[hidden],.service-photo-grid img[hidden],.service-photo-grid button[hidden],.service-photo-grid p[hidden] { display:none; }
.service-photo-select { display:flex; flex-wrap:wrap; gap:8px; margin-block:12px; }
.service-photo-select button { min-height:44px; min-width:44px; }
.service-photo-select button[aria-pressed="true"] { outline:2px solid var(--gold,#a88726); outline-offset:2px; }
@media(min-width:900px){.service-photo-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.service-history-row,.history-view summary.service-row { grid-template-columns:88px minmax(0,1fr) 20px; padding:16px; }.service-history-thumb,.history-view summary .service-thumb { width:88px; height:88px; }}
