/* Equinix 2026 brand, Purple/Blue colorway. Arial only. */
:root {
  --eq-hero-primary: #460267;
  --eq-hero-accent: #115CD3;
  --eq-hero-mid: #2936A8;
  --eq-content-tint: #F0E4FC;
  --eq-cta: #460267;
  --eq-presenter: #115CD3;
  --eq-white: #FFFFFF;
  --eq-bg-light: #F5F5F5;
  --eq-text-dark: #1A1A1A;
  --eq-border: #D0D0D0;
  --muted: #5A5A5A;
  --gradient: linear-gradient(45deg, var(--eq-hero-primary) 0%, var(--eq-hero-mid) 55%, var(--eq-hero-accent) 100%);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Arial, sans-serif; font-size: 14px; line-height: 1.4; color: var(--eq-text-dark); background: var(--eq-bg-light);
  min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--eq-cta); }
h1, h2, h3, h4 { font-weight: bold; margin: 0; }
h2 { font-size: 20px; }
h4 { font-size: 14px; margin: 12px 0 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { border: 1px solid var(--eq-border); border-radius: 6px; padding: 8px 10px; background: var(--eq-white); width: 100%; }
select { width: auto; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--eq-hero-accent); outline-offset: -1px; border-color: transparent; }

/* top bar and hero use the diagonal gradient (primary bottom-left to accent top-right) */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 28px; background: var(--eq-hero-primary); color: var(--eq-white); }
.brand { display: flex; align-items: baseline; gap: 14px; color: var(--eq-white); text-decoration: none; }
.wordmark { font-weight: bold; letter-spacing: 3px; font-size: 18px; }
.appname { font-size: 14px; opacity: .9; border-left: 1px solid rgba(255,255,255,.4); padding-left: 14px; }
.health { font-size: 12px; display: flex; align-items: center; gap: 6px; opacity: .9; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--eq-white); }
.dot.off { background: transparent; border: 1px solid var(--eq-white); }
.hero { background: var(--gradient); color: var(--eq-white); padding: 36px 28px 30px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -40px; top: -20px; width: 46%; height: 160%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 0 56 16v32L28 64 0 48V16z M28 0v32 M0 16l28 16 28-16' fill='none' stroke='white' stroke-opacity='.13'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(to left, #000, transparent); mask-image: linear-gradient(to left, #000, transparent); pointer-events: none; }
.hero h1 { font-size: 30px; }
.hero p { margin: 6px 0 0; font-size: 16px; max-width: 760px; }
.hero.slim { padding: 18px 28px 0; }
.hero.slim h1 { font-size: 26px; margin-top: 4px; }
.hero.slim p { font-size: 14px; opacity: .9; }
.hero a, .hero .crumb { color: var(--eq-white); text-decoration: none; font-size: 13px; opacity: .85; }
.tabs { display: flex; gap: 2px; margin-top: 18px; position: relative; z-index: 1; overflow-x: auto; }
.tabs a { padding: 10px 16px; color: var(--eq-white); text-decoration: none; border-radius: 6px 6px 0 0; opacity: .85; font-size: 14px; white-space: nowrap; }
.tabs a:hover { opacity: 1; background: rgba(255,255,255,.12); }
.tabs a.active { background: var(--eq-bg-light); color: var(--eq-text-dark); opacity: 1; font-weight: bold; }
.badge { display: inline-block; margin-left: 6px; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--eq-white); color: var(--eq-cta);
  font-size: 11px; font-weight: bold; text-align: center; line-height: 18px; }
.tabs a.active .badge { background: var(--eq-cta); color: var(--eq-white); }

.page { max-width: 1440px; margin: 0 auto; padding: 22px 28px 40px; }
.footer { font-size: 10pt; color: var(--eq-text-dark); padding: 14px 28px; border-top: 1px solid var(--eq-border); background: var(--eq-white); }

/* layout */
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.wrap { flex-wrap: wrap; }
.gap { gap: 10px; }
.grow { flex: 1; min-width: 0; }
.mb { margin-bottom: 12px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.grid2.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .grid2, .grid2.even { grid-template-columns: 1fr; } }
.muted { color: var(--muted); }
.small, small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.scrollx { overflow-x: auto; }

