.lifecycle-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:10px 12px; border:1px solid #dfe3eb; border-radius:6px; background:#fff; }
.lifecycle-toolbar > label { display:flex; align-items:center; gap:8px; white-space:nowrap; font-size:12px; }
.lifecycle-toolbar input[type="month"] { width:145px; min-width:0; height:34px; }
.lifecycle-summary { display:flex; align-items:center; flex-wrap:wrap; gap:8px 18px; flex:1; color:#646b79; font-size:12px; }
.lifecycle-summary b { color:#172b24; font-weight:600; }
.lifecycle-source-status { color:#8c651a; font-size:12px; }
.lifecycle-detail-chrome { position:sticky; top:0; z-index:3; background:#fff; }
.lifecycle-detail-chrome .operations-detail-header { position:static; padding:12px 0 8px; }
.lifecycle-tabs { display:flex; background:#fff; border-bottom:1px solid #dfe3eb; margin:0 -2px; }
.lifecycle-tabs button { flex:1; min-width:0; border:0; border-radius:0; padding:13px 4px; background:#fff; color:#606b7e; font-size:13px; box-shadow:none; white-space:normal; }
.lifecycle-tabs button[aria-selected="true"] { color:#285be9; border-bottom:2px solid #3569ff; background:#f4f7ff; font-weight:600; }
.lifecycle-panel[hidden] { display:none !important; }
.lifecycle-group { padding:18px 0; border-bottom:1px solid #e5e8ee; margin:0; }
.lifecycle-group h4 { margin:0 0 14px; font-size:14px; color:#222a35; }
.lifecycle-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px 16px; }
.lifecycle-fields label, .lifecycle-note, .lifecycle-revenue-controls label { display:flex; flex-direction:column; gap:6px; min-width:0; font-size:12px; color:#627084; }
.lifecycle-fields input, .lifecycle-fields output { width:100%; min-width:0; height:36px; box-sizing:border-box; font-size:13px; }
.lifecycle-fields output { display:flex; align-items:center; height:auto; min-height:36px; padding:5px 0; color:#222a35; overflow-wrap:anywhere; }
.lifecycle-fields small { font-size:11px; color:#8b929e; }
.lifecycle-group-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.lifecycle-group-heading span { font-size:12px; color:#4c7562; margin-bottom:14px; }
.lifecycle-save { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 0; flex-wrap:wrap; }
.lifecycle-save button.primary { color:#fff !important; background:#3569ff !important; }
.lifecycle-check { display:flex; align-items:center; gap:7px; font-size:13px; }
.lifecycle-check input { width:16px; height:16px; }
.lifecycle-note { margin-top:15px; }
.lifecycle-note textarea { width:100%; box-sizing:border-box; min-height:68px; resize:vertical; }
.lifecycle-feedback { font-size:12px; color:#16805b; }
.lifecycle-error { font-size:12px; color:#c63e3e; overflow-wrap:anywhere; }
.lifecycle-original { border-top:1px solid #e5e8ee; padding-top:12px; margin-top:8px; }
.lifecycle-original summary { cursor:pointer; font-size:13px; color:#627084; }
.lifecycle-revenue-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:16px 0; }
.lifecycle-revenue-controls input, .lifecycle-revenue-controls select { width:100%; min-width:0; height:36px; box-sizing:border-box; }
.lifecycle-record-status { display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap; font-size:12px; }
.lifecycle-history-table, .lifecycle-import-table { overflow:auto; }
.lifecycle-history-table table, .lifecycle-import-table table { width:100%; border-collapse:collapse; font-size:12px; }
.lifecycle-history-table th, .lifecycle-history-table td, .lifecycle-import-table th, .lifecycle-import-table td { padding:9px 6px; border-bottom:1px solid #e5e8ee; text-align:left; overflow-wrap:anywhere; }
.lifecycle-month-link { border:0; border-radius:0; box-shadow:none; background:transparent; color:#285be9; padding:3px 0; font-size:12px; }
.lifecycle-audit { padding:12px 0; border-bottom:1px solid #edf0f4; font-size:12px; }
.lifecycle-audit small { display:block; color:#738096; padding-top:4px; }
.lifecycle-audit ul { padding-left:18px; line-height:1.7; overflow-wrap:anywhere; }
.lifecycle-import-dialog { width:640px; max-width:calc(100vw - 36px); max-height:85dvh; box-sizing:border-box; padding:22px; border:1px solid #dce1ea; border-radius:8px; overflow:auto; color:#222a35; }
.lifecycle-import-dialog::backdrop { background:rgba(20,28,44,.35); }
.lifecycle-dialog-header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.lifecycle-dialog-header h3 { margin:0; font-size:18px; }
.lifecycle-dialog-header button { width:32px; height:32px; padding:0; }
.lifecycle-file { display:flex; flex-direction:column; gap:8px; font-size:13px; }
.lifecycle-file input { width:100%; box-sizing:border-box; }
.lifecycle-import-table { max-height:280px; }
@media(min-width:1051px) {
  .content:has(> #operationsView:not(.hidden)) { height:100dvh; box-sizing:border-box; display:flex; flex-direction:column; overflow:hidden; padding-bottom:14px; }
  .content:has(> #operationsView:not(.hidden)) > .topbar { flex-shrink:0; }
  #operationsView { height:auto; min-height:0; flex:1; }
  #operationsView .operations-metrics { grid-template-columns:repeat(6,minmax(0,1fr)); }
  #operationsView .operations-metric { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:52px; padding:10px 12px; box-shadow:none; }
  #operationsView .operations-metric strong { margin:0; font-size:20px; }
}
@media(max-width:700px) {
  .lifecycle-toolbar { gap:8px; }
  .lifecycle-summary { flex-basis:100%; }
  .lifecycle-fields { gap:12px; }
  .lifecycle-tabs { top:-12px; }
  .lifecycle-tabs button { font-size:12px; }
  .lifecycle-import-dialog { padding:16px; }
}
