/* 自動產生，請勿手改：node tools/make-dark-theme.js（來源：housekeeping_sop.html 的內嵌樣式）。 */
@media screen{
  html[data-theme="dark"] body{background:#181e24;color:#d0d7e4}
  html[data-theme="dark"] .page{background:#152032}
  html[data-theme="dark"] .header::before{background:#1520320f}
  html[data-theme="dark"] .header::after{background:#1520320a}
  html[data-theme="dark"] .logo-icon{background:#1520322e}
  html[data-theme="dark"] .header h1{color:#ffffff}
  html[data-theme="dark"] .header h2{color:#ffffffd9}
  html[data-theme="dark"] .meta-badge{background:#15203226;border:1px solid #1a273d4d;color:#ffffff}
  html[data-theme="dark"] .info-bar{background:#191f29;border-bottom:2px solid #28323d}
  html[data-theme="dark"] .info-item{color:#a5b3c0}
  html[data-theme="dark"] .info-item strong{color:#adc6e1}
  html[data-theme="dark"] .section-title span{color:#adc6e1}
  html[data-theme="dark"] .section-title .subtitle{color:#9dadc8}
  html[data-theme="dark"] .main-table{border:1.5px solid #2b3947}
  html[data-theme="dark"] .main-table td{border-right:1px solid #2a363e;border-bottom:1px solid #2a363e}
  html[data-theme="dark"] .main-table tr:nth-child(even) td{background:#16212c}
  html[data-theme="dark"] .main-table tr:hover td{background:#131e2a}
  html[data-theme="dark"] .day-num{color:#adc6e1}
  html[data-theme="dark"] .day-num.sunday{color:#dc9189}
  html[data-theme="dark"] .day-num.saturday{color:#89bbdc}
  html[data-theme="dark"] .week-sun{background:#2a1010;color:#dc9189}
  html[data-theme="dark"] .week-mon{background:#101f2a;color:#89bbdc}
  html[data-theme="dark"] .week-tue{background:#102a1f;color:#89dcac}
  html[data-theme="dark"] .week-wed{background:#2a2410;color:#edc078}
  html[data-theme="dark"] .week-thu{background:#1f102a;color:#be96cf}
  html[data-theme="dark"] .week-fri{background:#2a101f;color:#e87db7}
  html[data-theme="dark"] .week-sat{background:#0d162e;color:#8597e0}
  html[data-theme="dark"] .task-list{color:#b3c0cd}
  html[data-theme="dark"] .task-list .weekly-tag{background:#0d1d2e;color:#8eb5d7}
  html[data-theme="dark"] .task-list .weekly-tag.green{background:#102a1a;color:#89dcac}
  html[data-theme="dark"] .task-list .weekly-tag.purple{background:#1f102a;color:#be96cf}
  html[data-theme="dark"] .task-list .weekly-tag.orange{background:#2a1e10;color:#e6af7f}
  html[data-theme="dark"] .task-list .weekly-tag.pink{background:#2a101f;color:#e87db7}
  html[data-theme="dark"] .task-list .weekly-tag.gray{background:#111927;color:#a8b3bd}
  html[data-theme="dark"] .cb-row{color:#a8b3bd}
  html[data-theme="dark"] .note-field{border:1px solid #303942;color:#b3c0cd;background:#0f1f35}
  html[data-theme="dark"] .holiday-row td{background:#340f0f !important}
  html[data-theme="dark"] .holiday-row .day-num{color:#dc9189}
  html[data-theme="dark"] .rest-badge{background:#2b0c0c;color:#dc9189}
  html[data-theme="dark"] .legend-item{color:#a5b3c0}
  html[data-theme="dark"] .sign-section{border:1.5px solid #2b3947}
  html[data-theme="dark"] .sign-body{background:#152032}
  html[data-theme="dark"] .sign-cell{border-right:1px solid #2a363e}
  html[data-theme="dark"] .sign-cell .sign-title{color:#adc6e1;border-bottom:1px dashed #2b3947}
  html[data-theme="dark"] .sign-hint{color:#a5b3c0}
  html[data-theme="dark"] .stamp-area{border:1.5px dashed #2b3947}
  html[data-theme="dark"] .date-sign-row{color:#a8b3bd}
  html[data-theme="dark"] .remarks-box{border:1.5px solid #2b3947}
  html[data-theme="dark"] .remarks-header{background:#152028;border-bottom:1px solid #2b3947;color:#adc6e1}
  html[data-theme="dark"] .remarks-content{color:#a5b3c0}
  html[data-theme="dark"] .remarks-content li span{color:#dc9189}
  html[data-theme="dark"] .footer-left{color:#ffffffcc}
  html[data-theme="dark"] .footer-right{color:#ffffffcc}
  html[data-theme="dark"] .footer-center{color:#ffffff}
  @media print{
    html[data-theme="dark"] body{background:#152032}
  }
  html[data-theme="dark"] .control-panel h3{border-bottom:1px solid #1a273d33}
  html[data-theme="dark"] .ctrl-row label{color:#ffffffbf}
  html[data-theme="dark"] .ctrl-row input,html[data-theme="dark"] .ctrl-row select{border:1px solid #1a273d40;background:#1520321f;color:#ffffff}
  html[data-theme="dark"] .ctrl-row input::placeholder{color:#ffffff66}
  html[data-theme="dark"] .btn-update{background:#15203226;color:#ffffff;border:1px solid #1a273d4d}
  html[data-theme="dark"] .btn-update:hover{background:#15203238}
  @media (max-width: 900px){
    html[data-theme="dark"] .sign-cell{border-bottom:1px solid #2a363e}
  }
}

/* ===== 居家整理 SOP 的深色補強 ===== */
@media screen{
html[data-theme="dark"] .btn-print{color:#06223a}
html[data-theme="dark"] [style*="c0392b"]{color:#ff9a8a!important}
html[data-theme="dark"] .stamp-area{color:#8d9ebd}
html[data-theme="dark"] .sign-hint{color:#9dabca}
}
