/* R15: compact report period controls and recoverable manual copy actions. */
#view-reports .report-focus-bar{flex-wrap:wrap;gap:14px 20px}
#view-reports .report-period-controls{display:flex;flex:0 1 auto;width:auto;max-width:100%;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-left:auto}
#view-reports .report-period-controls label{display:flex;flex-direction:row;align-items:center;flex:0 0 auto;gap:10px;width:auto;max-width:100%;min-height:44px;margin:0;box-sizing:border-box;border:1px solid #d4deea;border-radius:10px;background:#fff;color:#45617f;font-size:12px;line-height:1.4;font-weight:600}
#view-reports .report-period-controls .history-toggle{padding:0 13px;white-space:nowrap}
#view-reports .report-period-controls .history-toggle input{width:16px;height:16px;min-height:0;flex:none;margin:0;accent-color:#285bdd;cursor:pointer}
#view-reports .report-period-controls .history-toggle:has(input:checked){border-color:#92afea;background:#eff4ff;color:#244f9f}
#view-reports .report-period-controls .v11-date{gap:0;padding:0 0 0 12px;overflow:hidden}
#view-reports .report-period-controls .v11-date>span{white-space:nowrap;margin-right:12px}
#view-reports .report-period-controls input[type=date]{box-sizing:border-box;width:148px;max-width:148px;min-width:0;min-height:42px;margin:0;padding:8px 10px;border:0;border-left:1px solid #e1e7ef;border-radius:0;font:inherit;font-weight:500;color:#23354d;background:transparent}
#view-reports .report-period-controls .v11-date:has(input:disabled){background:#f5f7fa;color:#7b8a9c}
#view-reports .report-period-controls input[type=date]:disabled{color:#7b8a9c;opacity:1;cursor:not-allowed}
#view-reports .report-period-controls .v11-date:focus-within,#view-reports .report-period-controls .history-toggle:focus-within{outline:2px solid #8cafe6;outline-offset:2px}
#view-reports .report-period-controls input:focus-visible{outline:none}
.manual-action-notice{margin-top:12px;padding:14px;border:1px solid #d4deea;border-radius:11px;background:#f5f8fc;color:#334e70}
.manual-action-notice[data-tone=attention]{border-color:#e5cc94;background:#fffaf0;color:#705420}
.manual-action-notice p{margin:0;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.manual-action-notice textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;min-height:112px;margin:10px 0 0;padding:10px 12px;border:1px solid #d8deea;border-radius:8px;background:#fff;color:#23354d;font-family:inherit;font-size:12px;line-height:1.65;resize:vertical}
.manual-action-notice textarea:focus-visible{outline:2px solid #8cafe6;outline-offset:2px}
.manual-action-recovery{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.manual-action-recovery:has(>button:not([hidden])){display:flex}
.manual-action-recovery:not(:has(>button:not([hidden]))){display:none}
.manual-action-recovery .btn{min-height:40px;white-space:normal;text-align:center}
.manual-action-notice[hidden],.manual-action-notice [hidden]{display:none!important}
@media(max-width:1100px){
  #view-reports .report-period-controls{flex:1 1 100%;justify-content:flex-start;margin-left:0}
}
@media(max-width:480px){
  #view-reports .report-period-controls{gap:8px}
  #view-reports .report-period-controls .history-toggle{min-height:40px}
  #view-reports .report-period-controls .v11-date{flex:1 1 100%;justify-content:space-between}
  #view-reports .report-period-controls input[type=date]{flex:1 1 145px;max-width:none}
  .manual-action-recovery .btn{flex:1 1 100%}
}

/* Manual reporting remains independent from the automatic bot queue. */
.manual-channel-guide{margin:0 0 14px;padding:12px 14px;border:1px solid var(--border,#e2e8f0);border-radius:12px;background:var(--surface-alt,#f8fafc);color:var(--muted,#64748b);font-size:13px;line-height:1.65}
.report-text[readonly]{min-height:96px;height:auto;resize:vertical;overflow-wrap:anywhere}
.drawer-actions{gap:10px}
.drawer-actions #openGoogleBtn{white-space:normal;text-align:left}

.bot-status-help{margin:0 0 16px;padding:0 2px}.bot-status-help .helper{margin:0 0 10px}.bot-status-help textarea{display:block;width:100%;margin-top:12px;min-height:150px;font:12px/1.6 ui-monospace,monospace;resize:vertical}.bot-status-help textarea[hidden]{display:none}

/* R15.2.6: bot result stays separate from every person's manual progress. */
.bot-outcome-note{display:flex;flex-direction:column;gap:5px;padding:11px 13px;margin:10px 0;border:1px solid #eed9ad;border-radius:12px;background:#fff8e9;color:#76531d;font-size:12px;line-height:1.6;overflow-wrap:anywhere;text-align:left}
.bot-outcome-note strong{font-size:10px;letter-spacing:.07em;text-transform:uppercase;color:#896423}
#drawerMeta .bot-outcome-note{flex:0 0 100%;box-sizing:border-box}
