:root {
  --text: #202124;
  --muted: #5f6368;
  --line: #dfe1e5;
  --blue: #1a73e8;
  --bg: #fff;
  --soft: #f8f9fa;
  --danger: #d93025;
  --ok: #188038;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
.top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  font-size: 13px;
}
.top a:hover { text-decoration: underline; }
.pill {
  background: var(--blue);
  color: #fff !important;
  border: 0;
  border-radius: 4px;
  padding: 9px 18px;
  cursor: pointer;
  text-decoration: none !important;
}
.pill.light {
  background: #fff;
  color: var(--blue) !important;
  border: 1px solid #dadce0;
}
.stage {
  min-height: calc(100vh - 180px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 48px;
  text-align: center;
}
.word {
  font-size: 72px;
  font-weight: 500;
  letter-spacing: -2px;
  margin: 0 0 8px;
}
.word b { color: var(--blue); font-weight: 500; }
.sub { max-width: 560px; color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0 0 28px; }
.search {
  width: min(584px, 94vw);
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 4px 6px 4px 20px;
  background: #fff;
}
.search:hover, .search:focus-within {
  box-shadow: 0 1px 6px rgba(32, 33, 36, .28);
  border-color: transparent;
}
.search input {
  flex: 1;
  border: 0;
  outline: 0;
  height: 44px;
  font-size: 16px;
  background: transparent;
}
.note { color: var(--muted); font-size: 13px; margin-top: 18px; max-width: 520px; }
.sections { width: min(980px, calc(100% - 32px)); margin: 0 auto 40px; }
.sections h2 { font-size: 20px; font-weight: 500; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
a.card { display: block; }
a.card:hover { border-color: #dadce0; }
.card {
  border: 1px solid #eceff1;
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  background: var(--soft);
}
.card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.foot {
  background: var(--soft);
  color: var(--muted);
  display: flex;
  gap: 24px;
  padding: 16px 28px;
  font-size: 14px;
  border-top: 1px solid #e8eaed;
}
.panel {
  width: min(420px, 94vw);
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 40px 36px 32px;
  text-align: left;
}
.panel h1 { font-size: 24px; font-weight: 500; margin: 8px 0; }
.panel p { color: var(--muted); font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; font-size: 14px; }
.field input, .field textarea, .admin input, .admin textarea, .admin select {
  border: 1px solid #dadce0;
  border-radius: 4px;
  padding: 12px;
  font: inherit;
}
.field input:focus, .admin input:focus, .admin textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}
.msg { font-size: 14px; margin: 0 0 12px; }
.msg.ok { color: var(--ok); }
.msg.error { color: var(--danger); }
.wide { width: min(880px, 94vw); }
.account { width: min(880px, 94vw); text-align: left; }
.letter {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: 32px;
}
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.admin-side { border-right: 1px solid #e8eaed; padding: 18px 12px; }
.admin-side a, .admin-side button {
  display: block; width: 100%; text-align: left; background: transparent; border: 0;
  padding: 10px 12px; border-radius: 8px; color: var(--text); cursor: pointer; font-size: 14px;
}
.admin-side a.active, .admin-side a:hover { background: #e8f0fe; color: var(--blue); }
.admin-main { padding: 28px; }
.admin h1 { font-weight: 500; font-size: 28px; margin-top: 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #e8eaed; vertical-align: top; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 800px) {
  .word { font-size: 46px; }
  .grid, .grid.three, .stats, .admin-shell { grid-template-columns: 1fr; }
}
