/* Aufträge (AUFTRAG_PLAN.md): list, chat workspace with report, dialogs. Uses the --k-* tokens of ui-system.css;
   the customer page (/ui/auftrag) defines the same tokens itself. */
/* Layout follows the space the view really has (a browser at half screen width), not the screen: container queries. */
#fieldwork-view, #fieldwork-photos-view { container-type: inline-size; container-name: fwview; }
.fw-workspace { container-type: inline-size; container-name: fwws; }
.fw-app { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; min-height: 70vh; }
.fw-list-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.fw-list { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fw-list-head h2 { margin: 0; }
.fw-list input[type="search"] { width: 100%; }
.fw-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; overflow: auto; max-height: 70vh; }
.fw-item { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--k-radius-sm, 10px);
  border: 1px solid var(--k-line, #2a3a4a); background: var(--k-surface, transparent); color: var(--k-text, inherit); cursor: pointer; }
.fw-item:hover { border-color: var(--k-line-strong, #3b5068); }
.fw-item.active { border-color: var(--k-accent, #22c3e6); background: var(--k-accent-soft, rgba(34,195,230,.12)); }
.fw-item strong { font-size: .95rem; overflow-wrap: anywhere; }
.fw-item span, .fw-item small { color: var(--k-muted, #8aa); font-size: .8rem; }
.fw-main { min-width: 0; }
.fw-back { display: none; margin-bottom: 8px; }
.fw-welcome { padding: 28px; border: 1px dashed var(--k-line, #2a3a4a); border-radius: var(--k-radius, 14px); color: var(--k-muted, #8aa); max-width: 70ch; }
.fw-welcome h3 { color: var(--k-text, inherit); margin-top: 0; }
.fw-hint { color: var(--k-muted, #8aa); font-size: .85rem; }
.fw-status { min-height: 1.2em; font-size: .85rem; color: var(--k-muted, #8aa); margin: 6px 0 0; }
.fw-status.error, .fw-hint.error, .fw-outcome .error { color: var(--k-danger, #f06a6a); }

.fw-workspace { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fw-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-start; justify-content: space-between; }
.fw-title h2 { margin: 0; font-size: 1.3rem; overflow-wrap: anywhere; }
.fw-meta { margin: 2px 0 0; color: var(--k-muted, #8aa); font-size: .85rem; }
.fw-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fw-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .8rem; color: var(--k-muted, #8aa); }
.fw-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 16px; min-height: 0; }
/* the app's segment rule (#workspace :is(.segments …)) is more specific than a class; match it inside the view */
.fw-side-tabs, #workspace #fieldwork-view .fw-side-tabs { flex-wrap: wrap; overflow: visible; }

.fw-chat { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--k-line, #2a3a4a); border-radius: var(--k-radius, 14px);
  background: var(--k-surface, transparent); height: min(78vh, 900px); }
.fw-chat.drop { outline: 2px dashed var(--k-accent, #22c3e6); outline-offset: -6px; }
.fw-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
.fw-empty { margin: auto; max-width: 52ch; text-align: center; color: var(--k-muted, #8aa); }
.fw-empty h3 { color: var(--k-text, inherit); }
.fw-msg { display: flex; flex-direction: column; gap: 4px; max-width: 100%; }
.fw-msg.user { align-items: flex-end; }
.fw-bubble { padding: 10px 14px; border-radius: 14px; max-width: min(100%, 78ch); min-width: 0; overflow-wrap: anywhere; line-height: 1.5; }
.fw-msg.user .fw-bubble { background: var(--k-accent-soft, rgba(34,195,230,.14)); border: 1px solid transparent; }
.fw-msg.assistant .fw-bubble { background: var(--k-surface-2, rgba(255,255,255,.03)); border: 1px solid var(--k-line, #2a3a4a); width: 100%; }
.fw-bubble p { margin: 0 0 .6em; } .fw-bubble p:last-child { margin-bottom: 0; }
.fw-bubble h4 { margin: .8em 0 .3em; font-size: 1rem; }
.fw-bubble ul, .fw-bubble ol { margin: .3em 0 .6em; padding-left: 1.3em; }
.fw-bubble code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--k-surface-3, rgba(255,255,255,.07)); padding: 1px 4px; border-radius: 4px; }
.fw-bubble a { color: var(--k-accent, #22c3e6); }
.fw-user-text { white-space: pre-wrap; font-family: inherit; }
.fw-user-text.folded { max-height: 16em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.fw-more, .fw-copy, .fw-remove { background: none; border: 0; color: var(--k-accent, #22c3e6); cursor: pointer; font-size: .8rem; padding: 2px 4px; }
.fw-code { margin: .5em 0; border: 1px solid var(--k-line, #2a3a4a); border-radius: 10px; overflow: hidden; background: #0b1520; }
.fw-code-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 10px; font-size: .75rem; color: #9fb3c6; background: #111f2c; }
.fw-code pre { margin: 0; padding: 10px 12px; overflow-x: auto; color: #e5eef7; }
.fw-code pre code { background: none; padding: 0; font-size: .85rem; white-space: pre; }
.fw-table-wrap { overflow-x: auto; }
.fw-table { border-collapse: collapse; font-size: .85rem; margin: .4em 0; }
.fw-table th, .fw-table td { border: 1px solid var(--k-line, #2a3a4a); padding: 4px 8px; text-align: left; vertical-align: top; }
.fw-attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fw-thumb { max-width: 220px; max-height: 160px; border-radius: 8px; display: block; border: 1px solid var(--k-line, #2a3a4a); }
.fw-file { display: inline-flex; gap: 4px; align-items: baseline; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--k-line, #2a3a4a); background: var(--k-surface, transparent); color: var(--k-text, inherit); cursor: pointer; font-size: .85rem; }
.fw-file small { color: var(--k-muted, #8aa); }
.fw-sources { margin-top: 8px; font-size: .8rem; color: var(--k-muted, #8aa); }
.fw-msg-foot { display: flex; gap: 10px; align-items: center; font-size: .75rem; color: var(--k-faint, #6c7f90); padding: 0 4px; }
.fw-masked { color: var(--k-warn, #e0b44c); }
.fw-thinking .fw-dots { width: 10px; height: 10px; border-radius: 50%; background: var(--k-accent, #22c3e6); display: inline-block; margin-right: 8px; animation: fw-pulse 1.1s ease-in-out infinite; }
.fw-thinking { flex-direction: row; align-items: center; color: var(--k-muted, #8aa); font-size: .9rem; }
@keyframes fw-pulse { 50% { opacity: .25; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .fw-thinking .fw-dots { animation: none; } }

.fw-composer { border-top: 1px solid var(--k-line, #2a3a4a); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.fw-composer textarea { width: 100%; resize: none; min-height: 2.8em; max-height: 260px; font: inherit; font-size: 16px; }
.fw-compose-row { display: flex; gap: 8px; align-items: center; }
.fw-compose-row .button.primary { margin-left: auto; }
.fw-icon { min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--k-line, #2a3a4a); background: var(--k-surface, transparent); cursor: pointer; font-size: 1.05rem; }
.fw-web { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; color: var(--k-muted, #8aa); }
.fw-tray { display: flex; flex-wrap: wrap; gap: 6px; }
.fw-pending { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; padding: 4px 4px 4px 10px; border-radius: 999px; background: var(--k-surface-2, rgba(255,255,255,.05)); border: 1px solid var(--k-line, #2a3a4a); }
.fw-pending.error { border-color: var(--k-danger, #f06a6a); color: var(--k-danger, #f06a6a); }

.fw-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; max-height: min(78vh, 900px); overflow-y: auto; }
.fw-report, .fw-cases { display: flex; flex-direction: column; gap: 10px; }
.fw-field { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; }
.fw-field > span { color: var(--k-muted, #8aa); }
.fw-field textarea, .fw-field input, .fw-field select { width: 100%; font: inherit; font-size: 16px; }
.fw-field textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
.fw-manual { font-style: normal; font-size: .7rem; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--k-accent-soft, rgba(34,195,230,.14)); color: var(--k-accent, #22c3e6); }
.fw-report-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.fw-case { border: 1px solid var(--k-line, #2a3a4a); border-radius: 10px; padding: 10px 12px; font-size: .85rem; }
.fw-case h4 { margin: 0 0 4px; } .fw-case p { margin: 4px 0; }
.fw-workspace[data-status="closed"] .fw-chat { height: auto; max-height: min(78vh, 900px); }

.fw-shade { position: fixed; inset: 0; z-index: 1000; background: rgba(2, 8, 14, .6); display: grid; place-items: center; padding: 16px; }
.fw-dialog { width: min(680px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--k-bg, #0a1520); color: var(--k-text, #e6eef6);
  border: 1px solid var(--k-line-strong, #3b5068); border-radius: var(--k-radius, 14px); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.fw-dialog h3 { margin: 0; }
.fw-dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.fw-step { border: 1px solid var(--k-line, #2a3a4a); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.fw-step legend { padding: 0 6px; font-weight: 600; }
.fw-dialog .fw-check { display: flex; flex-direction: row; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .9rem; font-weight: 600; }
.fw-dialog .fw-check input { width: auto; flex: none; margin: 0; }
.fw-check small { color: var(--k-muted, #8aa); }
.fw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.fw-results { display: flex; flex-direction: column; gap: 4px; }
.fw-result { text-align: left; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--k-line, #2a3a4a); background: var(--k-surface, transparent); color: inherit; cursor: pointer; }
.fw-code-input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.4rem !important; letter-spacing: .25em; text-transform: uppercase; }
.fw-viewer { width: min(1000px, 100%); }
.fw-viewer-text { white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; max-height: 65vh; overflow: auto; margin: 0;
  background: #0b1520; color: #e5eef7; padding: 10px; border-radius: 8px; }
.fw-outcome { margin: 0; padding-left: 1.1em; }

/* Below about 1300 px of view width everything stacks: the job list (compact) on top, then the chat, then report,
   notes and photos – the break comes early so the chat keeps its width in a browser at half screen. */
@container fwview (max-width: 1300px) {
  .fw-app { grid-template-columns: 1fr; gap: 14px; min-height: 0; }
  .fw-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; align-items: start; }
  .fw-list-head, .fw-items, .fw-list .fw-status { grid-column: 1 / -1; }
  .fw-list-head .fw-hint { display: none; }
  .fw-items { max-height: 26vh; flex-direction: row; flex-wrap: wrap; }
  .fw-items > li { flex: 1 1 220px; min-width: 0; }
  .fw-body { grid-template-columns: 1fr; }
  .fw-chat { height: min(72vh, 820px); }
  .fw-side { max-height: none; }
  .fw-app:not([data-open="job"]) .fw-main .fw-welcome { display: none; }
}
@container fwview (max-width: 560px) {
  .fw-list { grid-template-columns: 1fr; }
  .fw-items { flex-direction: column; flex-wrap: nowrap; }
  .fw-items > li { flex: none; }
  .fw-chat { height: calc(100dvh - 200px); min-height: 420px; }
  .fw-thumb { max-width: 160px; }
  .fw-head { flex-direction: column; }
  .fw-compose-row { flex-wrap: wrap; }
  .fw-model { order: 5; flex: 1 1 100%; }
}
@supports not (container-type: inline-size) {
  @media (max-width: 1300px) {
    .fw-app { grid-template-columns: 1fr; }
    .fw-body { grid-template-columns: 1fr; }
    .fw-items { max-height: 26vh; }
  }
}
.fw-model { max-width: 230px; font-size: .85rem; }
.fw-code-actions { display: inline-flex; gap: 4px; }
.fw-file-wrap { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.fw-settings select { max-width: 420px; }

/* notes and photos of a job, Büro › Fotos */
.fw-material { display: flex; flex-direction: column; gap: 8px; }
.fw-material h4 { margin: 8px 0 0; font-size: .9rem; color: var(--k-muted, #8aa); }
.fw-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fw-notes li { border: 1px solid var(--k-line, #2a3a4a); border-radius: 10px; padding: 8px 10px; font-size: .88rem; }
.fw-notes time { display: block; color: var(--k-muted, #8aa); font-size: .75rem; }
.fw-notes p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.fw-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.fw-photo { position: relative; display: block; padding: 0; border: 1px solid var(--k-line, #2a3a4a); border-radius: 10px; overflow: hidden; background: var(--k-surface-2, #111); cursor: pointer; aspect-ratio: 4 / 3; }
.fw-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fw-photo-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; font-size: .72rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.fw-photo-sources { display: flex; flex-wrap: wrap; gap: 8px; }
.fw-thumb-wrap { display: inline-flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.fw-keep { background: none; border: 0; color: var(--k-accent, #22c3e6); cursor: pointer; font-size: .75rem; padding: 0 2px; }
.fw-lightbox { width: min(1100px, 100%); }
.fw-lightbox-img { max-width: 100%; max-height: 62vh; object-fit: contain; border-radius: 10px; align-self: center; background: #000; }
.fw-photos { display: flex; flex-direction: column; gap: 12px; }
.fw-photos > input[type="search"] { max-width: 460px; }
.fw-photo-group { border: 1px solid var(--k-line, #2a3a4a); border-radius: var(--k-radius, 14px); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.fw-photo-group-head { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: flex-start; }
.fw-photo-group-head h3 { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.fw-photo-group .fw-photo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.fw-import-cards { display: flex; flex-direction: column; gap: 8px; }
.nt-job { cursor: pointer; border: 0; font: inherit; font-size: .75rem; }
.nt-job-pick select { font-size: .85rem; max-width: 220px; }

/* /ui/auftrag shares the main app's tokens/backdrop and net.js, independent of OS theme. */
body.fw-guest { color-scheme: dark; margin: 0; min-height: 100dvh; color: var(--k-text); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
.fw-guest *, .fw-guest *::before, .fw-guest *::after { box-sizing: border-box; }
.fw-guest [hidden] { display: none !important; }
.fw-guest #tarvi-net { position: fixed; inset: 0; width: 100vw; height: 100dvh; z-index: 0; pointer-events: none; }
.fw-guest main { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.fw-guest-identity { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; color: var(--k-text); font-weight: 700; font-size: 1.25rem; }
.fw-guest-identity img { border-radius: 12px; }
.fw-guest-identity small { display: block; font-size: .8rem; font-weight: 400; color: var(--k-muted); }
.fw-guest button { touch-action: manipulation; }
.fw-guest :is(button, input, textarea, select):focus-visible { outline: 2px solid var(--k-accent); outline-offset: 2px; }
.fw-guest .button, .fw-guest .segment { font: inherit; font-size: .9rem; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--k-line-strong); background: var(--k-surface); color: var(--k-text); cursor: pointer; }
.fw-guest .button.small { padding: 5px 10px; font-size: .82rem; }
.fw-guest .button.primary { background: var(--k-accent); border-color: var(--k-accent); color: var(--k-accent-ink); }
.fw-guest .button.ghost { background: transparent; border-color: transparent; color: var(--k-accent); }
.fw-guest .segments { display: inline-flex; gap: 4px; padding: 3px; border-radius: 12px; background: var(--k-surface-2); }
.fw-guest .segment { border: 0; background: transparent; }
.fw-guest .segment[aria-current="page"] { background: var(--k-surface); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.fw-guest textarea, .fw-guest input, .fw-guest select { box-sizing: border-box; border: 1px solid var(--k-line-strong); border-radius: 10px; padding: 8px 10px; background: var(--k-surface); color: var(--k-text); }
.fw-guest-pair { max-width: 520px; margin: 6vh auto; text-align: center; background: var(--k-surface); border: 1px solid var(--k-line); border-radius: var(--k-radius); padding: 28px 24px; }
.fw-guest-pair img { width: min(280px, 100%); height: auto; background: #fff; border-radius: 12px; padding: 8px; }
.fw-guest-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 2rem; letter-spacing: .3em; margin: 12px 0 4px; }
.fw-guest-brand { color: var(--k-muted); font-size: .85rem; margin: 0 0 4px; }

/* QR scanner for the coupling (camera inside the app) */
.fw-scan-box { width: min(520px, 100%); }
.fw-scan-frame { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 3 / 4; max-height: 62vh; }
.fw-scan-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.fw-scan-target { position: absolute; inset: 18%; border: 3px solid rgba(255,255,255,.9); border-radius: 16px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.fw-scan-button { align-self: flex-start; }
.fw-guest-ended { max-width: 520px; margin: 6vh auto 0; text-align: center; }
.fw-guest-ended + .fw-guest-pair, .fw-guest-ended ~ .fw-guest-pair { margin-top: 18px; }
.fw-guest-ended h1 { font-size: 1.6rem; margin: 6px 0; }

/* A phone shows one task surface at a time; only the conversation/body scrolls. */
.fw-mobile-menu { display: none; }
.fw-send-state { color: var(--k-muted, #8aa); }
.fw-send-failed .fw-send-state { color: var(--k-danger, #f06a6a); }
@media (max-width: 640px) {
  html:has(#workspace:not([hidden]) #tools-panel:not([hidden]) #fieldwork-view:not([hidden]) .fw-app[data-open="job"]),
  body:has(#workspace:not([hidden]) #tools-panel:not([hidden]) #fieldwork-view:not([hidden]) .fw-app[data-open="job"]) { overflow: hidden; overscroll-behavior: none; }
  #tools-panel:not([hidden]) #fieldwork-view:not([hidden]):has(.fw-app[data-open="job"]) {
    position: fixed; inset: var(--fw-viewport-top, 0px) 0 auto; height: var(--fw-viewport-height, 100dvh);
    z-index: 100; margin: 0; padding: 0; overflow: hidden; background: var(--k-bg, #0b1722);
  }
  .fw-app[data-open="job"], .fw-app[data-open="job"] .fw-main, .fw-app[data-open="job"] .fw-workspace { height: 100%; min-height: 0; }
  .fw-app[data-open="job"] { display: block; }
  .fw-app[data-open="job"] .fw-list, .fw-app[data-open="list"] .fw-main { display: none; }
  .fw-app[data-open="job"] .fw-workspace { gap: 0; }
  .fw-app[data-open="job"] .fw-head { flex: 0 0 auto; flex-direction: row; flex-wrap: nowrap; align-items: center; padding: calc(6px + env(safe-area-inset-top)) 8px 6px 14px; gap: 8px; }
  .fw-app[data-open="job"] .fw-title { min-width: 0; flex: 1; }
  .fw-app[data-open="job"] .fw-title h2 { font-size: 1rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .fw-app[data-open="job"] .fw-meta { font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fw-app[data-open="job"] .fw-tools { display: none; }
  .fw-app[data-open="job"] .fw-body { flex: 1; min-height: 0; display: flex; overflow: hidden; }
  .fw-app[data-open="job"] .fw-chat { flex: 1; height: 100%; min-height: 0; max-height: none; border: 0; border-radius: 0; }
  .fw-app[data-open="job"] .fw-log { min-height: 0; overscroll-behavior: contain; padding: 14px; }
  .fw-app[data-open="job"] .fw-side { display: none; }
  .fw-app[data-open="job"] .fw-status:empty { display: none; }
  .fw-app[data-open="job"] .fw-status:not(:empty) { flex: 0 0 auto; max-height: 3.5em; overflow: auto; padding: 4px 12px; margin: 0; }
  .fw-app[data-open="job"] .fw-composer { flex: 0 0 auto; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
  .fw-app[data-open="job"] .fw-composer textarea { max-height: min(140px, 25dvh); }
  .fw-app[data-open="job"] .fw-compose-row { gap: 6px; }
  .fw-app[data-open="job"] .fw-model { flex: 1 1 90px; order: 0; width: 90px; min-width: 0; font-size: 16px; }
  .fw-app[data-open="job"] .fw-web { font-size: .72rem; }
  .fw-app[data-open="job"] .fw-icon { min-width: 36px; width: 36px; height: 40px; }
  .fw-app[data-open="job"] .fw-mobile-menu { display: block; flex: 0 0 auto; }
  .fw-mobile-menu summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; list-style: none; cursor: pointer; touch-action: manipulation; }
  .fw-mobile-menu summary::-webkit-details-marker { display: none; }
  .fw-mobile-menu nav { position: absolute; top: calc(58px + env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); z-index: 2; width: min(290px, calc(100vw - 24px)); max-height: 70dvh; overflow: auto; padding: 8px; border: 1px solid var(--k-line); border-radius: 14px; background: var(--k-surface, #102433); box-shadow: 0 10px 40px #0005; display: grid; }
  .fw-mobile-menu nav button { text-align: left; min-height: 44px; }
  .fw-mobile-menu summary:focus-visible { outline: 2px solid var(--k-accent); outline-offset: -4px; }
  .fw-mobile-menu summary:active { opacity: .6; }
  .fw-app[data-open="job"] .fw-workspace[data-mobile-page="details"] .fw-chat { display: none; }
  .fw-app[data-open="job"] .fw-workspace[data-mobile-page="details"] .fw-side { display: flex; flex: 1; min-height: 0; padding: 12px; overflow: auto; overscroll-behavior: contain; }
  .fw-app[data-open="job"] .fw-workspace[data-mobile-page="actions"] .fw-head { flex-wrap: wrap; }
  .fw-app[data-open="job"] .fw-workspace[data-mobile-page="actions"] .fw-tools { display: flex; order: 3; flex: 1 1 100%; max-height: 65dvh; overflow: auto; padding: 12px 0; }
  .fw-app[data-open="job"] .fw-workspace[data-mobile-page="actions"] .fw-body { display: none; }
}

.fw-compose-settings { display: contents; }
.fw-compose-options, .fw-send-icon { display: none; }
@media (max-width: 640px) {
  .fw-app[data-open="job"] .fw-compose-options { display: inline-block; }
  .fw-app[data-open="job"] .fw-compose-settings { display: none; }
  .fw-app[data-open="job"] .show-options .fw-compose-settings { display: flex; order: 5; flex: 1 1 100%; align-items: center; gap: 12px; }
  #workspace #fieldwork-view .fw-app[data-open="job"] .fw-compose-row > .button.primary { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
  .fw-app[data-open="job"] .fw-send-label { display: none; }
  .fw-app[data-open="job"] .fw-send-icon { display: inline; font-size: 24px; }
}
