/* Scoped styles for the execution center; colors follow the office theme. */
.operations-page { --op-accent: #4fd6c8; }
.op-overview { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; margin:0 0 22px; overflow:hidden; border:1px solid var(--line); border-radius:13px; background:var(--line); }
.op-overview>div { padding:20px 22px; background:linear-gradient(145deg,#13283b,#0d1b2b); }
.op-overview span,.op-overview small { display:block; color:var(--ink2); font-size:12px; }
.op-overview strong { display:block; margin:9px 0 7px; font-size:32px; line-height:1.1; color:#e5f6fc; font-variant-numeric:tabular-nums; }
.op-overview small { color:var(--ink3); font-size:11px; }
.op-compose>summary,.op-archive>summary { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:19px 22px; cursor:pointer; list-style:none; }
.op-compose>summary::-webkit-details-marker,.op-archive>summary::-webkit-details-marker { display:none; }
.op-compose>summary:focus-visible,.op-archive>summary:focus-visible { outline:2px solid var(--cyan); outline-offset:-3px; }
.op-compose[open]>summary,.op-archive[open]>summary { border-bottom:1px solid var(--line); }
.op-compose summary strong { font-size:15px; font-weight:600; }
.op-compose summary small { display:block; margin-top:6px; color:var(--ink3); font-size:12px; }
.op-summary-action { color:var(--cyan); font-size:12px; flex-shrink:0; }
.op-create-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:17px; }
.op-create-form label { display:grid; align-content:start; gap:8px; color:var(--ink2); font-size:13px; margin:0; min-width:0; }
.op-create-form input,.op-create-form select,.op-create-form textarea { min-width:0; }
.op-create-form input[type=datetime-local],#detail-body input[type=datetime-local] { color-scheme:dark; width:100%; padding:11px 13px; background:#0b1826; border:1px solid var(--line); border-radius:9px; color:var(--ink); font-size:14px; line-height:1.6; }
.op-full { grid-column:1/-1; }
.op-form-pair { display:grid; grid-template-columns:95px minmax(0,1fr); gap:12px; }
.op-form-footer { display:flex; align-items:center; justify-content:space-between; gap:15px; padding-top:3px; }
.op-form-footer p { color:var(--ink3); font-size:12px; margin:0; }
.op-form-footer button { flex-shrink:0; }
.op-workflow { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:15px; margin:25px 0 22px; font-size:12px; color:var(--ink2); }
.op-workflow i { color:#356179; font-style:normal; }
.op-workflow span:last-child { color:var(--cyan); }
.op-board { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; align-items:start; margin-bottom:22px; }
.op-lane { min-width:0; padding:12px; background:#081421b0; border:1px solid #1a3045; border-radius:12px; }
.op-lane-heading { display:flex; justify-content:space-between; gap:10px; align-items:center; }
.op-lane-heading h2 { display:flex; align-items:center; gap:8px; font-size:14px; }
.op-lane-count { display:grid; place-items:center; min-width:25px; height:25px; padding:0 6px; border-radius:6px; border:1px solid var(--line); color:var(--ink2); font-size:12px; font-variant-numeric:tabular-nums; }
.op-lane-dot { width:7px; height:7px; border-radius:50%; background:#8fb4d6; }
.op-dot-running { background:var(--cyan); box-shadow:0 0 9px #4fd6c84d; }
.op-dot-waiting_input { background:var(--warn); }
.op-dot-awaiting_review { background:#a98cf0; }
.op-lane-description { margin:9px 0 14px; color:var(--ink3); font-size:11px; line-height:1.6; }
.op-lane-cards { display:grid; gap:12px; }
.op-lane-empty { min-height:115px; display:grid; place-items:center; padding:24px 12px; border:1px dashed #213a50; border-radius:9px; color:var(--ink3); font-size:12px; }
.op-card { min-width:0; padding:14px; background:linear-gradient(150deg,#14273a,#0f1d2d); border:1px solid #294056; border-radius:10px; box-shadow:0 5px 14px #0209123b; }
.op-card-running { border-top-color:#34877f; }
.op-card-awaiting_review { border-top-color:#75629c; }
.op-card-waiting_input { border-top-color:#8b6b34; }
.op-card-top { display:flex; gap:7px; flex-wrap:wrap; align-items:center; justify-content:space-between; margin-bottom:12px; }
.op-card-top .badge { font-size:10px; padding:3px 7px; }
.op-priority { font-size:10px; color:var(--ink3); }
.op-priority-high { color:#f1bd78; }
.op-card h3 { font-size:14px; line-height:1.7; overflow-wrap:anywhere; margin-bottom:12px; }
.op-owner { display:flex; align-items:center; gap:7px; font-size:11px; color:var(--ink2); margin-bottom:14px; overflow-wrap:anywhere; }
.op-owner-mark { width:22px; height:22px; display:grid; place-items:center; flex-shrink:0; color:var(--cyan); background:#173746; border:1px solid #285165; border-radius:6px; font-size:10px; }
.op-spec { display:grid; gap:12px; margin:0; }
.op-spec dt { color:var(--ink3); font-size:10px; margin-bottom:4px; }
.op-spec dd { color:var(--ink2); font-size:12px; line-height:1.75; margin:0; overflow-wrap:anywhere; white-space:pre-line; max-height:172px; overflow-y:auto; }
.op-deadline { display:flex; align-items:center; gap:6px; padding:12px 0; margin-top:12px; border-top:1px solid #20374b; color:var(--ink3); font-size:10px; }
.op-deadline.op-overdue { color:#f0b477; }
.op-deadline strong { display:block; margin-top:5px; font-size:10px; font-weight:500; color:#f0b477; }
.op-review-note { padding:9px 10px; margin-bottom:12px; color:var(--ink2); background:#0c1929; border-left:2px solid #9076ad; font-size:11px; line-height:1.75; overflow-wrap:anywhere; white-space:pre-line; max-height:170px; overflow:auto; }
.op-review-note>span { display:block; color:#bea9d8; font-size:10px; margin-bottom:4px; }
.op-attention { color:#d5b278; font-size:11px; line-height:1.8; }
.op-card-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.op-card-actions .link-button { font-size:11px; }
.op-review-actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.op-review-actions .button { font-size:11px; padding:7px 10px; flex:1; white-space:nowrap; }
.op-source { margin-top:13px; color:var(--ink3); font-size:10px; line-height:1.6; }
.op-archive>summary { color:var(--ink2); font-size:14px; }
.op-archive>summary>span:first-child::before { content:'›'; display:inline-block; margin-right:9px; color:var(--cyan); transition:transform .18s; }
.op-archive[open]>summary>span:first-child::before { transform:rotate(90deg); }
.op-archive-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; padding:18px 22px; }
.op-section-empty { padding:25px 22px; color:var(--ink3); font-size:13px; line-height:1.8; }
.op-scheme { display:flex; align-items:flex-start; justify-content:space-between; gap:22px; padding:20px 24px; border-bottom:1px solid var(--line); }
.op-scheme:last-child { border-bottom:0; }
.op-scheme>div:first-child { min-width:0; }
.op-scheme h3 { font-size:14px; line-height:1.7; margin-bottom:5px; overflow-wrap:anywhere; }
.op-scheme p { color:var(--ink3); font-size:12px; line-height:1.8; overflow-wrap:anywhere; margin-bottom:6px; white-space:pre-line; }
.op-scheme .muted { font-size:11px; }
.op-scheme-actions { display:flex; align-items:flex-end; flex-direction:column; gap:12px; flex-shrink:0; padding-top:2px; }
.op-scheme-actions .link-button { font-size:12px; }
.op-scheme-note { border-top:1px solid var(--line); margin:0; padding:13px 24px; color:var(--ink3); font-size:11px; line-height:1.8; background:#0b1826; }
.op-blocked { margin:0 22px 16px; border:1px solid #5a4930; border-radius:9px; background:#251f173b; }
.op-blocked>summary { padding:13px 15px; color:#dabb8b; font-size:12px; cursor:pointer; }
.op-blocked>summary span { float:right; color:var(--ink2); }
.op-blocked>p { margin:0; padding:0 15px 13px; color:var(--ink3); font-size:11px; line-height:1.8; }
.op-blocked-list { border-top:1px solid #4b3d2b; padding:0 15px; }
.op-blocked-list article { padding:13px 0; border-bottom:1px solid #3a332a; }
.op-blocked-list article:last-child { border-bottom:0; }
.op-blocked-list h3 { color:var(--ink2); font-size:12px; line-height:1.7; margin-bottom:4px; overflow-wrap:anywhere; }
.op-blocked-list span,.op-blocked-list p { color:var(--ink3); font-size:11px; line-height:1.8; overflow-wrap:anywhere; }
.op-blocked-list p { margin:4px 0; }
.op-blocked-list .link-button { font-size:11px; }
.op-section-heading { margin:28px 0 17px; }
.op-section-heading h2 { font-size:17px; margin-bottom:8px; }
.op-section-heading p { color:var(--ink3); font-size:12px; line-height:1.7; }
.op-employees { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.op-employee { min-width:0; background:linear-gradient(145deg,#112338,#0d1a2a); border:1px solid var(--line); border-radius:12px; padding:18px; }
.op-employee-heading { display:flex; align-items:center; gap:10px; min-width:0; }
.op-avatar { flex-shrink:0; display:grid; place-items:center; width:35px; height:35px; border:1px solid #31546e; border-radius:9px; color:var(--cyan); background:#163247; font-size:13px; }
.op-employee-heading>div:nth-child(2) { flex:1; min-width:0; }
.op-employee-heading h3 { font-size:14px; overflow-wrap:anywhere; line-height:1.65; }
.op-employee-heading>div>span { display:block; margin-top:3px; font-size:10px; color:var(--ink3); }
.op-employee-state { font-size:10px; color:var(--ink3); white-space:nowrap; }
.op-employee-state.op-has-work { color:var(--cyan); }
.op-employee-job { margin:13px 0 0; color:var(--ink2); font-size:12px; line-height:1.8; overflow-wrap:anywhere; }
.op-employee-assign { margin-top:14px; width:100%; }
.op-metrics-note { margin:13px 0; padding:12px 15px; background:#2c241733; border:1px solid #594c31; border-radius:8px; color:#dabb8b; font-size:12px; line-height:1.8; }
.op-employee-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; padding:16px 0 13px; margin:0; }
.op-employee-metrics dt { color:var(--ink3); font-size:10px; line-height:1.6; }
.op-employee-metrics dd { margin:5px 0 0; font-size:23px; line-height:1.2; font-variant-numeric:tabular-nums; color:var(--ink); }
.op-employee-foot { display:flex; gap:7px 14px; flex-wrap:wrap; border-top:1px solid var(--line); padding-top:12px; color:var(--ink3); font-size:10px; line-height:1.8; }
@media (max-width:1250px) { .op-board { grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; } .op-lane { padding:15px; } .op-archive-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:900px) { .op-create-form { grid-template-columns:1fr; } .op-employees { grid-template-columns:1fr; } .op-overview>div { padding:16px; } .op-overview small { line-height:1.7; } }
@media (max-width:580px) { .op-board { grid-template-columns:1fr; } .op-overview { grid-template-columns:repeat(2,minmax(0,1fr)); } .op-overview strong { font-size:28px; } .op-archive-grid { grid-template-columns:1fr; padding:15px; } .op-form-footer { align-items:stretch; flex-direction:column; } .op-form-pair { grid-template-columns:90px minmax(0,1fr); } .op-compose>summary { padding:17px; } .op-compose summary strong { font-size:13px; } .op-compose summary small { max-width:200px; line-height:1.7; } .op-summary-action { font-size:10px; } .op-workflow { gap:8px; font-size:10px; } .op-scheme { flex-direction:column; gap:12px; padding:17px; } .op-scheme-actions { flex-direction:row; align-items:center; justify-content:space-between; width:100%; flex-wrap:wrap; } .op-scheme-note { padding:13px 17px; } .op-employee { padding:15px; } .op-employee-heading h3 { font-size:13px; } .op-employee-metrics dt { font-size:9px; } .op-employee-metrics dd { font-size:21px; } }
@media (prefers-reduced-motion:reduce) { .operations-page *, .op-employees * { animation:none!important; transition:none!important; } }
