.site-header {
  max-width: 1250px;
}
.site-header nav {
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-header nav > span {
  font-size: 12px;
  color: var(--muted);
}
.console-main {
  max-width: 1200px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-heading h1 {
  font-size: 26px;
}
.page-heading p {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0;
}
.action-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
}
.filter-row {
  display: flex;
  gap: 14px;
  align-items: end;
  flex-wrap: wrap;
  margin: 22px 0;
}
.filter-row label {
  font-size: 12px;
  flex: 1;
  min-width: 110px;
}
.filter-row input {
  margin-top: 8px;
  min-height: 44px;
}
.filter-row .grow {
  flex: 2;
}
.filter-row button {
  min-height: 44px;
}
.table-scroll {
  overflow: auto;
  margin-top: 20px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  color: #608199;
  background: #f3f9fe;
  font-weight: 500;
}
th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid #e7f0f8;
  white-space: nowrap;
}
td button {
  padding: 7px 12px;
  font-size: 11px;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  font-size: 12px;
}
.pagination button {
  font-size: 12px;
}
.history-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.history-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  min-width: 0;
}
.history-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}
.history-url {
  font-size: 12px;
  overflow-wrap: anywhere;
  line-height: 1.7;
  margin: 14px 0 8px;
}
.history-card small {
  font-size: 10px;
  color: var(--muted);
}
.row-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.row-actions button {
  flex: 1;
  font-size: 12px;
  padding: 10px 5px;
}
.empty-history {
  text-align: center;
  padding: 50px;
}
.notice-error {
  background: #fff1ea;
  color: #9b4630;
  border: 1px solid #f0d0c1;
  padding: 13px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.7;
}
.auth-card {
  max-width: 440px;
  background: #fff;
  padding: 34px;
  border-radius: 20px;
  border: 1px solid var(--line);
  margin: 40px auto;
}
.auth-card h1 {
  font-size: 25px;
}
.auth-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.auth-card label,
#password-form label {
  display: block;
  margin: 18px 0 8px;
  font-size: 13px;
}
.auth-card input {
  margin-top: 0;
}
.auth-card button {
  width: 100%;
  margin: 24px 0 0;
  min-height: 46px;
}
.auth-card a {
  display: block;
  margin-top: 20px;
  color: var(--accent);
  font-size: 12px;
}
.auth-card .notice-error {
  color: #9b4630;
}
#invite-links {
  margin: 12px 0;
  font-size: 12px;
  line-height: 1.8;
}
#password-form input {
  margin-top: 8px;
}
@media (max-width: 900px) {
  .history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-header {
    gap: 18px;
    align-items: flex-start;
  }
  .site-header nav {
    gap: 10px 16px;
    max-width: 65%;
  }
}
@media (max-width: 600px) {
  .auth-card {
    margin: 20px 18px;
    padding: 26px;
    max-width: none;
  }
  .history-grid {
    grid-template-columns: 1fr;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .panel {
    padding: 18px;
  }
  .site-header nav {
    font-size: 11px;
  }
  .site-header .brand {
    white-space: nowrap;
  }
  .filter-row {
    gap: 12px;
  }
  .filter-row label {
    min-width: calc(50% - 12px);
  }
  .filter-row button {
    width: 100%;
  }
  .pagination {
    gap: 12px;
  }
  .console-main {
    padding: 0 18px;
  }
  .history-card img {
    max-height: 350px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .action-link {
    white-space: nowrap;
  }
  .site-header nav > span {
    display: none;
  }
}
