/* Uses the existing Workly colour system; no framework or external scripts. */
.service-page { overflow-wrap: anywhere; }
.service-page [hidden] { display: none !important; }
.service-page fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.service-tabs { display: flex; padding: 4px; gap: 4px; border-radius: 14px; background: var(--blue-soft, #eaf2ff); margin-bottom: 14px; }
.service-tabs button { flex: 1; border: 0; background: white; color: var(--blue-dark, #176ce8); border-radius: 10px; min-height: 42px; font-weight: 700; cursor: pointer; }
.service-tabs .active { background: var(--blue, #2b7fff); color: white; }
.app-header .service-tabs { margin: 12px 0 0; }
.service-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.service-tools .btn { padding: 10px 13px; font-size: 13px; min-height: 44px; }
.service-page .card { margin-bottom: 12px; }
.service-pre { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.service-cover img { width: 100%; max-height: 230px; object-fit: cover; border-radius: 12px; }
.service-gallery { display: flex; overflow-x: auto; gap: 10px; scroll-snap-type: x mandatory; }
.service-gallery img { width: min(78vw, 300px); height: 230px; flex: none; object-fit: contain; background: white; border-radius: 12px; scroll-snap-align: start; }
.service-photo-edit { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 10px 0; }
.service-photo-edit img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.service-photo-edit .btn { width: 100%; font-size: 12px; }
.service-messages { max-height: 55dvh; min-height: 160px; overflow-y: auto; overscroll-behavior: contain; padding: 10px 3px; }
.service-message { max-width: 94%; padding: 12px; border-radius: 14px; background: white; border: 1px solid var(--border, #e5e9f0); margin: 0 0 10px; }
.service-message.mine { margin-left: auto; background: var(--blue-soft, #eaf2ff); }
.service-message.system { background: transparent; border-style: dashed; font-size: 12px; max-width: 100%; }
.service-message p { margin: 7px 0; }
.service-message small { font-size: 10px; color: var(--muted, #687385); }
#serviceReviewForm textarea { width: 100%; min-height: 80px; border: 1px solid var(--border, #e5e9f0); border-radius: 10px; padding: 10px; margin: 8px 0; }
.service-rating { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 !important; }
.service-rating label { flex: 1; min-width: 46px; cursor: pointer; }
.service-rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.service-rating span { display: block; border: 2px solid var(--border, #e5e9f0); padding: 12px 4px; text-align: center; border-radius: 10px; }
.service-rating input:checked + span { border-color: var(--blue, #2b7fff); background: var(--blue-soft, #eaf2ff); }
.service-rating input:focus-visible + span { outline: 2px solid var(--blue-dark, #176ce8); outline-offset: 2px; }
/* A small conversation action, without a separate agreement workflow. */
.conversation-result { margin: 12px 0; padding: 14px 16px; border: 1px solid #e3e9f2; border-radius: 16px; background: #fff; }
.conversation-result p { margin: 0; color: #4d6180; font-size: 14px; line-height: 1.5; }
.conversation-result .service-tools { margin-top: 10px; }
.conversation-result .btn { min-height: 42px; padding: 10px 14px; font-size: 14px; }

#serviceMessageForm textarea { box-sizing: border-box; width: 0; height: 48px; min-height: 48px; margin: 0; line-height: 22px; }
#serviceMessageForm > .btn { flex: none; height: 48px; margin: 0; }

#serviceConversationActions { margin-left: auto; flex: none; }
.conversation-actions { position: relative; }
.conversation-actions summary { list-style: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; cursor: pointer; color: #526a8c; }
.conversation-actions summary::-webkit-details-marker { display: none; }
.conversation-actions summary:hover, .conversation-actions[open] summary { background: #f2f4f7; }
.conversation-actions summary:focus-visible { outline: 2px solid #1265ee; outline-offset: 2px; }
.conversation-actions summary svg { width: 22px; height: 22px; fill: currentColor; }
.conversation-actions-menu { position: absolute; right: 0; top: 46px; z-index: 10; padding: 6px; background: white; border: 1px solid #e3e9f2; border-radius: 14px; box-shadow: 0 6px 20px #10244714; }
.conversation-actions-menu .btn { white-space: nowrap; background: white; color: #18345c; }
