:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f4f1e8;
  background: #101312;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #101312;
}

.widget {
  display: grid;
  gap: 16px;
  min-height: 330px;
  padding: 18px;
  border: 1px solid #343a37;
  background: #151918;
}

.widget header,
.widget footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.widget header span,
.widget footer span {
  color: #a8b0ab;
  font-size: 12px;
}

.widget-brand {
  color: #e5a23a;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}

.widget-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 84px;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #a8b0ab;
  font-size: 12px;
  font-weight: 700;
}

select,
input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 10px;
  border: 1px solid #414844;
  border-radius: 6px;
  background: #0d100f;
  color: #f4f1e8;
  font: inherit;
  font-size: 14px;
}

.widget-result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #343a37;
  border-radius: 6px;
  background: #343a37;
}

.widget-result div {
  display: grid;
  gap: 4px;
  padding: 14px 12px;
  background: #0d100f;
}

.widget-result span {
  color: #a8b0ab;
  font-size: 11px;
  text-transform: uppercase;
}

.widget-result strong {
  font-size: 20px;
}

.widget footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #2a302d;
}

.widget footer a {
  color: #73d69a;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 480px) {
  .widget {
    gap: 12px;
    min-height: 350px;
    padding: 14px;
  }

  .widget-controls {
    grid-template-columns: 1fr 1fr;
  }

  .widget-controls label:first-child {
    grid-column: 1 / -1;
  }

  .widget-result div { padding: 12px 8px; }
  .widget-result strong { font-size: 18px; }
}
