html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

.frame-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}

.frame-brand {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  margin-right: 4px;
}

.frame-toolbar button {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  flex: 0 0 auto;
}

.frame-toolbar button:hover {
  border-color: var(--accent);
}

.frame-address {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

.frame-address:focus {
  outline: none;
  border-color: var(--accent);
}

.frame-mode {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex: 0 0 auto;
}

.frame-hint {
  padding: 6px 16px;
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  background: var(--accent-soft);
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}

.frame-body {
  border: none;
  width: 100%;
  flex: 1 1 auto;
}
