* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #222;
  background: #fff;
}

.header {
  background: #1b3a5c;
  color: #fff;
  padding: 18px 24px;
}
.header h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}
.accent { color: #f5a623; }
.header .tagline {
  margin: 4px 0 0;
  font-size: 13px;
  color: #cfe0ee;
}

.subnav {
  background: #d9ecf9;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #bcd8ea;
}
.subnav a {
  color: #1b5faa;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.subnav a:hover { text-decoration: underline; }
.subnav .stats {
  margin-left: auto;
  font-size: 12px;
  color: #46698a;
  font-weight: normal;
}

.container {
  max-width: 720px;
  margin: 40px auto;
  padding: 0 20px;
}

.center {  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;}

.container h1 {
  font-size: 120px;
}

.search-box {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  min-width: 500px;
}
.search-box input {
  flex: 1;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #bcd8ea;
  border-radius: 4px;
}
.search-box input:focus {
  outline: none;
  border-color: #1b5faa;
}
.search-box button {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  background: #1b3a5c;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.search-box button:hover { background: #16304c; }

.result {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}
.result .domain {
  color: #1a0dab;
  font-size: 13px;
  margin-bottom: 2px;
}
.result .title {
  font-size: 17px;
  font-weight: 600;
  margin: 2px 0;
}
.result .title a { color: #1b5faa; text-decoration: none; }
.result .title a:hover { text-decoration: underline; }
.result .snippet {
  font-size: 13px;
  color: #444;
}
.empty, .hint {
  color: #777;
  font-size: 14px;
  padding: 20px 0;
}

footer {
  text-align: center;
  font-size: 12px;
  color: #888;
  padding: 24px;
  border-top: 1px solid #eee;
  margin-top: 40px;
}
footer a { color: #1b5faa; }

/* --- Status & Images pages --- */
.container.wide {
  max-width: 980px;
}
.section-title {
  font-size: 18px;
  color: #1b3a5c;
  margin: 0 0 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.stat-card {
  background: #f7fbfe;
  border: 1px solid #d9ecf9;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #1b3a5c;
}
.stat-label {
  font-size: 12px;
  color: #5c7d99;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.chart-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
}
.chart-card h3 {
  margin: 0 0 12px;
  font-size: 13px;
  color: #1b3a5c;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.chart-wrap {
  position: relative;
  height: 220px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.image-card {
  display: block;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: box-shadow 0.15s ease;
}
.image-card:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.image-thumb {
  height: 120px;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.image-thumb.broken::before {
  content: 'image unavailable';
  font-size: 11px;
  color: #999;
}
.image-meta {
  padding: 8px 10px;
}
.image-domain {
  font-size: 12px;
  font-weight: 600;
  color: #1b5faa;
}
.image-found {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
  word-break: break-all;
}
