.period-target-page{min-width:0;overflow-x:hidden}.period-target-page .header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.period-target-page .header .right{display:flex;align-items:center;flex-wrap:wrap}.period-wrap{padding:20px;max-width:1900px;margin:auto}.period-intro{display:flex;gap:20px;justify-content:space-between;align-items:flex-start;margin-bottom:16px}.period-intro h1{font-size:21px;margin-bottom:6px}.period-intro p,.period-note{color:var(--dim);font-size:13px;line-height:1.65}.period-links{display:flex;gap:16px;font-size:13px;white-space:nowrap}.period-links a{color:#315efb}.period-state{line-height:1.7;font-size:14px;margin:12px 0}.period-state:empty{display:none}.period-state.error{padding:12px;background:#fff5f3;border:1px solid #fecaca;color:#b42318}.period-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}.period-controls label,.period-table-head label{display:flex;align-items:center;gap:8px;font-size:13px}.period-search{margin-left:auto}.period-target-page input,.period-target-page select,.period-target-page textarea{font:inherit;color:var(--text);background:#fff;border:1px solid #c8d3e2;border-radius:4px;padding:8px 10px;min-height:38px;max-width:100%}.period-target-page :is(.header,.period-wrap,.period-editor,.login-card) button{font:inherit;font-size:13px;cursor:pointer;background:#315efb;color:#fff;padding:8px 14px;border:1px solid #315efb;border-radius:4px;min-height:38px}.period-target-page button:disabled{opacity:.55;cursor:default}.period-target-page button.ghost,.period-pagination button{background:white;color:#334155;border-color:#c8d3e2}.period-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:12px}.period-target-page .period-summary button{background:white;border:1px solid var(--border);color:var(--text);text-align:left;padding:12px 16px}.period-summary button[aria-pressed=true]{border-color:#315efb;box-shadow:inset 0 -2px #315efb}.period-summary span{display:block;color:var(--dim);font-size:13px}.period-summary strong{display:block;font-size:26px;margin-top:5px;font-variant-numeric:tabular-nums}.period-table-head{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:10px}.period-table-head h2{font-size:16px;margin-bottom:6px}.period-table-head p{font-size:12px;color:var(--dim)}.period-table-panel>.period-note{margin-bottom:8px}.period-table-scroll{overflow:auto;max-height:65vh;border:1px solid var(--border);border-radius:3px}.period-table-scroll table{width:100%;min-width:1190px;border-collapse:collapse}.period-table-scroll th{text-align:left;position:sticky;top:0;z-index:1;white-space:nowrap;font-size:13px}.period-table-scroll td{vertical-align:top;font-size:13px;line-height:1.7}.period-product{max-width:200px;font-weight:600;line-height:1.5}.period-sku{color:#315efb;font-size:12px;overflow-wrap:anywhere}.period-secondary{color:var(--dim);font-size:12px}.period-metric{min-width:116px;font-variant-numeric:tabular-nums}.period-metric div{display:flex;justify-content:space-between;gap:12px;white-space:nowrap}.period-metric span{color:var(--dim);font-size:12px}.period-metric b{font-weight:600}.period-progress{height:5px;background:#e8edf5;border-radius:4px;margin:6px 0;overflow:hidden}.period-progress i{display:block;background:#315efb;height:100%}.period-alert{font-size:12px;color:#92520d;line-height:1.6;max-width:230px}.period-alert+.period-alert{margin-top:5px}.period-review{color:#b42318}.period-good{color:#027a48}.period-badge{display:inline-block;padding:2px 6px;background:#f1f5f9;border-radius:3px;font-size:12px}.period-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;font-size:12px;margin-top:12px}.period-rules{margin-top:12px;font-size:13px;line-height:1.7}.period-rules summary{cursor:pointer;font-weight:600}.period-rules p{margin-top:8px;color:var(--dim)}.period-editor{width:min(680px,calc(100vw - 32px));padding:24px;max-height:90vh;overflow:auto}.period-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:12px}.period-dialog-head h2{font-size:18px}.period-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}.period-edit-grid label,.period-note-input{display:flex;flex-direction:column;gap:6px;font-size:13px}.period-note-input textarea{width:100%;resize:vertical}.period-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}#periodSaveMessage{margin-top:12px;color:#b42318;font-size:13px;line-height:1.5}.period-target-page .login-overlay{position:fixed;inset:0;z-index:10000;display:flex;justify-content:center;align-items:center;background:#e9edf5e6}.period-target-page .login-card{padding:28px;background:#fff;border:1px solid var(--border);width:min(400px,calc(100vw - 32px));border-radius:8px}.period-target-page .login-card input,.period-target-page .login-card button{display:block;width:100%;margin-top:8px;margin-bottom:12px}.period-target-page .login-card label{font-size:13px}.period-target-page .login-card .err{font-size:13px;color:#b42318;line-height:1.6}.period-target-page [hidden]{display:none!important}
@media(max-width:800px){.period-wrap{padding:12px}.period-intro{flex-direction:column;gap:10px}.period-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.period-search{margin-left:0}.period-controls{gap:10px}.period-controls label{flex-wrap:wrap}.period-table-head{align-items:flex-start;flex-direction:column;gap:10px}.period-editor{padding:16px}.period-edit-grid{grid-template-columns:1fr}.period-table-scroll{max-height:65vh}.period-intro h1{font-size:19px}}

.period-target-page{font-family:var(--ui-font)}.period-target-page .header{padding:16px 20px;border-bottom:1px solid var(--border)}.period-controls,.period-table-panel,.period-rules{padding:16px}.period-table-scroll th,.period-table-scroll td{padding:12px 10px}.period-table-scroll small{display:block;color:var(--dim);font-size:11px;line-height:1.6}.period-table-scroll td>strong{overflow-wrap:anywhere}.period-metric>span{display:flex;justify-content:space-between;gap:12px;white-space:nowrap}.period-metric .period-actual{color:var(--text);font-size:14px}.period-progress>span{display:block;background:#315efb;height:100%}.period-status{min-width:210px;max-width:270px}.period-badge.warning{background:#fff3db;color:#805117}.period-muted{color:var(--dim);font-size:12px}.period-empty{text-align:center;padding:28px!important;color:var(--dim)}.period-reference-label{font-size:11px;color:#526176;margin-top:5px}.period-reference-signal{font-size:12px;color:#526176;line-height:1.6}.period-target-page button:focus-visible,.period-target-page input:focus-visible,.period-target-page select:focus-visible,.period-target-page textarea:focus-visible{outline:2px solid #315efb;outline-offset:2px}

.period-table-scroll th:last-child{right:0;z-index:2;background:#f1f5f9}.period-table-scroll td:last-child{position:sticky;right:0;min-width:98px;background:#fff;box-shadow:-3px 0 5px #1825360a}

/* Embedded target editor: scope styles to the period panel and its native dialog. */
.promo-mode-bar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 12px;font-size:13px;color:var(--dim)}
.promo-mode-switch{display:inline-flex;border:1px solid #c8d3e2;border-radius:4px;overflow:hidden}
.promo-mode-switch button{padding:7px 18px;min-height:34px;border:0;border-radius:0;background:#fff;color:#526176;font:inherit;cursor:pointer}
.promo-mode-switch button+button{border-left:1px solid #c8d3e2}
.promo-mode-switch button[aria-pressed=true]{background:#edf3ff;color:#245ac7;font-weight:600}
:is(.period-target-panel,.period-editor) :is(input,select,textarea){font:inherit;color:var(--text);background:#fff;border:1px solid #c8d3e2;border-radius:4px;padding:7px 10px;min-height:34px;max-width:100%}
:is(.period-target-panel,.period-editor) button{font:inherit;font-size:13px;cursor:pointer;background:#315efb;color:#fff;padding:7px 12px;border:1px solid #315efb;border-radius:4px;min-height:34px}
:is(.period-target-panel,.period-editor) button:disabled{opacity:.55;cursor:default}
:is(.period-target-panel,.period-editor) button.ghost,.period-target-panel .period-pagination button{background:#fff;color:#334155;border-color:#c8d3e2}
.period-target-panel .period-controls{padding:10px 12px;gap:10px;margin-bottom:10px}
.period-target-panel .period-summary{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.period-target-panel .period-summary button{display:flex;gap:9px;align-items:center;min-height:34px;background:#fff;border:1px solid var(--border);color:var(--text);padding:6px 12px;text-align:left}
.period-target-panel .period-summary strong{font-size:16px;margin:0;line-height:1}
.period-target-panel .period-summary span{font-size:12px}
.period-target-panel .period-summary button[aria-pressed=true]{border-color:#315efb;background:#edf3ff;box-shadow:none}
.period-target-panel .period-table-panel{padding:12px}
.period-target-panel .period-table-head{margin-bottom:10px}
.period-target-panel .period-table-head p{margin:0;color:var(--dim);font-size:12px}
.period-target-panel .period-rules{padding:10px 12px}
.period-editor{margin:auto;border:1px solid #dce2ec;border-radius:6px;color:var(--text);background:#fff;box-shadow:0 16px 60px #10182826;font:14px/1.6 system-ui,sans-serif}
.period-editor::backdrop{background:#10182855}
.period-editor .period-edit-grid input{width:100%;box-sizing:border-box}
.period-editor :is(h2,p){margin:0}
:is(.period-target-panel,.period-editor,.promo-mode-switch) :is(button,input,select,textarea):focus-visible{outline:2px solid #315efb;outline-offset:2px}
:is(.period-target-panel,.promo-mode-bar) [hidden],#promoMonthly[hidden],#promoPeriod[hidden],#periodCurrency[hidden]{display:none!important}
@media(max-width:640px){.promo-mode-bar{gap:8px}.promo-mode-bar>span{font-size:12px}.period-target-panel .period-controls{align-items:flex-start}.period-target-panel .period-search{width:100%}.period-target-panel .period-search input{flex:1;min-width:0}.period-target-panel .period-summary{gap:6px}.period-target-panel .period-summary button{padding:6px 9px}.period-target-panel .period-table-scroll{max-height:62vh}}

/* Equal, non-overlapping 30-day stages; the 90-day total is a derived value. */
.period-stage-bar{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 6px}
.period-target-panel .period-stage-bar button{display:flex;gap:8px;align-items:center;background:#fff;color:var(--text);border-color:var(--border);padding:8px 14px}
.period-target-panel .period-stage-bar button[aria-pressed=true]{background:#edf3ff;border-color:#315efb;color:#245ac7;font-weight:600}
.period-stage-bar small{font-weight:400;color:var(--dim)}
#periodStageHint{margin:0 0 12px}
.period-row-details{font-size:12px;line-height:1.6;margin-top:5px}
.period-row-details summary{color:#526176;cursor:pointer}
.period-row-details p{margin:5px 0}
.period-editor{width:min(980px,calc(100vw - 32px))}
.period-phase-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}
.period-phase-fields{min-width:0;border:1px solid var(--border);padding:12px;border-radius:4px;margin:0}
.period-phase-fields legend{font-weight:600;font-size:14px;padding:0 5px}
.period-phase-fields legend span{font-size:12px;color:var(--dim);font-weight:400}
.period-phase-fields label{display:flex;flex-direction:column;gap:4px;margin-top:10px;font-size:12px}
.period-phase-fields input{width:100%;box-sizing:border-box}
.period-legacy-target{margin-top:12px;border:1px solid #edd4a5;background:#fff8ea;padding:10px 12px;font-size:12px;line-height:1.7;color:#79500c}
.period-legacy-target[hidden]{display:none}
.period-plan-totals{background:#f4f7fb;border:1px solid var(--border);padding:10px 12px;margin:0 0 14px;font-size:12px}
.period-plan-totals>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:7px}
.period-plan-totals b{display:block;font-size:17px;font-variant-numeric:tabular-nums}
.period-plan-totals small{display:block;color:var(--dim)}
@media(max-width:700px){.period-phase-grid{grid-template-columns:1fr}.period-phase-fields{padding:10px}.period-phase-fields label{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:8px}.period-plan-totals>div{grid-template-columns:1fr 1fr}.period-target-panel .period-stage-bar{display:grid;grid-template-columns:1fr 1fr;gap:6px}.period-target-panel .period-stage-bar button{flex-direction:column;gap:1px;align-items:flex-start;padding:7px 10px}.period-editor{padding:16px}.period-dialog-actions{position:sticky;bottom:-16px;background:#fff;border-top:1px solid var(--border);padding:12px 0;margin-bottom:-16px}}

.period-target-panel .launch-followup { margin: 0 0 14px; padding: 14px 16px; }
.launch-followup-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.launch-followup-head h2 { margin: 0 0 4px; font-size: 17px; }
.launch-followup-list { list-style: none; padding: 0; margin: 0; }
.launch-followup-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 8px 20px;
  border-top: 1px solid var(--border);
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.45;
}
.launch-followup-list li:first-child { margin-top: 10px; }
.launch-followup-list li:last-child { padding-bottom: 0; }
.launch-followup-list :is(strong, b, small) { display: block; overflow-wrap: anywhere; }
.launch-followup-list small { color: var(--dim); font-size: 12px; margin-top: 3px; }
.launch-followup #launchFollowupEmpty { margin-top: 10px; }
#periodRows tr:focus { outline: 2px solid #315efb; outline-offset: -2px; }
.period-scope-switch { display: flex; gap: 8px; margin: 0 0 10px; }
.period-target-panel .period-scope-switch [aria-pressed="true"] { background: #edf3ff; border-color: #315efb; color: #245ac7; font-weight: 600; }
.period-row-actions button { display: block; margin-bottom: 6px; white-space: nowrap; }
.period-editor.stage-review-dialog { width: min(680px, calc(100vw - 30px)); }
#stageReviewForm { margin: 12px 0; padding: 12px; border: 1px solid var(--border); border-radius: 6px; }
#stageReviewForm label { display: grid; gap: 4px; font-size: 13px; }
#stageReviewEvidence { margin: 8px 0; }
.stage-review-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.stage-review-record { border-top: 1px solid var(--border); margin-top: 9px; padding-top: 9px; font-size: 13px; overflow-wrap: anywhere; }
.stage-review-record small { display: block; color: var(--dim); }
.stage-review-record p { white-space: pre-wrap; }
#stageReviewDialog h3 { margin-top: 14px; font-size: 15px; }
@media(max-width: 640px) {
  .period-target-panel .launch-followup { padding: 12px; }
  .launch-followup-list li { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .launch-followup-list li > div:nth-child(2) { grid-column: 1; }
  .launch-followup-list button { grid-column: 2; grid-row: 1 / span 2; align-self: center; min-height: 44px; }
  .stage-review-fields { grid-template-columns: 1fr; }
}