.card { background: var(--eq-white); border: 1px solid var(--eq-border); border-radius: 8px; padding: 18px 20px; margin-bottom: 16px; }
.card-title { font-size: 16px; margin-bottom: 10px; }
.muted-card { background: var(--eq-content-tint); border-color: transparent; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); background: var(--eq-white); border: 1px dashed var(--eq-border); border-radius: 8px; }
.empty p { font-size: 16px; margin: 0 0 14px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; border-radius: 6px; border: 1px solid var(--eq-cta);
  background: var(--eq-white); color: var(--eq-cta); font-weight: bold; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--eq-content-tint); }
.btn.primary { background: var(--eq-cta); color: var(--eq-white); }
.btn.primary:hover { background: var(--eq-hero-mid); border-color: var(--eq-hero-mid); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--eq-content-tint); }
.btn.ghost.light { color: var(--eq-white); border-color: rgba(255,255,255,.5); }
.btn.ghost.light:hover { background: rgba(255,255,255,.12); }
.btn.small { padding: 4px 10px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* status pills: shape and fill carry the state, colors stay in the palette */
.pill { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; border: 1px solid var(--eq-border); background: var(--eq-white); white-space: nowrap; }
.pill.done, .pill.succeeded, .pill.resolved { background: var(--eq-hero-accent); border-color: var(--eq-hero-accent); color: var(--eq-white); }
.pill.running, .pill.queued { background: var(--eq-content-tint); border-color: var(--eq-hero-mid); color: var(--eq-hero-mid); }
.pill.todo, .pill.open { border-color: var(--eq-cta); color: var(--eq-cta); }
.pill.failed { background: var(--eq-cta); border-color: var(--eq-cta); color: var(--eq-white); }
.pill.blocked { color: var(--muted); border-style: dashed; }
.pill.ai { background: var(--eq-content-tint); border-color: transparent; }
.lvl { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; flex: none; }
.lvl.ok { background: var(--eq-hero-accent); color: var(--eq-white); }
.lvl.warn { background: var(--eq-content-tint); color: var(--eq-cta); border: 1px solid var(--eq-cta); }
.lvl.error { background: var(--eq-cta); color: var(--eq-white); }

/* tables: dark header, banded tint rows, 1px borders */
.tbl { width: 100%; border-collapse: collapse; background: var(--eq-white); }
.tbl th, .tbl td { border: 1px solid var(--eq-border); padding: 8px 10px; text-align: left; vertical-align: top; }
.tbl thead th { background: var(--eq-text-dark); color: var(--eq-white); font-size: 13px; }
.tbl tbody tr:nth-child(even) { background: var(--eq-content-tint); }
.tbl.compact th, .tbl.compact td { padding: 5px 8px; font-size: 13px; }
.tbl tr.link { cursor: pointer; }
.tbl tr.link:hover td { background: #E7D6F9; }
.md table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.md th, .md td { border: 1px solid var(--eq-border); padding: 6px 8px; text-align: left; vertical-align: top; font-size: 13px; }
.md thead th { background: var(--eq-text-dark); color: var(--eq-white); }
.md tbody tr:nth-child(even) { background: var(--eq-content-tint); }
.md ul, .md ol { margin: 4px 0; padding-left: 20px; }
.md li { margin: 4px 0; }
.md code { font-family: Arial, sans-serif; background: var(--eq-content-tint); padding: 1px 4px; border-radius: 3px; }

.bar { height: 6px; background: var(--eq-border); border-radius: 3px; overflow: hidden; min-width: 80px; }
.bar span { display: block; height: 100%; background: var(--gradient); }
.bar.big { height: 8px; margin-bottom: 14px; }

/* citations */
.c { display: inline-block; font-size: 11px; background: var(--eq-content-tint); color: var(--eq-hero-primary); border-radius: 4px; padding: 0 5px;
  margin: 1px 2px; cursor: pointer; white-space: nowrap; line-height: 17px; }
.c:hover { background: var(--eq-hero-primary); color: var(--eq-white); }
#tip { position: fixed; z-index: 50; display: none; background: var(--eq-text-dark); color: var(--eq-white); padding: 8px 10px; border-radius: 6px;
  font-size: 12px; line-height: 1.4; pointer-events: none; box-shadow: 0 4px 16px rgba(0,0,0,.2); }

/* toasts */
#toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--eq-text-dark); color: var(--eq-white); padding: 10px 14px; border-radius: 6px; max-width: 420px; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.toast.error { background: var(--eq-cta); }
.toast.warn { border-left: 4px solid var(--eq-hero-accent); }

/* overview */
.next { display: flex; align-items: center; gap: 16px; background: var(--gradient); color: var(--eq-white); border-radius: 8px; padding: 20px 22px; margin-bottom: 16px; }
.next p { margin: 4px 0 0; opacity: .9; }
.next .btn.primary { background: var(--eq-white); color: var(--eq-cta); border-color: var(--eq-white); }
.eyebrow { text-transform: uppercase; font-size: 11px; letter-spacing: 1px; opacity: .85; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--eq-border); }
.step:first-child { border-top: 0; }
.stepicon { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: bold;
  border: 2px solid var(--eq-border); color: var(--muted); flex: none; }
