.crew { min-height: 100vh; background: var(--go-surface-secondary); color: var(--go-ink); }
.crew-header { background: #fff; border-bottom: 1px solid var(--go-divider); }
.crew-bar, .crew-main { width: min(calc(100% - 36px), 740px); margin: auto; }
.crew-bar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.crew-bar .brand { background: transparent; padding: 0; box-shadow: none; }
.crew-bar .brand-symbol { width: 34px; height: 34px; }
.crew-bar .brand-name { font-size: 24px; }
.crew-main { padding-block: clamp(20px, 4vw, 48px) 50px; }
.crew h1,.crew h2 { letter-spacing: -.035em; line-height: 1.12; }
.crew h1 { font-size: clamp(28px, 5vw, 40px); }
.crew h2 { font-size: clamp(21px, 4vw, 26px); }
.crew h1:focus:not(:focus-visible) { outline: none; }
.crew button { border: none; }
.crew .primary,.crew .secondary,.crew .text-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border-radius: 12px; font-size: 15px; font-weight: 500; text-align: center; }
.crew .primary { background: var(--go-control-primary); color: white; }
.crew .secondary { background: #ebeae7; }
.crew .text-button { background: transparent; color: var(--go-link); }
.crew button:disabled { opacity: .49; cursor: default; }
.crew .surface { background: var(--go-surface); border: 1px solid var(--go-divider); border-radius: 20px; padding: clamp(18px, 3.3vw, 28px); }
.crew .join-link { display: block; margin: 14px 0 20px; color: var(--go-link); font-weight: 600; }
.crew .market-panel { margin: 12px 0; padding: 14px 18px; }
.market-panel summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; min-height: 32px; list-style: none; }
.market-panel summary::-webkit-details-marker { display: none; }
.market-panel summary::after { content: ''; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin: -4px 3px 0 auto; }
.market-panel[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.line-state { font-size: 14px; color: var(--go-muted); }
.line-state.online { color: #087750; }
.line-form { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(160px,100%),1fr)); gap: 12px; margin-top: 15px; }
.line-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.crew .line-form select { padding: 10px; border: 1px solid var(--go-border); border-radius: 10px; font: inherit; min-height: 43px; color: var(--go-ink); background: white; }
.line-actions, .line-form .hint { grid-column: 1 / -1; }
.line-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.market-money { display: grid; gap: 3px; padding: 10px 0; border-top: 1px solid var(--go-divider); }
.market-quote { color: var(--go-ink); font-weight: 600; }
.crew .login { max-width: 470px; margin: 5vh auto; }
.crew .login > p, .crew .crew-dialog p { color: var(--go-muted); margin-top: 10px; line-height: 1.45; }
.crew-input, .crew input:not([type=file]), .crew textarea { width: 100%; padding: 10px 12px; background: #fff; border: 1px solid var(--go-border); border-radius: 10px; font: var(--go-font-body); }
.crew textarea { min-height: 66px; resize: vertical; }
.crew label { display: block; margin: 16px 0 6px; font-size: 14px; font-weight: 600; }
.crew label span,.crew .hint,.crew .eyebrow { color: var(--go-muted); font-size: 14px; font-weight: 400; }
.crew .hint { margin: 6px 0 0; }
.crew .eyebrow { margin-bottom: 4px; }
.crew .login button,.crew #send-report,.crew #next-status,.crew #start-cleaning { margin-top: 12px; width: 100%; }
.crew #password-login { margin-top:20px; }
.crew .login input + label { margin-top:14px; }
.crew .key-login { margin-top:18px; border-top:1px solid var(--go-divider,#e4e3df); padding-top:12px; }
.crew .key-login summary { cursor:pointer; color:var(--go-link); padding:8px 0; }
.crew .key-login form { margin-top:8px; }
.crew .queue-head,.crew .job-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.crew .queue-head { margin-bottom: 20px; }
.crew .segment { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 12px; background: #e7e6e3; }
.crew .segment button { min-height: 38px; padding: 5px 14px; background: transparent; border-radius: 9px; font-size: 14px; }
.crew .segment [aria-pressed=true] { background: white; font-weight: 600; box-shadow: 0 1px 3px rgb(0 0 0 / .09); }
.crew .jobs,.crew .photo-grid { margin: 0; padding: 0; list-style: none; }
.crew .jobs { display: grid; gap: 10px; margin-top: 14px; }
.crew .job-link { width: 100%; display: grid; gap: 9px; text-align: start; background: white; }
.crew .job-address { font-size: clamp(19px,3.3vw,25px); font-weight: 600; line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.crew .job-meta,.crew .job-top { font-size: 14px; color: var(--go-muted); }
.crew .badge { display: inline-flex; padding: 3px 9px; border-radius: 20px; background: #ededeb; color: #595955; font-size: 13px; line-height: 18px; }
.crew .badge[data-status="confirmed"], .crew .badge[data-status="new"] { color: #1a42b6; background: #eaf0ff; }
.crew .badge[data-status="in_progress"] { color: #895600; background: #fff0cb; }
.crew .badge[data-status="done"] { color: #226446; background: #e7f3eb; }
.crew .empty { color: var(--go-muted); }
.crew .back { padding: 0 8px 0 0; margin-bottom: 6px; }
.crew .back svg { transform: rotate(180deg); width: 16px; height: 16px; }
.crew .job-card h1 { margin-block: 12px 7px; font-size: clamp(25px, 4.5vw, 36px); overflow-wrap: anywhere; }
.crew #task,.crew .report-comment { white-space: pre-line; overflow-wrap: anywhere; }
.crew #task { margin-top: 8px; color: var(--go-muted); }
.crew .facts { margin: 16px 0; }
.crew .facts div { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--go-divider); font-size: 14px; }
.crew .facts dt { color: var(--go-muted); }
.crew .facts dd { margin: 0; text-align: right; }
.crew .facts [data-order-instruction] dd { min-width: 0; overflow-wrap: anywhere; white-space: pre-line; }
.crew .contact-actions:has(#phone[hidden]) { grid-template-columns: minmax(0,1fr); }
.crew .contact-actions,.crew .photo-controls,.crew .dialog-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.crew .photo-controls { margin-top: 16px; }
.crew .contact-actions svg,.crew .photo-controls svg { width: 18px; height: 18px; }
.crew .photo-controls svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.crew #compose,.crew #history { margin-top: 12px; }
.crew .photo-grid,.crew .reported-photos { display: grid; grid-template-columns: repeat(auto-fill,minmax(76px,1fr)); gap: 7px; }
.crew .photo-grid:not(:empty),.crew .reported-photos { margin-top: 12px; }
.crew .photo-grid li { position: relative; }
.crew .photo-grid img,.crew .reported-photos img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.crew .photo-grid button { position: absolute; right: 2px; top: 2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: white; background: #28282be8; }
.crew .photo-grid button svg { width: 15px; height: 15px; }
.crew .saved-report { padding-top: 16px; }
.crew .saved-report + .saved-report { margin-top: 14px; border-top: 1px solid var(--go-divider); }
.crew .saved-report time { font-size: 14px; color: var(--go-muted); }
.crew .report-comment { margin-top: 4px; }
.crew .error:not(:empty) { color: var(--go-danger); margin-top: 10px; line-height: 1.4; }
.crew .notice:not(:empty) { margin-top: 14px; padding: 10px 12px; background: #e4edff; color: #1943a2; border-radius: 10px; }
.crew-dialog { margin: auto; width: min(390px,calc(100% - 24px)); border: 0; border-radius: 20px; padding: 22px; }
.crew-dialog::backdrop { background: rgb(27 29 34 / .4); }
.crew .dialog-actions { margin-top: 18px; }
@media (min-width: 700px) {
  .crew .jobs { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (hover: hover) {
  .crew .primary:enabled:hover { background: var(--go-control-primary-hover); }
  .crew .secondary:hover { background: #e1dfdc; }
  .crew .job-link:hover { border-color: #b5c4f3; }
}
@media (max-width: 359px) {
  .crew-bar,.crew-main { width: calc(100% - 24px); }
  .crew .surface { padding: 16px; }
  .crew .photo-controls button { padding-inline: 6px; }
}

.crew .offer-section { margin-top: 24px; }
.crew .offer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.crew .offer > div { min-width: 0; display: grid; gap: 5px; }
.crew .offer button { flex: none; }
@media (max-width: 410px) { .crew .offer { align-items: stretch; flex-direction: column; } }
