.worker-topbar-actions { display: flex; align-items: center; gap: 14px; }
#worker-history-open { padding: 6px 0; border: 0; background: transparent; }
.worker-history-dialog { width: min(660px, calc(100% - 24px)); max-width: calc(100% - 24px); max-height: calc(100dvh - 32px); margin: auto; padding: 16px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); overflow-wrap: anywhere; }
.worker-history-dialog::backdrop { background: rgb(15 35 25 / 45%); }
.worker-history-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.worker-history-heading h2 { margin: 0; font-size: 1.125rem; }
#worker-history-identity { margin: 8px 0 12px; font-size: .875rem; font-weight: 650; }
.worker-history-filter { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.worker-history-filter label { flex: 1 1 120px; min-width: 0; font-size: .85rem; }
.worker-history-filter input { display: block; width: 100%; min-width: 0; margin-top: 4px; height: 40px; padding: 0 8px; font-size: 16px; }
.worker-history-card { padding: 12px 0; border-top: 1px solid var(--line); }
.worker-history-card h3 { margin: 0 0 8px; font-size: 1rem; }
.worker-history-card p { margin: 6px 0; font-size: .875rem; }
.worker-history-card img { display: block; width: 100%; max-height: 340px; object-fit: contain; border-radius: var(--radius-sm); margin-top: 10px; }
.worker-history-admin { color: var(--warning); font-weight: 700; }
.worker-history-pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .85rem; }
@media (max-width: 380px) { .worker-topbar-actions { gap: 10px; } .worker-topbar-actions .quiet-link { font-size: .8rem; } .worker-history-dialog { padding: 14px; } }
#worker-current-status { min-width: 0; height: 43px; margin-top: 6px; padding: 4px 8px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-size: 11px; line-height: 17px; overflow: hidden; }
#worker-current-status p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.worker-current-project { font-weight: 700; }
.worker-main:has(#worker-current-status:not([hidden])) .camera-frame,
.worker-main:has(#worker-current-status:not([hidden])) .camera-frame:has(img:not([hidden])) { height: clamp(48px, calc(100dvh - 549px), 311px); }

.worker-history-dialog .button { min-height: 36px; padding: 7px 10px; border-radius: 8px; font-size: 13px; line-height: 20px; }
#worker-history-status { margin: 10px 0; font-size: .8125rem; }
