/* Deckard's look: a teal screen in a dark room. Loaded after application.css, which holds the
   layout; this file holds colour, type and the frame around things, so the look can be changed
   or removed without touching the layout.

   Everything sits in one colour of light. The page is deep teal, brighter towards the top and
   darker at the edges; panels are a darker, slightly see-through teal with a thin pale edge;
   text is a pale mint white, all of it in the monospace face. Brighter teal is something you can
   press. Yellow is the one warm thing on the screen: it marks where you are, and it is the first
   colour a chart draws in. Coral is trouble. The sign-in page has the only neon. */
:root {
  --bg: #062126; --bg-2: #082b31; --bg-3: #0f3f46; --line: #24676c; --text: #e2f6f3; --muted: #93c6c3;
  --accent: #1c7c79; --accent-2: #1f8a86; --link: #8ff0e6; --mark: #f2d14b; --danger: #f0605a; --ok: #6fdc9a; --warn: #f2d14b;
  --edge: rgba(150, 232, 224, .32);
  --mono: "Berkeley Mono", "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* The screen: lit from the top, darker at the edges, with the faintest scanlines. */
body {
  font: 13px/1.5 var(--mono);
  background: radial-gradient(1500px 900px at 50% -10%, #16616b 0%, #0d444c 34%, #082d33 62%, var(--bg) 100%) fixed, var(--bg);
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 60%, rgba(0, 12, 14, .38) 100%);
}
@media (prefers-contrast: more) { body::after { display: none; } }
::selection { background: rgba(242, 209, 75, .4); }

/* Type */
a { color: var(--link); }
h1 { font-size: 20px; font-weight: 700; letter-spacing: .04em; text-shadow: 0 0 18px rgba(170, 245, 236, .35); }
h1.op-title { font-size: 16px; letter-spacing: 0; text-shadow: none; }
/* A panel's title: plain white, with a rule under it. */
h2 { font-size: 13.5px; font-weight: 700; text-transform: none; letter-spacing: .02em; color: var(--text); padding-bottom: 8px; border-bottom: 1px solid var(--edge); margin-bottom: 12px; }
code { background: rgba(4, 22, 26, .7); border-radius: 2px; color: #c6fbf4; font-size: 12px; }
pre.code, pre.sample, pre.stack { border-radius: 2px; background: rgba(3, 18, 21, .75); border-color: var(--edge); }
.small { font-size: 11.5px; }

/* Top bar: a lighter band of the same teal. */
.topbar { height: 48px; background: linear-gradient(180deg, #187378, #115a5f); border-bottom: 1px solid rgba(170, 240, 232, .4); box-shadow: 0 8px 28px rgba(0, 16, 18, .45); }
.brand { font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #fff; gap: 8px; text-shadow: 0 0 14px rgba(200, 255, 248, .45); }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--mark); text-shadow: 0 0 10px rgba(242, 209, 75, .7); }
.nav-link { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #cdeeea; border-radius: 0; padding: 14px 9px 12px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-link.active { background: rgba(255, 255, 255, .1); color: #fff; border-bottom-color: var(--mark); }
.topbar .btn-ghost { border-color: rgba(200, 250, 244, .5); }

/* Panels: darker glass with a thin pale edge. */
.card, .tile, .chart, .callout, .auth-card, .fieldset, .menu-body, .flash { border-radius: 2px; }
.card, .tile, .chart, .auth-card { background: rgba(4, 26, 30, .58); border-color: var(--edge); box-shadow: inset 0 0 40px rgba(60, 190, 190, .05), 0 6px 24px rgba(0, 14, 16, .3); }
.fieldset, .menu-body { border-color: var(--edge); }
.menu-body { background: #072a2f; }
.tile-label, .facts dt, .section-label { font-size: 11.5px; font-weight: 700; color: var(--text); }
.tile-value, .stat { font-weight: 500; letter-spacing: -.02em; color: #fff; text-shadow: 0 0 16px rgba(170, 245, 236, .4); }
.callout { background: rgba(242, 209, 75, .07); border-color: rgba(242, 209, 75, .5); }
.flash-notice { background: rgba(111, 220, 154, .1); border-color: rgba(111, 220, 154, .5); color: #c9f5da; }
.flash-alert { background: rgba(240, 96, 90, .12); border-color: rgba(240, 96, 90, .6); color: #ffd3cf; }

/* Controls: teal you can press, lighter when chosen. */
.btn { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; border-radius: 2px; background: rgba(3, 18, 21, .35); border-color: rgba(150, 232, 224, .45); color: var(--text); }
.btn:hover { background: var(--accent); border-color: #a8f3ea; color: #fff; }
.btn-sm { font-size: 11px; padding: 4px 9px; }
.btn-primary { background: #1a7f7b; border-color: #c4f8f1; color: #fff; font-weight: 700; box-shadow: 0 0 18px rgba(80, 220, 210, .35); }
.btn-primary:hover { background: #1f8a86; border-color: #e6fffb; }
.btn-ghost { background: transparent; }
.btn-danger { color: #fff; border-color: #ff9a94; background: #c2463f; }
.btn-danger:hover { background: #d4544c; border-color: #ffc4bf; color: #fff; }
.btn-on { color: var(--ok); border-color: rgba(111, 220, 154, .6); }
.btn-google, .btn-google:hover { text-transform: none; letter-spacing: 0; font-size: 13px; background: #fff; border-color: #fff; color: #1f1f1f; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input[type=number], select { background: rgba(3, 18, 21, .6); border-color: rgba(150, 232, 224, .45); border-radius: 2px; caret-color: var(--mark); }
input::placeholder { color: #6fa3a1; }
input:focus, select:focus { border-color: #d3fbf6; box-shadow: 0 0 0 2px rgba(143, 240, 230, .25); }
.menu summary, .menu-item, kbd { border-radius: 2px; }
.or::before, .or::after { border-top-color: var(--edge); }

/* Tabs and tables */
.tabs { border-bottom-color: var(--edge); }
.tab { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.tab.active { color: #fff; border-bottom-color: var(--mark); }
.tabs-minor .tab { border-radius: 2px; font-size: 11.5px; }
.tabs-minor .tab.active { border-color: #a8f3ea; background: var(--accent); color: #fff; }
.table th { font-size: 11.5px; font-weight: 700; color: var(--text); border-bottom-color: var(--edge); }
.table td { border-bottom-color: rgba(150, 232, 224, .14); }
.list li, .span-row { border-bottom-color: rgba(150, 232, 224, .14); }
.table tbody tr:hover td { background: rgba(143, 240, 230, .05); }
.table th a { color: var(--text); } .table th a.sorted { color: var(--mark); }
.table td.op-col, .span-name { font-size: 12px; }
.span-row > summary:hover, .span-row[open] > summary { background: rgba(143, 240, 230, .07); }
.span-detail { background: rgba(3, 18, 21, .6); border-top-color: var(--edge); }
.frames li.in-app { border-left-color: var(--mark); background: rgba(3, 18, 21, .6); }
.frames li.in-app .fn { color: #c6fbf4; }

/* Tags: every state is said in words; colour only backs the word up. */
.tag { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; border-radius: 2px; padding: 1px 6px; white-space: nowrap; align-self: flex-start;
       background: rgba(3, 18, 21, .5); border-color: var(--edge); color: var(--muted); }
.tag-app, .tag-resolved { color: #b9f3d0; border-color: rgba(111, 220, 154, .6); background: rgba(111, 220, 154, .12); }
.tag-error, .tag-open, .tag-severity-critical, .tag-flag-secret { color: #ffd3cf; border-color: rgba(240, 96, 90, .8); background: rgba(240, 96, 90, .22); }
.tag-slow, .tag-regressed, .tag-severity-warning, .tag-flag-network { color: #fbe9a3; border-color: rgba(242, 209, 75, .65); background: rgba(242, 209, 75, .12); }
.tag-nplus1, .tag-flag-destructive { color: #ffd0b3; border-color: rgba(255, 140, 70, .7); background: rgba(255, 140, 70, .16); }
.tag-partial, .tag-new, .tag-severity-info, .tag-acknowledged { color: #c6fbf4; border-color: rgba(143, 240, 230, .55); background: rgba(143, 240, 230, .1); }
.tag-sample, .tag-ignored { color: var(--muted); }
.rate-bad, .table tr.is-error td.name-col a, .table tr.is-error td.op-col, .span-row.is-error .span-name { color: #ffb4ad; }
.issue-count { border-radius: 2px; background: #c2463f; color: #fff; }
rect.is-error { fill: var(--danger); }

/* Charts. The series colours were chosen for this teal surface and checked with the palette
   validator (lightness band, chroma, colour-blind separation of neighbours, contrast): yellow,
   blue, coral, violet, pink, green, always in that order. No series is teal, because the screen
   is. Text never wears a series colour, and the status red stays reserved for errors. */
.slot-1 { --slot: #b58a00; } .slot-2 { --slot: #5b8def; } .slot-3 { --slot: #e0603a; }
.slot-4 { --slot: #8f7ae6; } .slot-5 { --slot: #d0519a; } .slot-6 { --slot: #5f9e45; }
.svc-0, .swatch.svc-0 { fill: #b58a00; background: #b58a00; } .svc-1, .swatch.svc-1 { fill: #5b8def; background: #5b8def; }
.svc-2, .swatch.svc-2 { fill: #e0603a; background: #e0603a; } .svc-3, .swatch.svc-3 { fill: #8f7ae6; background: #8f7ae6; }
.svc-4, .swatch.svc-4 { fill: #d0519a; background: #d0519a; } .svc-5, .swatch.svc-5 { fill: #5f9e45; background: #5f9e45; }
.chart-title { font-size: 12.5px; font-weight: 700; text-transform: none; letter-spacing: .02em; color: var(--text); }
.chart .grid { stroke: rgba(150, 232, 224, .12); } .chart .axis { stroke: rgba(150, 232, 224, .4); }
.chart .tick, .chart .deploy-label { font-family: var(--mono); fill: var(--muted); }
.chart .dot { stroke: #072a2f; }
.chart svg:focus-visible { box-shadow: 0 0 0 2px rgba(143, 240, 230, .4); border-radius: 2px; }
.chart-tip { border-radius: 2px; border-color: #a8f3ea; background: #062428; box-shadow: 0 8px 24px rgba(0, 14, 16, .55); }
.spark polyline { stroke: #b58a00; opacity: 1; }
.bar-fill, .share-fill { background: #b58a00; fill: #b58a00; }
.share-track { fill: rgba(3, 18, 21, .7); }
.bar-svg { background: rgba(3, 18, 21, .7); border-radius: 0; }

/* Loading: the line is lit like the page titles, under a yellow sweep. */
.loading { background: rgba(4, 26, 30, .94); border-color: #a8f3ea; border-radius: 2px; box-shadow: 0 0 0 1px rgba(4, 26, 30, .6), 0 18px 60px rgba(0, 12, 14, .7), 0 0 60px rgba(80, 220, 210, .12); }
.loading blockquote { color: #fff; text-shadow: 0 0 16px rgba(170, 245, 236, .4); }
.loading figcaption { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.loading-bar::before { background: var(--mark); box-shadow: 0 0 12px rgba(242, 209, 75, .7); }
.turbo-progress-bar { background-color: var(--mark); height: 2px; }

/* Sign-in: a dark street with one neon sign. The sign stutters on, hums, and has one loose
   letter. Nothing moves for anyone who asks for reduced motion. */
.auth-body { background: radial-gradient(900px 620px at 50% 38%, #0d444c 0%, #082d33 45%, #041a1e 100%) fixed, #041a1e; }
.auth-card { max-width: 430px; padding: 38px 32px 30px; }
.brand.big { display: block; font-size: 46px; line-height: 1; letter-spacing: .16em; margin-bottom: 10px; }
.neon { color: #ffe3ec; text-shadow: 0 0 2px #fff, 0 0 9px #ff5c93, 0 0 24px rgba(255, 61, 120, .9), 0 0 54px rgba(255, 61, 120, .55);
        animation: neon-start 1.9s linear 1, neon-hum 9s linear 1.9s infinite; }
.neon-loose { animation: neon-loose 7s linear 2.4s infinite; }
.neon-alt { display: block; font-size: 15px; font-weight: 400; letter-spacing: .5em; margin-top: 12px; color: #dcfffb;
            text-shadow: 0 0 8px #3fe0d3, 0 0 22px rgba(63, 224, 211, .75); animation: neon-hum 11s linear 3s infinite; }
@keyframes neon-start { 0% { opacity: .1; } 9% { opacity: .1; } 10% { opacity: 1; } 14% { opacity: .15; } 38% { opacity: .15; } 40% { opacity: 1; } 46% { opacity: .3; } 64% { opacity: .3; } 66%, 100% { opacity: 1; } }
@keyframes neon-hum { 0%, 46%, 48.5%, 51%, 100% { opacity: 1; } 47% { opacity: .7; } 50% { opacity: .82; } }
@keyframes neon-loose { 0%, 20%, 22.5%, 25%, 61%, 67.5%, 70%, 100% { opacity: 1; } 21% { opacity: .15; } 23.5% { opacity: .3; } 62%, 66.5% { opacity: .1; } 68.5% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .neon, .neon-loose, .neon-alt { animation: none; } }
.auth-tagline { font-size: 10.5px; text-transform: uppercase; letter-spacing: .24em; color: var(--muted); margin: 0 0 24px; }
