.frequency-page .page-content {
  padding-bottom: 2rem;
}

.frequency-dashboard__period {
  color: #6b778d;
  font-size: .82rem;
  font-weight: 700;
  margin: .2rem 0 0;
}

.frequency-dashboard__chart--line {
  min-height: 286px;
}

.frequency-dashboard__bars {
  display: grid;
  gap: .65rem;
  padding-top: .35rem;
}

.frequency-dashboard__bar-row {
  align-items: center;
  display: grid;
  gap: .55rem;
  grid-template-columns: 92px minmax(0, 1fr) 54px;
}

.frequency-dashboard__bar-row span,
.frequency-dashboard__bar-row strong {
  color: #6b778d;
  font-size: .74rem;
  font-weight: 900;
}

.frequency-dashboard__bar-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frequency-dashboard__bar-row strong {
  color: #25324b;
  text-align: right;
}

.frequency-dashboard__bar-row div {
  background: #f1f4f9;
  border-radius: 999px;
  height: 16px;
  overflow: hidden;
}

.frequency-dashboard__bar-row i {
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 0;
}

.entity-list--frequency {
  border-color: #e7eaf0;
  box-shadow: 0 3px 12px rgba(31, 45, 61, .04);
}

.entity-list__table-wrap--frequency {
  border: 1px solid #e5e9f2;
  border-radius: 8px;
  overflow: auto;
}

.entity-list__columns--frequency,
.entity-list__row--frequency,
.entity-list__skeleton-row--frequency {
  display: grid;
  grid-template-columns: 112px 190px 92px 116px 116px 118px 96px 122px 190px 118px;
  min-width: 1270px;
}

.entity-list__columns--frequency {
  background: #f7f8fb;
  border-bottom: 1px solid #e5e9f2;
  color: #78849b;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 3;
}

.entity-list__columns--frequency > span,
.entity-list__row--frequency > span,
.entity-list__skeleton-row--frequency > span {
  align-items: center;
  border-right: 1px solid #edf0f5;
  display: flex;
  min-width: 0;
  overflow: hidden;
  padding: .65rem .75rem;
}

.entity-list__columns--frequency > span:last-child,
.entity-list__row--frequency > span:last-child,
.entity-list__skeleton-row--frequency > span:last-child {
  border-right: 0;
}

.entity-list__row--frequency {
  background: #fff;
  border-bottom: 1px solid #edf0f5;
  color: #25324b;
  font-size: .78rem;
  font-weight: 700;
  min-height: 58px;
  transition: background-color .15s ease;
}

.entity-list__row--frequency:hover {
  background: #f9faff;
}

