/* Compact utility surfaces share the discovery ink and flat palette. */
.crab-h5 .tool-page .mobile-header { min-height:52px; margin-bottom:20px; padding-bottom:0; }
.crab-h5 .tool-page .mobile-header :is(.back-button,.small-icon) { min-width:44px; min-height:44px; flex-shrink:0; }
.crab-h5 .tool-page .mobile-header h3 { max-width:calc(100% - 94px); font-size:17px; overflow-wrap:anywhere; }
.crab-h5 .tool-page :is(a,button,input,textarea):focus-visible { outline:3px solid #2865a0; outline-offset:4px; }
/* The inbox mascot owns the motion; reading rows stay inside the viewport. */
.crab-h5 [data-scene-route="messages"] .message-thread { animation:none; }

/* Help & services: the avatar palette becomes a layered, continuous header. */
.crab-h5 .tool-service-center > .mobile-scroll { padding-top: 0; }
.crab-h5 .tool-work-head { --work-gradient-top: #F8F3E7; --work-gradient-bottom: #E7F2F9; position: relative; isolation: isolate; margin: 0 -18px; padding: calc(14px + var(--h5-safe-top)) 18px 34px; background-color: var(--work-gradient-top); background-image: linear-gradient(180deg,var(--work-gradient-top),var(--work-gradient-bottom)); }
.crab-h5 .tool-service .tool-work-head .mobile-header { position: relative; z-index: 2; justify-content: space-between; min-height: 44px; margin: 0 0 6px; padding: 0; }
.crab-h5 .tool-work-head .crab-header-dot { display: none; }
.crab-h5 .tool-work-intro { display: grid; grid-template-columns: minmax(0,1fr) 166px; align-items: center; gap: 0; min-height: 166px; padding: 0 2px; }
.crab-h5 .tool-work-intro > div { position: relative; z-index: 1; min-width: 0; }
.crab-h5 .tool-work-intro h1 { margin: 0; color: var(--ink); font: 900 34px/1.25 var(--sans); letter-spacing: -.8px; overflow-wrap: anywhere; text-wrap: balance; }
.crab-h5 .tool-work-head .tool-work-description { max-width: 195px; margin: 12px 0 0; color: #5C6670; font: 400 13px/1.8 var(--sans); overflow-wrap: anywhere; }
.crab-h5 .tool-request-art { position: relative; display: block; width: 166px; height: 166px; align-self: center; pointer-events: none; }
.crab-h5 .tool-request-art::before { content: ''; position: absolute; z-index: 1; width: 148px; height: 132px; left: 13px; bottom: 10px; border-radius: 55% 45% 42% 58% / 49% 44% 56% 51%; background: linear-gradient(140deg,#B5DDF8,#79B9E9); box-shadow: inset 0 1px 0 #FFFFFF70; transform: rotate(-7deg); }
.crab-h5 .tool-request-art::after { content: ''; position: absolute; width: 66px; height: 66px; right: 5px; top: 10px; border-radius: 50%; background: linear-gradient(145deg,#FFE8A3,#FFD05B); }
.crab-h5 .tool-request-art img { position: absolute; z-index: 2; right: -6px; bottom: 9px; display: block; width: 176px; height: 136px; object-fit: contain; }
.crab-h5 .tool-work-head:lang(ms) .tool-work-copy { display: contents; }
.crab-h5 .tool-work-head:lang(ms) .tool-work-intro h1 { grid-column: 1 / -1; }
.crab-h5 .tool-work-head:lang(ms) .tool-work-description { grid-column: 1; margin-top: 0; }
.crab-h5 .tool-work-head:lang(ms) .tool-request-art { grid-column: 2; height: 142px; }
.crab-h5 .tool-work-edge { position: absolute; inset: auto 0 -1px; width: 100%; height: 28px; pointer-events: none; }
.crab-h5 .tool-service .tool-work-summary { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin: -10px 0 20px; padding: 17px 6px; border: 1px solid #C8D1D0; border-radius: 20px; background: #FFFCF5; box-shadow: 0 5px 16px #36515E0A; }
.crab-h5 .tool-service .tool-work-summary > div { display: flex; flex-direction: column-reverse; gap: 5px; min-width: 0; padding: 0 7px; text-align: center; }
.crab-h5 .tool-service .tool-work-summary > div + div { border-left: 1px solid #DEE3DE; }
.crab-h5 .tool-service .tool-work-summary dt { color: #5C6670; font: 500 12px/1.6 var(--sans); overflow-wrap: anywhere; }
.crab-h5 .tool-service .tool-work-summary dd { margin: 0; color: #273C49; font: 800 27px/1.25 var(--sans); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.crab-h5 .tool-service .tool-work-center { margin: 25px 0 0; }
.crab-h5 .tool-service .tool-work-summary + .tool-work-center { margin-top: 0; }
.crab-h5 .tool-service .work-list { display: grid; gap: 0; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.crab-h5 .tool-service .work-list:has(.work-record) { border: 1px solid #CCD4D0; border-radius: 20px; background: #FFFCF7; overflow: hidden; }
.crab-h5 .tool-service .work-record { min-width: 0; margin: 0; padding: 18px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }
.crab-h5 .tool-service .work-record:last-child { border-bottom: 0; }
.crab-h5 .tool-service .work-record::before { content: none; }
.crab-h5 .tool-service .work-record:active { background: #FFF9EF; }
.crab-h5 .tool-service .work-record:focus-visible { outline-offset: -4px; }
.crab-h5 .tool-service .work-record > div { flex-wrap: wrap; align-items: start; gap: 8px; font-size: 13px; line-height: 1.6; }
.crab-h5 .tool-service .work-record > div > span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.crab-h5 .tool-service .work-record h2 { margin: 13px 0 9px; font: 800 18px/1.55 var(--sans); overflow-wrap: anywhere; text-wrap: balance; }
.crab-h5 .tool-service .work-record p { margin: 0; color: var(--ink-2); font: 400 13px/1.7 var(--sans); overflow-wrap: anywhere; }
.crab-h5 .tool-service .work-record-link { display: flex; justify-content: end; align-items: center; min-height: 44px; margin-top: 7px; color: var(--ink); font: 700 14px/1.6 var(--sans); text-decoration: none; overflow-wrap: anywhere; }
.crab-h5 .tool-service .work-status { max-width: 100%; padding: 5px 10px; border: 1px solid #201c2228; border-radius: 99px; font-size: 12px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.crab-h5 .tool-service .tool-work-empty { display: flex; flex-direction: column; align-items: center; min-height: 0; padding: 28px 8px 40px; border: 0; border-radius: 0; background: transparent; color: var(--ink); }
.crab-h5 .tool-service .tool-work-empty strong { margin: 0; color: var(--ink); font: 700 21px/1.5 var(--sans); letter-spacing: -.4px; overflow-wrap: anywhere; }
.crab-h5 .tool-service .tool-work-empty > a { display: inline-flex; align-items: center; justify-content: center; gap: 14px; max-width: 100%; min-width: 166px; min-height: 50px; margin-top: 22px; padding: 12px 20px; border: var(--comic-line); border-radius: 16px; background: var(--coral); color: var(--ink); box-shadow: var(--crab-small-shadow); font: 700 15px/1.5 var(--sans); text-decoration: none; overflow-wrap: anywhere; }
.crab-h5 .tool-service .tool-work-empty > a span { min-width: 0; }
.crab-h5 .tool-service .tool-work-empty > a svg { width: 20px; height: 20px; flex: none; }
.crab-h5 .tool-service .tool-work-empty > a:active { box-shadow: 1px 1px 0 var(--ink); transform: translate(1px,2px); }
.crab-h5 .tool-service .tool-work-center > .social-text-button { margin: 0 0 15px; }

/* A single quiet sheet keeps real participants, progress and forms readable. */
.crab-h5 .tool-service .tool-work-sheet { position: relative; min-width: 0; margin: 3px 0 0; padding: 20px 18px 24px; border: 1px solid #201c2240; border-radius: 22px; background: var(--surface); box-shadow: none; }
.crab-h5 .tool-service .tool-work-sheet > .social-back { display: flex; align-items: center; min-height: 44px; margin: -6px 0 18px; padding: 4px 0 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); font: 600 14px/1.5 var(--sans); text-decoration: none; overflow-wrap: anywhere; }
.crab-h5 .tool-service .work-detail-heading { margin-top: 0; color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.crab-h5 .tool-service .tool-work-sheet h1 { margin: 16px 0 13px; color: var(--ink); font: 900 24px/1.45 var(--sans); letter-spacing: -.4px; overflow-wrap: anywhere; text-wrap: balance; }
.crab-h5 .tool-service .tool-work-sheet > .work-intro { margin: 0 0 22px; color: var(--ink-2); font: 400 15px/1.8 var(--sans); }
.crab-h5 .tool-service .work-parties { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 22px 0; padding: 16px 0; border-block: 1px solid var(--line); }
.crab-h5 .tool-service .work-parties > div { min-width: 0; }
.crab-h5 .tool-service .work-parties small { display: block; margin-bottom: 4px; color: var(--ink-2); font: 400 13px/1.6 var(--sans); }
.crab-h5 .tool-service .work-parties a { display: flex; align-items: center; min-height: 44px; color: var(--ink); font: 700 15px/1.6 var(--sans); overflow-wrap: anywhere; }
.crab-h5 .tool-service .work-budget { margin: 20px 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.crab-h5 .tool-service .work-budget strong { display: block; margin-top: 7px; color: var(--ink); font: 800 24px/1.45 var(--sans); overflow-wrap: anywhere; }
.crab-h5 .tool-service .work-request-note { margin: 22px 0; padding: 16px; border: 0; border-left: 3px solid var(--blue); border-radius: 0 12px 12px 0; background: #F0F7FC; }
.crab-h5 .tool-service .work-request-note small { margin: 0 0 6px; color: var(--ink-2); font: 400 13px/1.6 var(--sans); }
.crab-h5 .tool-service .work-request-note p { margin: 0; color: var(--ink); font: 400 15px/1.8 var(--sans); }
.crab-h5 .tool-service :is(.work-primary,.work-secondary) { max-width: 100%; min-height: 50px; padding: 12px 16px; border: var(--comic-line); border-radius: 14px; color: var(--ink); font: 700 15px/1.6 var(--sans); white-space: normal; overflow-wrap: anywhere; }
.crab-h5 .tool-service .work-primary { background: var(--coral); box-shadow: var(--crab-small-shadow); }
.crab-h5 .tool-service .work-secondary { border-color: #201c2260; background: #FFF9EF; box-shadow: none; }
.crab-h5 .tool-service .work-contact { margin: 20px 0 10px; }
.crab-h5 .tool-service .work-contact .work-primary { background: var(--blue-soft); box-shadow: none; }
.crab-h5 .tool-service .social-text-button { display: flex; align-items: center; min-height: 44px; margin: 8px 0; color: var(--ink); font: 600 14px/1.6 var(--sans); text-underline-offset: 4px; overflow-wrap: anywhere; }
.crab-h5 .tool-service .work-next { flex-direction: column; gap: 12px; margin: 24px 0; padding: 22px 0; border-block: 1px solid var(--line); }
.crab-h5 .tool-service .work-next > :is(button,a) { flex: none; width: 100%; }
.crab-h5 .tool-service :is(.work-next h2,.work-timeline-title) { margin: 0 0 7px; color: var(--ink); font: 800 18px/1.5 var(--sans); }
.crab-h5 .tool-service .work-timeline { margin: 19px 0 22px 6px; border-left: 1.6px solid #201c2240; }
.crab-h5 .tool-service .work-timeline li { padding: 0 0 25px 12px; }
.crab-h5 .tool-service .work-timeline li::before { top: 6px; left: -20px; width: 10px; height: 10px; background: var(--blue); box-shadow: none; }
.crab-h5 .tool-service .work-timeline li:last-child { padding-bottom: 2px; }
.crab-h5 .tool-service .work-timeline li:last-child::before { background: var(--coral); }
.crab-h5 .tool-service .work-timeline strong { color: var(--ink); font: 700 14px/1.65 var(--sans); }
.crab-h5 .tool-service .work-timeline time { display: block; margin-top: 5px; color: var(--ink-2); font: 400 12px/1.7 var(--sans); overflow-wrap: anywhere; }
.crab-h5 .tool-service .work-timeline p { margin: 7px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.crab-h5 .tool-service .work-hint { color: var(--ink-2); font: 400 13px/1.8 var(--sans); overflow-wrap: anywhere; }

/* The action stays explicit while the request title and note remain stable. */
.crab-h5 .tool-service .tool-work-action { display: flex; align-items: center; gap: 10px; margin: -20px -18px 23px; padding: 16px 18px; border-bottom: 1px solid #201c2228; border-radius: 22px 22px 0 0; background: var(--blue-soft); }
.crab-h5 .tool-service .tool-work-action.is-caution { background: #FFE8D9; }
.crab-h5 .tool-service .tool-work-action.is-completion { background: #DAF4E5; }
.crab-h5 .tool-service .tool-work-action > span { display: grid; place-items: center; width: 32px; flex: none; }
.crab-h5 .tool-service .tool-work-action svg { width: 28px; height: 28px; }
.crab-h5 .tool-service .tool-work-action strong { min-width: 0; color: var(--ink); font: 800 16px/1.6 var(--sans); overflow-wrap: anywhere; }
.crab-h5 .tool-service .tool-request-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; list-style: none; margin: 0 0 24px; padding: 0; }
.crab-h5 .tool-service .tool-request-steps li { position: relative; min-width: 0; color: var(--ink-2); font: 400 12px/1.7 var(--sans); overflow-wrap: anywhere; }
.crab-h5 .tool-service .tool-request-steps li > div { text-wrap: balance; }
.crab-h5 .tool-service .tool-request-steps li > span { position: relative; z-index: 1; display: grid; place-items: center; width: 27px; height: 27px; margin: 0 0 8px; border: 1px solid #201c2240; border-radius: 50%; background: #FFF9EF; color: var(--ink-2); font: 700 13px/1 var(--sans); }
.crab-h5 .tool-service .tool-request-steps li[aria-current="step"] { color: var(--ink); font-weight: 700; }
.crab-h5 .tool-service .tool-request-steps li[aria-current="step"] > span { border-color: var(--ink); background: var(--sun); color: var(--ink); }
.crab-h5 .tool-service .tool-request-steps li:not(:last-child)::after { content: ''; position: absolute; top: 13px; left: 33px; right: 0; height: 1px; background: #201c2240; }
.crab-h5 .tool-service .work-dialog form { display: grid; gap: 12px; margin: 24px 0 0; padding: 21px 0 0; border-top: 1px solid var(--line); }
.crab-h5 .tool-service .work-dialog label { color: var(--ink); font: 600 14px/1.65 var(--sans); }
.crab-h5 .tool-service .work-dialog textarea { width: 100%; max-width: 100%; min-width: 0; min-height: 142px; padding: 13px; border: 1.3px solid #201c2270; border-radius: 12px; background: #FFFDF8; color: var(--ink); font: 400 16px/1.8 var(--sans); box-sizing: border-box; }
.crab-h5 .tool-service .work-dialog textarea:focus { border-color: var(--ink); }
.crab-h5 .tool-service .work-dialog form > .work-primary { width: 100%; margin-top: 6px; }
.crab-h5 .tool-service .work-dialog .work-hint { margin: 1px 0 0; }
.crab-h5 .tool-service .work-error { margin: 3px 0 0; padding: 12px; border-radius: 10px; background: #FFE3DC; color: #8F2E22; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.crab-h5 .tool-service .work-error:empty { display: none; }

@media(max-width:360px) {
  .crab-h5 [data-scene-route="messages"] .message-drift-scene { margin-inline:-14px; }
  .crab-h5 .tool-work-head { margin-inline: -14px; padding-inline: 14px; }
  .crab-h5 .tool-work-intro { grid-template-columns: minmax(0,1fr) 132px; gap: 8px; min-height: 156px; }
  .crab-h5 .tool-work-intro h1 { font-size: 30px; }
  .crab-h5 .tool-request-art { width: 132px; height: 156px; }
  .crab-h5 .tool-request-art::before { width: 124px; height: 117px; left: 4px; bottom: 14px; }
  .crab-h5 .tool-request-art::after { width: 57px; height: 57px; right: 1px; top: 17px; }
  .crab-h5 .tool-request-art img { right: -4px; bottom: 16px; width: 144px; height: 121px; }
  .crab-h5 .tool-service .tool-work-summary { padding-inline: 2px; }
  .crab-h5 .tool-service .tool-work-summary > div { padding-inline: 5px; }
  .crab-h5 .tool-service .tool-work-summary dd { font-size: 25px; }
  .crab-h5 .tool-service .work-record { padding-inline: 16px; }
  .crab-h5 .tool-service .tool-work-sheet { padding-inline: 15px; }
  .crab-h5 .tool-service .tool-work-sheet h1 { font-size: 23px; }
  .crab-h5 .tool-service .tool-work-action { margin-inline: -15px; padding-inline: 15px; }
  .crab-h5 .tool-service .tool-work-empty { padding-inline: 2px; }
  .crab-h5 .tool-service .tool-request-steps { gap: 8px; }
}