.step.done .stepicon { background: var(--eq-hero-accent); border-color: var(--eq-hero-accent); color: var(--eq-white); }
.step.running .stepicon { border-color: var(--eq-hero-mid); color: var(--eq-hero-mid); }
.step.todo .stepicon { border-color: var(--eq-cta); color: var(--eq-cta); }
.steptitle { font-weight: bold; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--eq-white); border: 1px solid var(--eq-border); border-radius: 8px; padding: 14px 16px; }
.kpi-v { font-size: 24px; font-weight: bold; color: var(--eq-cta); }
.kpi-l { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* jobs */
.jobpanel { border: 1px solid var(--eq-hero-mid); background: var(--eq-white); border-radius: 8px; padding: 12px 14px; margin: 12px 0 16px; }
.jobpanel.failed { border-color: var(--eq-cta); }
.log { background: var(--eq-text-dark); color: #EDEDED; font-family: Arial, sans-serif; font-size: 12px; padding: 10px; border-radius: 6px; margin: 10px 0 0;
  max-height: 220px; overflow: auto; white-space: pre-wrap; }
.log:empty { display: none; }
.jobpanel.running .pill.running::before, .jobpanel.queued .pill::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--eq-hero-mid); margin-right: 6px; animation: pulse 1s infinite alternate; }
@keyframes pulse { from { opacity: .2; } to { opacity: 1; } }

/* inputs */
.slot { border: 1px solid var(--eq-border); border-radius: 8px; padding: 12px 14px; margin: 10px 0; }
.slot.needed { border-left: 4px solid var(--eq-cta); }
.slot.filled { border-left: 4px solid var(--eq-hero-accent); }
.slot p { margin: 4px 0 8px; }
.slotmark { width: 20px; color: var(--eq-hero-accent); font-weight: bold; }
.filerow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--eq-bg-light); border-radius: 6px; margin-bottom: 6px; }
.drop { border: 1px dashed var(--eq-border); border-radius: 6px; padding: 12px; text-align: center; color: var(--muted); cursor: pointer; font-size: 13px; }
.drop:hover, .drop.over { border-color: var(--eq-cta); background: var(--eq-content-tint); color: var(--eq-cta); }
.actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--eq-border); }
.check { display: flex; align-items: center; gap: 6px; margin-right: auto; color: var(--muted); font-size: 13px; }
.check input { width: auto; }

/* materials */
.materials { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .materials { grid-template-columns: 1fr; } }
.filelist { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 12px; }
.filelist a { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; padding: 10px 12px; background: var(--eq-white); border: 1px solid var(--eq-border);
  border-radius: 6px; cursor: pointer; text-decoration: none; color: var(--eq-text-dark); }
