:root {
  color-scheme: light;
  --bg: #f5f6f4;
  --paper: #fff;
  --ink: #172720;
  --muted: #56665e;
  --line: #dce2dc;
  --green: #126143;
  --soft: #e3efe7;
  --lime: #c0ea8e;
  --red: #a43539;
  --dark: #173d33;
  --radius: 18px;
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #5386d5;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(30px, 3.1vw, 46px);
  font-weight: 700;
}
h2 {
  font-size: 22px;
}
h3 {
  font-size: 17px;
}
p {
  line-height: 1.6;
}
.muted,
.small {
  color: var(--muted);
}
.small {
  font-size: 0.87rem;
}
.icon {
  height: 19px;
  width: 19px;
  display: inline-block;
  vertical-align: middle;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip {
  position: fixed;
  z-index: 50;
  inset-block-start: -100px;
  inset-inline-start: 12px;
  background: var(--paper);
  padding: 12px;
}
.skip:focus {
  inset-block-start: 12px;
}
.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 26px 15px 16px;
  background: #fbfcf9;
  border-inline-end: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  z-index: 4;
}
.identity {
  display: flex;
  gap: 11px;
  align-items: center;
  justify-content: flex-end;
  direction: ltr;
  margin: 0 9px 38px;
  color: var(--ink);
  text-decoration: none;
}
.identity-text {
  display: grid;
  text-align: left;
  line-height: 1.12;
}
.identity-text strong {
  font-size: 25px;
  letter-spacing: -1.5px;
}
.identity-text small {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 4px;
}
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: var(--dark);
  color: var(--lime);
  border-radius: 11px;
  width: 43px;
  height: 43px;
  flex: none;
  direction: ltr;
}
.mark i {
  display: block;
  width: 4px;
  background: currentColor;
  transform: skew(-17deg);
  border-radius: 3px;
  height: 12px;
}
.mark i:nth-child(2) {
  height: 23px;
}
.mark i:nth-child(3) {
  height: 17px;
}
.nav {
  display: grid;
  gap: 4px;
  overflow-y: auto;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 43px;
  padding: 9px 14px;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 550;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: #1b4736;
  background: var(--soft);
}
.nav a[aria-current='page'] {
  font-weight: 700;
}
.nav-break {
  height: 1px;
  background: var(--line);
  margin: 13px 9px;
}
.sidebar-foot {
  margin-block-start: auto;
  padding: 20px 5px 0;
}
.system {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
.sys-title {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 650;
}
.system button {
  margin-top: 10px;
  width: 100%;
}
.profile {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
}
.avatar,
.round {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #e5e8e2;
  color: #394a41;
  flex: none;
}
.profile span.name {
  font-size: 0.84rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile .icon-btn {
  margin-inline-start: auto;
}
.content-area {
  min-width: 0;
}
.topbar {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-inline: clamp(20px, 3vw, 52px);
  gap: 12px;
}
.crumb,
.top-actions,
.inline,
.title-line,
.meta,
.btn,
.pill,
.panel-head,
.filterbar,
.period,
.brand-line,
.media-name {
  display: flex;
  align-items: center;
  gap: 8px;
}
.crumb {
  color: var(--muted);
  font-size: 0.87rem;
}
.crumb strong {
  color: var(--ink);
}
.top-actions {
  gap: 12px;
}
.env {
  border: 1px solid var(--line);
  background: #fdfefb;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.77rem;
  color: var(--muted);
}
.icon-btn {
  height: 34px;
  width: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
}
.icon-btn .icon {
  width: 16px;
  height: 16px;
}
.menu-btn {
  display: none;
}
.icon-btn:hover,
.btn.outline:hover,
.btn.ghost:hover {
  background: var(--soft);
}
.page {
  max-width: 1530px;
  margin: auto;
  padding: clamp(22px, 3vw, 50px);
  display: grid;
  gap: 22px;
}
.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.page-title .small {
  margin-block-start: 8px;
}
.btn {
  display: inline-flex;
  text-decoration: none;
  justify-content: center;
  border-radius: 8px;
  min-height: 37px;
  padding: 7px 13px;
  border: 1px solid transparent;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.9rem;
}
.btn:hover {
  filter: brightness(0.96);
}
.btn.outline {
  border-color: var(--line);
  background: white;
  color: var(--ink);
}
.btn.ghost {
  background: transparent;
  color: var(--green);
}
.btn.stop {
  color: var(--red);
  background: #fcf0ef;
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--dark);
  border-radius: var(--radius);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(280px, 1.1fr);
  gap: 30px;
  align-items: center;
  padding: 26px 30px;
}
.hero:before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    repeating-radial-gradient(
      ellipse 100% 240% at -20% 140%,
      transparent 0px,
      transparent 45px,
      #a1c7a011 46px,
      transparent 48px
    ),
    linear-gradient(100deg, #2b5543aa, transparent 75%);
}
.hero h2 {
  font-size: clamp(26px, 2.3vw, 36px);
  margin: 10px 0 5px;
}
.hero p {
  color: #d4e5d9;
  font-size: 0.93rem;
}
.hero .eyeline {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--lime);
  font-size: 0.85rem;
  font-weight: 650;
}
.hero-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #e0f2cf;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.83rem;
  margin-block-start: 13px;
}
.hero-link:hover {
  text-decoration: underline;
}
.hero-link .icon {
  width: 15px;
}
.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  direction: rtl;
}
.week-day {
  background: #ffffff0d;
  border: 1px solid #ffffff24;
  border-radius: 11px;
  min-width: 0;
  min-height: 81px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #e0e9e4;
}
.week-day strong {
  font-size: 1.17rem;
  font-variant-numeric: tabular-nums;
}
.week-day small {
  font-size: 0.73rem;
}
.week-day.today {
  background: var(--lime);
  color: #173c2c;
  border-color: var(--lime);
}
.week-day .dots {
  height: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.dots i,
.dot {
  display: inline-block;
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #69aa86;
}
.dots i {
  background: currentColor;
  width: 4px;
  height: 4px;
}
.dot.wait {
  background: #ab8649;
}
.dot.bad {
  background: #b74a50;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.stat,
.panel,
.brand-card,
.media-card,
.report {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.stat {
  padding: 17px 18px;
  display: flex;
  gap: 10px;
  flex-direction: column;
  align-items: flex-start;
}
.stat-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.stat-name .icon {
  color: #497560;
  width: 17px;
  height: 17px;
}
.stat strong {
  font-size: clamp(26px, 2.6vw, 39px);
  line-height: 1.1;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.stat small {
  color: var(--muted);
  font-size: 0.79rem;
}
.panel {
  padding: 20px 22px;
  min-width: 0;
}
.panel-head {
  justify-content: space-between;
  align-items: flex-start;
  margin-block-end: 17px;
  gap: 10px;
}
.panel-head > div > .small {
  margin-block-start: 5px;
}
.panel-head .btn {
  min-height: 30px;
  padding: 3px 7px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(245px, 1fr);
  gap: 16px;
  align-items: start;
}
.brands-grid,
.media-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.brand-card {
  padding: 16px 18px;
}
.brand-line {
  gap: 10px;
}
.brand-line h3 {
  font-size: 20px;
  font-weight: 700;
  direction: ltr;
}
.brand-pic {
  width: 39px;
  height: 39px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #ece9f8;
  color: #514185;
  font-weight: 700;
  font-size: 19px;
  direction: ltr;
  font-family: Inter, Arial, sans-serif;
}
.brand-pic.trippia {
  background: #d9eef2;
  color: #226977;
}
.brand-line .pill {
  margin-inline-start: auto;
}
.brand-card .meta {
  flex-wrap: wrap;
  margin-block-start: 11px;
}
.meta {
  color: var(--muted);
  gap: 7px;
  font-size: 0.86rem;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  border-radius: 99px;
  min-height: 23px;
  padding: 2px 8px;
  font-size: 0.76rem;
  line-height: 1.3;
  font-weight: 600;
  background: #edf1ed;
  color: #44554a;
  white-space: nowrap;
}
.pill.good {
  background: #e1f2e5;
  color: #215d37;
}
.pill.warn {
  background: #fbefcf;
  color: #755513;
}
.pill.bad {
  background: #f9e5e4;
  color: #87373a;
}
.pill.info {
  background: #e8eafa;
  color: #474882;
}
.empty {
  min-height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  text-align: center;
  color: var(--muted);
}
.empty .round {
  background: var(--soft);
  width: 35px;
  height: 35px;
  color: var(--green);
}
.empty strong {
  color: var(--ink);
  font-size: 0.94rem;
}
.empty p {
  font-size: 0.84rem;
}
.rows {
  display: grid;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 1px;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.row:first-child {
  border-top: 0;
  padding-block-start: 4px;
}
.row:last-child {
  padding-block-end: 2px;
}
.row-text {
  min-width: 0;
  flex: 1;
}
.row-text h3,
.row-text strong,
.media-name strong,
.report p {
  overflow-wrap: anywhere;
}
.row-text h3,
.row-text strong {
  font-size: 0.95rem;
}
.row .meta {
  margin-top: 4px;
}
.row-actions,
.actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.network-mark {
  background: #eff2ee;
  color: #364e41;
  border-radius: 10px;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  font-family: Arial, sans-serif;
  font-weight: 700;
  direction: ltr;
  font-size: 0.93rem;
}
.row-actions .btn {
  min-height: 32px;
  padding: 4px 9px;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 15px 0;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: 20px;
}
.filterbar {
  gap: 10px;
  flex-wrap: wrap;
}
.filterbar select,
.filterbar button {
  min-height: 36px;
}
.field {
  display: grid;
  gap: 6px;
}
.field > span,
fieldset legend {
  color: #405147;
  font-size: 0.87rem;
  font-weight: 650;
}
input,
textarea,
select {
  background: #fff;
  border: 1px solid #c7d1c9;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  max-width: 100%;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.checks {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 4px;
}
.checks input {
  accent-color: var(--green);
}
.form {
  display: grid;
  gap: 15px;
}
.form .btn {
  justify-self: start;
}
.weights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
}
.weights input {
  width: 100%;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.calendar .weekday {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 4px;
}
.day {
  background: #f8f9f6;
  border: 1px solid transparent;
  border-radius: 9px;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 7px 9px;
  color: var(--ink);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.day[data-active='true'] {
  background: var(--soft);
  border-color: #5f9075;
}
.day.today {
  box-shadow: inset 0 0 0 1px #7ba888;
}
.day small {
  font-size: 0.71rem;
  color: var(--green);
}
.day:hover {
  border-color: #7ba888;
}
.period {
  font-weight: 650;
}
.period .icon-btn {
  height: 29px;
  width: 29px;
}
.media-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.media-card {
  overflow: hidden;
}
.media-card figure {
  background: #e7eee7;
  height: 180px;
  margin: 0;
  display: grid;
  place-items: center;
}
.media-card figure > * {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.media-card > .row-text {
  padding: 13px 16px;
}
.report {
  padding: 17px;
  margin: 10px 0;
}
.report:only-child {
  margin-bottom: 0;
}
.report p {
  margin: 10px 0;
  white-space: pre-wrap;
}
.report ul {
  margin: 8px 0;
  padding-inline-start: 20px;
}
.details {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.callout {
  padding: 12px 15px;
  background: #f0f3eb;
  border-radius: 10px;
  font-size: 0.91rem;
  line-height: 1.5;
}
.gate {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 22px;
}
.gate > section {
  max-width: 470px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 24px;
  padding: 36px;
  display: grid;
  gap: 16px;
  justify-items: start;
}
.gate h1 {
  font-size: 32px;
}
.gate p {
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  max-width: min(510px, 92vw);
  width: 100%;
  padding: 24px;
  color: var(--ink);
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #12271dc2;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-block-end: 17px;
  gap: 12px;
}
.dialog-head h2 {
  font-size: 22px;
}
dialog p {
  margin-block-end: 15px;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 9;
  max-width: min(475px, calc(100vw - 32px));
  padding: 14px 19px;
  border-radius: 12px;
  background: #193e32;
  color: #fff;
  box-shadow: 0 3px 15px #183b301c;
  font-weight: 550;
}
#notice.error:not(:empty) {
  background: #872f37;
}
.scrim {
  display: none;
}
@media (min-width: 1550px) {
  .page {
    padding-inline: 48px;
  }
  .layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .page {
    gap: 16px;
    padding: 22px;
  }
  .topbar {
    padding-inline: 22px;
  }
  .hero {
    padding: 22px;
    gap: 18px;
  }
  .metrics {
    gap: 9px;
  }
  .stat,
  .panel {
    padding: 16px;
  }
  .split {
    grid-template-columns: minmax(0, 1.3fr) minmax(200px, 1fr);
  }
}
@media (max-width: 860px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(280px, 85vw);
    transform: translateX(105%);
    visibility: hidden;
  }
  .layout.nav-open .sidebar {
    transform: translateX(0);
    visibility: visible;
  }
  .scrim {
    position: fixed;
    inset: 0;
    background: #193e32a8;
    border: 0;
    z-index: 3;
    cursor: pointer;
  }
  .nav-open .scrim {
    display: block;
  }
  .menu-btn {
    display: inline-grid;
  }
  .topbar {
    height: 56px;
  }
  .week-day {
    min-height: 70px;
  }
  .system button {
    min-height: 38px;
  }
}
@media (max-width: 620px) {
  .page {
    padding: 17px 13px 30px;
    gap: 14px;
  }
  .topbar {
    padding-inline: 13px;
  }
  .crumb {
    gap: 5px;
  }
  .top-actions {
    gap: 6px;
  }
  .env {
    font-size: 0.7rem;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 19px;
  }
  .hero h2 {
    font-size: 27px;
  }
  .week-day {
    min-height: 57px;
    border-radius: 8px;
  }
  .hero-link {
    margin-block-start: 8px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    padding: 13px;
    gap: 8px;
  }
  .split,
  .brands-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 15px;
  }
  .row {
    gap: 8px;
    flex-wrap: wrap;
  }
  .row-actions {
    justify-content: flex-start;
  }
  .row-actions .btn {
    font-size: 0.77rem;
  }
  .calendar {
    gap: 2px;
  }
  .day {
    min-height: 44px;
    padding: 4px;
    border-radius: 5px;
  }
  .day small {
    font-size: 0.64rem;
  }
  .period {
    gap: 4px;
  }
  .section-head h2,
  .panel-head h2 {
    font-size: 19px;
  }
  .page-title .btn {
    min-height: 34px;
  }
  .brand-line .pill {
    margin-inline-start: auto;
  }
  .crumb .top-name {
    display: none;
  }
  .row-text {
    min-width: 100px;
  }
  .report {
    padding: 12px;
  }
  .actions {
    gap: 6px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .sidebar {
    transition: transform 0.18s ease;
  }
  .btn,
  .nav a {
    transition: background-color 0.12s ease;
  }
}
.table-scroll {
  overflow-x: auto;
  width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
  text-align: start;
}
th,
td {
  text-align: start;
  padding: 10px 7px;
  border-bottom: 1px solid var(--line);
}
thead th {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
tbody th {
  font-weight: 600;
}
.cost-data,
.evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.cost-data {
  background: #f3f6f1;
  border-radius: 10px;
  padding: 13px;
  margin-block: 8px 14px;
}
.cost-data > div {
  display: grid;
  justify-items: start;
  gap: 6px;
}
.cost-data small,
.evidence dt {
  font-size: 0.82rem;
  color: var(--muted);
}
.cost-data strong {
  font-size: 1.2rem;
}
.evidence {
  grid-template-columns: auto 1fr;
  margin-block: 15px;
}
.evidence dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.dialog-error {
  border-radius: 9px;
  background: #fae4e3;
  color: var(--red);
  margin-block: 10px 0;
  padding: 10px 12px;
  overflow-wrap: anywhere;
}

.review-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  background: var(--soft);
  border-radius: 10px;
  line-height: 1.55;
}
.review-check input {
  margin-top: 5px;
  flex: none;
  accent-color: var(--green);
}

.archive-controls {
  display: grid;
  gap: 8px;
  justify-content: center;
  padding-block: 5px;
}

.provider-details summary {
  font-weight: 650;
  cursor: pointer;
}
.provider-details[open] summary {
  margin-block-end: 13px;
}
.provider-details th,
.provider-details td {
  white-space: nowrap;
}
