/* ============================================================
   Models page — original design, offline.
   ============================================================ */

body.tone-models {
  background: #fff;
  color: #111;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

body.tone-models .site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

body.tone-models .nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: contain;
}

.brand-title {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

body.tone-models .nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-item {
  text-decoration: none;
  font-size: 13.5px;
  color: #666;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-item:hover {
  color: #111;
}

.nav-item.active {
  color: #111;
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-dashboard {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 550;
  color: #111;
  text-decoration: none;
  background: #f4f4f4;
  border: 1px solid #e5e5e5;
  padding: 7px 14px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.btn-dashboard:hover {
  background: #ebebeb;
  border-color: #dcdcdc;
}

.wrap {
  max-width: 1180px;
  width: 100%;
  margin: auto;
  padding: 54px 28px 90px;
  flex: 1;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 42px;
}

.page-header .title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.045em;
  color: #111;
}

.count {
  color: #999;
  font-size: 14px;
  font-weight: 450;
}

.search-container {
  position: relative;
  margin-bottom: 28px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  stroke: #8e8e93;
  pointer-events: none;
}

.search {
  width: 100%;
  height: 48px;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 0 16px 0 44px;
  font-size: 14px;
  outline: none;
  background: #fff;
  color: #111;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: #fff;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  border-color: var(--line-hover, #d2d2d2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.identity {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.logo-box {
  width: 42px;
  height: 42px;
  border: 1px solid #e7e7e7;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #fff;
  overflow: hidden;
  flex: none;
}

.logo-box img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.fallback {
  font-size: 12px;
  font-weight: 700;
  color: #444;
  letter-spacing: -0.02em;
}

.name-wrap {
  min-width: 0;
}

.name {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #111;
}

.provider {
  font-size: 12px;
  color: #888;
  margin-top: 3px;
}

.context {
  font-size: 11px;
  color: #555;
  background: #f6f6f6;
  border: 1px solid #e9e9e9;
  border-radius: 999px;
  padding: 6px 9px;
  white-space: nowrap;
  font-weight: 500;
}

.desc {
  font-size: 13px;
  line-height: 1.5;
  color: #777;
  margin: 18px 0 17px;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  color: #666;
  background: #fafafa;
  border: 1px solid #e9e9e9;
  border-radius: 7px;
  padding: 5px 8px;
}

.copy-btn {
  background: #fafafa;
  border: 1px solid #e9e9e9;
  cursor: pointer;
  color: #666;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 11.5px;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.copy-btn:hover {
  color: #111;
  background: #f2f2f2;
  border-color: #ddd;
}

.copy-btn.copied {
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.06);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: #888;
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13.5px;
}

body.tone-models .site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  background: #fafafa;
}

.footer-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: #888;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: #666;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #111;
}

@media (max-width: 760px) {
  .wrap {
    padding: 35px 16px 60px;
  }
  .nav-container {
    padding: 0 12px;
  }
  .brand-title {
    display: none;
  }
  .nav-links {
    display: flex !important;
    gap: 12px;
  }
  .nav-item {
    font-size: 12.5px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .page-header .title {
    font-size: 27px;
  }
}
