.wp09-duplicate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wp09-form h3 {
  margin: -6px 0 4px;
  font-size: 1.15rem;
}

.wp09-copy-summary {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--wp-border);
  border-radius: var(--wp-radius-md, 8px);
  background: var(--wp-border);
}

.wp09-copy-summary > div {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  background: var(--wp-surface);
}

.wp09-copy-summary span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--wp-accent-text);
  background: var(--wp-success-bg);
}

.wp09-copy-summary p {
  margin: 0;
  color: var(--wp-text-secondary);
}

.wp09-copy-summary strong {
  color: var(--wp-text);
}

.wp09-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wp09-head-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.wp09-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wp09-photo-panel {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--wp-border);
  border-radius: var(--wp-radius-md, 8px);
  background: var(--wp-surface);
}

.wp09-photo-frame { overflow: hidden; aspect-ratio: 4 / 3; border-radius: 6px; background: var(--wp-surface-muted); }
.wp09-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.wp09-photo-panel figcaption { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 0; }
.wp09-photo-panel figcaption span { display: grid; gap: 2px; min-width: 0; }
.wp09-photo-panel figcaption small { color: var(--wp-text-secondary); overflow-wrap: anywhere; }
.wp09-annotations { display: grid; gap: 8px; margin: 0 0 12px; padding: 12px 0; border-top: 1px solid var(--wp-border); list-style: none; }
.wp09-annotations li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.wp09-annotations li > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--wp-info-bg); color: var(--wp-info); font-weight: 800; }
.wp09-annotations p { margin: 0; }
.wp09-annotations small { display: block; margin-top: 3px; color: var(--wp-text-secondary); }
.wp09-annotations .empty { grid-template-columns: 1fr; color: var(--wp-text-secondary); }

.wp09-request-list { display: grid; gap: 8px; }
.wp09-request-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 88px; padding: 14px 16px; border: 1px solid var(--wp-border); border-radius: 8px; color: inherit; text-decoration: none; background: var(--wp-surface); }
.wp09-request-row:hover, .wp09-request-row:focus-visible { border-color: var(--wp-border-input); background: var(--wp-surface-muted); }
.wp09-request-row > span { display: grid; gap: 5px; min-width: 0; }
.wp09-request-row small { color: var(--wp-text-secondary); }
.wp09-request-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr); gap: 16px; }
.wp09-request-layout > section, .wp09-request-layout > aside { padding: 20px; border: 1px solid var(--wp-border); border-radius: 8px; background: var(--wp-surface); }
.wp09-request-layout dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; margin: 20px 0; }
.wp09-request-layout dt { color: var(--wp-text-secondary); }
.wp09-request-layout dd { margin: 0; }
.wp09-request-history { margin: 16px 0 0; padding-left: 20px; }
.wp09-request-history li { padding: 0 0 14px 6px; }
.wp09-request-history small { display: block; color: var(--wp-text-secondary); }
.wp09-triage-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.wp09-time-panel { display: grid; gap: 16px; min-width: 0; margin: 0; padding: 22px; border: 1px solid var(--wp-border); border-radius: 8px; background: var(--wp-surface); }
.wp09-time-panel > header h2 { margin: 0; font-family: inherit; font-size: 20px; line-height: 1.3; }
.wp09-time-panel > .wp03-empty-copy { margin: 0; padding: 0; color: var(--wp-text-secondary); font-size: 16px; line-height: 1.5; }
.wp09-time-panel > footer { display: flex; justify-content: flex-end; padding-top: 14px; border-top: 1px solid var(--wp-border); }
.wp09-time-panel > footer .button { min-height: 44px; margin: 0; }
.wp09-time-table { display: grid; margin-top: 14px; border-top: 1px solid var(--wp-border); }
.wp09-time-row { display: grid; grid-template-columns: minmax(120px, 1.3fr) repeat(3, minmax(86px, .7fr)); gap: 12px; align-items: center; min-height: 58px; border-bottom: 1px solid var(--wp-border); }
.wp09-time-row > span { display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.wp09-time-row small { color: var(--wp-text-secondary); }
.wp09-time-diff { display: inline-flex !important; justify-self: start; width: max-content; padding: 4px 8px; border-radius: 999px; background: var(--wp-success-bg); color: var(--wp-success); font-weight: 800; }
.wp09-time-diff[data-tone="warning"] { background: var(--wp-warning-bg); color: var(--wp-warning); }
.wp09-time-diff.muted { padding: 0; border-radius: 0; background: transparent; color: var(--wp-text-secondary); font-weight: 500; }
.wp09-time-history { margin-top: 14px; }
.wp09-time-history summary { min-height: 44px; padding: 10px 0; cursor: pointer; color: var(--wp-accent-text); font-weight: 750; }
.wp09-time-history ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wp09-time-history li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; background: var(--wp-surface-muted); }
.wp09-time-history li span { display: grid; gap: 2px; }
.wp09-time-history small { color: var(--wp-text-secondary); }

