dialog:has(.co-sheet) {width:min(710px,calc(100% - 24px))}
.co-sheet,.co-item,.co-case-detail,.co-form {gap:22px}
.co-sheet h3,.co-tool h3,.co-case-detail h3,.co-item h3 {margin:0;font-size:1rem;line-height:1.3}
.co-sheet p,.co-item p,.co-case-detail p,.co-form p {margin:0;line-height:1.45}
.co-muted,.co-stock-name>span,.co-person small,.co-item-meta span,.co-case-intro>span {color:var(--muted);font-size:.84rem}
.co-sheet ul,.co-tool ul,.co-item ul,.co-case-detail ul {list-style:none;margin:0;padding:0}
.co-heading-action {flex-shrink:0}
.co-banner,.co-banner-body,.co-progress,.co-foot,.co-inline-notice,.co-case-intro,.co-resolved,.co-updates li header,.co-tool header {display:flex;align-items:center;gap:12px;justify-content:space-between}
.co-banner {padding:14px 18px;margin:0 0 18px;border-left:3px solid var(--warning-border);border-radius:6px;background:var(--warning-panel)}
.co-banner-body {align-items:baseline;flex-wrap:wrap;justify-content:flex-start}
.co-banner-body h2 {margin:0;font-size:1rem}
.co-banner-body span {font-size:.83rem;color:var(--muted)}
.co-banner-body b {font-variant-numeric:tabular-nums;color:var(--ink)}
.co-progress h3,.co-case-intro h3 {font-size:1.28rem;letter-spacing:-.022em;overflow-wrap:anywhere}
.co-progress strong {font-weight:600;font-size:.83rem;color:var(--muted);white-space:nowrap}
.co-summary progress {appearance:none;display:block;width:100%;height:4px;overflow:hidden;margin:12px 0 10px;border:0;border-radius:4px;background:var(--soft);color:var(--success)}
.co-summary progress::-webkit-progress-bar {background:var(--soft)}
.co-summary progress::-webkit-progress-value {background:var(--success)}
.co-summary progress::-moz-progress-bar {background:var(--success)}
.co-summary-meta {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:4px 10px;margin:8px 0 0;font-size:.82rem}
.co-summary-meta>div {display:grid;gap:2px;min-width:0}
.co-time {display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:5px 8px}
.co-summary-meta dt {font-size:.74rem;color:var(--muted)}
.co-summary-meta dd {color:var(--ink);font-weight:550}
.co-time span+span {color:var(--muted);font-weight:400}
.co-mobile-caption {display:none}
.co-time {font-variant-numeric:tabular-nums}
.co-summary-meta dd,.co-facts dd {margin:0}
.co-sr-only {position:absolute;width:1px;height:1px;margin:-1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.co-stock {min-width:0}
.co-stock h3 {margin-bottom:10px}
.co-selection {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 14px;padding:8px 12px;margin-bottom:4px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}
.co-selection-info,.co-batch-actions,.co-select-all {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.co-selection-info {gap:3px 12px}
.co-select-all,.co-pick {cursor:pointer;min-height:36px}
.co-select-all {font-size:.83rem;font-weight:600}
.co-pick {display:inline-flex;align-items:center;justify-content:center;width:100%}
.co-selection input,.co-pick input {accent-color:var(--accent);width:17px;height:17px;margin:0;flex:none;cursor:pointer}
.co-selection output {font-size:.79rem;color:var(--muted);font-variant-numeric:tabular-nums}
.co-batch-actions .button {min-height:36px;padding:6px 10px;font-size:.81rem}
.co-batch-actions .button svg {width:15px;height:15px}
.co-stock-row {display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:start;gap:0 10px;padding:11px 0;border-bottom:1px solid var(--line)}
.co-stock-row:has(input:checked) {background:var(--tint);border-radius:6px}
.co-stock:not(:has(.co-selection)) .co-stock-row {grid-template-columns:minmax(0,1fr) auto}
.co-stock:not(:has(.co-selection)) .co-pick-slot {display:none}
.co-pick-slot {display:grid;margin-top:-5px}
.co-stock-name,.co-item-meta,.co-case-copy {display:grid;min-width:0;gap:3px;overflow-wrap:anywhere}
.co-stock-name>strong,button.co-name-button {font-size:.92rem;line-height:1.4;font-weight:650}
button.co-name-button {justify-self:start;display:inline-flex;align-items:center;justify-content:flex-start;gap:5px;min-height:30px;padding:3px 0;margin:-4px 0;border:0;background:transparent;color:var(--accent);text-align:left}
button.co-name-button svg {width:13px;height:13px;transform:rotate(-90deg)}
button.co-name-button:hover {color:var(--accent);text-decoration:underline;text-underline-offset:.18em}
.co-custody {display:flex;flex-wrap:wrap;gap:1px 12px;margin:0;font-size:.79rem;line-height:1.4}
.co-custody>div {display:inline}
.co-custody dt,.co-custody dd {display:inline;margin:0}
.co-custody dt,.co-stock-name>small {color:var(--muted)}
.co-custody dt::after {content:": "}
.co-target {margin-top:1px}
.co-issue-links {display:flex;align-items:center;flex-wrap:wrap;gap:0 12px}
button.co-issue-link {display:inline;min-height:32px;border:0;background:transparent;padding:2px 0;text-align:left;overflow-wrap:anywhere;font-size:.79rem;color:var(--warning);font-weight:600}
button.co-issue-link:hover {text-decoration:underline;text-underline-offset:.18em}
.co-row-exceptions {font-size:.81rem}
.co-row-exceptions summary {display:flex;align-items:center;justify-content:flex-end;gap:5px;min-height:34px;color:var(--muted);font-weight:570;list-style:none;cursor:pointer}
.co-row-exceptions summary::-webkit-details-marker {display:none}
.co-row-exceptions summary:hover {color:var(--accent)}
.co-row-exceptions summary svg {width:13px;height:13px}
.co-row-exceptions[open] summary svg {transform:rotate(180deg)}
.co-row-exceptions>div {display:grid;gap:5px;padding-bottom:4px}
.co-row-exceptions .button {min-height:36px;font-size:.8rem;padding:6px 9px}
.co-result {display:grid;justify-items:end;gap:3px;margin-right:4px}
.co-result .co-link {min-height:28px;font-size:.78rem}
.co-status {display:inline-block;padding:3px 7px;border-radius:5px;background:var(--soft);color:var(--muted);font-size:.75rem;font-weight:550;line-height:1.38}
.co-status.missing,.co-status.pending {background:var(--warning-panel);color:var(--warning)}
.co-status.storage,.co-status.moved,.co-status.provider {background:var(--success-bg);color:var(--success)}
.co-done,.co-resolved strong {color:var(--success)}
.co-target-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.co-review-tools h3 {display:flex;align-items:baseline;gap:8px}
.co-review-tools h3 span {color:var(--muted);font-size:.83rem;font-weight:550}
.co-review-tools ul {list-style:none;margin:7px 0 0;padding:0;max-height:28dvh;overflow:auto}
.co-review-tools li {padding:6px 0;border-bottom:1px solid var(--line);font-size:.9rem;overflow-wrap:anywhere}
.co-review-note {color:var(--muted);font-size:.85rem}
button.co-row-action,button.co-link {background:transparent;border:0;box-shadow:none;color:var(--accent);font-weight:550}
button.co-link {min-height:36px;padding:5px 0;text-align:left;justify-content:flex-start}
button.co-row-action {min-height:36px;padding:5px 10px;border-radius:7px;background:var(--tint)}
button.co-row-action:hover,button.co-link:hover {text-decoration:underline;text-underline-offset:.18em}
.co-foot {justify-content:flex-end;padding-top:12px;border-top:1px solid var(--line)}
.co-foot:has(.co-link) {justify-content:flex-start}
.co-foot:has([disabled]) {padding-top:8px}
.co-inline-notice {padding:11px 13px;border-left:3px solid var(--warning-border);border-radius:3px;background:var(--warning-panel);font-size:.85rem}
.co-inline-notice div {display:grid;gap:2px}
.co-inline-notice span {color:var(--muted)}
.co-inline-notice .co-link {white-space:nowrap}
.co-past summary {cursor:pointer;font-size:.85rem}
.co-past summary b {margin-left:6px;color:var(--muted)}
.co-past .button {display:flex}
.co-bookings li {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:3px 12px;padding:7px 0;font-size:.84rem}
.co-tool {padding:14px 18px;border-top:1px solid var(--line)}
.co-tool header {min-height:34px}
.co-tool ul.co-parts,.co-item ul.co-parts {display:flex;gap:4px 14px;flex-wrap:wrap;margin-top:6px}
.co-parts li {font-size:.85rem;line-height:1.65;color:var(--muted);overflow-wrap:anywhere}
.co-cases h3 {margin-bottom:8px}
.co-case-list {display:block}
button.co-case {display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:11px 0;min-height:44px;border:none;border-bottom:1px solid var(--line);border-radius:0;background:transparent;text-align:left;font-weight:400;color:var(--ink)}
button.co-case:last-child {border-bottom:0}
button.co-case:hover .co-case-copy strong {text-decoration:underline;text-underline-offset:.18em}
.co-case-copy {flex:1}
.co-case-copy strong {font-size:.91rem}
.co-brief {white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:100%;color:var(--muted);font-size:.83rem}
.co-case-sub {display:flex;flex-wrap:wrap;gap:3px 10px;color:var(--muted);font-size:.79rem}
.co-case-sub:empty {display:none}
.co-handover .site-overview a,.co-handover > .co-link {color:var(--ink)}
body:has(.co-handover) .nav .object-link[aria-current=page] {color:var(--ink)}
.co-handover .site-overview a:hover {text-decoration:underline;text-underline-offset:.18em}
.co-handover .kit-register .co-status.missing {color:var(--ink)}
.co-handover-register {display:grid;gap:14px;min-width:0}
.co-handover-cases {overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.co-handover-cases > header {
  display:flex;align-items:center;gap:10px;
  padding:12px 16px;border-bottom:1px solid var(--line)
}
.co-handover-cases h2 {font:var(--type-section);overflow-wrap:anywhere}
.co-handover-cases > header > span {
  padding:3px 7px;border-radius:6px;background:var(--tint);color:var(--ink);
  font:var(--type-count);font-variant-numeric:tabular-nums
}
.co-handover-cases .co-case {padding:11px 16px}
.co-handover-cases .co-case:hover {background:var(--soft)}
.co-handover-cases .co-case:focus-visible {outline-offset:-3px}
.co-case-thumb {
  display:grid;place-items:center;overflow:hidden;flex:none;
  width:44px;height:44px;border-radius:8px;background:var(--soft)
}
.co-case-thumb :is(img,.no-photo) {width:100%;height:100%;object-fit:cover}
.co-handover-cases .co-case-title {display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}
.co-handover-cases .co-status {color:var(--ink)}
.co-handover-cases .co-brief {white-space:normal}
.co-done {font-size:.77rem}
.co-arrow svg {width:15px;height:15px;transform:rotate(-90deg);color:var(--muted)}
.co-facts {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;margin:0}
.co-facts>div {display:grid;gap:3px}
.co-facts dt {font-size:.77rem;color:var(--muted)}
.co-facts dd {font-size:.91rem;overflow-wrap:anywhere}
.co-options {display:flex;flex-wrap:wrap;gap:8px}
.co-exceptions {display:grid;gap:9px}
.co-exception-list {border:1px solid var(--line);border-radius:10px}
.co-exception-choice {width:100%;min-height:44px;justify-content:flex-start;padding:9px 12px;border:0;border-radius:9px;background:transparent;text-align:start;color:var(--ink)}
.co-exception-choice+button {border-top:1px solid var(--line);border-top-left-radius:0;border-top-right-radius:0}
.co-exception-choice:hover,.co-exception-choice:focus-visible {background:var(--soft)}
.co-exception-choice svg {width:16px;height:16px;color:var(--muted)}
.co-exception-choice svg:last-child {margin-left:auto;transform:rotate(-90deg);width:14px}
.co-item .co-parts li {padding:2px 7px;border-radius:5px;background:var(--soft);color:var(--ink)}
.co-case-intro {align-items:baseline;flex-wrap:wrap}
.co-report {display:grid;gap:4px;padding:10px 14px;border-left:3px solid var(--warning-border);background:var(--warning-panel);overflow-wrap:anywhere}
.co-updates li {border-top:1px solid var(--line);padding:10px 0}
.co-updates h3 {margin:0 0 8px}
.co-updates li header {flex-wrap:wrap;font-size:.82rem}
.co-updates li p {margin:4px 0 0;overflow-wrap:anywhere}
.co-resolved {padding-top:12px;border-top:1px solid var(--line);font-size:.88rem}
.co-form textarea {height:auto;min-height:5em;resize:vertical}
@media(max-width:560px) {
  .co-sheet,.co-item,.co-case-detail,.co-form {gap:17px}
  .co-banner-body {display:grid;gap:3px}
  .co-banner {padding:10px 12px}
  .co-summary-meta {align-items:baseline}
  .co-selection {display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;gap:4px;padding:7px 9px}
  .co-selection-info {justify-content:space-between}
  .co-batch-actions {display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
  .co-batch-actions .button {min-height:40px}
  .co-stock-row {grid-template-columns:24px minmax(0,1fr);gap:4px 7px}
  .co-stock:not(:has(.co-selection)) .co-stock-row {grid-template-columns:minmax(0,1fr)}
  .co-result {grid-column:2;display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:10px}
  .co-stock:not(:has(.co-selection)) .co-result {grid-column:1}
  .co-target-fields {grid-template-columns:1fr}
  .co-row-exceptions {width:100%}
  .co-row-exceptions summary {justify-content:flex-start;min-height:36px}
  .co-row-exceptions>div {display:flex;flex-wrap:wrap}
  .co-row-exceptions .button {min-height:42px}
  .co-options .button {flex:1}
  .co-foot .button.primary {width:100%}
  .co-heading-action {max-width:100%}
}
.co-current {margin-right:auto;color:var(--muted);font-size:.84rem}
.co-updates li>small {display:block;margin-top:4px;color:var(--muted);font-size:.8rem}

@media(min-height:580px) {
  dialog:has(.co-sheet) {--co-heading-height:64px;scroll-padding-top:calc(var(--co-heading-height) + 100px)}
  dialog:has(.co-sheet) .dialog-head {height:var(--co-heading-height);padding-block:8px;z-index:3}
  .co-selection {position:sticky;top:var(--co-heading-height);z-index:2}
}
@media(max-width:380px) {
  .co-batch-actions .button svg {display:none}
  .co-batch-actions {grid-template-columns:minmax(0,.65fr) minmax(0,1.35fr)}
  .co-batch-actions .button {padding-inline:4px;white-space:nowrap}
}

.co-entry {display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.co-entry small {color:var(--muted)}
.co-group {margin-top:16px;min-width:0}
.co-group>h3 small {font-variant-numeric:tabular-nums;font-weight:500;color:var(--muted)}
.co-group>p {margin:-4px 0 10px;color:var(--muted);font-size:13px}
.co-route {display:grid;width:fit-content;max-width:100%;grid-template-columns:minmax(0,max-content) 20px minmax(0,max-content);gap:2px 12px;align-items:center;margin:6px 0}
.co-route>div {display:contents}
.co-route>div:first-child>* {grid-column:1}
.co-route>div:last-child>* {grid-column:3}
.co-route small {grid-row:1;font-size:11px;color:var(--muted)}
.co-route strong {grid-row:2}
.co-route div>span {grid-row:3;align-self:start;color:var(--muted)}
.co-route strong,.co-route div>span {font-size:13px;overflow-wrap:anywhere}
.co-route .co-route-arrow {grid-area:2/2;width:18px;height:18px;justify-self:center;transform:rotate(180deg);color:var(--muted)}
.co-finish-guide {width:100%;display:grid;gap:4px;font-size:13px;color:var(--muted)}
.co-finish-guide strong {color:var(--ink);font-size:14px}
.co-thumb {position:relative;display:inline-grid;place-items:center;align-self:start;flex:none;width:52px;height:52px;padding:0;border:1px solid var(--line);border-radius:9px;background:var(--soft);color:var(--muted);overflow:hidden}
button.co-thumb {cursor:zoom-in}
button.co-thumb:not(:has(img)){cursor:pointer}
.co-thumb img {width:100%;height:100%;object-fit:cover}
.co-thumb>svg {width:20px}
.co-thumb:focus-visible {outline:2px solid var(--accent);outline-offset:2px}
.co-add-mark,.co-zoom-mark {position:absolute;bottom:1px;right:2px;line-height:1;font-size:14px}
.co-zoom-mark {padding:2px;border-radius:4px;background:#172033a8;color:white}
.co-zoom-mark svg {width:12px;height:12px}
.co-stock-row {grid-template-columns:26px 52px minmax(0,1fr) auto}
.co-stock:not(:has(.co-selection)) .co-stock-row {grid-template-columns:52px minmax(0,1fr) auto}
.co-review-tools li.co-review-unit,.co-arrival {display:flex;align-items:center;gap:12px}
.co-arrival {padding:10px 0;border-top:1px solid var(--line);flex-wrap:wrap}
.co-arrival>div {flex:1;min-width:150px}
.co-item>.co-thumb {width:100px;height:76px}
#co-photo-viewer {position:fixed;inset:0;box-sizing:border-box;margin:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;padding:0;border:0;border-radius:0;background:#161922;color:#f8f9fc;overflow:hidden}
#co-photo-viewer[open] {display:grid;grid-template-rows:auto minmax(0,1fr) auto}
#co-photo-viewer::backdrop {background:#161922}
#co-photo-viewer header {display:flex;align-items:center;justify-content:space-between;padding:clamp(16px,3vw,36px);gap:16px;background:#1d212c}
#co-photo-viewer header span {font-size:13px;color:#b9c1d2}
#co-photo-viewer h2 {font-size:clamp(18px,3vw,26px);margin:3px 0 0;overflow-wrap:anywhere}
#co-photo-viewer [data-photo-close] {flex:none;width:44px;height:44px;border-radius:50%;font-size:28px;line-height:1;color:white;background:#323847;border:0;cursor:pointer}
.co-photo-stage {display:grid;place-items:center;min-height:0;min-width:0;padding:clamp(12px,3vw,36px)}
.co-photo-stage>img {width:auto;height:auto;max-width:100%;max-height:100%;min-height:0;min-width:0;object-fit:contain}
.co-photo-empty {text-align:center;display:grid;justify-items:center;gap:16px}
.co-photo-empty>svg {width:44px;height:44px;color:#bbc4d6}
.co-photo-compose {display:grid;gap:12px;width:min(100%,390px);min-width:0}
.co-photo-compose>.button {min-height:48px;border-radius:12px}
.co-photo-notice:not(:empty),#co-photo-viewer .account-error {margin:0;padding:12px 20px;text-align:center}
@media(max-width:560px){
  .co-stock-row {grid-template-columns:21px 44px minmax(0,1fr);gap:3px 6px}
  .co-stock:not(:has(.co-selection)) .co-stock-row {grid-template-columns:44px minmax(0,1fr)}
  .co-thumb {width:44px;height:44px}
  .co-result {grid-column:3}
  .co-stock:not(:has(.co-selection)) .co-result {grid-column:2}
}

.co-group>h3 small {display:inline-block;margin-left:4px;padding:1px 6px;border-radius:5px;background:var(--soft)}
.co-photo-controls {display:flex;align-items:center;flex-shrink:0;gap:8px}
#co-photo-viewer [data-photo-zoom] {min-height:44px;border:1px solid #475064;border-radius:9px;background:transparent;color:#f8f9fc;padding:6px 11px;cursor:pointer}
.co-photo-stage>img {cursor:zoom-in}
.co-photo-stage.zoomed {display:block;overflow:auto;overscroll-behavior:contain}
.co-photo-stage.zoomed>img {display:block;max-width:none;max-height:none;margin:auto;cursor:zoom-out}

.object-link>svg {width:14px;height:14px;color:var(--muted)}


.co-recorded {margin-top:16px;border-top:1px solid var(--line);padding-top:8px}
.co-recorded summary {width:fit-content;padding:7px 0;color:var(--muted);font-size:14px;font-weight:550;cursor:pointer}

.co-form[data-disposition] .dialog-actions {position:sticky;bottom:0;background:white;padding-block:10px;z-index:1}

.co-sent-notice {padding:12px 14px;border-radius:8px;background:var(--success-bg);color:var(--success)}

@media screen and (max-width:640px) {
  .co-handover-closed .site-overview .co-time {font-size:.8125rem;gap:2px 5px}
  #dialog :is(.co-batch-actions,.co-options,.co-row-exceptions>div) {
    display:grid;
    width:100%;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:stretch;
    gap:8px;
  }
  #dialog :is(.co-batch-actions,.co-options,.co-row-exceptions>div) > .button,
  #dialog .co-foot > .button,
  #dialog .co-item > .button {
    width:100%;
    min-width:0;
    min-height:var(--sheet-action-height,46px);
    padding:8px;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  #dialog :is(.co-batch-actions,.co-options,.co-row-exceptions>div) > :last-child:nth-child(odd) {grid-column:1/-1}
  #dialog .co-foot {display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:10px}
  #dialog .co-foot > .co-link {justify-content:center}
  #dialog .co-progress {align-items:baseline;flex-wrap:wrap;gap:4px 12px}
  #dialog .co-summary-meta {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  #dialog .co-summary-meta dd {overflow-wrap:anywhere}
  #dialog .co-arrival {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:6px 10px}
  #dialog .co-arrival > div {min-width:0}
  #dialog .co-arrival > .co-link {grid-column:2;min-height:var(--sheet-action-height,46px)}
  #dialog .co-route {width:100%;grid-template-columns:minmax(0,1fr) 15px minmax(0,1fr);column-gap:6px}
}
