@font-face { font-family: "Familjen"; src: url(/familjen-grotesk-latin-var.woff2) format("woff2-variations"); font-weight: 400 700; font-display: swap; }
:root { --night: #0F1530; --night-2: #19214A; --tang: #FF6B2C; --tang-2: #FF8A57; --tang-soft: #FFE6DA; --peri: #AEB9FF; --peri-soft: #E7EAFF;
  --paper: #fff; --mist: #F3F4F8; --line: #E2E4EC; --ink: #12163A; --ink-2: #444A68; --muted: #676C8A; --good: #0B7F57; --bad: #C93A32; --r: 14px; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--mist); color: var(--ink); font: 400 1rem/1.55 "Familjen", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.025em; line-height: 1.1; }
h1 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
h2 { font-size: 1.25rem; }
p { margin: 0 0 .8em; }
:focus-visible { outline: 3px solid var(--tang); outline-offset: 2px; border-radius: 6px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.main { padding-top: 32px; padding-bottom: 64px; min-height: 70vh; }

/* header */
.top { background: var(--night); color: #fff; }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; font-size: 1.3rem; letter-spacing: -.04em; color: #fff; }
.mark { width: 26px; height: 26px; color: #fff; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; color: #C9CEEE; font-weight: 550; font-size: .95rem; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { background: #fff; color: var(--night); }
.signout button { background: none; border: 0; color: #9EA4C9; font: inherit; font-size: .9rem; cursor: pointer; padding: 8px 4px; }
.signout button:hover { color: #fff; }
@media (max-width: 640px) { .nav { order: 3; width: 100%; margin: 0 0 10px; overflow-x: auto; } .signout { margin-left: auto; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border-radius: 999px; background: var(--tang); color: var(--night); border: 2px solid var(--tang); font: 650 .98rem/1.1 inherit; font-family: inherit; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--tang-2); border-color: var(--tang-2); }
.btn-sm { min-height: 38px; padding: 6px 16px; font-size: .9rem; }
.btn-ghost { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.lnk { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-decoration-color: var(--tang); text-underline-offset: 4px; cursor: pointer; font-weight: 550; }
.danger { color: var(--bad); text-decoration-color: var(--bad); }
.back { display: inline-block; margin-bottom: 14px; color: var(--muted); text-decoration: none; font-weight: 550; }
.back::before { content: "\2190\00a0"; }

/* blocks */
.head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.lede { color: var(--ink-2); font-size: 1.08rem; max-width: 60ch; margin: 10px 0 24px; }
.hint { color: var(--muted); font-size: .92rem; margin: 4px 0 0; }
.muted { color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 16px; }
.flash { border-radius: 12px; padding: 12px 16px; margin: 0 0 20px; background: #DDF3EA; color: #075C40; font-weight: 550; }
.flash-warn { background: var(--tang-soft); color: #7A2E0E; }
.flash p { margin: 0 0 4px; }

/* login */
.bare .main { display: grid; place-items: center; min-height: 86vh; }
.login { max-width: 420px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 40px 30px; }
.logo-big { color: var(--night); justify-content: center; font-size: 1.6rem; margin-bottom: 22px; }
.logo-big .mark { color: var(--night); width: 34px; height: 34px; }
.login h1 { margin-bottom: 12px; font-size: 1.9rem; }
.login p { color: var(--ink-2); }
.gbtn { display: inline-flex; align-items: center; gap: 12px; margin: 14px 0 18px; padding: 0 18px 0 12px; height: 44px; border: 1px solid #747775; border-radius: 22px; background: #fff; color: #1F1F1F; text-decoration: none; font: 500 15px/1 Roboto, "Familjen", sans-serif; }
.gbtn:hover { background: #F7F8F8; }
.fine { font-size: .82rem; color: var(--muted); }

/* clients */
.clients { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.client { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 4px 20px 4px 4px; }
.client > a:first-child { flex: 1; display: grid; gap: 2px; padding: 16px; text-decoration: none; border-radius: 10px; }
.client > a:first-child:hover { background: var(--mist); }
.client b { font-size: 1.1rem; }
.client span { color: var(--muted); font-size: .9rem; }
.empty { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; }
.empty h2 { margin-bottom: 18px; font-size: 1.5rem; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr auto; gap: 2px 14px; align-items: center; padding: 14px; border-radius: 12px; background: var(--mist); }
.steps li::before { content: counter(s); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--night); color: #fff; display: grid; place-content: center; font-weight: 650; }
.steps li.done::before { content: "\2713"; background: var(--good); }
.steps b { grid-column: 2; } .steps span { grid-column: 2; color: var(--muted); font-size: .92rem; }
.steps .btn { grid-column: 3; grid-row: 1 / span 2; }

/* forms */
.form label:not(.opt) { display: block; font-weight: 600; margin-bottom: 6px; }
.form input[type=text], .form input:not([type]), .form input[name=name] { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #CFD3E0; border-radius: 10px; margin-bottom: 4px; }
.form .btn { margin-top: 14px; }
fieldset.card { margin: 0 0 16px; }
legend { font-weight: 650; padding: 0 6px; color: var(--muted); font-size: .9rem; }
.opt { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 10px; cursor: pointer; }
.opt:hover { background: var(--mist); }
.opt input { width: 20px; height: 20px; accent-color: var(--night); flex: none; margin: 0; }
.opt span { display: grid; }
.opt em { font-style: normal; color: var(--muted); font-size: .85rem; }
.camp-tools { display: flex; gap: 18px; padding: 0 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }

/* client setup and connections */
.srcs, .conns { display: grid; gap: 12px; }
.src, .conn { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.src-h, .conn-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.src-list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.src-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.src-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.src-list span { display: grid; }
.src-list em { font-style: normal; color: var(--muted); font-size: .85rem; }
.src-list em.warn { color: var(--bad); }
.acts { display: flex !important; grid-auto-flow: column; gap: 16px; align-items: center; }
.acts form { margin: 0; }
.soon { font-size: .85rem; color: var(--muted); background: var(--mist); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.del { margin-top: 28px; }
.danger-zone h2 { color: var(--bad); }

/* report */
.rtools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.rtools form { margin: 0; }
.rtools select { font: 600 .95rem inherit; font-family: inherit; padding: 9px 36px 9px 14px; border-radius: 999px; border: 2px solid var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2312163A' stroke-width='2'/%3E%3C/svg%3E") right 14px center / 11px no-repeat; appearance: none; min-height: 38px; }
.share { background: var(--peri-soft); border-radius: 12px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.share input { flex: 1; min-width: 240px; font: inherit; padding: 8px 12px; border: 1px solid #C9CFF5; border-radius: 8px; background: #fff; }
.rep { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.rep-h { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 26px clamp(20px, 4vw, 40px); background: var(--night); color: #fff; }
.rep-h h1 { color: #fff; text-align: right; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); }
.rep-h p { margin: 4px 0 0; color: var(--peri); text-align: right; }
.rep-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; letter-spacing: -.03em; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--line); }
.kpis div { padding: 20px clamp(16px, 3vw, 26px); display: grid; gap: 4px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
.kpis span, .mini span { font-size: .84rem; color: var(--muted); }
.kpis b { font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem); letter-spacing: -.04em; line-height: 1; }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(4, 1fr); } .kpis div { border-top: 0; } .kpis div:last-child { border-right: 0; } }
.chg { font-style: normal; font-weight: 650; font-size: .84rem; }
.chg.up { color: var(--good); } .chg.dn { color: var(--bad); } .chg.flat { color: var(--muted); font-weight: 500; }
.rs { padding: 28px clamp(20px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.rs:last-of-type { border-bottom: 0; }
.rs h3 { font-size: 1.45rem; margin-bottom: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.rs h3 em { font-style: normal; font-size: .9rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.rs h4 { font-size: 1rem; margin: 18px 0 8px; }
.say { font-size: 1.12rem; max-width: 62ch; }
.rs-fix { background: var(--tang-soft); }
.rs-fix ul { margin: 0; padding-left: 20px; font-size: 1.05rem; }
.rs-fix li { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.tbl th, .tbl td { padding: 11px 8px 11px 0; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl th:first-child { text-align: left; white-space: normal; }
.tbl thead th { font-size: .8rem; color: var(--muted); font-weight: 550; }
.tbl tbody th { font-weight: 550; }
.tbl tbody th em { display: block; font-style: normal; font-size: .8rem; color: var(--muted); font-weight: 400; }
.tbl td { font-weight: 600; }
.charts { display: grid; gap: 20px; margin-top: 22px; }
@media (min-width: 720px) { .charts { grid-template-columns: 1fr 1fr; } }
.charts figure { margin: 0; }
.charts figcaption { font-size: .84rem; color: var(--muted); margin-top: 6px; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; height: 120px; align-items: end; }
.bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bar span { width: 100%; background: var(--peri-soft); border-radius: 5px 5px 2px 2px; display: block; }
.bar.now span { background: var(--night); }
.bar em { font-style: normal; font-size: .75rem; color: var(--muted); }
.mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.mini div { background: var(--mist); border-radius: 12px; padding: 14px; display: grid; gap: 2px; }
.mini b { font-size: 1.5rem; letter-spacing: -.03em; }
.two { display: grid; gap: 8px 32px; }
@media (min-width: 760px) { .two { grid-template-columns: 1fr 1fr; } }
.rank { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rank li { counter-increment: r; display: flex; gap: 10px; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.rank li::before { content: counter(r); color: var(--muted); width: 18px; flex: none; }
.rank li span { flex: 1; }
.rep-foot { font-size: .82rem; color: var(--muted); padding: 16px clamp(20px, 4vw, 40px) 22px; margin: 0; }

.foot { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-bottom: 28px; font-size: .85rem; color: var(--muted); }
.foot a { color: var(--muted); }
.foot span { margin-left: auto; }

@media print {
  .top, .rtools, .back, .share, .foot, .flash { display: none !important; }
  body { background: #fff; } .main { padding: 0; } .rep { border: 0; border-radius: 0; }
  .rep-h, .bar.now span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.btn { white-space: nowrap; }
@media (max-width: 560px) {
  .src-h, .conn-h { flex-direction: column; align-items: flex-start; gap: 12px; }
  .soon { white-space: normal; }
  .rep-h h1, .rep-h p { text-align: left; }
}