.wp09-search-form { display: grid; gap: 8px; margin-bottom: 18px; }
.wp09-search-form > label { font-weight: 750; }
.wp02-sidebar-inner nav:has([data-action="wp09-nav-search"]) { margin-top: 0; }
.wp02-sidebar [data-action="wp09-nav-search"] { margin-bottom: 8px; }
.wp09-search-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: stretch; }
.wp09-search-field { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; min-width: 0; min-height: 52px; border: 1px solid var(--wp-border-input); border-radius: 8px; background: var(--wp-surface); }
.wp09-search-field:focus-within { border-color: var(--wp-accent-text); outline: 3px solid var(--wp-accent-text); outline-offset: 2px; }
.wp09-search-field > span { display: grid; place-items: center; color: var(--wp-text-secondary); }
.wp09-search-form input { min-width: 0; min-height: 48px; padding: 0 8px; border: 0; outline: 0; color: var(--wp-text); background: transparent; font: inherit; }
.wp09-search-form button { width: auto; margin: 0; min-height: 52px; }
.assist-mode .wp09-search-form input { min-height: 52px; }
.wp09-result-count { margin: 0 0 10px; color: var(--wp-text-secondary); }
.wp09-search-results { display: grid; gap: 6px; min-width: 0; max-width: 100%; }
.wp09-search-result { display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; gap: 12px; align-items: center; min-width: 0; max-width: 100%; min-height: 82px; padding: 12px 14px; border: 1px solid var(--wp-border); border-radius: 8px; color: inherit; text-decoration: none; background: var(--wp-surface); }
.wp09-search-result:hover, .wp09-search-result:focus-visible { border-color: var(--wp-border-input); background: var(--wp-surface-muted); }
.wp09-result-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 8px; color: var(--wp-accent-text); background: var(--wp-surface-muted); }
.wp09-search-result > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.wp09-search-result small { color: var(--wp-text-secondary); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wp09-search-result strong { overflow-wrap: anywhere; }
.wp09-search-result p { margin: 0; color: var(--wp-text-secondary); overflow-wrap: anywhere; }
.wp09-search-limit { margin-top: 16px; }

@media (max-width: 640px) {
  .wp09-time-panel { padding: 18px; }
  .wp09-time-panel > footer .button { width: 100%; justify-content: center; }
  .wp09-form-grid { grid-template-columns: 1fr; }
  .wp02-page-head .wp09-duplicate { width: auto; margin-top: 10px; justify-content: center; }
  .wp09-head-actions { display: flex; width: auto; justify-content: flex-start; }
  .wp09-compare { display: grid; grid-template-columns: 1fr; width: 100%; }
  .wp09-photo-panel figcaption { align-items: flex-start; flex-direction: column; }
  .wp09-request-layout { grid-template-columns: 1fr; }
  .wp09-request-layout dl { grid-template-columns: 1fr; gap: 3px; }
  .wp09-triage-actions { display: grid; width: 100%; }
  .wp09-time-row { grid-template-columns: 1fr 1fr; padding: 12px 0; }
  .wp09-time-row > strong, .wp09-time-diff { grid-column: 1 / -1; }
  .wp09-search-controls { grid-template-columns: minmax(0, 1fr); }
  .wp09-search-field { grid-template-columns: 40px minmax(0, 1fr); }
  .wp09-search-form button { width: 100%; }
}

/* Shared form controls, including intake and derived requests. */
.wp09-form { display:grid; gap:20px; min-width:0; }
.wp09-form label { display:grid; gap:8px; min-width:0; font-weight:600; }
.wp09-form input,.wp09-form select,.wp09-form textarea { box-sizing:border-box; width:100%; min-width:0; min-height:48px; padding:12px; border:1px solid var(--wp-border-input); border-radius:8px; background-color:var(--wp-surface); color:var(--wp-text); font:inherit; font-weight:400; }
.wp09-form textarea { min-height:120px; resize:vertical; }
.wp09-form small { font-weight:400; color:var(--wp-text-secondary); overflow-wrap:anywhere; }
.wp09-form input[type=file] { overflow:hidden; font-size:14px; }
.wp09-form input::file-selector-button { padding:9px 12px; margin-right:10px; border:1px solid var(--wp-border-input); border-radius:6px; background:var(--wp-surface-muted); color:var(--wp-text); font:inherit; }
.assist-mode .wp09-form input,.assist-mode .wp09-form select,.assist-mode .wp09-form textarea { min-height:52px; font-size:18px; }
/* A consistent inset prevents the arrow touching the right edge. The job sorter already draws its own chevron. */
body select:not([multiple]):not([size]):not(#wp02-sort) { appearance:none; padding-right:44px!important; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237a9998' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; background-size:20px; }
@media(forced-colors:active) { body select:not([multiple]):not([size]):not(#wp02-sort) { appearance:auto; background-image:none; } }
.wp03-quote-items { min-width:0; }
.wp03-quote-items .wp03-element-form { min-width:0; }
.wp03-quote-items .text-button { min-height:44px; margin-top:8px; }
.wp-followups { margin:20px 0; min-width:0; }
.wp-followups > header { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:16px; }
.wp-followups header p { color:var(--wp-text-secondary); }
.wp-followup-list { display:grid; gap:12px; margin-top:16px; }
.wp-followup-row { display:grid; gap:10px; min-width:0; padding:16px; border:1px solid var(--wp-border); border-radius:8px; background:var(--wp-surface); }
.wp-followup-row p { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
.wp-followup-row small { color:var(--wp-text-secondary); }
.wp-followup-row .text-button { text-align:left; white-space:normal; overflow-wrap:anywhere; }
.wp-followup-response { padding:12px; border-left:3px solid var(--wp-accent); background:var(--wp-surface-muted); }
.wp09-upload-label { cursor:pointer; }
.wp09-upload-label:focus-within .wp09-file-trigger { outline:3px solid var(--wp-accent-text); outline-offset:2px; }
.wp09-file-trigger { display:inline-flex; align-items:center; justify-self:start; min-height:44px; padding:8px 14px; border:1px solid var(--wp-border-input); border-radius:6px; background:var(--wp-surface-muted); color:var(--wp-text); font-weight:650; }
.wp09-file-selected { min-width:0; color:var(--wp-text-secondary); font-weight:400; overflow-wrap:anywhere; }

/* Shared inbox and intake attachments follow the existing office surfaces. */
.wp-inbox-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; padding: 0 0 20px; border-bottom: 1px solid var(--wp-border); }
.wp-inbox-status { display: flex; flex-wrap: wrap; gap: 6px; }
.wp-inbox-status [aria-pressed="true"] { border-color: var(--wp-accent); color: var(--wp-accent-text); background: var(--wp-accent-bg); }
.wp-inbox-toolbar label { display: grid; gap: 6px; font-size: .9rem; }
.wp-inbox-toolbar select { min-height: 44px; width: 100%; }
.wp-inbox-toolbar .wp-inbox-mine { display: flex; align-items: center; min-height: 44px; }
.wp-inbox-mine input { width: 18px; height: 18px; }
.wp-inbox-row { display: grid; grid-template-columns: minmax(0,1fr) 190px minmax(160px,240px); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--wp-border); }
.wp-inbox-row h2 { margin: 6px 0 10px; font-size: 1.05rem; line-height: 1.4; }
.wp-inbox-row h2 a { color: inherit; text-decoration: none; }
.wp-inbox-row h2 a:hover { text-decoration: underline; }
.wp-inbox-summary,.wp-followup-response { white-space: pre-wrap; overflow-wrap: anywhere; }
.wp-inbox-meta,.wp-inbox-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: .9rem; }
.wp-inbox-actions .button { width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.wp-inbox-priority { padding: 4px 8px; border-radius: 6px; background: var(--wp-surface-muted); }
.wp-inbox-priority[data-priority="high"],.wp-inbox-overdue { font-weight: 700; color: var(--wp-text); }
.wp-inbox-priority[data-priority="high"] { border: 1px solid var(--wp-border-input); }
.wp-inbox-count { margin-left: auto; min-width: 24px; padding: 2px 6px; border-radius: 5px; background: var(--wp-accent-bg); color: var(--wp-accent-text); text-align: center; font-size: .8rem; }
.wp-inbox-empty { padding: 40px 0; }
.wp-intake-file { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-bottom: 1px solid var(--wp-border); padding: 12px 0; overflow-wrap: anywhere; }
.wp-intake-file span { flex: 1; min-width: 150px; }
.wp-intake-file small { display: block; color: var(--wp-text-secondary); }
.wp-intake-files { margin-top: 24px; }
@media(max-width:900px) { .wp-inbox-row { grid-template-columns: minmax(0,1fr); gap: 16px; } .wp-inbox-meta { flex-direction: row; flex-wrap: wrap; } .wp-inbox-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:480px) { .wp-inbox-toolbar { display: grid; grid-template-columns: minmax(0,1fr); } .wp-inbox-status .button { flex: 1; padding: 10px 12px; } .wp-inbox-actions { grid-template-columns: minmax(0,1fr); } }

.wp-inbox-status { flex: 0 1 auto; align-self: end; }
.wp-inbox-status .button { width: auto; flex: 0 0 auto; min-width: 100px; }
.wp-inbox-toolbar select { appearance: none; -webkit-appearance: none; color: var(--wp-text); background-color: var(--wp-surface-muted); border: 1px solid var(--wp-border-input); border-radius: 8px; padding: 10px 40px 10px 12px; font: inherit; }
@media(max-width:480px) { .wp-inbox-status .button { min-width: 0; flex: 1 1 0; } }

.wp-inbox-status .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.wp-inbox-count { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 4px; border-radius: 999px; background: var(--wp-surface-muted); font-size: .85em; font-variant-numeric: tabular-nums; }
@media(max-width:360px) { .wp-inbox-status { gap: 4px; } .wp-inbox-status .button { padding-inline: 5px; font-size: 13px; } }

/* Follow-up actions stay in the panel header; empty content keeps its inset. */
.wp-followups .wp-followup-actions { display:flex;align-items:center;gap:10px;flex-wrap:wrap; }
.wp-followups .wp-followup-refresh { width:44px;min-height:44px;padding:10px;flex:none; }
.wp-followups .wp-followup-list { padding:0 20px 20px;margin-top:20px; }
.wp-followups > p[role] { margin:16px 20px; }

.wp-company-identity { display:flex;align-items:center;gap:10px;min-width:0;color:var(--wp-text-secondary);font-size:14px;font-weight:600; }
.wp-company-identity img { object-fit:contain;max-width:90px; }
.wp-company-identity span { overflow-wrap:anywhere; }
.wp02-sidebar .wp-company-identity { margin:12px 20px 24px; }
.wp-company-jobs { margin:32px 0; }
.wp-company-jobs h2 { font-size:20px; }
.wp-company-element-action { margin:24px 0; }
.wp-company-job-detail p { white-space:pre-wrap;overflow-wrap:anywhere; }
@media(max-width:700px) { .wp06-worker-head { flex-wrap:wrap; } .wp06-worker-head .wp-company-identity { order:3;flex-basis:100%;font-size:13px; } }

.wp-followups.emp-panel > header .wp-followup-actions { width:100%;display:flex;flex-wrap:nowrap; }
.wp-followups.emp-panel > header .wp-followup-actions .button { width:auto; }
.wp-followups.emp-panel > header .wp-followup-actions .wp-followup-refresh { width:44px;margin-left:auto; }
