/* Shared premium management workspace. */
.admin-body
:is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not(
        [type="button"]
      ):not([type="submit"]),
    textarea,
    select
  ):focus,
.login-page input:focus {
  border-color: var(--blue);
  outline: 2px solid var(--blue);
  outline-offset: -2px;
  box-shadow: none;
}

.login-page .login-panel form > label {
  display: grid;
  gap: 8px;
}

.login-page .login-panel form > label > input {
  margin: 0;
}

.login-page .login-captcha-field {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

.login-page .login-captcha-field > label {
  margin: 0;
}

.login-page .login-captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 162px;
  align-items: center;
  gap: 12px;
}

.login-page .login-captcha-row > input {
  margin: 0;
  min-width: 0;
  height: 54px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-page .login-captcha-refresh {
  display: block;
  min-width: 0;
  width: 162px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--soft);
  cursor: pointer;
}

.login-page .login-captcha-refresh img {
  display: block;
  width: 160px;
  height: 52px;
}

.login-page .login-captcha-refresh:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.login-page .login-captcha-refresh:disabled {
  cursor: wait;
  opacity: 0.65;
}

.login-page .login-captcha-hint {
  font-size: 12px;
  line-height: 1.5;
  color: #52677d;
}

.admin-body .admin-main .form-grid > *,
.admin-body .admin-main fieldset {
  min-width: 0;
}

/* Histories have longer bilingual descriptions than the general content list. */
.admin-body .history-table {
  table-layout: fixed;
  min-width: 0;
}

.admin-body .history-table th:first-child {
  width: 112px;
}

.admin-body .history-table th:nth-child(3) {
  width: 92px;
}

.admin-body .history-table th:nth-child(4) {
  width: 64px;
}

.admin-body .history-table th:last-child {
  width: 168px;
}

.admin-body .history-table td {
  vertical-align: top;
  overflow-wrap: anywhere;
  line-height: 1.65;
}

.admin-body .history-table td > p {
  margin: 0 0 8px;
}

.admin-body .history-table td:first-child > strong {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.admin-body .history-table td:first-child > small:empty {
  display: none;
}

.admin-body .history-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-body .history-actions form {
  margin: 0;
}

.admin-body .history-actions .button {
  padding: 8px 12px;
  min-height: 44px;
  white-space: nowrap;
}

.admin-body .presentation-settings .presentation-group > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content 24px;
  gap: 12px;
  min-height: 44px;
}

