/* Replica of the Pharos 0.5.x product UI, scoped to .px. Uses the app's own
   typeface so the mock matches the real screenshots. */
/* Pharos 0.7.0 replica: tokens lifted from resources/views/partials/tokens.blade.php.
   Scoped to .px so the marketing page around it keeps its own palette.
   --brand is the whitelabel accent: swap it and the whole product re-skins. */
.px {
  --bg:#fbfcfe; --bg-tint:#f2f6fb; --card:#ffffff; --line:#e8edf4;
  --ink:#0e1726; --ink-2:#475467; --ink-3:#667085;
  --navy:#0a1729;
  --brand:#0079d2; --brand-soft:color-mix(in srgb, var(--brand) 12%, transparent); --brand-ink:#ffffff;
  --green:#12b76a; --green-ink:#027a48; --green-soft:#e6f7ef;
  --amber:#f79009; --amber-ink:#b54708; --amber-soft:#fef4e6;
  --orange:#e86b1c; --orange-ink:#b34b0c; --orange-soft:#fdeee2;
  --red:#f04438; --red-ink:#b42318; --red-soft:#fee4e2;
  --blue:#2e90fa; --blue-ink:#175cd3; --blue-soft:#e8f1fd;
  --unknown:#d3dbe4;
  --sans:'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  --pshadow-sm:0 1px 2px #10182808,0 1px 3px #1018280d;
  --pshadow-md:0 12px 32px -12px #10182818,0 2px 6px -2px #10182808;
  position: relative;
  font-family: var(--sans); font-size: 15px; line-height: 1.6;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: background .4s var(--ease), color .4s var(--ease);
}
.px.dark {
  --bg:#080e18; --bg-tint:#0b1523; --card:#0e1a2b; --line:#1c2b3f;
  --ink:#eaf0f7; --ink-2:#a7b6c7; --ink-3:#7d8fa3; --brand-soft:color-mix(in srgb, var(--brand) 18%, transparent); --unknown:#22303f;
  --green:#32d583; --green-ink:#6ce9a6; --green-soft:#0d2a1e;
  --amber:#fdb022; --amber-ink:#fec84b; --amber-soft:#2c2211;
  --orange:#f38744; --orange-ink:#f9a875; --orange-soft:#2e1c11;
  --red:#f97066; --red-ink:#fda29b; --red-soft:#2d1614;
  --blue:#53b1fd; --blue-ink:#84caff; --blue-soft:#10233a;
  --pshadow-md:0 12px 32px -12px #0004; --pshadow-sm:0 1px 2px #00000030;
  box-shadow: 0 60px 120px -40px #000, inset 0 0 0 1px #ffffff0d;
}
.px *, .px *::before, .px *::after { box-sizing: border-box; }
.px h1, .px h2, .px h3, .px h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; }
.px p { margin: 0; }
.px svg { stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; width: 16px; height: 16px; }
.px .mono { font-family: var(--mono); }

