/* Task ownership and service visit cards use the shared app surfaces. */
#seafix-demo #sf-settings-back[hidden] { display:none!important; }
#seafix-demo .sf-layover-task-body { flex:1; min-width:0; }
#seafix-demo .sf-layover-task-body > label { width:100%; box-sizing:border-box; }
#seafix-demo .sf-layover-task .sf-task-assignee {
  display:inline-flex; align-items:center; gap:6px; max-width:calc(100% - 35px);
  margin:0 0 6px 35px; padding:4px 0; border:0; background:transparent;
  color:var(--sf-muted); font:inherit; font-size:11px; line-height:1.5; text-align:left;
}
#seafix-demo button.sf-task-assignee { cursor:pointer; }
#seafix-demo .sf-task-assignee svg { flex:none; width:13px!important; height:13px!important; }
#seafix-demo .sf-task-assignee span { overflow-wrap:anywhere; }
#seafix-demo button.sf-task-assignee:hover { color:var(--sf-heading); }
#seafix-demo button.sf-task-assignee:focus-visible { outline:2px solid var(--sf-heading); outline-offset:4px; border-radius:4px; }
#seafix-demo .sf-task-create-assignee { display:grid; gap:7px; margin-top:14px; }
#seafix-demo #sf-layover-task-form .sf-task-create-assignee label { margin:0; font-size:12px; font-weight:500; }
#seafix-demo :is(#sf-layover-task-assignee,#sf-collab-task-assignee) { box-sizing:border-box; width:100%; min-width:0; min-height:42px; padding:10px 12px; border:1px solid var(--sf-line); border-radius:10px; background:var(--sf-surface); color:var(--sf-text); font:inherit; font-size:13px; }
#seafix-demo .sf-task-assignee-hint { margin:0; color:var(--sf-muted); font-size:11px; line-height:1.6; }
#seafix-demo #sf-collab-task-assignee-field .sf-task-assignee-hint { margin-top:8px; }
#seafix-demo #sf-service-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
#seafix-demo #sf-service-list > .sf-empty-work { grid-column:1/-1; }
#seafix-demo .sf-service-visit {
  display:flex; flex-direction:column; align-items:stretch; gap:18px; min-width:0;
  padding:22px; border:1px solid var(--sf-line); border-radius:18px;
  background:var(--sf-surface); color:var(--sf-text); text-align:left; font:inherit; cursor:pointer;
  box-shadow:0 3px 12px rgb(0 0 0 / .025); transition:background-color .15s,border-color .15s;
}
#seafix-demo .sf-service-identity { display:flex; align-items:center; gap:12px; min-width:0; }
#seafix-demo .sf-service-monogram { display:grid; place-items:center; width:46px; height:46px; flex:none; border-radius:14px; background:var(--sf-surface-raised); border:1px solid var(--sf-line); color:var(--sf-heading); font-size:14px; font-weight:600; }
#seafix-demo .sf-service-identity-copy { display:block; flex:1; min-width:0; }
#seafix-demo .sf-service-identity-copy small { display:block; margin:0 0 4px; color:var(--sf-muted); font-size:10px; line-height:1.4; }
#seafix-demo .sf-service-identity-copy strong { display:block; color:var(--sf-heading); font-size:15px; line-height:1.45; font-weight:600; overflow-wrap:anywhere; }
#seafix-demo .sf-service-identity > svg { flex:none; width:16px!important; height:16px!important; color:var(--sf-muted); }
#seafix-demo .sf-service-appointment { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:12px 0; border-block:1px solid var(--sf-line); font-size:12px; line-height:1.5; font-variant-numeric:tabular-nums; }
#seafix-demo .sf-service-appointment svg { width:15px!important; height:15px!important; flex:none; color:var(--sf-muted); }
#seafix-demo .sf-service-appointment strong { margin-left:auto; padding:3px 7px; border-radius:6px; background:var(--sf-surface-raised); font-size:12px; font-weight:600; }
#seafix-demo .sf-service-preview { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; min-height:40px; font-size:12px; line-height:1.65; color:var(--sf-muted); white-space:pre-wrap; overflow-wrap:anywhere; }
#seafix-demo .sf-service-visit-footer { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; color:var(--sf-muted); font-size:10px; line-height:1.5; }
#seafix-demo .sf-service-visit-footer > span:first-child { min-width:0; overflow-wrap:anywhere; }
#seafix-demo .sf-service-reminder-mark { display:grid; place-items:center; flex:none; width:25px; height:25px; border:1px solid var(--sf-line); border-radius:8px; }
#seafix-demo .sf-service-reminder-mark svg { width:13px!important; height:13px!important; }
#seafix-demo .sf-service-card { padding:26px; border:1px solid var(--sf-line); border-radius:18px; background:var(--sf-surface); }
#seafix-demo .sf-service-card.is-focused { outline:none; }
#seafix-demo .sf-service-card:focus-visible { outline:2px solid var(--sf-muted); outline-offset:4px; }
#seafix-demo .sf-service-card-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:24px; }
#seafix-demo .sf-service-card-heading .sf-service-identity { flex:1; }
#seafix-demo .sf-service-card-heading .sf-service-identity-copy strong { font-size:20px; }
#seafix-demo .sf-service-card-heading .sf-layover-actions { flex:none; }
#seafix-demo .sf-service-facts { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin:0; padding:20px 0; border-block:1px solid var(--sf-line); }
#seafix-demo .sf-service-facts dt { margin-bottom:8px; color:var(--sf-muted); font-size:11px; }
#seafix-demo .sf-service-facts dd { display:flex; align-items:flex-start; gap:9px; margin:0; font-size:12px; line-height:1.6; }
#seafix-demo .sf-service-facts svg { flex:none; width:16px!important; height:16px!important; margin-top:2px; color:var(--sf-muted); }
#seafix-demo .sf-service-facts time { font:inherit; }
#seafix-demo .sf-service-description { padding:22px 0; }
#seafix-demo .sf-service-description h3 { font-size:12px; font-weight:600; }
#seafix-demo .sf-service-description p { font-size:13px; line-height:1.7; margin:8px 0 0; }
#seafix-demo .sf-service-card-footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; padding-top:16px; border-top:1px solid var(--sf-line); color:var(--sf-muted); font-size:11px; line-height:1.6; }
@media(hover:hover) and (pointer:fine) {
  #seafix-demo .sf-service-visit:hover { border-color:var(--sf-muted); background:var(--sf-surface-raised); }
}
#seafix-demo .sf-service-visit:focus-visible { outline:2px solid var(--sf-heading); outline-offset:3px; }
@media(max-width:1100px) { #seafix-demo #sf-service-list { grid-template-columns:minmax(0,1fr); } }
@media(max-width:600px) {
  #seafix-demo .sf-service-visit, #seafix-demo .sf-service-card { padding:18px; }
  #seafix-demo .sf-service-facts { grid-template-columns:minmax(0,1fr); gap:16px; }
  #seafix-demo .sf-service-card-heading { align-items:flex-start; gap:8px; }
  #seafix-demo .sf-service-card-heading .sf-service-identity { align-items:flex-start; gap:9px; }
  #seafix-demo .sf-service-card-heading .sf-service-identity-copy strong { font-size:16px; }
  #seafix-demo .sf-service-card-heading .sf-service-monogram { width:36px; height:36px; border-radius:11px; font-size:11px; }
  #seafix-demo .sf-service-card-heading .sf-layover-actions { flex-direction:column; }
}
@media(max-width:999px) {
  /* Keep its measured space so restoring the dock cannot move a pressed button. */
  #seafix-demo.sf-keyboard-open .sf-bottom-nav { visibility:hidden; pointer-events:none; }
}
@media(prefers-reduced-motion:reduce) { #seafix-demo .sf-service-visit { transition:none; } }