.admin-body .presentation-settings .presentation-group > summary > .presentation-group-heading {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.admin-body .presentation-settings .presentation-group-heading::after {
  content: none;
}

.admin-body .presentation-settings .presentation-group-count {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.admin-body .presentation-settings .presentation-group > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  justify-self: center;
  transition: transform var(--admin-duration, 160ms);
}

.admin-body .presentation-settings .presentation-group[open] > summary::after {
  transform: rotate(225deg);
}

@media (max-width: 700px) {
  .admin-body .admin-main .admin-responsive-table {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .admin-body .admin-responsive-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .admin-body .admin-responsive-table tbody {
    display: grid;
    gap: 14px;
  }

  .admin-body .admin-responsive-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .admin-body .admin-main .admin-responsive-table td {
    min-width: 0;
    width: auto;
    padding: 0;
    border: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .admin-body .admin-responsive-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: var(--muted);
  }

  .admin-body .admin-responsive-table td:is(:first-child, :last-child, [colspan]) {
    grid-column: 1 / -1;
  }

  .admin-body .admin-responsive-table td :is(a.text-link, button, .plain-button) {
    min-height: 44px;
    white-space: nowrap;
  }

  .admin-body .admin-responsive-table .row-actions {
    gap: 8px 16px;
  }

  .admin-body .admin-responsive-table img {
    max-width: 100%;
  }

  .admin-body .history-table {
    display: block;
    width: 100%;
  }

  .admin-body .history-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .admin-body .history-table tbody {
    display: grid;
    gap: 16px;
  }

  .admin-body .history-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .admin-body .history-table td {
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .admin-body .history-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: var(--muted);
  }

  .admin-body .history-table td:is(:first-child, :nth-child(2), :last-child) {
    grid-column: 1 / -1;
  }

  .admin-body .history-table td:last-child {
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .admin-body .history-actions {
    justify-content: flex-end;
  }

  .admin-body .presentation-settings .presentation-group > summary {
    gap: 8px;
  }

  .admin-body .presentation-settings .presentation-group-heading {
    font-size: 18px;
  }
}

.admin-body,
.login-page {
  --blue: #086bf2;
  --ink: #10263d;
  --line: #e0e7ee;
  --radius: 4px;
  --soft: #f3f6fa;
}

.admin-body {
  --muted: #52677d;
  --admin-hover: #edf4fc;
  --admin-duration: 160ms;
  background: #f3f6fa;
}

.admin-nav {
  background: #071d31;
  border-right: 1px solid #244258;
  color: #c4d6e4;
  padding: 23px 12px;
}

.admin-nav-label {
  color: #7096b1;
  font-size: 10px;
}

.admin-nav a {
  color: #bfd0de;
  border-radius: 3px;
  padding: 11px 15px;
}

.admin-nav a:hover {
  background: #12334d;
  color: white;
}

.admin-nav a.selected {
  background: #153d5a;
  color: white;
  box-shadow: inset 3px 0 #29c6df;
}

.admin-nav::-webkit-scrollbar {
  width: 5px;
}

.admin-nav::-webkit-scrollbar-thumb {
  background: #355269;
  border-radius: 3px;
}

.admin-main {
  max-width: 1800px;
}

.admin-panel,
.admin-main .table-scroll,
.admin-filter,
.save-bar,
.permission-grid .check-label {
  border-radius: 4px;
  box-shadow: none;
}

.admin-main .button,
.login-page .button {
  border-radius: 4px;
}

.admin-main input,
.admin-main textarea,
.admin-main select,
.login-page input {
  border-radius: 4px;
}

.admin-title h1 {
  font-weight: 650;
}

.stat-grid a {
  border-radius: 4px;
  box-shadow: none;
}

.stat-grid a:first-child {
  background: #fff;
  border-color: var(--line);
}

.stat-grid a:first-child span {
  color: var(--muted);
}

.stat-grid a:first-child strong {
  color: var(--ink);
}

.stat-grid a:first-child::after {
  color: #a7b8ca;
}

.stat-grid strong {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.admin-table th {
  background: #eef3f8;
  font-weight: 600;
}

.admin-table td {
  padding-top: 20px;
  padding-bottom: 20px;
}

.admin-table time {
  white-space: nowrap;
  font-size: 12px;
  color: #647990;
}

.admin-table .count {
  font-variant-numeric: tabular-nums;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.row-actions form {
  margin: 0;
}

.plain-button {
  padding: 0;
  background: none;
  border: 0;
  color: #086bf2;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.banner-thumbnail {
  width: 180px;
  height: 100px;
  object-fit: contain;
  background: #071d31;
  border-radius: 3px;
}

.banner-table td {
  min-width: 90px;
}

.status-badge.is-published {
  background: #e9f7f0;
  color: #16764d;
}

.status-badge.is-draft {
  background: #f1f3f6;
  color: var(--muted);
}

.compact-panel .text-link + .text-link {
  margin-left: 25px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.panel-heading h2 {
  margin: 0;
}

.panel-heading [aria-pressed="true"] {
  background: #e8f1ff;
  border-color: #a2c7f8;
  color: #086bf2;
}

.field-hint {
  font-size: 12px;
  line-height: 1.8;
  color: #7a8a9b;
  margin: 18px 0 0;
}

.banner-preview {
  background: #071d31;
  color: white;
  display: grid;
  grid-template-columns: 44% 56%;
  align-items: center;
  padding: 35px;
  min-height: 300px;
  overflow: hidden;
  border-radius: 4px;
  max-width: 1280px;
}

.banner-preview > div {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.banner-preview [data-preview="eyebrow"] {
  color: #a4bcd0;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.banner-preview h3 {
  margin: 20px 0 14px;
  font-size: clamp(23px, 2vw, 34px);
  line-height: 1.4;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.banner-preview h3 span {
  display: block;
}

.banner-preview [data-preview="heading"] {
  color: #29c6df;
}

.banner-preview p {
  color: #b9cedf;
  font-size: 13px;
  line-height: 1.85;
}

.banner-preview img {
  width: 100%;
  height: 290px;
  object-fit: contain;
}

.banner-preview [hidden] {
  display: none !important;
}

.preview-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.preview-actions span {
  padding: 9px 15px;
  background: #086bf2;
  border: 1px solid #086bf2;
  border-radius: 3px;
  font-size: 12px;
}

.preview-actions span + span {
  background: transparent;
  border-color: #66849c;
}

.banner-preview.is-mobile {
  display: flex;
  flex-direction: column;
  padding: 25px;
  max-width: 390px;
  margin: auto;
}

.banner-preview.is-mobile img {
  height: 220px;
}

.banner-preview.is-mobile h3 {
  font-size: 30px;
}

.login-shell {
  border-radius: 5px;
  box-shadow: 0 18px 60px #1733520c;
}

.login-brand {
  background: #071d31;
  color: white;
}

.login-brand .eyebrow {
  color: #89b6d0;
}

.login-brand p {
  color: #abc3d5;
}

.login-brand h2 {
  font-weight: 650;
}

.login-product {
  mix-blend-mode: normal;
  object-fit: contain;
  aspect-ratio: 1.7;
}

.traffic-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 26px;
}

.traffic-stat {
  background: white;
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 4px;
  min-width: 0;
}

.traffic-stat span {
  font-size: 13px;
  color: #6c8094;
  display: block;
}

.traffic-stat strong {
  display: block;
  font-size: 34px;
  font-variant-numeric: tabular-nums;
  margin: 13px 0 5px;
  color: #10263d;
  line-height: 1.2;
}

.traffic-stat small {
  color: #8392a2;
  font-size: 11px;
}

.traffic-stat.primary {
  border-top: 3px solid #086bf2;
  padding-top: 22px;
}

.analytics-filter {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.analytics-filter a {
  padding: 8px 17px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  font-size: 13px;
}

.analytics-filter a.selected {
  color: white;
  background: #086bf2;
  border-color: #086bf2;
}

.analytics-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px;
}

.traffic-chart {
  width: 100%;
  height: auto;
  display: block;
}

.traffic-chart .grid {
  stroke: #e7edf3;
  stroke-width: 1;
}

.traffic-chart .pv-line {
  fill: none;
  stroke: #086bf2;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.traffic-chart .uv-line {
  fill: none;
  stroke: #20b9c5;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.traffic-chart text {
  font-size: 12px;
  fill: #7e91a5;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

.chart-legend {
  display: flex;
  gap: 24px;
  font-size: 12px;
  color: #657b90;
}

.chart-legend span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #086bf2;
  margin-right: 7px;
}

.chart-legend span + span::before {
  background: #20b9c5;
}

.chart-empty {
  min-height: 235px;
  display: grid;
  place-items: center;
  color: #8da0b1;
  font-size: 14px;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 57px,
    #ecf1f6 58px,
    #ecf1f6 59px
  );
}

.analytics-table td:first-child {
  max-width: 510px;
  overflow-wrap: anywhere;
}

.analytics-table td small {
  font-size: 11px;
  color: #8293a4;
}

.analytics-table .numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.traffic-languages {
  display: grid;
  gap: 16px;
}

.traffic-language {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 4px;
}

.traffic-language strong {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}

.traffic-language small {
  display: block;
  font-size: 11px;
  color: #8192a4;
}

.admin-meta {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 18px;
  color: #71859a;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .traffic-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

@media (max-width: 700px) {
  .banner-preview {
    display: flex;
    flex-direction: column;
    padding: 24px;
  }

  .banner-preview img {
    height: 230px;
  }

  .traffic-stats {
    gap: 12px;
  }

  .traffic-stat {
    padding: 18px 16px;
  }

  .traffic-stat.primary {
    padding-top: 16px;
  }

  .traffic-stat strong {
    font-size: 29px;
  }

  .traffic-stat span {
    font-size: 11px;
  }

  .traffic-stat small {
    font-size: 10px;
  }

  .panel-heading .button {
    font-size: 11px;
    padding: 8px 12px;
  }

  .analytics-filter a {
    padding: 8px 13px;
    font-size: 12px;
  }
}

.traffic-stats > div {
  font-variant-numeric: tabular-nums;
}

/* Task controls follow the existing blue/navy workspace vocabulary. */
.admin-main .button,
.admin-header button,
.admin-nav a,
.editor-section-nav a {
  transition: background-color var(--admin-duration) ease-out,
  border-color var(--admin-duration) ease-out,
  color var(--admin-duration) ease-out;
}

.admin-main .button,
.admin-header button,
.admin-menu-toggle {
  min-height: 44px;
}

.admin-main .button:active:not(:disabled) {
  filter: brightness(0.93);
}

.admin-main .content-filter {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(160px, 1fr) auto;
  align-items: end;
  gap: 16px;
}

.admin-main .filter-field {
  display: grid;
  grid-template-rows: 22px 44px;
  gap: 8px;
  line-height: 22px;
  min-width: 0;
  margin: 0;
}

.admin-main .filter-field > span {
  margin: 0;
  line-height: 22px;
}

.admin-main .filter-field input,
.admin-main .filter-field select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  height: 44px;
  margin: 0;
  padding: 11px 12px;
  font-size: 14px;
  line-height: 22px;
}

.admin-main :is(.admin-filter, .content-filter) .button {
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding-block: 11px;
  line-height: 22px;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.list-summary {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.list-empty {
  padding: 22px 0 4px;
  margin: 0;
}

.admin-table small {
  font-size: 13px;
  line-height: 1.6;
}

.admin-table td {
  padding-top: 14px;
  padding-bottom: 14px;
}

.admin-table strong {
  overflow-wrap: anywhere;
}

.admin-table .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.content-table {
  min-width: 780px;
}

.content-table th:nth-child(2),
.content-table td:nth-child(2) {
  width: 124px;
  white-space: nowrap;
}

.content-table th:nth-child(3) {
  width: 112px;
}

.content-table th:nth-child(4) {
  width: 86px;
}

.content-table th:nth-child(5) {
  width: 116px;
}

.content-table th:nth-child(6) {
  width: 76px;
}

.content-table th:last-child {
  width: 76px;
}

.content-table time {
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.content-table time small {
  margin-top: 2px;
  color: var(--muted);
}

.editor-section-nav {
  position: sticky;
  top: 76px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 6px 0;
  margin: -12px 0 20px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.editor-section-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14px;
  border-radius: var(--radius);
}

.editor-section-nav a:hover {
  color: var(--blue);
  background: var(--admin-hover);
}

html.content-editor-page {
  scroll-behavior: auto;
  scroll-padding-top: 156px;
  scroll-padding-bottom: 140px;
}

.content-editor [id^="content-"] {
  scroll-margin-top: 0;
}

.content-editor [id^="content-"]:focus {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.content-publishing {
  padding: 22px 24px;
}

.content-publishing h2 {
  font-size: 18px;
  padding-bottom: 0;
  margin: 0 0 16px;
  border-bottom: 0;
}

.content-publishing .publishing-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.6fr) minmax(0, 1.35fr);
  gap: 18px;
}

.content-publishing .admin-actions .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.required-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  margin-left: 5px;
}

.content-editor .save-bar {
  background: #fff;
  padding: 14px 20px;
}

.save-scope {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.admin-main input::placeholder,
.admin-main textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.admin-body ::selection {
  background: #d3e7ff;
  color: var(--ink);
}

@media (max-width: 1200px) {
  .content-publishing .publishing-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .publishing-grid > label:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1000px) {
  .editor-section-nav {
    top: 68px;
  }
}

@media (max-width: 800px) {
  .admin-main .content-filter {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .filter-query {
    grid-column: 1 / -1;
  }

  html.content-editor-page {
    scroll-padding-top: 184px;
  }
}

@media (max-width: 600px) {
  .admin-main .content-filter {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-publishing .publishing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-publishing {
    padding: 18px 16px;
  }

  .editor-section-nav {
    gap: 0 2px;
  }

  .editor-section-nav a {
    padding: 8px 10px;
    font-size: 13px;
  }

  .save-scope {
    flex-basis: 100%;
    margin: 0;
  }

  .content-editor .save-bar {
    padding: 12px 14px;
    gap: 12px;
  }

  .admin-main input:not([type="checkbox"]):not([type="radio"]),
  .admin-main select,
  .admin-main textarea {
    font-size: 16px;
  }

  /* Keep the same six fields and row actions readable without sideways scrolling. */
  .content-list .table-scroll {
    overflow: visible;
    padding: 16px;
  }

  .content-table {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .content-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .content-table tbody {
    display: grid;
    gap: 16px;
  }

  .content-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
  }

  .content-table td {
    min-width: 0;
    width: auto;
    border: 0;
    padding: 0;
    overflow-wrap: anywhere;
  }

  .content-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
  }

  .content-table td:first-child,
  .content-table td:last-child {
    grid-column: 1 / -1;
  }

  .content-table td:nth-child(2) {
    width: auto;
    white-space: normal;
  }

  .content-table td:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .content-table td:last-child::before {
    margin: 0;
  }

  .content-table td:last-child .text-link {
    padding: 8px 14px;
    border: 1px solid #b9d3f2;
    border-radius: var(--radius);
    background: #f3f8ff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-body {
    --admin-duration: 0ms;
  }
}

.traffic-stats > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  min-width: 0;
}

.traffic-stats > div:first-child {
  border-top: 3px solid #086bf2;
  padding-top: 22px;
}

.traffic-stats > div > span,
.traffic-stats small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.traffic-stats strong {
  display: block;
  font-size: 34px;
  margin: 14px 0 7px;
}

.traffic-chart svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
}

.traffic-grid {
  fill: none;
  stroke: #e7edf3;
  stroke-width: 1;
}

.traffic-pv,
.traffic-uv {
  fill: none;
  stroke: #086bf2;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.traffic-uv {
  stroke: #20b9c5;
  stroke-width: 2;
}

.traffic-legend {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}

.traffic-legend span::first-letter {
  color: #086bf2;
}

.traffic-legend span + span::first-letter {
  color: #12969f;
}

.traffic-axis {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin: 0 2%;
}

.traffic-empty {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 53px,
    #ecf1f6 54px,
    #ecf1f6 55px
  );
  color: var(--muted);
}

.traffic-empty strong {
  color: var(--muted);
  font-weight: 500;
}

.traffic-details {
  margin-top: 22px;
}

.traffic-details summary {
  cursor: pointer;
  color: #086bf2;
  font-size: 13px;
}

.traffic-details .table-scroll {
  max-height: 350px;
  overflow: auto;
  margin-top: 15px;
}

.traffic-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px;
}

.traffic-columns td:first-child {
  overflow-wrap: anywhere;
}

.traffic-columns .admin-panel {
  min-width: 0;
}

@media (max-width: 1100px) {
  .traffic-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

@media (max-width: 700px) {
  .admin-body .traffic-details .table-scroll {
    max-height: none;
    overflow: visible;
  }

  .admin-body .admin-main .traffic-details .admin-responsive-table tr {
    padding: 12px 14px;
    gap: 8px 16px;
  }

  .admin-body .admin-main .traffic-details .admin-responsive-table td {
    padding: 0;
    font-variant-numeric: tabular-nums;
  }

  .admin-body .traffic-details .admin-responsive-table td:last-child {
    grid-column: auto;
  }

  .traffic-stats > div {
    padding: 18px 14px;
  }

  .traffic-stats strong {
    font-size: 28px;
  }

  .traffic-stats > div > span,
  .traffic-stats small {
    font-size: 10px;
  }

  .traffic-columns .admin-table {
    min-width: 450px;
  }
}