/* ---------- browser chrome ---------- */
.px-chrome { display: flex; align-items: center; gap: 8px; padding: 9px 13px; background: var(--bg-tint); border-bottom: 1px solid var(--line); }
.px-chrome i { width: 9px; height: 9px; border-radius: 50%; background: #d8dfe9; }
.px-chrome i:first-child { background: #ffd6d3; } .px-chrome i:nth-child(2) { background: #ffe9c2; } .px-chrome i:nth-child(3) { background: #cdeed7; }
.px-url { margin-left: 6px; display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 11px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font: 500 11px var(--mono); color: var(--ink-3); }
.px-url svg { width: 11px; height: 11px; color: var(--green); }
.px-chrome .who { margin-left: auto; font: 600 10px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 480px) { .px-chrome i { display: none; } .px-url { margin-left: 0; } }

/* ---------- screens ---------- */
.px-screens { position: relative; }
.px-screen { position: absolute; inset: 0; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s; }
.px-screen.on { opacity: 1; visibility: visible; transform: none; }

/* ---------- public status page ---------- */
.px-wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.px-top { display: flex; align-items: center; gap: 12px; padding: 20px 0 16px; }
.px-logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 15px; letter-spacing: -.025em; }
.px-mark { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none;
  background: var(--brand); color: #fff; font: 800 12px var(--sans); transition: background .4s var(--ease); }
.px-top .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.px-sub { font-size: 12px; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 6px 13px; border-radius: 999px; }
.px-tt { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-3); }

.px-hero { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--pshadow-md); overflow: hidden; }
.px-hero-top { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; }
.px-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; background: currentColor; position: relative; color: var(--green); }
.px-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: currentColor; opacity: .55; animation: pxpulse 2.2s ease-out infinite; }
@keyframes pxpulse { 0% { transform: scale(1); opacity: .55 } 70%,100% { transform: scale(2.6); opacity: 0 } }
.px-hero-top h1 { font-size: 20px; transition: color .3s; }
.px-hero-top .when { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.px-uptime { padding: 0 20px 18px; display: flex; flex-direction: column; gap: 9px; }
.px-uptime .row { display: flex; align-items: baseline; gap: 10px; }
.px-uptime .big { font-size: 25px; font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.px-uptime .cap { font-size: 12px; color: var(--ink-3); }
.px-uptime .rng { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.px-bar { display: flex; gap: 2px; height: 28px; align-items: stretch; }
.px-bar span { flex: 1; border-radius: 2px; background: var(--green); opacity: .9; transform-origin: bottom;
  animation: barin .5s var(--ease) both; animation-delay: calc(var(--i,0) * 7ms); }
@keyframes barin { from { transform: scaleY(.15); opacity: 0 } }
.px-bar span.w { background: var(--amber); } .px-bar span.p { background: var(--orange); }
.px-bar span.b { background: var(--red); } .px-bar span.u { background: var(--unknown); }
.px-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--ink-3); }

.px-sec { margin-top: 20px; }
.px-sec > h2 { font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 9px; }
.px-svc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.px-svc + .px-svc { margin-top: 8px; }
.px-svc-hd { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.px-svc-hd .px-car { color: var(--ink-3); font-size: 10px; }
.px-svc-hd .nm { font-weight: 600; font-size: 13.5px; }
.px-svc-hd .cnt { font-size: 11.5px; color: var(--ink-3); }
.px-svc-hd .px-pct { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-left: auto; }
.px-mini { display: flex; gap: 1.5px; height: 15px; width: 120px; flex: none; }
.px-mini span { flex: 1; border-radius: 1px; background: var(--green); opacity: .9; }
.px-mini span.b { background: var(--red); } .px-mini span.w { background: var(--amber); }

.px-pill { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.px-pill.ok { color: var(--green-ink); background: var(--green-soft); }
.px-pill.w { color: var(--amber-ink); background: var(--amber-soft); }
.px-pill.p { color: var(--orange-ink); background: var(--orange-soft); }
.px-pill.b { color: var(--red-ink); background: var(--red-soft); }
.px-pill.m { color: var(--blue-ink); background: var(--blue-soft); }

.px-day-hd { display: flex; align-items: center; gap: 10px; padding: 12px 2px 8px; }
.px-day-hd h3 { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.px-day-hd .ln { flex: 1; height: 1px; background: var(--line); }
.px-inc { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--ink-3); border-radius: 14px;
  padding: 16px 18px; box-shadow: var(--pshadow-sm); transition: border-left-color .5s var(--ease); }
.px-inc.ok { border-left-color: var(--green); } .px-inc.w { border-left-color: var(--amber); }
.px-inc.p { border-left-color: var(--orange); } .px-inc.b { border-left-color: var(--red); }
.px-inc-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.px-inc-hd h4 { font-size: 14.5px; }
.px-inc .aff { font-size: 11.5px; color: var(--ink-3); margin-bottom: 13px; }
.px-inc .aff b { color: var(--ink-2); font-weight: 500; }
.px-tl { display: flex; flex-direction: column; gap: 13px; padding-left: 16px; border-left: 2px solid var(--line); margin-left: 3px; }
.px-tl-i { position: relative; animation: tlin .5s var(--ease) both; }
@keyframes tlin { from { opacity: 0; transform: translateY(7px); } }
.px-tl-i::before { content: ''; position: absolute; left: -22px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); }
.px-tl-i:first-child::before { background: var(--brand); border-color: var(--brand); }
.px-inc:not(.ok) .px-tl-i:first-child::after { content: ''; position: absolute; left: -22px; top: 5px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand); opacity: .55; animation: pxpulse 2.2s ease-out infinite; }
.px-tl-i .hd { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.px-tl-i strong { font-size: 12.5px; }
.px-tl-i time { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.px-tl-i p { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; margin-top: 2px; }
.px-auto { font-family: var(--mono); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.px-foot { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding: 16px 0 20px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3); }
.px-foot .cr { margin-left: auto; }

/* ---------- admin ---------- */
.px-shell { display: grid; grid-template-columns: 196px minmax(0,1fr); height: 100%; }
.px-side { background: var(--card); border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.px-side .brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13.5px; letter-spacing: -.025em; padding: 4px 8px 14px; }
.px-side .px-lbl { font-family: var(--mono); font-size: 8.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); padding: 12px 10px 6px; }
.px-nav { position: relative; display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 9px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.px-nav svg { width: 14px; height: 14px; opacity: .75; }
.px-nav.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.px-nav.on::before { content: ''; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.px-nav .hint { margin-left: auto; font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); background: var(--bg-tint); padding: 1px 6px; border-radius: 999px; }
/* 0.7.0 sidebar: search, the page you are on, "This page" and "Installation" groups */
.px-side { overflow: hidden; line-height: 1.3; padding-top: 12px; padding-bottom: 8px; gap: 1px; }
.px-side .brand { padding-bottom: 8px; }
.px-side .px-lbl { padding: 7px 10px 3px; }
.px-side .px-nav { padding: 4px 10px; }
.px-nav .chev { margin-left: auto; font-size: 12px; color: var(--ink-3); line-height: 1; }
.px-nav.open { color: var(--ink); font-weight: 600; }
.px-search { display: flex; align-items: center; gap: 7px; margin: 0 2px 2px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-tint); font-size: 11px; color: var(--ink-3); }
.px-search svg { width: 12px; height: 12px; }
.px-search kbd { margin-left: auto; font: 500 8.5px var(--mono); color: var(--ink-3); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; background: var(--card); }
.px-page { display: flex; align-items: center; gap: 6px; margin: 0 2px 4px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-tint); font-size: 11px; }
.px-page b { font-weight: 700; }
.px-page .px-page-st { margin-left: auto; }
.px-tag { font: 700 8.5px var(--sans); color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 1px 6px; }
.px-page-st { display: flex; align-items: center; gap: 4px; font-size: 9.5px; color: var(--ink-3); }
.px-page-st i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.px-subs { display: grid; gap: 1px; margin: 1px 0 2px 17px; padding-left: 9px; border-left: 1px solid var(--line); }
.px-subnav { position: relative; padding: 3px 10px; border-radius: 8px; font-size: 11.5px; color: var(--ink-2); }
.px-subnav.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.px-subnav.on::before { content: ''; position: absolute; left: -10px; top: 5px; bottom: 5px; width: 2px; border-radius: 2px; background: var(--brand); }
.px-side .bottom { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.px-who { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; }
.px-who .av { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.px-who strong { display: block; font-size: 11.5px; font-weight: 600; }
.px-who span { display: block; font-size: 10px; color: var(--ink-3); }

.px-main { min-width: 0; padding: 18px 20px; overflow: hidden; }
.px-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; }
.px-head h1 { font-size: 19px; letter-spacing: -.03em; }
.px-head .sub { font-size: 12px; color: var(--ink-3); }
.px-head .act { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.px-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 10px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.px-btn.primary { background: var(--brand); border-color: transparent; color: var(--brand-ink); box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--brand) 60%, transparent); }
.px-btn.sm { height: 26px; padding: 0 10px; font-size: 11px; border-radius: 8px; }

.px-tiles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.px-tile { background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; box-shadow: var(--pshadow-sm); }
.px-tile .k { font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.px-tile .v { font-size: 22px; font-weight: 800; letter-spacing: -.035em; line-height: 1.15; margin-top: 2px; font-variant-numeric: tabular-nums; }
.px-tile .n { font-size: 11px; color: var(--ink-3); }
.px-tile.warn .v { color: var(--amber-ink); } .px-tile.bad .v { color: var(--red-ink); } .px-tile.good .v { color: var(--green-ink); }

.px-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--pshadow-sm); overflow: hidden; }
.px-th { display: flex; align-items: center; gap: 12px; padding: 9px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); background: var(--bg-tint); }
.px-tr { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; min-width: 0; }
.px-tr:last-child { border-bottom: 0; }
.px-tr.in { opacity: 0; animation: pxrowin .5s var(--ease) forwards; animation-delay: var(--d,0s); }
@keyframes pxrowin { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.px-tr .nm { display: block; font-weight: 600; }
.px-tr .meta { display: block; font-size: 10.5px; color: var(--ink-3); }
.px-state { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 12px; }
.px-state-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: currentColor; position: relative; }
.px-state-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: currentColor; opacity: .55; animation: pxpulse 2.2s ease-out infinite; }
.px-state.ok { color: var(--green-ink); } .px-state.w { color: var(--amber-ink); }
.px-state.b { color: var(--red-ink); } .px-state.m { color: var(--blue-ink); }
.px-col { flex: none; }
.px-grow { flex: 1; min-width: 0; }

