#workspaceTabs { position: sticky; top: 0; z-index: 10; display: flex; align-items: flex-end; gap: .375rem; padding: .75rem .75rem 0; background: #fff; border-bottom: 1px solid #bccbd8; }
#workspaceTabs[hidden], #myWork[hidden], #createArea[hidden] { display: none !important; }
#workspaceTabs button { position: relative; flex: 0 1 auto; min-width: 0; min-height: 44px; margin: 0 0 -1px; padding: .75rem 1.5rem; border: 1px solid #bccbd8; border-radius: 10px 10px 0 0; font: inherit; cursor: pointer; }
#workspaceTabs button[aria-selected="true"] { z-index: 1; padding-top: .9rem; border-bottom-color: #fff; background: #fff; color: #0f4c81; font-weight: 700; box-shadow: inset 0 3px 0 #0f4c81; }
#workspaceTabs button[aria-selected="false"] { background: #edf2f7; color: #536174; }
#workspaceTabs button[aria-selected="false"]:hover { background: #e2eaf2; color: #18344e; }
#workspaceTabs button:focus-visible { outline: 3px solid #d97706; outline-offset: -4px; }
#myWork, #createArea { margin-top: 0; border: 1px solid #bccbd8; border-top: 0; border-radius: 0 0 12px 12px; background: #fff; }
@media(max-width:600px) { #workspaceTabs { padding-inline: .5rem; } #workspaceTabs button { flex: 1; padding-inline: .75rem; } }

/* 2026-10-24 John: unified button / dialog look. :where() keeps zero specificity so existing component styles still win. */
:where(button){font:inherit;font-size:15px;line-height:1.4;padding:8px 14px;border:1px solid #c6d2e0;border-radius:7px;background:#fff;color:#24364b;cursor:pointer}
:where(button):hover:not(:disabled){background:#f1f5fa}
:where(button):disabled{opacity:.5;cursor:default}
::file-selector-button{font:inherit;font-size:14px;padding:6px 12px;margin-right:8px;border:1px solid #c6d2e0;border-radius:7px;background:#fff;color:#24364b;cursor:pointer}
:where(select,input[type=text],input[type=search],input[type=date],input[type=number],input:not([type]),textarea){font:inherit;border:1px solid #c6d2e0;border-radius:7px;padding:6px 8px;background:#fff;color:#24364b;box-sizing:border-box;max-width:100%}
:where(dialog){border:1px solid #cad6e4;border-radius:12px;padding:22px;color:#24364b;box-shadow:0 12px 40px #1722392e}
:where(dialog)::backdrop{background:#17223970}
/* v25: 主管工作台 as the third tab panel. */
#managerWorkbench{margin-top:0;border:1px solid #bccbd8;border-top:0;border-radius:0 0 12px 12px}
.unsaved-confirm{max-width:min(420px,calc(100vw - 40px))}.unsaved-confirm p{margin:0 0 16px}.unsaved-confirm-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}

/* Attachment upload progress (CHANGE_2026-10-25_ATTACHMENT_UPLOAD_PROGRESS): one row per file.
   Desktop: name | bar | status on aligned columns. Narrow: name on its own line, then bar and status. */
.hw-upload-list:empty{display:none}
.hw-upload-list{display:grid;gap:10px;margin:8px 0}
.hw-upload-progress{display:grid;grid-template-columns:minmax(0,1fr) 140px 11em;align-items:center;column-gap:10px;row-gap:4px;font-size:14px;min-width:0}
.hw-upload-name{overflow-wrap:anywhere;min-width:0;line-height:1.35}
.hw-upload-progress progress{width:100%;height:10px}
.hw-upload-status{color:#4b5563;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
.hw-upload-progress[data-phase="failed"] .hw-upload-status{color:#b42318}
.hw-upload-progress[data-phase="ready"] .hw-upload-status{color:#166534}
.execution-file{display:flex;align-items:center;gap:10px;margin:0 0 10px}
.execution-file .hw-upload-progress{flex:1}
.execution-file button{white-space:nowrap;flex:none}
/* The list decides the layout by its own width (the own-update panel is half a dialog wide on desktop). */
.hw-upload-list,#executionSelectedFiles{container-type:inline-size}
@container (max-width:620px){
  .hw-upload-progress{grid-template-columns:minmax(0,1fr) 11em}
  .hw-upload-name{grid-column:1 / -1}
}
/* Shared file picker list (hwFilePicker). */
.hw-picked-list:empty{display:none}.hw-picked-list{display:grid;gap:4px;margin:6px 0}
.hw-picked-file{display:flex;gap:8px;align-items:center;font-size:14px}.hw-picked-name{flex:1;min-width:0;overflow-wrap:anywhere}.hw-picked-size{color:#52677d;white-space:nowrap;font-variant-numeric:tabular-nums}.hw-picked-too-big{color:#b42318}
.hw-picked-file button{font:inherit;font-size:13px;padding:3px 10px;border:1px solid #c6d2e0;border-radius:6px;background:#fff;color:#24364b;cursor:pointer;white-space:nowrap}
#createPickedFiles,#createUploadProgress{grid-column:-2/-1}
@media(max-width:480px){.hw-picked-file{flex-wrap:wrap}.hw-picked-name{flex-basis:100%}.hw-picked-size{flex:1}}
/* Message boxes (CHANGE_2026-10-26_MESSAGE_READABILITY). */
.hw-message{display:grid;gap:6px;max-width:34em;white-space:normal}.hw-message p{margin:0 0 0 34px;color:#3b4d61;line-height:1.6}
.hw-message-title{display:flex;gap:10px;align-items:flex-start;font-size:17px;line-height:1.5}.hw-message-title strong{font-weight:600;color:#1f2f42}
.hw-message-icon{flex:0 0 24px;height:24px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;color:#fff;margin-top:1px}
.hw-message-ok .hw-message-icon{background:#1f8a4c}.hw-message-ask .hw-message-icon{background:#185ba0}.hw-message-warn .hw-message-icon{background:#c2410c}.hw-message-error .hw-message-icon{background:#b42318}.hw-message-info .hw-message-icon{background:#52677d}
.hw-message-list{margin:0 0 0 34px;padding-left:1.1em;color:#3b4d61;line-height:1.6}.hw-message-list li{margin:2px 0}
.hw-message-links{margin-left:34px;display:flex;gap:12px;flex-wrap:wrap}
.hw-message-list li.hw-message-fail{color:#b42318}.hw-message-list li.hw-message-fail::marker{color:#b42318}
.hw-message-links .hw-message-input{flex:1 1 100%;font:inherit;font-size:15px;padding:8px 10px;border:1px solid #b8c7d9;border-radius:7px}