.entity-list__row--frequency > span {
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-list__row--frequency strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-list__skeleton-row--frequency {
  background: #fff;
  border-bottom: 1px solid #edf0f5;
  min-height: 58px;
}

.entity-list__skeleton-row--frequency > span {
  min-height: 58px;
  position: relative;
}

.entity-list__skeleton-row--frequency > span::before {
  animation: visitor-dashboard-loading 1.1s ease-in-out infinite;
  background: #e9edf4;
  border-radius: 999px;
  content: '';
  display: block;
  height: 14px;
  width: 78%;
}

.frequency-list__actions,
.frequency-records__actions {
  align-items: center;
  display: flex;
  gap: .4rem;
}

.frequency-list__actions .btn,
.frequency-records__actions .btn {
  align-items: center;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  padding: 0;
  width: 32px;
}

.frequency-records {
  background: #fbfcff;
  border-bottom: 1px solid #edf0f5;
  display: grid;
  gap: .75rem;
  padding: .85rem 1rem 1rem;
}

.frequency-records__header {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .75rem;
  justify-content: space-between;
}

.frequency-records__header strong {
  color: #25324b;
  font-size: .86rem;
  font-weight: 900;
}

.frequency-records__header small {
  color: #6b778d;
  font-size: .74rem;
  font-weight: 700;
}

.frequency-records__item {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e9f2;
  border-radius: 8px;
  display: grid;
  gap: .8rem;
  grid-template-columns: minmax(190px, 1fr) minmax(240px, 1.1fr) minmax(140px, .9fr) auto;
  padding: .75rem .85rem;
}

.frequency-records__item > div:first-child {
  min-width: 0;
}

.frequency-records__item span,
.frequency-records__item small {
  color: #6b778d;
  display: block;
  font-size: .72rem;
  font-weight: 800;
}

.frequency-records__item strong {
  color: #25324b;
  display: block;
  font-size: .92rem;
  font-weight: 900;
  margin: .12rem 0;
}

.frequency-records__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.frequency-records__metrics span {
  background: #f6f8fc;
  border: 1px solid #e5e9f2;
  border-radius: 999px;
  display: inline-flex;
  gap: .3rem;
  min-height: 26px;
  padding: .3rem .6rem;
}

.frequency-records__metrics strong {
  display: inline;
  font-size: inherit;
  margin: 0;
}

.frequency-records__item p {
  color: #4f5d75;
  font-size: .78rem;
  font-weight: 700;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-list__state--compact {
  border: 0;
  font-size: .78rem;
  margin: 0 .75rem .4rem;
  min-height: auto;
  padding: .4rem 0;
  text-align: left;
}

.frequency-counter-page {
  background: #f5f7fb;
  min-height: 100vh;
}

.frequency-counter-shell {
  box-sizing: border-box;
  display: grid;
  gap: 1rem;
  margin: 0 auto;
  max-width: 520px;
  min-height: 100vh;
  padding: 1rem;
  width: 100%;
}

.frequency-counter-header {
  align-items: center;
  display: flex;
  gap: .8rem;
  padding: .4rem 0 .2rem;
  position: relative;
}

.frequency-counter-header--authenticated {
  align-items: flex-start;
}

.frequency-counter-header--login {
  display: grid;
  gap: .9rem;
  justify-items: center;
  padding: 1.2rem 0 .6rem;
  text-align: center;
}

.frequency-counter-login-logo {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e9f2;
  border-radius: 8px;
  display: inline-flex;
  flex: 0 0 64px;
  height: 48px;
  justify-content: center;
  padding: .35rem;
  width: 64px;
}

.frequency-counter-header--login .frequency-counter-login-logo {
  flex: none;
  height: 100px;
  max-width: 58vw;
  padding: .75rem 1rem;
  width: 152px;
}

.frequency-counter-login-logo img {
  display: block;
  max-height: 38px;
  max-width: 100%;
  object-fit: contain;
}

.frequency-counter-menu-button {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e9f2;
  border-radius: 8px;
  color: #25324b;
  display: inline-flex;
  flex: 0 0 44px;
  font-size: 1.35rem;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.frequency-counter-menu-button:focus-visible,
.frequency-counter-counter:focus-visible,
.frequency-counter-mode__option:focus-visible,
.frequency-counter-user-menu__logout:focus-visible {
  box-shadow: 0 0 0 3px rgba(67, 94, 190, .3);
  outline: 2px solid #435ebe;
  outline-offset: 2px;
}

.frequency-counter-user-menu {
  flex: 0 0 auto;
  position: relative;
  z-index: 10;
}

.frequency-counter-user-menu__panel {
  background: #fff;
  border: 1px solid #e5e9f2;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(31, 45, 61, .14);
  display: grid;
  gap: .8rem;
  left: 0;
  min-width: 240px;
  padding: .85rem;
  position: absolute;
  top: calc(100% + .55rem);
}

.frequency-counter-user-menu__user {
  display: grid;
  gap: .2rem;
  min-width: 0;
}

.frequency-counter-user-menu__user strong,
.frequency-counter-user-menu__user span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frequency-counter-user-menu__user strong {
  color: #25324b;
  font-size: .9rem;
  font-weight: 900;
}

.frequency-counter-user-menu__user span {
  color: #6b778d;
  font-size: .76rem;
  font-weight: 700;
}

.frequency-counter-user-menu__logout {
  align-items: center;
  background: transparent;
  border: 0;
  border-top: 1px solid #edf0f5;
  color: #c0392b;
  display: inline-flex;
  font-size: .86rem;
  font-weight: 900;
  gap: .45rem;
  justify-content: flex-start;
  padding: .75rem 0 0;
  text-align: left;
}

.frequency-counter-title {
  min-width: 0;
}

.frequency-counter-header--login .frequency-counter-title {
  display: grid;
  gap: .25rem;
  justify-items: center;
  width: 100%;
}

.frequency-counter-header span {
  color: #6b778d;
  display: block;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.frequency-counter-header h1 {
  color: #25324b;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
  margin: .2rem 0 0;
}

.frequency-counter-header--login .frequency-counter-login-logo img {
  max-height: 78px;
}

.frequency-counter-header--login h1 {
  margin-top: 0;
  max-width: 280px;
}

.frequency-counter-panel,
.frequency-counter-workspace {
  align-self: start;
  background: #fff;
  border: 1px solid #e5e9f2;
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(31, 45, 61, .06);
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
  width: 100%;
}

.frequency-counter-panel > *,
.frequency-counter-workspace > * {
  max-width: 100%;
  min-width: 0;
}

.frequency-counter-panel__heading {
  align-items: center;
  display: flex;
  gap: .85rem;
}

.frequency-counter-panel__heading > i,
.frequency-counter-panel--blocked > i {
  align-items: center;
  background: #eef3ff;
  border-radius: 8px;
  color: #435ebe;
  display: inline-flex;
  flex: 0 0 44px;
  font-size: 1.25rem;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.frequency-counter-panel h2,
.frequency-counter-panel__heading h2 {
  color: #25324b;
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
}

.frequency-counter-panel p,
.frequency-counter-panel__heading p {
  color: #6b778d;
  font-size: .82rem;
  font-weight: 700;
  margin: .15rem 0 0;
}

.frequency-counter-panel--blocked {
  align-items: start;
  justify-items: start;
}

.frequency-counter-panel--blocked h2,
.frequency-counter-panel--blocked p {
  overflow-wrap: anywhere;
  white-space: normal;
}

.frequency-counter-panel--blocked .btn {
  justify-self: start;
  max-width: 100%;
  white-space: normal;
}

.frequency-counter-input {
  min-height: 48px;
  min-width: 0;
  width: 100%;
}

.frequency-counter-submit,
.frequency-counter-save,
.frequency-counter-reset {
  min-height: 50px;
  width: 100%;
}

.frequency-counter-loading {
  align-items: center;
  color: #6b778d;
  display: inline-flex;
  font-size: .86rem;
  font-weight: 800;
  gap: .5rem;
}

.frequency-counter-form {
  display: grid;
  gap: 1rem;
}

.frequency-counter-grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.frequency-counter-grid > .form-group {
  min-width: 0;
}

.frequency-counter-grid--date-celebration {
  gap: .65rem;
  grid-template-columns: minmax(124px, .8fr) minmax(0, 1.2fr);
}

.frequency-counter-mode {
  background: #f1f4f9;
  border: 1px solid #e5e9f2;
  border-radius: 8px;
  display: grid;
  gap: .25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: .25rem;
}

.frequency-counter-mode__option {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #6b778d;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 900;
  gap: .4rem;
  justify-content: center;
  min-height: 42px;
  min-width: 0;
  padding: .45rem .55rem;
}

.frequency-counter-mode__option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frequency-counter-mode__option.is-active {
  background: #fff;
  box-shadow: 0 4px 14px rgba(31, 45, 61, .08);
  color: #25324b;
}

.frequency-counter-counter {
  align-items: center;
  background: #25324b;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: grid;
  gap: .8rem;
  justify-items: center;
  min-height: 286px;
  padding: 1.8rem 1rem;
  text-align: center;
  touch-action: manipulation;
  user-select: none;
}

.frequency-counter-counter.is-kids {
  background: #435ebe;
}

.frequency-counter-counter span {
  color: rgba(255, 255, 255, .72);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.frequency-counter-counter strong {
  font-size: 5.4rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: .9;
}

.frequency-counter-tap {
  align-items: center;
  background: #16a085;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 2.2rem;
  height: 76px;
  justify-content: center;
  pointer-events: none;
  transition: transform .12s ease, background-color .12s ease;
  width: 76px;
}

.frequency-counter-tap:active {
  transform: scale(.97);
}

.frequency-counter-tap:disabled {
  cursor: not-allowed;
  opacity: .72;
}

.frequency-counter-number-input {
  font-size: 1.15rem;
  font-weight: 900;
  text-align: center;
}

.frequency-counter-actions {
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
}

body.theme-dark .frequency-dashboard__period,
body.theme-dark .frequency-dashboard__bar-row span {
  color: #aeb6d7;
}

body.theme-dark .frequency-dashboard__bar-row strong,
body.theme-dark .frequency-records__header strong,
body.theme-dark .frequency-records__item strong {
  color: #f2f4ff;
}

body.theme-dark .frequency-dashboard__bar-row div {
  background: #252538;
}

body.theme-dark .entity-list__table-wrap--frequency,
body.theme-dark .frequency-records__item,
body.theme-dark .frequency-records__metrics span {
  border-color: #303044;
}

body.theme-dark .entity-list__columns--frequency {
  background: #202033;
  border-bottom-color: #303044;
  color: #aeb6d7;
}

body.theme-dark .entity-list__columns--frequency > span,
body.theme-dark .entity-list__row--frequency > span,
body.theme-dark .entity-list__skeleton-row--frequency > span {
  border-right-color: #303044;
}

body.theme-dark .entity-list__row--frequency,
body.theme-dark .entity-list__skeleton-row--frequency,
body.theme-dark .frequency-records__item {
  background: #1b1b2b;
  border-bottom-color: #303044;
  color: #f2f4ff;
}

body.theme-dark .entity-list__row--frequency:hover {
  background: #232337;
}

body.theme-dark .frequency-records {
  background: #181827;
  border-bottom-color: #303044;
}

body.theme-dark .frequency-records__header small,
body.theme-dark .frequency-records__item span,
body.theme-dark .frequency-records__item small,
body.theme-dark .frequency-records__item p {
  color: #aeb6d7;
}

body.theme-dark .frequency-records__metrics span {
  background: #202033;
}

body.theme-dark .frequency-counter-page {
  background: #11111f;
}

body.theme-dark .frequency-counter-back,
body.theme-dark .frequency-counter-login-logo,
body.theme-dark .frequency-counter-menu-button,
body.theme-dark .frequency-counter-user-menu__panel,
body.theme-dark .frequency-counter-panel,
body.theme-dark .frequency-counter-workspace {
  background: #1b1b2b;
  border-color: #303044;
  color: #f2f4ff;
}

body.theme-dark .frequency-counter-header h1,
body.theme-dark .frequency-counter-user-menu__user strong,
body.theme-dark .frequency-counter-panel h2,
body.theme-dark .frequency-counter-panel__heading h2 {
  color: #f2f4ff;
}

body.theme-dark .frequency-counter-header span,
body.theme-dark .frequency-counter-user-menu__user span,
body.theme-dark .frequency-counter-panel p,
body.theme-dark .frequency-counter-panel__heading p,
body.theme-dark .frequency-counter-loading {
  color: #aeb6d7;
}

body.theme-dark .frequency-counter-menu-button {
  color: #f2f4ff;
}

body.theme-dark .frequency-counter-user-menu__logout {
  border-top-color: #303044;
  color: #ff9f9f;
}

body.theme-dark .frequency-counter-mode {
  background: #202033;
  border-color: #303044;
}

body.theme-dark .frequency-counter-mode__option {
  color: #aeb6d7;
}

body.theme-dark .frequency-counter-mode__option.is-active {
  background: #2b2b42;
  color: #f2f4ff;
}

body.theme-dark .frequency-counter-panel__heading > i,
body.theme-dark .frequency-counter-panel--blocked > i {
  background: #252538;
  color: #dfe4ff;
}

body.theme-dark .frequency-counter-counter {
  background: #202033;
}

body.theme-dark .frequency-counter-counter.is-kids {
  background: #30365f;
}

@media screen and (max-width: 1199px) {
  .frequency-records__item {
    grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) auto;
  }

  .frequency-records__item p {
    grid-column: 1 / -1;
    white-space: normal;
  }
}

@media screen and (max-width: 767.98px) {
  .frequency-page .visitors-list-page__header-actions {
    width: 100%;
  }

  .frequency-page .visitors-list-page__header-actions .btn {
    width: 100%;
  }

  .frequency-records__item {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .frequency-records__actions {
    justify-content: flex-end;
    width: 100%;
  }

  .frequency-dashboard__bar-row {
    grid-template-columns: 82px minmax(0, 1fr) 46px;
  }

  .frequency-counter-shell {
    padding: .85rem;
  }

  .frequency-counter-panel--blocked .btn {
    width: 100%;
  }

  .frequency-counter-grid,
  .frequency-counter-actions {
    grid-template-columns: 1fr;
  }

  .frequency-counter-grid--date-celebration {
    gap: .5rem;
    grid-template-columns: minmax(50%, 50%) minmax(0, 1.22fr);
  }

  .frequency-counter-counter {
    min-height: 300px;
    padding: 1.55rem .85rem;
  }

  .frequency-counter-counter strong {
    font-size: 4.7rem;
  }

  .frequency-counter-tap {
    height: 88px;
    width: 88px;
  }
}
