.access-gate {
  display: flex;
  align-items: center;
  gap: 28px;
  border: 1px solid #eadfe0;
  background: #faf6f6;
  border-radius: 14px;
  padding: 28px;
  margin: 28px 0;
  grid-column: 1/-1;
}
.access-gate h3 {
  font-size: 20px;
  margin: 0 0 8px;
}
.access-gate p {
  font-size: 14px;
  color: #73686a;
  line-height: 1.8;
  margin: 0;
}
.access-gate > div:nth-child(2) {
  flex: 1;
}
.access-count {
  min-width: 86px;
}
.access-count strong {
  font-size: 36px;
}
.access-count span {
  color: #8a7e80;
}
.access-count small {
  display: block;
  color: #756a6c;
}
.access-gate .button {
  white-space: normal;
}
.access-locked {
  text-align: center;
  padding: 80px 20px;
  max-width: 680px;
  margin: auto;
}
.access-locked h1 {
  font-size: 32px;
  margin: 20px 0;
}
.access-locked p {
  margin-bottom: 28px;
}
.access-locked .text-link {
  display: block;
  margin: 24px;
}
.access-lock-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: auto;
  background: #f6eded;
  border-radius: 50%;
}
.access-benefits {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}
.access-benefits > div {
  display: flex;
  justify-content: space-between;
  padding: 14px;
  background: #f7f7f7;
}
.access-availability {
  padding: 16px;
  border: 1px solid #eee;
  background: #fafafa;
  line-height: 1.8;
}
.access-directory {
  margin: 30px 0;
  line-height: 2;
}
.access-directory a {
  display: block;
  color: #655d5e;
}
.access-pagination {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 24px 0;
  color: #777;
}
.access-loading {
  padding: 80px 20px;
  text-align: center;
}
.access-chart {
  padding: 20px 0;
}
.access-chart > div {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 2fr 80px;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
}
.access-chart span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.access-chart meter {
  width: 100%;
  accent-color: #c52636;
}
.access-video-image img {
  width: min(100%, 780px);
  max-height: 500px;
  object-fit: contain;
}
.access-saved-placeholder h2 {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.access-saved-item {
  min-width: 0;
}
.panel {
  margin: 16px 0;
}
.panel p {
  line-height: 1.8;
}
.panel h2 {
  margin-bottom: 16px;
}
.panel input {
  max-width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin: 12px;
}
.panel form {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-bar select {
  padding: 10px;
  max-width: 100%;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 8px;
}
.filter-bar label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter-bar {
  flex-wrap: wrap;
}
.rank-channel small {
  display: block;
}
.case-card h2 {
  font-size: 22px;
  line-height: 1.5;
}
.video-title {
  overflow-wrap: anywhere;
}
.modal-body .button {
  margin: 8px 8px 8px 0;
}
.niche-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.account-identity img.account-avatar {
  width: 96px;
  height: 96px;
  object-fit: cover;
}
.account-tabs {
  overflow-x: auto;
}
.account-tabs button {
  flex-shrink: 0;
}
.tabs {
  overflow-x: auto;
}
.tabs a {
  white-space: nowrap;
}
#modal {
  max-width: min(720px, calc(100vw - 24px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}
#modal textarea {
  width: 100%;
  min-height: 140px;
  margin: 16px 0;
  padding: 12px;
}
#main .panel,
#main .account-section {
  overflow-wrap: anywhere;
}
.account-section .query-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.account-identity-copy {
  min-width: 0;
}
.account-identity-copy p {
  overflow-wrap: anywhere;
}
.site-header .header-inner {
  gap: 16px;
}
.plan-card p {
  line-height: 1.8;
}
.plan-grid {
  align-items: start;
}
.plan-card li {
  line-height: 1.8;
}
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
.rank-table {
  min-width: 600px;
}
.compare-dock {
  z-index: 20;
}
.access-directory summary {
  cursor: pointer;
}
@media (max-width: 768px) {
  .access-gate {
    flex-wrap: wrap;
    gap: 16px;
    padding: 22px;
  }
  .access-gate > div:nth-child(2) {
    min-width: 180px;
  }
  .access-gate > .button {
    width: 100%;
  }
  .niche-grid {
    grid-template-columns: 1fr;
  }
  .access-chart > div {
    grid-template-columns: 90px minmax(0, 1fr) 55px;
    gap: 6px;
  }
  .account-section .query-grid {
    grid-template-columns: 1fr;
  }
  .filter-bar {
    align-items: stretch;
  }
  .filter-bar label {
    width: 100%;
    justify-content: space-between;
  }
  .filter-bar select {
    max-width: 72%;
  }
  .account-identity {
    flex-wrap: wrap;
  }
  .panel form {
    display: block;
  }
  .panel input {
    width: 100%;
    margin: 12px 0;
  }
  .hero-stats {
    gap: 16px;
  }
  .hero-stat dd {
    font-size: 28px;
  }
  .query-grid,
  .video-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }
  .access-locked {
    padding: 48px 12px;
  }
  .access-locked h1 {
    font-size: 26px;
  }
  .search-box {
    min-width: 0;
  }
  .search-box input {
    min-width: 0;
  }
  .account-main {
    padding-inline: 16px;
  }
  .main:not(.home-main) {
    max-width: 100%;
  }
  .keyword-row {
    gap: 12px;
    flex-wrap: wrap;
  }
  .site-brand {
    flex-shrink: 0;
  }
  .header-actions {
    min-width: 0;
  }
}

.access-gate {
  color: #252126;
}
.access-gate .button.primary {
  color: #fff;
}
.access-benefits > div {
  background: #29292d;
  color: #fafafa;
}
.access-availability {
  background: #29292d;
  color: #ededed;
  border-color: #444;
}
.filter-bar select {
  background: #222;
  color: #ededed;
  border-color: #444;
}
.access-count strong {
  color: #252126;
}
.access-gate h3 {
  color: #252126;
}
