/* 研習錄影(2026-11-11)— 色彩用全站變數,亮暗兩組都過 4.5:1 */
.ws-wrap { max-width: 1000px; margin: 0 auto; padding: 16px; color: var(--text-primary); }
.ws-crumb { font-size: .9rem; margin-bottom: .25rem; }
.ws-crumb a { color: var(--primary-color); }
.ws-title { font-size: 1.6rem; font-weight: 700; margin: .25rem 0 .5rem; }
.ws-h2 { font-size: 1.2rem; font-weight: 700; margin: 1.25rem 0 .5rem; }
.ws-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; color: var(--text-secondary); margin-bottom: 1rem; align-items: center; }
.ws-badge { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .85rem; font-weight: 600; border: 1px solid currentColor; }
.ws-badge-pub { color: #15803D; }
.ws-badge-lock { color: #B45309; }
.ws-badge-warn { color: #9A3412; }
.ws-player { position: relative; background: #000; border-radius: 12px; overflow: hidden; }
.ws-player video { display: block; width: 100%; max-height: 70vh; background: #000; }
.ws-player video:focus-visible { outline: 3px solid #F59E0B; outline-offset: -3px; }
.ws-player:fullscreen video { max-height: 100vh; height: 100%; }
.ws-mark { position: absolute; pointer-events: none; user-select: none; color: rgba(255, 255, 255, .45); font-size: clamp(.75rem, 1.6vw, 1rem); text-shadow: 0 0 2px rgba(0, 0, 0, .6); white-space: nowrap; transition: left 1s, top 1s; }
.ws-tools { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; margin: .75rem 0; }
.ws-field { display: flex; gap: .5rem; align-items: center; }
.ws-field select, .ws-upload input[type=file] { padding: .3rem .5rem; border: 1px solid var(--text-light); border-radius: 6px; background: var(--bg-primary); color: var(--text-primary); }
.ws-keys { font-size: .85rem; color: var(--text-secondary); margin: 0; }
.ws-status { min-height: 1.5rem; color: var(--text-secondary); }
.ws-empty { padding: 2rem 1rem; text-align: center; border: 2px dashed var(--text-light); border-radius: 12px; color: var(--text-secondary); }
.ws-summary { line-height: 1.8; color: var(--text-secondary); }
.ws-note { background: var(--bg-secondary); border-left: 4px solid #B45309; padding: .75rem 1rem; border-radius: 6px; margin: 1rem 0; }
.ws-btn { display: inline-block; padding: .4rem 1rem; border-radius: 8px; border: 2px solid #0F766E; background: #0F766E; color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; }
.ws-btn:hover { background: #115E59; border-color: #115E59; color: #fff; }
.ws-btn-ghost { background: transparent; color: var(--primary-color); border-color: var(--primary-color); }
.ws-btn-ghost:hover { background: var(--bg-secondary); color: var(--primary-color); }
.ws-btn-danger { background: #B91C1C; border-color: #B91C1C; }
.ws-btn-danger:hover { background: #991B1B; border-color: #991B1B; }
.ws-btn:disabled { opacity: .6; cursor: not-allowed; }
.ws-btn:focus-visible, .ws-field select:focus-visible, .ws-upload input:focus-visible, .ws-crumb a:focus-visible { outline: 3px solid #F59E0B; outline-offset: 2px; }
.ws-card { border: 1px solid var(--text-light); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; background: var(--bg-primary); }
.ws-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0; }
.ws-upload progress { width: 200px; }
.ws-scroll { max-width: 100%; overflow-x: auto; }   /* 窄螢幕影片表格可左右捲動,整頁不橫捲 */
.ws-scroll:focus-visible { outline: 3px solid #F59E0B; outline-offset: 2px; }
.ws-upload input[type=file] { max-width: 100%; }
.ws-table { width: 100%; border-collapse: collapse; margin-top: .5rem; font-size: .9rem; }
.ws-table th, .ws-table td { border-bottom: 1px solid var(--text-light); padding: .4rem; text-align: left; vertical-align: middle; }
:root[data-theme="dark"] .ws-badge-pub { color: #4ADE80; }
:root[data-theme="dark"] .ws-badge-lock { color: #FBBF24; }
:root[data-theme="dark"] .ws-badge-warn { color: #FDBA74; }
:root[data-theme="dark"] .ws-btn:not(.ws-btn-ghost):not(.ws-btn-danger) { background: #2DD4BF; border-color: #2DD4BF; color: #0B1220; }
:root[data-theme="dark"] .ws-note { border-left-color: #FBBF24; }
@media (max-width: 576px) { .ws-title { font-size: 1.3rem; } .ws-table { font-size: .8rem; } }
@media (prefers-reduced-motion: reduce) { .ws-mark { transition: none; } }
/* [WORKSHOP-EDIT] 場次表單(2026-11-12) */
.ws-editbox > summary { cursor: pointer; font-weight: 600; color: var(--primary-color); padding: .25rem 0; }
.ws-editbox > summary:focus-visible { outline: 3px solid #F59E0B; outline-offset: 2px; }
details.ws-card > summary.ws-h2 { margin: 0; }
.ws-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; margin-top: .75rem; }   /* minmax(0,1fr):活動名稱很長時下拉選單不撐破窄螢幕 */
.ws-field-row { display: flex; flex-direction: column; gap: .25rem; border: 0; padding: 0; margin: 0; }
.ws-field-row legend { font-weight: 600; margin-bottom: .25rem; }
.ws-field-row > label { font-weight: 600; }
.ws-field-row input[type=text], .ws-field-row input[type=date], .ws-field-row input[type=url], .ws-field-row textarea, .ws-field-row select { width: 100%; max-width: 640px; padding: .4rem .6rem; border: 1px solid var(--text-light); border-radius: 6px; background: var(--bg-primary); color: var(--text-primary); }
.ws-field-row input:focus-visible, .ws-field-row textarea:focus-visible, .ws-field-row select:focus-visible { outline: 3px solid #F59E0B; outline-offset: 2px; }
.ws-field-row fieldset label, fieldset.ws-field-row label { font-weight: 400; display: flex; gap: .4rem; align-items: center; }
.ws-hint { color: var(--text-secondary); font-size: .9rem; }   /* [WORKSHOP-ACT] 找活動結果 */
.ws-req { font-weight: 400; color: var(--text-secondary); font-size: .85rem; }
/* [WORKSHOP-LIST] 公開列表頁(2026-11-12) */
.wsl-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 1rem; }
.wsl-item { min-width: 0; overflow-wrap: anywhere; border: 1px solid var(--text-light); border-radius: 12px; padding: 1rem 1.25rem; background: var(--bg-primary); }
.wsl-item h2 { font-size: 1.2rem; font-weight: 700; margin: .25rem 0 .5rem; color: var(--text-primary); }
.wsl-when { color: var(--text-secondary); font-size: .95rem; }
.wsl-who { margin: .25rem 0; color: var(--text-primary); }
.wsl-who span { color: var(--text-secondary); }
.wsl-sum { color: var(--text-secondary); line-height: 1.8; margin: .5rem 0; }
.wsl-act { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-top: .5rem; }
.wsl-pending { color: var(--text-secondary); }
.wsl-thumb { display: block; width: 100%; max-width: 360px; height: auto; border-radius: 8px; margin: .5rem 0; }
.wsl-thumb:focus-visible, .wsl-act a:focus-visible { outline: 3px solid #F59E0B; outline-offset: 2px; }
.ws-summary a, .ws-empty a { color: var(--primary-color); font-weight: 600; }
.ws-summary a:focus-visible, .ws-empty a:focus-visible { outline: 3px solid #F59E0B; outline-offset: 2px; }
