/* Marketing Intelligence Phase 2: D1 operations, trends, alert administration */
.operator-shortcut{cursor:pointer;border-radius:100px;font-family:inherit}
.operator-shortcut:hover{border-color:#45b4ab;color:#d8fff4}
.phase-access{padding:44px 30px;text-align:center;border:1px solid #304359;border-radius:20px;background:radial-gradient(circle at 50% 5%,#1d4950 0,transparent 38%),linear-gradient(120deg,#121f34,#101728);max-width:740px;margin:20px auto 40px;box-shadow:0 20px 60px #0002}
.phase-access h2{font:800 24px Manrope,sans-serif;margin:15px 0 8px}
.phase-access p{color:#9aaec1;font-size:13px;line-height:1.7;max-width:520px;margin:0 auto 17px}
.phase-access small{display:block;max-width:470px;color:#677f96;font-size:10px;line-height:1.7;margin:16px auto}
.access-icon{width:70px;height:70px;display:grid;place-items:center;margin:auto;background:#1b444d;border:1px solid #438b88;border-radius:18px;color:#7ff0dc}
.access-icon svg{width:32px;height:32px;stroke:currentColor;fill:none;stroke-width:1.6}
.operator-form{max-width:460px;margin:20px auto 10px;display:grid;gap:12px;text-align:left}
.operator-form label{font-size:12px;color:#cedae8;font-weight:700}
.operator-form input{border:1px solid #405c6e;border-radius:10px;padding:12px;background:#0b1a2b;color:#eafffc;min-width:0}
.operator-form .btn{width:100%;padding:13px}
.phase-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:15px 0 20px}
.phase-stat{min-height:124px;padding:19px;background:linear-gradient(125deg,#132539,#121a2b);border:1px solid #2b4055;border-radius:15px}
.phase-stat small,.phase-stat span{display:block;font-size:11px;color:#8b9db3}
.phase-stat strong{display:block;font:800 27px Manrope,sans-serif;letter-spacing:-.7px;margin:9px 0;color:#ecf6fa}
.phase-stat span{font-size:10px;color:#66839b}
.phase-panel p{color:#95aab9;line-height:1.7;font-size:12px;margin:12px 0 15px}
.phase-panel{min-width:0}
.phase-count{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #294055;padding-top:15px;color:#869eaf;font-size:12px}
.phase-count b{color:#7ce5d0}
.phase-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:17px}
.phase-strip{display:flex;align-items:flex-start;gap:10px;margin-top:18px;background:#1b2636;border:1px solid #32425a;color:#a5b7ce;border-radius:11px;padding:13px 15px;font-size:11px;line-height:1.7}
.phase-strip svg{flex:0 0 17px;width:17px;height:17px;stroke:#77d8cc;fill:none;stroke-width:1.7;margin-top:2px}
.phase-muted{color:#8b9eb3!important;font-size:11px!important;line-height:1.8!important}
.phase-sources{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.phase-sources>div{background:#17283a;border:1px solid #2b4256;padding:15px;border-radius:12px;display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.phase-sources b{font-size:12px;width:100%;color:#e1eff8}
.phase-sources small{font-size:10px;color:#8da6bc;flex:1 1 100%;line-height:1.5}
.phase-sources .chip{margin-top:3px}
.phase-tabs{display:inline-flex;gap:5px;padding:5px;background:#122136;border:1px solid #30465d;border-radius:12px;margin-bottom:4px;flex-wrap:wrap}
.phase-tabs button{color:#9cb1c8;background:transparent;border:0;border-radius:8px;font-size:12px;font-weight:700;padding:10px 16px}
.phase-tabs button.selected{color:#091d2a;background:#69e1c9;box-shadow:0 7px 20px #2be4b82a}
.phase-trend-list{display:flex;flex-direction:column;gap:8px}
.phase-trend{display:grid;grid-template-columns:28px 45px minmax(170px,1fr) minmax(90px,160px) 85px auto;align-items:center;gap:14px;padding:14px 18px;background:#101b2e;border:1px solid #293950;border-radius:12px}
.phase-rank{font-size:12px;color:#6988a4;font-weight:800}
.phase-product-icon{background:#213e4c;padding:8px;border-radius:10px;text-align:center;font-size:20px}
.phase-product b{display:block;font-size:12px;color:#e6f1fa}
.phase-product small{display:block;margin-top:5px;font-size:10px;color:#8298ad}
.phase-bar{height:9px;border-radius:20px;background:#263e53;overflow:hidden}
.phase-bar>span{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#60b7de,#66efcb)}
.phase-green{color:#7ce8c9;font:800 14px Manrope}
.phase-columns{grid-template-columns:minmax(0,1.18fr) minmax(300px,1fr);align-items:start}
.phase-alert-list{display:flex;flex-direction:column;gap:9px;max-height:650px;overflow:auto}
.phase-alert{display:grid;grid-template-columns:30px minmax(0,1fr) 38px;gap:10px;align-items:start;border-radius:11px;padding:13px;background:#16273a;border:1px solid #2e415b}
.phase-alert.seen{opacity:.7}
.phase-alert-glyph{color:#80e4ce;margin-top:2px}
.phase-alert-glyph svg{width:21px;height:21px;stroke:currentColor;stroke-width:1.8;fill:none}
.phase-alert b{font-size:12px;line-height:1.5}
.phase-alert p{font-size:11px;color:#8fa7b8;line-height:1.6;margin:4px 0}
.phase-alert small{font-size:10px;color:#69869a}
.phase-rules{display:flex;flex-direction:column;gap:10px}
.phase-rule{display:grid;grid-template-columns:minmax(0,1fr) 77px auto auto;align-items:center;gap:9px;padding:12px 0;border-bottom:1px solid #2a3c51}
.phase-rule:last-child{border-bottom:0}
.phase-rule b{display:block;font-size:11px;line-height:1.5}
.phase-rule small{font-size:10px;color:#8095a9}
.phase-rule input[type=number]{width:77px;background:#101f32;color:#e5f3fc;border:1px solid #384b60;border-radius:8px;padding:8px}
.phase-switch{display:flex;align-items:center;gap:4px;color:#9db0c0;font-size:10px;white-space:nowrap}
.phase-switch input{accent-color:#5fe2c8}
.phase-history{margin-top:18px}
.phase-history-chart{height:150px;border:1px solid #2e485a;border-radius:12px;background:linear-gradient(#193346,#122131);padding:10px}
.phase-history-chart svg{width:100%;height:100%}
.phase-history-chart p{font-size:12px;padding:25px 10px;text-align:center}
.phase-history-meta{display:flex;justify-content:space-between;color:#87a7b9;font-size:10px;margin:8px 0 14px}
.phase-history-rows{display:flex;flex-direction:column;gap:0}
.phase-history-rows>div{display:flex;justify-content:space-between;gap:8px;padding:9px 0;border-bottom:1px solid #2b3c4f;font-size:11px;color:#8da9bb}
.phase-history-rows b{color:#d7f4f0}
@media(max-width:1250px){.phase-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.phase-trend{grid-template-columns:23px 40px minmax(120px,1fr) 74px auto}.phase-trend .phase-bar{display:none}}
@media(max-width:900px){.phase-columns{grid-template-columns:1fr}.phase-rule{grid-template-columns:minmax(0,1fr) 80px auto auto}}
@media(max-width:650px){.phase-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.phase-stat{padding:13px;min-height:109px}.phase-stat strong{font-size:21px}.phase-sources{grid-template-columns:1fr}.phase-access{padding:25px 16px}.phase-access h2{font-size:20px}.phase-trend{grid-template-columns:25px 37px minmax(0,1fr) auto;gap:8px;padding:11px}.phase-trend .btn{display:none}.phase-trend .phase-green{font-size:11px}.phase-rule{grid-template-columns:minmax(0,1fr) 70px}.phase-rule .btn{grid-column:2}.phase-rule input[type=number]{width:70px}.phase-switch{grid-column:1;grid-row:2}.phase-tabs{display:flex;width:100%}.phase-tabs button{flex:1;padding:9px 5px;font-size:11px}}
