/* Control Center: DigiPulse v2 look (shell.css + kit.css) with Digital Compass's red accent */
:root { --red: #ea1d25; --red2: #d21c22; --navy: #0f1620; }
.cc-banner { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 22px; padding: 16px 22px; margin: 6px 0 2px;
  border-radius: 24px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(21, 35, 63, .08); overflow: hidden; animation: ccIn .6s cubic-bezier(.2, .8, .2, 1) both; }
.cc-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 160px at 100% 0%, rgba(234, 29, 37, .07), transparent 70%), radial-gradient(500px 160px at 0% 100%, rgba(47, 98, 168, .07), transparent 70%); pointer-events: none; }
.cc-banner::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--red), #2f62a8 55%, #2e9e7b); opacity: .9; }
.cc-brand { position: relative; display: grid; justify-items: center; gap: 2px; padding-right: 20px; border-right: 1px solid var(--line); }
.cc-logo { height: 62px; width: auto; display: block; } .cc-product { font: 700 11px var(--title); letter-spacing: .22em; text-transform: uppercase; color: var(--red); }
.cc-who { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; }
.cc-avatar { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font: 700 19px var(--title); color: #fff; background: linear-gradient(135deg, var(--red), #2f62a8); box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(234, 29, 37, .25), 0 8px 18px rgba(21, 35, 63, .16); }
.cc-hello { min-width: 0; } .cc-hello h1 { margin: 0; font: 400 28px/1.1 var(--display); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-role { display: inline-flex; align-items: center; gap: 7px; margin-top: 5px; padding: 3px 11px 3px 9px; border-radius: 999px; background: #f2f6fb; border: 1px solid #e1e9f4; font: 600 12.5px var(--cond); color: var(--ink); }
.cc-role i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(46, 158, 123, .18); animation: ccPulse 2.2s infinite; } .cc-role span { color: var(--muted); font-weight: 500; }
.cc-brief { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.cc-stats { position: relative; list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; }
.cc-stats li { min-width: 118px; padding: 9px 14px; border-radius: 16px; background: #f8fbff; border: 1px solid #e3eaf4; cursor: pointer; transition: transform .15s, border-color .15s; } .cc-stats li:hover { transform: translateY(-2px); border-color: #c9d9f0; }
.cc-stats span { display: block; font: 700 11.5px var(--title); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); } .cc-stats b { display: block; font: 700 24px/1.15 var(--title); color: var(--ink); font-variant-numeric: tabular-nums; }
.cc-stats small { display: block; font-size: 12px; color: var(--muted); } .cc-stats li.bad b { color: #c0342c; } .cc-stats li.warn b { color: #b25f17; }
.cc-tools { position: relative; display: flex; align-items: center; gap: 8px; }
.cc-search { display: flex; align-items: center; gap: 6px; padding: 0 12px; height: 40px; border-radius: 999px; background: #fff; border: 1px solid var(--line); } .cc-search:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(234, 29, 37, .12); }
.cc-search svg, .cc-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; } .cc-search input { border: 0; outline: 0; font: 14px var(--cond); width: 160px; background: transparent; color: var(--ink); }
.cc-icon { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); cursor: pointer; } .cc-icon:hover { border-color: #b9c9df; } .cc-icon:hover svg { stroke: var(--ink); }
.cc-icon b { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font: 700 11px/18px var(--cond); text-align: center; box-shadow: 0 0 0 2px #fff; }
.cc-alerts { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: min(420px, 90vw); max-height: 60vh; overflow: auto; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(21, 35, 63, .2); }
.cc-alerts p { margin: 4px 6px 8px; font: 700 12px var(--title); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cc-alerts button { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 10px; background: none; font: 14px var(--cond); color: var(--ink); cursor: pointer; } .cc-alerts button:hover { background: #f5f8fc; }
.cc-alerts i { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #e08a3c; } .cc-alerts i.bad { background: #cf4a43; }
@keyframes ccIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes ccPulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(46, 158, 123, .18); } 50% { box-shadow: 0 0 0 6px rgba(46, 158, 123, .05); } }
@media (max-width: 1250px) { .cc-banner { grid-template-columns: auto minmax(0, 1fr) auto; } .cc-stats { grid-column: 1 / -1; order: 4; } }
@media (max-width: 760px) { .cc-banner { grid-template-columns: 1fr; } .cc-brand { border-right: 0; padding-right: 0; justify-items: start; } .cc-stats { flex-wrap: wrap; } .cc-search input { width: 120px; } }
/* tickets */
.cc-thread { display: grid; gap: 10px; } .cc-msg { padding: 10px 14px; border-radius: 14px; background: #f5f8fc; border: 1px solid #e6edf6; max-width: 88%; }
.cc-msg.staff { justify-self: end; background: #fff4f4; border-color: #f6d3d4; } .cc-msg.internal { justify-self: end; background: #fff8e6; border-color: #f1dca4; }
.cc-msg small { display: block; color: var(--muted); margin-bottom: 3px; } .cc-msg p { margin: 0; white-space: pre-wrap; }
.cc-compose { display: grid; gap: 8px; margin-top: 12px; } .cc-compose textarea { font: 14px var(--cond); padding: 10px; border: 1px solid var(--line); border-radius: 12px; min-height: 80px; }
.cc-compose .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .cc-compose label { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.cc-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--gap); } @media (max-width: 980px) { .cc-side { grid-template-columns: 1fr; } }
.cc-inv { width: 100%; border-collapse: collapse; font-size: 14px; } .cc-inv td, .cc-inv th { padding: 8px 6px; border-bottom: 1px solid #eef2f7; text-align: left; } .cc-inv td.n, .cc-inv th.n { text-align: right; } .cc-inv tfoot td { font-weight: 700; border: 0; }
.cc-comp { display: grid; grid-template-columns: 1.1fr 1.2fr .8fr .8fr .8fr auto; gap: 6px; align-items: center; margin-bottom: 6px; } .cc-comp input, .cc-comp select { font: 13px var(--cond); padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
@media print { .cc-banner, .nav, .cc-foot, .k-tabs, .k-actions, .cc-filters { display: none !important; } body { background: #fff !important; } }
.nav-item .soon { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: #eef3fa; color: var(--muted); margin-left: 2px; }
.cc-page { display: grid; gap: var(--gap); } .cc-row { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.cc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.cc-head h2 { margin: 0; font: 400 26px var(--display); color: var(--ink); } .cc-head p { margin: 2px 0 0; color: var(--muted); }
.cc-btn { border: 0; border-radius: 999px; padding: 9px 18px; font: 600 14px var(--cond); cursor: pointer; background: var(--red); color: #fff; } .cc-btn:hover { background: var(--red2); }
.cc-btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); } .cc-btn.ghost:hover { border-color: #b9c9df; } .cc-btn[disabled] { opacity: .5; cursor: not-allowed; }
.cc-btn.small { padding: 5px 12px; font-size: 13px; }
.cc-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .cc-filters select, .cc-filters input { font: 14px var(--cond); padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); }
.cc-filters input { min-width: 220px; }
.cc-score { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; } .cc-score i { width: 34px; height: 22px; border-radius: 999px; display: inline-grid; place-items: center; font-style: normal; font-size: 12px; color: #fff; }
.cc-score.Healthy i { background: #2e9e7b; } .cc-score.Watch i { background: #e08a3c; } .cc-score[class*="At risk"] i, .cc-score.risk i { background: #cf4a43; } .cc-score.Suspended i { background: #8a96a8; }
.cc-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
.cc-hero h2 { margin: 0; font: 400 28px var(--display); } .cc-hero .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; } .cc-hero .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cc-gauge { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c, #2e9e7b) calc(var(--p) * 1%), #e8eef6 0); }
.cc-gauge b { width: 72px; height: 72px; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 700 26px var(--title); color: var(--ink); }
.cc-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; } .cc-list li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid #edf1f7; border-radius: 12px; background: #fbfcfe; }
.cc-list li.click { cursor: pointer; } .cc-list li.click:hover { border-color: #c9d9f0; } .cc-list small { color: var(--muted); display: block; }
.cc-note { border-left: 3px solid #c9d9f0; padding: 6px 12px; margin: 0 0 10px; } .cc-note p { margin: 2px 0; white-space: pre-wrap; } .cc-note small { color: var(--muted); }
.cc-facts { display: grid; grid-template-columns: minmax(160px, 220px) 1fr; gap: 8px 16px; margin: 0; } .cc-facts dt { color: var(--muted); } .cc-facts dd { margin: 0; color: var(--ink); }
.cc-chart svg { width: 100%; height: 160px; display: block; } .cc-chart .lbl { font: 11px var(--cond); fill: #7a8aa3; }
.cc-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 14px; } .cc-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink); }
.cc-form label.wide { grid-column: 1 / -1; } .cc-form input, .cc-form select, .cc-form textarea { font: 14px var(--cond); padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.cc-form input:focus, .cc-form select:focus, .cc-form textarea:focus { outline: 2px solid rgba(234, 29, 37, .3); border-color: var(--red); } .cc-form small { font-weight: 400; color: var(--muted); }
.cc-err { color: #a8463f; min-height: 1em; margin: 8px 0 0; } .cc-soon { text-align: center; padding: 40px 20px; color: var(--muted); } .cc-soon h3 { color: var(--ink); font: 400 22px var(--display); }
.cc-foot { text-align: center; font-size: 12px; color: var(--muted); padding: 16px; }
@media (max-width: 760px) { .cc-banner { flex-wrap: wrap; } .cc-hero { grid-template-columns: 1fr; } .cc-hero .acts { justify-content: flex-start; } .cc-facts { grid-template-columns: 1fr; } }

.cc-setup { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 14px; margin-top: 12px; }
.cc-setup-step { display: grid; grid-template-columns: 18px 1fr; column-gap: 8px; font-size: 13.5px; } .cc-setup-step span { grid-row: span 2; font-weight: 700; color: #8a97ab; }
.cc-setup-step.done span { color: #2e9e7b; } .cc-setup-step small { color: #5b6b82; } .cc-setup-step.skipped, .cc-setup-step.locked { opacity: .7; }
