.word-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: min(640px, calc(100% - 24px));
  margin: 0 auto;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
}

.word-dock::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 104px;
  z-index: -1;
  background: var(--paper);
}

.command-picker {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  max-height: min(260px, 42vh);
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(23, 32, 42, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 2px rgba(23, 32, 42, 0.06), 0 14px 34px rgba(23, 32, 42, 0.12);
}

.command-picker[hidden] {
  display: none;
}

.command-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.command-option[hidden] {
  display: none;
}

.command-option:hover,
.command-option:focus-visible,
.command-option[aria-selected="true"] {
  background: rgba(47, 156, 107, 0.12);
}

.command-option:focus-visible {
  outline: 2px solid rgba(47, 156, 107, 0.42);
  outline-offset: 1px;
}

.command-option-path {
  color: var(--rind);
  font-weight: 900;
}

.command-option-title {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.word-input {
  min-height: 54px;
  border-radius: 8px;
  font: inherit;
}

.word-input {
  --word-placeholder-color: #293241;
  width: 100%;
  border: 1px solid rgba(23, 32, 42, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: #050608;
  padding: 0 16px;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 12px 34px rgba(62, 88, 116, 0.16);
}

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

.word-input:focus {
  --word-placeholder-color: #8f9baa;
  outline: 3px solid rgba(47, 156, 107, 0.34);
  outline-offset: 2px;
}

.word-status {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: -2px 4px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.word-status:empty {
  display: none;
}

.word-status.is-error {
  color: #a02f42;
}
