:root {
  --bg: #000000;
  --panel: #000000;
  --text: #E7E9EA;
  --muted: #E7E9EA;
  --accent: #ffffff;
  --accent-2: #ffffff;
  --border: #ffffff;
}

* {
  box-sizing: border-box;
}

html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

body.is-loading .container {
  visibility: hidden;
}

h1 {
  font-size: 28px;
  margin: 0 0 6px 0;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.controls { margin: 14px 0 33px 0; }

.lucky {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.lucky button {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 80ms ease;
}
.lucky button:hover {
  background-color: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.32);
}
.lucky button:active {
  background-color: rgba(255,255,255,0.10);
  transform: translateY(1px);
}
.lucky button:focus-visible {
  outline: 2px solid #1C9BEF;
  outline-offset: 2px;
}

.field {
  display: block;
  margin-bottom: 12px;
}
.field { position: relative; }
.field span {
  display: block;
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 15px 12px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: #0a0a0a; /* slightly lighter black as in Quote Search */
  color: var(--text);
  font-size: 17px;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  caret-color: var(--text);
  padding-right: 54px;
  padding-left: 47px;
}

.field input::placeholder {
  color: var(--text);
  opacity: 1;
}

.field input:focus,
.field input:focus-visible {
  outline: none;
  box-shadow: none;
  border-color: var(--border);
}

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

button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000000;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  color: var(--muted);
  font-size: 14px;
}

.results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 33px;
}

.results-header {
  margin-top: 8px;
  margin-bottom: 21px;
  color: var(--muted);
}

.card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.card-head {
  display: block;
}
.card .title {
  font-weight: 700;
  margin: 0;
  font-size: 17px;
}
.card .title .stock-link {
  color: #1C9BEF;
  text-decoration: none;
}
.card .title .stock-link:hover {
  text-decoration: underline;
}
.card .ticker {
  color: inherit;
  font-size: 17px;
}
.card .description {
  color: var(--text);
  margin-top: 5px;
  font-size: 16px;
}

.empty {
  color: var(--muted);
}


.card-actions { display: flex; justify-content: flex-start; margin-top: 10px; }

.results-more {
  display: flex;
  justify-content: center;
  margin: 10px 0 0 0;
}

.show-more-btn {
  background: #E7E9EA;
  color: #000000;
}
.show-more-btn:hover {
  background: #F0F1F2;
}

.footer {
  margin-top: 42px;
  color: var(--muted);
  text-align: center;
  font-size: 17px;
}
.footer a {
  color: #1C9BEF;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}
.how-figure img {
  display: block;
  height: auto;
  margin: 0 auto;
  width: 100%;
  max-width: 690px;
}

.clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  height: 38px;
  width: 38px;
  border-radius: 50%;
  background: transparent;
  color: #71767A;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.clear-btn .material-symbols-outlined.clear-icon {
  font-size: 26px;
  font-variation-settings:
    'FILL' 0,
    'wght' 300,
    'GRAD' 0,
    'opsz' 24;
  color: #71767A;
}

.material-symbols-outlined.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #71767A;
  font-size: 26px;
  font-variation-settings:
    'FILL' 0,
    'wght' 300,
    'GRAD' 0,
    'opsz' 24;
  display: inline-block;
  margin: 0;
  line-height: 1;
}
.clear-btn:hover {
  background: transparent;
}

.clear-btn .material-symbols-outlined.clear-icon {
  font-size: 26px;
  font-variation-settings:
    'FILL' 0,
    'wght' 300,
    'GRAD' 0,
    'opsz' 24;
  display: inline-block;
  margin: 0;
  line-height: 1;
}