/* incident composer */
.px-field { display: grid; gap: 5px; }
.px-field label { font-size: 11px; font-weight: 600; color: var(--ink-2); }
.px-input { border: 1px solid var(--line); background: var(--bg-tint); border-radius: 10px; padding: 8px 11px; font-size: 12px; color: var(--ink); min-height: 34px; }
.px-input.area { min-height: 62px; font-size: 12px; line-height: 1.55; }
.px-choice { display: flex; gap: 6px; flex-wrap: wrap; }
.px-opt { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--card); transition: all .25s var(--ease); }
.px-opt .d { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.px-opt.on { border-color: currentColor; }
.px-opt.on.inv { color: var(--red-ink); background: var(--red-soft); }
.px-opt.on.idf { color: var(--orange-ink); background: var(--orange-soft); }
.px-opt.on.mon { color: var(--amber-ink); background: var(--amber-soft); }
.px-opt.on.res { color: var(--green-ink); background: var(--green-soft); }

/* mail preview */
.px-mail { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--card); box-shadow: var(--pshadow-sm); }
.px-mail-hd { padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-tint); font-size: 11px; color: var(--ink-3); }
.px-mail-hd b { color: var(--ink); font-size: 12px; }
.px-mail-bd { padding: 14px; display: grid; gap: 9px; }
.px-mail-bd .band { height: 4px; border-radius: 999px; background: var(--brand); width: 46px; }
.px-mail-bd h5 { font-size: 13.5px; font-weight: 700; }
.px-mail-bd p { font-size: 11.5px; color: var(--ink-2); }
.px-mail-bd .px-cta { align-self: start; font-size: 11px; font-weight: 700; color: var(--brand-ink); background: var(--brand); padding: 7px 12px; border-radius: 9px; }
.px-mail-bd .fine { font-size: 10px; color: var(--ink-3); }
