:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #203d3e;
  background: #f7f8f5;
  font-synthesis: none;
  --ink: #172f30;
  --muted: #6b7e7d;
  --line: #e0e6e0;
  --green: #bfe7b1;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
button:hover {
  background: #edf2eb;
}
button.primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
button.primary:hover {
  background: #2b5150;
}
.small {
  font-size: 12px;
  padding: 7px 10px;
}
.quiet {
  background: transparent;
  border-color: transparent;
}
.danger {
  color: #9b4236;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 224px 1fr;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 34px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  letter-spacing: -1.5px;
  font-weight: 750;
}
.sidebar .brand {
  font-size: 21px;
  letter-spacing: -1px;
  gap: 7px;
}
.brand-mark {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: var(--green);
  border-radius: 9px;
  font-size: 24px;
}
.workspace {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 38px;
  padding-left: 42px;
  line-height: 1.5;
}
.nav {
  display: grid;
  gap: 9px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  color: var(--muted);
  font-weight: 500;
  text-align: left;
  padding: 12px;
}
.nav button.selected {
  background: #ecf3e8;
  color: var(--ink);
  font-weight: 650;
}
.nav-icon {
  font-size: 19px;
  width: 21px;
}
.side-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.side-bottom p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.avatar {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  background: #f0e7d7;
  display: grid;
  place-items: center;
}
.main {
  min-width: 0;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: #fbfcf9;
  font-size: 12px;
  color: var(--muted);
}
.topbar .pill {
  font-size: 11px;
  padding: 5px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.content {
  max-width: 1450px;
  margin: auto;
  padding: 38px 40px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--muted);
  font-weight: 650;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.1px;
  font-weight: 600;
  margin: 8px 0 10px;
}
h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 0;
}
h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.sub {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 26px 28px;
  background: #e8f1e3;
  border: 1px solid #dbe8d4;
  border-radius: 13px;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
}
.hero h2 {
  font-size: 23px;
  line-height: 1.35;
  max-width: 440px;
}
.hero p {
  font-size: 12px;
  line-height: 1.8;
  color: #5d765e;
  margin-bottom: 0;
  max-width: 450px;
}
.hero-symbol {
  font-size: 76px;
  font-weight: 300;
  letter-spacing: -13px;
  color: #7b9c76;
  padding: 0 25px;
  transform: rotate(-16deg);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 20px;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.stat strong {
  font-size: 29px;
  font-weight: 550;
  letter-spacing: -0.6px;
  display: block;
  margin: 14px 0 7px;
}
.stat small {
  font-size: 10px;
  color: var(--muted);
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.panel-top {
  padding: 23px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tabs {
  display: flex;
  gap: 23px;
  margin: 20px 24px 0;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  border: 0;
  border-radius: 0;
  padding: 0 1px 13px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.tabs button.active {
  color: var(--ink);
  box-shadow: 0 2px var(--ink);
}
.tools {
  display: flex;
  gap: 10px;
  padding: 20px 24px;
}
.search {
  flex: 1;
  max-width: 420px;
  position: relative;
}
.search input {
  padding-left: 34px;
}
.search span {
  position: absolute;
  left: 12px;
  top: 9px;
  color: var(--muted);
}
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  font-size: 13px;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: #94a29f;
}
select {
  cursor: pointer;
}
textarea {
  min-height: 75px;
  resize: vertical;
}
.tools select {
  width: auto;
  max-width: 200px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 10px;
  letter-spacing: 0.2px;
  color: var(--muted);
  font-weight: 500;
  background: #f8faf7;
  padding: 12px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
td {
  padding: 20px 24px;
  border-bottom: 1px solid #eef1eb;
  font-size: 12px;
}
tr:last-child td {
  border-bottom: 0;
}
.link-cell {
  display: flex;
  align-items: center;
  gap: 13px;
}
.link-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #eff4eb;
  display: grid;
  place-items: center;
  color: #597951;
  font-size: 19px;
}
.link-title {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 13px;
}
.short-url {
  font-size: 11px;
  color: var(--muted);
  word-break: break-all;
}
.short-url button {
  padding: 0 5px;
  background: transparent;
  border: 0;
  color: #607e70;
  font-size: 13px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 20px;
  padding: 4px 8px;
  background: #edf6e9;
  color: #4f7947;
  font-size: 10px;
  white-space: nowrap;
}
.badge:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.archived,
.badge.expired,
.badge.disabled {
  background: #f4eee5;
  color: #9e7845;
}
.tag {
  font-size: 10px;
  background: #f4f5f2;
  padding: 4px 7px;
  border-radius: 4px;
  color: #77847a;
}
.actions {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}
.actions button {
  font-size: 11px;
  padding: 7px 9px;
}
.table-foot {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.empty {
  text-align: center;
  padding: 55px 25px;
}
.empty-symbol {
  font-size: 33px;
  color: #91ae87;
  margin-bottom: 15px;
}
.empty h3 {
  font-size: 17px;
  margin-bottom: 10px;
}
.empty p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 360px;
  margin: 0 auto 20px;
}
.notice {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  padding: 15px 0;
}
.error {
  color: #9b4236;
  background: #fff0e9;
  border: 1px solid #ecd4c7;
  font-size: 12px;
  padding: 12px;
  border-radius: 8px;
  line-height: 1.6;
}
.success {
  color: #527148;
  font-size: 11px;
}
.muted {
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  width: min(930px, calc(100% - 28px));
  max-height: 92dvh;
  color: var(--ink);
  box-shadow: 0 30px 90px #172f302b;
}
dialog::backdrop {
  background: #0e252b66;
  backdrop-filter: blur(4px);
}
.dialog-head {
  padding: 25px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialog-head h2 {
  font-size: 23px;
}
.dialog-head p {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 0;
}
.editor-grid {
  display: grid;
  grid-template-columns: 1fr 310px;
}
.form-main {
  padding: 24px 28px;
}
.field {
  margin-bottom: 20px;
}
.field label,
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 8px;
}
.help {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin: 7px 0 0;
}
.formats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.formats label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px 5px;
  cursor: pointer;
  background: #fff;
  margin: 0;
}
.formats label:has(input:checked) {
  background: #eff6e9;
  border-color: #85a77c;
  box-shadow: 0 0 0 1px #85a77c;
}
.formats input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.formats input:focus-visible + span {
  outline: 2px solid var(--ink);
}
.format-symbol {
  font-size: 21px;
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.row > * {
  flex: 1;
}
.row button {
  flex: 0 0 auto;
}
.row .field {
  flex: 1;
}
.slug-preview {
  font-size: 12px;
  color: #55734d;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f1f5ee;
  margin-top: 8px;
  word-break: break-all;
}
.field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.field-heading button {
  font-size: 10px;
  padding: 0;
  border: 0;
  color: #5b7e52;
}
.qr-side {
  background: #f3f6ef;
  border-left: 1px solid var(--line);
  padding: 25px 24px;
}
.preview-box {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin: 16px 0;
}
.preview-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.preview-box span {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}
.qr-side .eyebrow {
  text-align: center;
}
.qr-side .sub {
  font-size: 11px;
  text-align: center;
}
.color-control {
  display: flex;
  gap: 6px;
  align-items: center;
}
.color-control input[type="color"] {
  padding: 3px;
  width: 36px;
  height: 34px;
}
.color-control span {
  font-size: 10px;
}
.qr-side label {
  font-size: 11px;
}
.qr-side .row {
  margin-bottom: 14px;
}
details {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 15px;
}
summary {
  font-size: 12px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}
summary:after {
  content: "+";
}
details[open] > summary:after {
  content: "−";
}
.dialog-foot {
  border-top: 1px solid var(--line);
  padding: 18px 28px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  background: white;
  position: sticky;
  bottom: 0;
}
.dialog-foot .help {
  margin-right: auto;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  background: var(--ink);
  color: #e7f2de;
  padding: 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-story .brand-mark {
  background: #c2e7b2;
  color: var(--ink);
}
.login-story h1 {
  font-size: 55px;
  line-height: 1.1;
  letter-spacing: -2px;
  max-width: 500px;
  font-weight: 450;
}
.login-story p {
  color: #acc1b6;
  font-size: 14px;
  line-height: 1.8;
  max-width: 370px;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-form form {
  width: 100%;
  max-width: 350px;
}
.login-form h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.login-form .sub {
  margin-bottom: 30px;
}
.login-form button {
  width: 100%;
  padding: 12px;
}
.login-story footer {
  font-size: 11px;
  color: #95ada5;
}
.domain-list {
  display: grid;
  gap: 14px;
  margin: 25px 0;
}
.domain-card {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.domain-card code {
  font-size: 11px;
  overflow-wrap: anywhere;
  display: block;
  margin-top: 12px;
  color: var(--muted);
}
.chart {
  height: 190px;
  display: flex;
  align-items: end;
  gap: 4px;
  padding: 20px 24px 0;
}
.chart-bar {
  background: #b6d8a6;
  flex: 1;
  min-width: 3px;
  max-width: 60px;
  border-radius: 4px 4px 0 0;
  position: relative;
  min-height: 2px;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  padding: 12px 24px 25px;
  font-size: 10px;
  color: var(--muted);
}
.analytics-panel {
  padding: 24px;
}
.date-tools {
  display: flex;
  gap: 10px;
  align-items: center;
}
.date-tools input {
  width: 155px;
}
.result-url {
  font-size: 19px;
  font-weight: 600;
  overflow-wrap: anywhere;
  background: #edf5e8;
  padding: 15px;
  border-radius: 8px;
}
.result-panel {
  padding: 30px;
  max-width: 550px;
  margin: auto;
  text-align: center;
}
.result-panel img {
  width: 220px;
  max-width: 100%;
  margin: 20px auto;
  display: block;
}
.result-panel .row {
  justify-content: center;
  margin-top: 15px;
}
.result-panel a {
  text-decoration: none;
}
.result-panel p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  background: var(--ink);
  color: white;
  border-radius: 9px;
  box-shadow: 0 7px 30px #172f3022;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 10;
}
#toast.show {
  opacity: 1;
}
.loading {
  padding: 70px;
  font-size: 14px;
  color: var(--muted);
}
.hide {
  display: none !important;
}
.recent-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.stack {
  display: grid;
  gap: 15px;
}
.domain-dialog-body {
  padding: 28px;
}
.table-wrap {
  overflow-x: auto;
}
.mobile-brand {
  display: none;
}
.inline-error {
  margin-top: 12px;
}
.chart-empty {
  padding: 50px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
@media (min-width: 1500px) {
  .content {
    padding-top: 50px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 30px 16px;
  }
  .content {
    padding: 30px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  td,
  th {
    padding: 16px;
  }
  .campaign-column {
    display: none;
  }
  .editor-grid {
    grid-template-columns: 1fr 280px;
  }
  .qr-side {
    padding: 24px 18px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 16px 20px;
    flex-direction: row;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 20px;
    justify-content: space-between;
  }
  .sidebar .brand {
    font-size: 24px;
  }
  .workspace,
  .side-bottom {
    display: none;
  }
  .nav {
    display: flex;
    gap: 2px;
  }
  .nav button {
    font-size: 11px;
    padding: 9px;
  }
  .nav-icon {
    display: none;
  }
  .topbar {
    height: 52px;
    padding: 0 20px;
  }
  .content {
    padding: 26px 18px;
  }
  .page-heading {
    align-items: start;
    gap: 12px;
  }
  h1 {
    font-size: 27px;
  }
  .page-heading .primary {
    white-space: nowrap;
    font-size: 11px;
    padding: 11px;
  }
  .hero {
    padding: 22px;
  }
  .hero h2 {
    font-size: 20px;
  }
  .hero-symbol {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .stat strong {
    font-size: 25px;
  }
  .tools {
    flex-wrap: wrap;
    padding: 15px;
  }
  .search {
    max-width: none;
    flex-basis: 100%;
  }
  .tools select {
    flex: 1;
    max-width: none;
  }
  .tabs {
    gap: 17px;
    margin-left: 15px;
    margin-right: 15px;
  }
  .panel-top {
    padding: 20px 15px 0;
  }
  .table-foot {
    padding: 14px 15px;
  }
  .editor-grid {
    display: flex;
    flex-direction: column;
  }
  .qr-side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .preview-box {
    max-width: 220px;
    margin: 16px auto;
  }
  .qr-side > .row,
  .qr-side > .field,
  .qr-side > details {
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }
  .form-main {
    padding: 22px;
  }
  .dialog-head {
    padding: 22px;
  }
  .dialog-head h2 {
    font-size: 20px;
  }
  .dialog-foot {
    padding: 15px 20px;
  }
  .dialog-foot .help {
    font-size: 10px;
  }
  .status-column {
    display: none;
  }
  .link-cell {
    gap: 9px;
  }
  .link-icon {
    display: none;
  }
  td,
  th {
    padding: 15px 12px;
  }
  .actions {
    flex-direction: column;
  }
  .actions button {
    font-size: 10px;
  }
  .login {
    display: block;
  }
  .login-story {
    padding: 25px;
  }
  .login-story h1 {
    font-size: 34px;
    margin: 28px 0 10px;
  }
  .login-story p {
    font-size: 12px;
    margin: 0;
  }
  .login-story footer {
    display: none;
  }
  .login-form {
    padding: 35px 25px;
  }
  .domain-card {
    display: block;
  }
  .domain-card > button {
    margin-top: 15px;
  }
  .date-tools {
    flex-wrap: wrap;
  }
  .date-tools input {
    width: 130px;
  }
  .analytics-panel {
    padding: 18px;
  }
  .result-panel {
    padding: 24px;
  }
  .result-url {
    font-size: 16px;
  }
  .chart {
    gap: 3px;
  }
}

.chart-bar.h1 {
  height: 15px;
}
.chart-bar.h2 {
  height: 30px;
}
.chart-bar.h3 {
  height: 45px;
}
.chart-bar.h4 {
  height: 60px;
}
.chart-bar.h5 {
  height: 75px;
}
.chart-bar.h6 {
  height: 90px;
}
.chart-bar.h7 {
  height: 105px;
}
.chart-bar.h8 {
  height: 120px;
}
.chart-bar.h9 {
  height: 135px;
}
.chart-bar.h10 {
  height: 150px;
}

.mobile-logout {
  display: none;
}
@media (max-width: 760px) {
  .mobile-logout {
    display: block;
  }
  .topbar .pill {
    display: none;
  }
}

.editor-grid.link-only {
  grid-template-columns: 1fr;
}
.editor-grid.link-only .qr-side {
  display: none;
}

@media (max-width: 760px) {
  .sidebar {
    flex-wrap: wrap;
    gap: 13px;
  }
  .sidebar .nav {
    width: 100%;
    justify-content: space-between;
  }
  .nav button {
    font-size: 11px;
  }
}
body:has(#consent) .login-form {
  min-height: 100dvh;
}
#consent {
  max-width: 420px;
}
.login-form .row button {
  width: auto;
  flex: 1;
}
/* Campaign organization and filtered analytics */
.analytics-filters {
  padding: 22px 24px;
  margin-bottom: 24px;
}
.analytics-scope {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.analytics-scope .field {
  margin-bottom: 14px;
}
.analytics-period {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}
.analytics-period label {
  font-size: 11px;
  color: var(--muted);
}
.analytics-period input {
  width: 145px;
}
.analytics-period select {
  width: auto;
  max-width: 190px;
}
.analytics-filters details {
  margin-top: 18px;
}
.analytics-filters summary {
  gap: 10px;
}
#selection-description {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.picker-tools {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.picker-tools input {
  flex: 1;
  min-width: 180px;
}
.picker-tools button {
  font-size: 11px;
}
.link-options {
  max-height: 275px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.link-choice {
  display: flex;
  align-items: center;
  padding: 12px;
  gap: 10px;
  font-size: 11px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  min-width: 0;
}
.link-choice input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--ink);
}
.link-choice strong {
  font-weight: 550;
  display: block;
  overflow-wrap: anywhere;
}
.link-choice small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.picker-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}
.picker-pagination button {
  font-size: 11px;
  padding: 6px 9px;
}
.source-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f0f5ec;
  color: #587052;
  font-size: 11px;
  line-height: 1.7;
}
.source-value {
  font-size: 21px !important;
  letter-spacing: -0.4px !important;
}
.trend-panel {
  margin-bottom: 22px;
}
.geo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: 20px;
  margin-bottom: 22px;
}
.geographic-panel {
  padding: 21px;
  min-width: 0;
}
.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.map-controls {
  display: flex;
  gap: 5px;
}
.map-controls button {
  padding: 6px 9px;
  font-size: 10px;
}
.map-stage {
  position: relative;
  aspect-ratio: 2/1;
  background: #edf3ef;
  border: 1px solid #dce6dd;
  border-radius: 9px;
  overflow: hidden;
}
.reach-map {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}
.reach-map:active {
  cursor: grabbing;
}
.map-ocean {
  fill: #edf3ef;
}
.map-land {
  fill: #d1dfcf;
  stroke: #b4c7b5;
  stroke-width: 0.35;
  vector-effect: non-scaling-stroke;
}
.map-halo {
  fill: #7ca477;
  opacity: 0.28;
}
.map-dot {
  fill: #244d40;
  stroke: #fff;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.reach-map g {
  cursor: pointer;
}
.reach-map g:hover .map-dot,
.reach-map g.selected .map-dot,
.reach-map g:focus .map-dot {
  fill: #b9803f;
}
.map-inspection {
  min-height: 44px;
  margin-top: 13px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.map-inspection strong {
  color: var(--ink);
}
.map-credit {
  margin: 8px 0 0;
  font-size: 9px;
  color: var(--muted);
  line-height: 1.6;
}
.map-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #f7faf4ad;
  padding: 25px;
  color: #526e50;
  font-size: 12px;
  line-height: 1.7;
  pointer-events: none;
}
.map-empty span {
  font-size: 10px;
  max-width: 300px;
}
.locations-panel {
  min-width: 0;
}
.location-list {
  padding: 8px 18px;
  max-height: 340px;
  overflow: auto;
}
.location-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
  border-radius: 0;
  text-align: left;
  padding: 13px 3px;
  font-size: 12px;
}
.location-row small {
  display: block;
  margin-top: 5px;
  font-weight: 400;
  color: var(--muted);
  font-size: 10px;
}
.locations-panel > .notice {
  padding: 6px 21px 17px;
  margin: 0;
}
.breakdown-panel > .panel-top {
  padding-bottom: 20px;
}
.breakdown-panel select {
  width: auto;
}
.breakdown-panel > .notice {
  padding: 5px 23px 12px;
}
.organization-tools {
  display: flex;
  align-items: center;
  padding: 19px 22px;
  gap: 15px;
  margin-bottom: 23px;
}
.organization-tools select {
  width: auto;
  max-width: 280px;
}
.organization-tools .search {
  flex: 1;
}
.campaign-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.campaign-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 24px;
}
.campaign-card h2 {
  font-size: 20px;
  line-height: 1.5;
  margin: 10px 0;
}
.campaign-card p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  min-height: 40px;
}
.campaign-count {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 22px 0;
}
.campaign-count strong {
  font-size: 30px;
  font-weight: 550;
}
.campaign-count span {
  color: var(--muted);
  font-size: 11px;
}
.campaign-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.campaign-actions button {
  font-size: 10px;
  padding: 7px 9px;
}
.client-rows {
  padding: 18px 24px;
}
.client-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.client-row:last-child {
  border: 0;
}
.client-row small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
#organization-editor {
  max-width: 520px;
}
.tools #links-client,
.tools #links-campaign {
  max-width: 190px;
}
@media (max-width: 1100px) {
  .geo-grid {
    grid-template-columns: 1fr;
  }
  .analytics-scope {
    grid-template-columns: 1fr 1fr;
  }
  .tools {
    flex-wrap: wrap;
  }
  .tools .search {
    flex-basis: 100%;
    max-width: none;
  }
}
@media (max-width: 760px) {
  .sidebar .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px;
  }
  .analytics-filters {
    padding: 18px;
  }
  .analytics-scope {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .analytics-period input {
    width: calc(50% - 35px);
  }
  .analytics-period select {
    flex: 1;
    max-width: none;
    min-width: 110px;
  }
  .link-options {
    grid-template-columns: 1fr;
  }
  .picker-tools input {
    flex-basis: 100%;
  }
  .geographic-panel {
    padding: 15px;
  }
  .map-stage {
    aspect-ratio: 1.45;
  }
  .geo-grid {
    gap: 15px;
  }
  .page-heading > .row {
    flex-wrap: wrap;
  }
  .organization-tools {
    flex-wrap: wrap;
    padding: 15px;
  }
  .organization-tools .search {
    flex-basis: 100%;
  }
  .organization-tools select {
    max-width: none;
    width: 100%;
  }
  .tools #links-client,
  .tools #links-campaign {
    max-width: none;
  }
  .campaign-cards {
    grid-template-columns: 1fr;
  }
  .campaign-card {
    padding: 20px;
  }
  .analytics-report .stats {
    gap: 10px;
  }
}
