.offline-work-page { min-height:100dvh; padding:20px; color:#173247; background:#f3f8fa; }
.offline-work-header { max-width:1000px; margin:0 auto 20px; display:flex; flex-wrap:wrap; gap:16px; align-items:center; justify-content:space-between; }
.offline-work-header h1 { font-size:24px; margin:0; }
.offline-work-header a { color:inherit; text-decoration:none; font-weight:750; }
#offlineWorkspace article>small { display:block; margin-top:6px; }
#offlineWorkspace article>button { min-height:44px; margin-top:8px; }
#offlineWorkspace,#offlineMessage { max-width:1000px; margin:0 auto; }
#offlineWorkspace label { display:grid; gap:7px; min-width:0; }
#offlineWorkspace :is(input,select,textarea) { width:100%; min-width:0; min-height:44px; padding:10px; border:1px solid #b8cfd7; border-radius:8px; background:#fff; color:#173247; font:inherit; }
.offline-action-grid { display:flex; flex-wrap:wrap; gap:10px; margin:16px 0; }
.offline-action-grid>* { flex:1 1 140px; }
.offline-queue-item { margin:10px 0; padding:14px; border:1px solid #c7d9e1; border-radius:10px; background:#fff; }
.offline-queue-item[data-status="conflict"],.offline-queue-item[data-status="blocked"] { border:2px solid #b72e42; }
.offline-queue-item pre { max-width:100%; white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; padding:10px; background:#edf3f6; }
.offline-gallery { display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:12px; }
.offline-gallery img { width:100%; height:130px; object-fit:contain; background:#e0eaee; }
.offline-queue-item p { overflow-wrap:anywhere; }
#offlineMessage { padding:14px 0; font-weight:700; }
html[data-theme="dark"] .offline-work-page { color:#edf7f8; background:#071920; }
html[data-theme="dark"] #offlineWorkspace :is(input,select,textarea) { color:#edf7f8; background:#102a34; border-color:#4b737d; color-scheme:dark; }
html[data-theme="dark"] .offline-queue-item { background:#102a34; border-color:#4b737d; }
html[data-theme="dark"] .offline-queue-item pre { background:#071920; }
@media(max-width:600px){.offline-work-page{padding:12px}.offline-work-header h1{font-size:20px}.offline-action-grid>*{flex:1 1 100px}}
