/* Navigator window chrome. The document area is the only part that is not
   period styling: it shows the live site. */

.nav-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px 4px;
  background: var(--face);
  border-bottom: 1px solid var(--shade);
  flex-shrink: 0;
}
.nav-tool {
  border: 0;
  padding: 2px;
  background: transparent;
  display: flex;
  align-items: center;
  cursor: default;
}
.nav-tool:hover:not(:disabled) {
  background: var(--hover);
}
.nav-tool:active:not(:disabled) {
  box-shadow: inset 1px 1px 0 var(--edge-shadow);
}
.nav-tool.on {
  box-shadow: inset 1px 1px 0 var(--edge-shadow);
}
.nav-tool:focus-visible {
  outline: 1px dotted var(--frame);
  outline-offset: -2px;
}
.nav-tool:disabled {
  opacity: 0.4;
}
.nav-field {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  background: var(--face);
  border-bottom: 1px solid var(--shade);
  flex-shrink: 0;
}
.nav-field-label {
  white-space: nowrap;
}
.nav-location {
  flex: 1;
  min-width: 60px;
}
.nav-view {
  flex: 1;
  min-height: 0;
  background: var(--window);
}
.nav-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--window);
}
.nav-status-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-status-host {
  flex-shrink: 0;
  padding-left: 8px;
  border-left: 1px solid var(--shade);
}
.nav-mode {
  flex-shrink: 0;
  padding: 0 6px;
  border: 1px solid var(--shade);
  font-weight: bold;
}
.nav-mode-proxy {
  background: var(--selection);
  color: var(--selection-text);
}
.nav-mode-direct {
  background: var(--window);
  color: var(--text);
}
@media (max-width: 720px) {
  .nav-field-label {
    display: none;
  }
}