.weekly-dialog { width: min(1080px,calc(100vw - 32px)); padding-bottom: 0; }
.workspace-icon-review { width: 14px; height: 17px; margin-inline: 1px; border: 1.7px solid currentColor; border-radius: 2px; }
.workspace-icon-review::before { position: absolute; content: ""; left: 3px; right: 3px; top: 3px; height: 1.5px; background: currentColor; box-shadow: 0 4px 0 currentColor,0 8px 0 currentColor; }
.weekly-dialog [hidden] { display: none !important; }
.weekly-dialog > header { position: sticky; top: -28px; z-index: 3; margin: -28px -28px 0; padding: 25px 28px 16px; background: #fff; }
.weekly-eyebrow { color: #1684e4; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.weekly-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.weekly-dialog .weekly-controls label { flex: 1 1 220px; min-width: 0; margin: 0; }
.weekly-controls select { box-sizing: border-box; width: 100%; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid #c9d9e5; border-radius: 5px; font: inherit; background: white; color: #315774; }
.weekly-week-actions { display: flex; gap: 5px; }
.weekly-week-actions button { height: 40px; }
.weekly-range { font-size: 14px; font-weight: 650; color: #245d8c; overflow-wrap: anywhere; }
.weekly-source-notice { margin: 12px 0; padding: 10px 13px; border: 1px solid #cde3fa; border-radius: 6px; background: #f4f9ff; color: #5e7f9d; font-size: 12px; line-height: 1.8; }
.weekly-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid #d4e5f5; border-radius: 8px; background: #f7fbff; }
.weekly-metrics > div { min-width: 0; padding: 14px 18px; border-right: 1px solid #d4e5f5; }
.weekly-metrics > div:last-child { border: 0; }
.weekly-metrics span { display: block; font-size: 12px; color: #70869b; }
.weekly-metrics strong { display: block; margin-top: 5px; color: #195786; font-size: 25px; font-weight: 700; }
.weekly-note { font-size: 12px; line-height: 1.9; color: #72879d; }
.weekly-draft-meta,.weekly-draft-meta > div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.weekly-draft-meta { margin: 18px 0; }
#weeklyDraftState { font-size: 12px; color: #267b85; }
.weekly-draft-meta button { font-size: 11px; padding: 6px 9px; }
.weekly-dialog #weeklyDelete { color: #a4586b; }
.weekly-dialog .weekly-title-field { margin: 14px 0 20px; }
.weekly-title-field input { color: #264e70; font-weight: 600 !important; }
.weekly-edit-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.weekly-dialog .weekly-section { min-width: 0; margin: 0; padding: 14px; border: 1px solid #dbe8f4; border-top: 3px solid var(--weekly-accent,#1781db); border-radius: 8px; background: #fbfdff; color: #2c5d85; }
.weekly-section:nth-child(3) { --weekly-accent: #dfa13d; }
.weekly-section:nth-child(4) { --weekly-accent: #19a3b3; }
.weekly-section:nth-child(5) { --weekly-accent: #20a17d; }
.weekly-section-summary { grid-column: 1 / -1; }
.weekly-dialog .weekly-section textarea { margin-top: 4px; background: #fff; font-size: 12px; font-weight: 400; line-height: 1.9; resize: vertical; min-height: 95px; }
.weekly-dialog > footer { position: sticky; bottom: 0; z-index: 2; justify-content: flex-end; gap: 8px; margin: 20px -28px 0; padding: 14px 28px; background: #fff; border-top: 1px solid #dce8f4; box-shadow: 0 -7px 18px #1b4d7808; }
.weekly-message { font-size: 12px; line-height: 1.9; color: #268272; }
.weekly-message[data-error="true"] { color: #ae4960; }
.weekly-dialog :is(button,input,select,textarea):focus-visible { outline: 2px solid #1688f5; outline-offset: 2px; }
.weekly-dialog button:disabled { opacity: .5; cursor: default; }
.weekly-dialog input,.weekly-dialog textarea,.weekly-confirm p { overflow-wrap: anywhere; }
.weekly-report-inline { width: 100%; max-height: none; overflow: visible; padding: 20px 20px 0; box-shadow: none; margin: 0; }
#weeklyReportDialog[hidden],#personalWorkbenchTaskContent[hidden] { display: none !important; }
.weekly-report-inline > header { position: static; margin: -20px -20px 0; padding: 20px; }
.weekly-report-inline > header > button { flex: 0 0 auto; font-size: 12px; padding: 9px 12px; }
.weekly-report-inline > footer { margin: 20px -20px 0; padding: 14px 20px; }
.weekly-report-inline > .weekly-message:empty { display: none; }
.weekly-report-inline > .weekly-message:not(:empty) { position: sticky; bottom: 68px; z-index: 3; padding: 9px 12px; margin: 0; max-height: 180px; overflow: auto; border: 1px solid #dce8f4; border-radius: 6px; background: #fff; }
body:has(#personalWorkbench:not([hidden]) #weeklyReportDialog:not([hidden])) #appToast { bottom: 100px; }
.weekly-message { white-space: pre-wrap; }
@media(max-width:700px) {
  .weekly-dialog { width: 100%; padding: 20px 20px 0; }
  .weekly-dialog > header { top: -20px; margin: -20px -20px 0; padding: 20px; }
  .weekly-dialog > header h2 { font-size: 20px; }
  .weekly-controls { gap: 10px; }
  .weekly-dialog .weekly-controls label { flex-basis: 100%; }
  .weekly-week-actions { width: 100%; }
  .weekly-week-actions button { flex: 1; }
  .weekly-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .weekly-metrics > div { padding: 12px; border-bottom: 1px solid #d4e5f5; }
  .weekly-metrics > div:nth-child(even) { border-right: 0; }
  .weekly-metrics > div:nth-child(3) { border-bottom: 0; }
  .weekly-edit-grid { grid-template-columns: minmax(0,1fr); }
  .weekly-dialog > footer { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 16px -20px 0; padding: 12px 20px; }
  .weekly-dialog > footer button { min-width: 0; padding: 9px 5px; font-size: 12px; }
  .weekly-report-inline > header { position: static; }
  .weekly-report-inline > .weekly-message:not(:empty) { bottom: 68px; }
  body:has(#personalWorkbench:not([hidden]) #weeklyReportDialog:not([hidden])) #appToast { bottom: 100px; }
}
