body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-width: 640px;
  margin: 48px auto;
  padding: 0 16px;
  color: #1a1a1a;
}

h1 { font-size: 1.4rem; margin-bottom: 4px; }
p.sub { color: #666; margin-top: 0; }

.controls {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.controls select, .controls button {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}

.aac-wrapper {
  position: relative;
}

.aac-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.aac-input:focus {
  outline: none;
  border-color: #4a7dfc;
  box-shadow: 0 0 0 3px rgba(74, 125, 252, 0.15);
}

.aac-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  max-height: 280px;
  overflow-y: auto;
  z-index: 20;
}

.aac-item {
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.92rem;
}

.aac-item-active, .aac-item:hover {
  background: #eef2ff;
}

.aac-status {
  font-size: 0.8rem;
  color: #888;
  margin-top: 6px;
  min-height: 16px;
}

.result-box {
  margin-top: 20px;
  padding: 12px;
  border: 1px dashed #ccc;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: pre-wrap;
}

.usage-heading {
  font-size: 0.95rem;
  margin: 28px 0 8px;
  color: #444;
}

.usage-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.usage-row {
  font-size: 0.82rem;
  color: #555;
}

.usage-row-disabled {
  color: #aaa;
}

.usage-row-exhausted {
  color: #c0392b;
  font-weight: 600;
}

.usage-bar {
  height: 5px;
  background: #eee;
  border-radius: 4px;
  margin-top: 3px;
  overflow: hidden;
}

.usage-bar-fill {
  height: 100%;
  background: #4a7dfc;
  border-radius: 4px;
}

.usage-row-exhausted .usage-bar-fill {
  background: #c0392b;
}

.compare-heading {
  font-size: 0.95rem;
  margin: 32px 0 4px;
  color: #444;
}

.compare-controls {
  display: flex;
  gap: 8px;
  margin: 10px 0 14px;
}

.compare-controls input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9rem;
}

.compare-controls button {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #4a7dfc;
  background: #4a7dfc;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}

.compare-controls button:disabled {
  opacity: 0.6;
  cursor: default;
}

.compare-status {
  color: #888;
  font-size: 0.85rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.compare-table th, .compare-table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.compare-table th {
  color: #888;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.compare-exact td:nth-child(3) { color: #1a8a4a; font-weight: 600; }
.compare-partial td:nth-child(3) { color: #b8860b; }
.compare-none td:nth-child(3) { color: #999; }
.compare-unavailable td { color: #bbb; }

.compare-note {
  font-size: 0.75rem;
  color: #999;
  margin-top: 8px;
}