.filelist a small { grid-column: 2; }
.filelist a.active { border-color: var(--eq-cta); box-shadow: inset 3px 0 0 var(--eq-cta); }
.tag { font-size: 11px; font-weight: bold; color: var(--eq-cta); text-transform: uppercase; letter-spacing: .5px; padding-top: 1px; }
.fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview { min-height: 400px; }
.imgpreview { max-width: 100%; border: 1px solid var(--eq-border); border-radius: 6px; }
.qa { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--eq-border); }
.qid { font-weight: bold; color: var(--eq-cta); width: 36px; flex: none; }
.qsec { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.qq { color: var(--muted); margin: 2px 0 6px; font-size: 13px; }
.qans.blank { color: var(--muted); font-style: italic; }
.lines { max-height: 70vh; overflow: auto; border: 1px solid var(--eq-border); border-radius: 6px; }
.line { display: flex; gap: 12px; padding: 5px 10px; border-top: 1px solid var(--eq-bg-light); }
.lkey { color: var(--eq-cta); font-size: 12px; width: 64px; flex: none; padding-top: 1px; }
.hit, .tbl tbody tr.hit { background: var(--eq-content-tint) !important; box-shadow: inset 4px 0 0 var(--eq-cta); }
.sheet .rownum { background: var(--eq-bg-light); color: var(--muted); font-weight: normal; }
.sheet td { white-space: nowrap; }

/* segmented control */
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--eq-border); border-radius: 6px; overflow: hidden; margin: 6px 0 10px; }
.seg button { border: 0; border-left: 1px solid var(--eq-border); background: var(--eq-white); padding: 6px 12px; cursor: pointer; font-size: 13px; }
.seg button:first-child { border-left: 0; }
.seg button.on { background: var(--eq-cta); color: var(--eq-white); font-weight: bold; }

/* profile */
.disagree { background: var(--eq-content-tint); border-left: 3px solid var(--eq-cta); padding: 2px 6px; }
.issues { list-style: none; padding: 0; }
.issues li { display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
details summary { cursor: pointer; font-weight: bold; margin: 6px 0; }

/* conflicts */
.finding { background: var(--eq-white); border: 1px solid var(--eq-border); border-left: 4px solid var(--eq-cta); border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; }
.finding.resolved, .finding.not_a_conflict { border-left-color: var(--eq-hero-accent); opacity: .85; }
.finding.ask_customer { border-left-color: var(--eq-hero-mid); }
.finding p { margin: 8px 0; }
.kid { background: var(--eq-text-dark); color: var(--eq-white); font-weight: bold; font-size: 12px; padding: 2px 7px; border-radius: 4px; }
.sides { margin: 8px 0; }
.ask { background: var(--eq-bg-light); padding: 8px 10px; border-radius: 6px; }
.email { white-space: pre-wrap; font-family: Arial, sans-serif; background: var(--eq-bg-light); border: 1px solid var(--eq-border); border-radius: 6px; padding: 12px;
  max-height: 520px; overflow: auto; font-size: 13px; }
.chipstat { display: inline-flex; align-items: center; gap: 4px; background: var(--eq-bg-light); border-radius: 12px; padding: 2px 4px 2px 8px; }

/* drafts */
.slide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.slide.small { gap: 8px; font-size: 13px; }
.box { border: 1px solid var(--eq-border); border-radius: 8px; padding: 12px 14px; background: var(--eq-white); }
.box:nth-child(1), .box:nth-child(4) { background: var(--eq-content-tint); border-color: transparent; }
.bh { font-weight: bold; color: var(--eq-cta); margin-bottom: 4px; text-transform: uppercase; font-size: 12px; letter-spacing: .5px; }
.uvbox { border: 1px solid var(--eq-border); border-radius: 8px; padding: 12px 16px; }
.section.has-choice { border-top: 4px solid var(--eq-hero-accent); }
.sme { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--eq-border); }
.sme input { width: 280px; }
.stars button { border: 0; background: none; font-size: 20px; color: var(--eq-border); cursor: pointer; padding: 0 1px; }
.stars button.on { color: var(--eq-cta); }
.stars button:disabled { cursor: not-allowed; }
.editor { font-family: Arial, sans-serif; font-size: 13px; min-height: 420px; }

.exportframe { width: 100%; height: 75vh; border: 1px solid var(--eq-border); border-radius: 6px; }
.lvl.info { border: 1px solid var(--eq-border); color: var(--muted); font-style: italic; }
.side-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
